Grid Block must be a valid PNG file.

Million Dollar Script Forums General Grid Block must be a valid PNG file. Grid Block must be a valid PNG file.

#928

scubareb
Participant

In admin/inventory.php I found the following:

if ($_FILES[‘grid_block’][‘tmp_name’]!=”) {
if (!is_allowed_grid_file(‘grid_block’)) {
$error .= “- Grid Block must be a valid PNG file.
“;
}
}

if ($_FILES[‘nfs_block’][‘tmp_name’]!=”) {
if (!is_allowed_grid_file(‘nfs_block’)) {
$error .= “- Not For Sale Block must be a valid PNG file.
“;
}
}

if ($_FILES[‘usr_grid_block’][‘tmp_name’]!=”) {
if (!is_allowed_grid_file(‘usr_grid_block’)) {
$error .= “- Not For Sale Block must be a valid PNG file.
“;
}
}

if ($_FILES[‘usr_nfs_block’][‘tmp_name’]!=”) {
if (!is_allowed_grid_file(‘usr_nfs_block’)) {
$error .= “- User’s Not For Sale Block must be a valid PNG file.
“;
}
}

if ($_FILES[‘usr_ord_block’][‘tmp_name’]!=”) {
if (!is_allowed_grid_file(‘usr_ord_block’)) {
$error .= “- User’s Ordered Block must be a valid PNG file.
“;
}
}

if ($_FILES[‘usr_res_block’][‘tmp_name’]!=”) {
if (!is_allowed_grid_file(‘usr_res_block’)) {
$error .= “- User’s Reserved Block must be a valid PNG file.
“;
}
}

I removed this entire set – and it allows me to upload.. So there must be an issue with something in this code – any ideas?