Author Topic: [FIX] - admin/resizer.php  (Read 3863 times)

0 Members and 1 Guest are viewing this topic.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
[FIX] - admin/resizer.php
« on: September 08, 2007, 07:20:09 PM »
Detail: Check variable for right result.

find ( 2 time):

Quote
$path = ($HTTP_POST_VARS['image_type'] == "media") ? MEDIA_PATH : THUMB_PATH;
$sql_image_type = ($HTTP_POST_VARS['image_type'] == "media") ? "image_media_file" : "image_thumb_file";

replace:

Code: [Select]
$path = (isset($HTTP_POST_VARS['image_type']) && $HTTP_POST_VARS['image_type'] == "media") ? MEDIA_PATH : THUMB_PATH;
$sql_image_type = (isset($HTTP_POST_VARS['image_type']) && $HTTP_POST_VARS['image_type'] == "media") ? "image_media_file" : "image_thumb_file";
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?