Forum Moderators: coopster
config.php has the following:
-----------------------------
$ban = "1"; //1 = yes, 0 = no
$which = array(".jpg",
".JPG",
".zip",
".ZIP",
".gif",
".GIF"
);
-----------------------------
This is in the upload script
-----------------------------
$ext = strrchr($name, '.');
if ((!empty($name)) && ($ban) &&!in_array($ext,$which))
-----------------------------
What I want to do is accept all of the file types in the array, but exclude any that have php in the file name for example.
aa.php.jpg or aa.php.zip etc etc.
Please help as I have a photo upload script but people are trying to hack me with php scripts, thank you.