session_start(); include "../conn.php"; /**************Verifying Session***************/ if(isset($_SESSION['adminID'])) { if($HTTP_SESSION_VARS['adminID'] != "") ; else { header("Location:index.php"); exit; } } else { header("Location:index.php"); exit; } $loggedAdminID = $HTTP_SESSION_VARS['adminID']; /***********Verifying permissions***************/ $get = $HTTP_SESSION_VARS['canAddProducts'] ; if($get != 1) { header("Location:adminhome.php?log=false"); exit; } /***********************************************/ if(isset($HTTP_GET_VARS['masterCategory'])) { $masterCategory = $HTTP_GET_VARS['masterCategory']; } else $masterCategory = 0; ?>
|
|||||||||||||||||||