EXTREMELY simple PHP problem - $10 for 5 minutes worth of work

My site uses the [url removed, login to view] script located at [url removed, login to view] (all documentation is there).

The script works fine, but I need to have it only allow the uploading and resizing of images that are originally 350 x 280, if the uploaded image is not 350 x 280 then an error message should be displayed.

This should be REALLY REALLY easy, you can view the portion of my script that deals with uploading and resizing the image in the attached file.

The first person to explain to me what code to insert where to make the script only allow the uploading of images that are 350x280 will get selected as the service provider and get paid $10 via PayPal or GAF escrow. THIS SHOULD ONLY TAKE YOU A FEW MINUTES SO IT IS EASY MONEY!

I just realized that I had uploaded (example.zip) the file I had been working on - so it had some code that may be misleading (such as the 6th line down). The un-fooled around with one is now uploaded as example2.zip.