if ( ($PHP_AUTH_USER=='admin1') || ($PHP_AUTH_USER=='admin2') ||
($_SERVER[REMOTE_USER]==admin1) || ($_SERVER[REMOTE_USER]==admin2) )
{;
} else {
if ( ($_SERVER['SCRIPT_NAME'] != DIR_WS_ADMIN . "orders.php") &&
($_SERVER['SCRIPT_NAME'] != DIR_WS_ADMIN . "invoice.php") &&
($_SERVER['SCRIPT_NAME'] != DIR_WS_ADMIN . "index.php") &&
($_SERVER['SCRIPT_NAME'] != DIR_WS_ADMIN . "login.php") &&
($_SERVER['SCRIPT_NAME'] != DIR_WS_ADMIN . "packing_slip.php") &&
($_SERVER['SCRIPT_NAME'] != DIR_WS_ADMIN . "customers.php") )
{ die("<br><br><center>You are not authorized to view this page.\n\n</center>"); }
}
But it doesn't work for Secure Admin Login-Logout, because it looks to something else for users. So does someone know what i have to change in Secure Admin Login-Logout so it will work. Because it works, but blocks now all users for all other options like tools.
Steven










