
Originally Posted by
jeffiec
Ok, little trouble shooting and putting a trap in 'setflag' function of categories.php,
print '<script type="text/javascript">';
print 'alert("im in the case"'. $_GET['flag'] . ')';
print '</script>';
I get the popup, but $_GET['flag'] is empty?
Just looking for clues.
Jeff
The code you posted looks like Zen Cart 1.3.x code... Possibly Zen Cart was upgraded from a previous version and something was missed when merging files... Or maybe some older code was merged into your "/admin/categories.php" by mistake when installing a plugin...
The code from Zen Cart 1.5.1 for "/admin/categories.php" (note the parts in red):
Code:
case 'setflag':
if ( isset($_POST['flag']) && ($_POST['flag'] == '0') || ($_POST['flag'] == '1') ) {
if (isset($_GET['pID'])) {
zen_set_product_status($_GET['pID'], $_POST['flag']);
}
}
zen_redirect(zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $_GET['cPath'] . '&pID=' . $_GET['pID'] . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . ((isset($_GET['search']) && !empty($_GET['search'])) ? '&search=' . $_GET['search'] : '')));
break;
Bookmarks