I haven't had much time to really look into your thing, but your coding style seems reasonable.
Some things I noticed:
This is vulnerable to SQL injection attacks:
Something like this would be better, and more reliable:
Here, you're not relying on the ordering of the fields. Inputs should be escaped so that a malicious user cannot arbitrarily insert code into queries.
Also note that ID fields in tables should be defined as auto_increment (in the CREATE TABLE query) - generally you should not rely on finding the last ID and adding 1 to it.
You should probably stick images in the MyBB images/ folder for consistency (maybe a subfolder in that) - try not to have it in the inc folder. In general, users probably shouldn't be trying to access anything in the inc folder directly.
I noticed that the mywarimage.class.php file requires PHP 5, whereas MyBB 1.4 doesn't require that - just something to be aware of.
Nice idea BTW.
(08-08-2010 04:39 AM)llnn Wrote: the image of the map I created using the civilization 4 (a game), is illegal if I will distribute this image?
And if it is illegal, someone could create a map for mywar?
I really don't think that's a problem. Can be considered an in-material amount of copying.
Hope all that helps.