Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

new admin style 1.0


rkoechel2004

Recommended Posts

First of all, nice work with the contribution installs easily.

 

My only question is I had been using the below method in my admin header to control employee access to admin areas:

 

if ($messageStack->size > 0) {

echo $messageStack->output();

}

if ($_SERVER[REMOTE_USER]==admin)

{;

} else {

if ( ($PHP_SELF != DIR_WS_ADMIN . "orders.php") &&

($PHP_SELF != DIR_WS_ADMIN . "invoice.php") &&

($PHP_SELF != DIR_WS_ADMIN . "packing_slip.php") &&

($PHP_SELF != DIR_WS_ADMIN . "edit_orders.php") &&

($PHP_SELF != DIR_WS_ADMIN . "track_fedex.php") &&

($PHP_SELF != DIR_WS_ADMIN . "ship_fedex.php") &&

($PHP_SELF != DIR_WS_ADMIN . "fedex_popup.php") &&

($PHP_SELF != DIR_WS_ADMIN . "stats_products_purchased.php") &&

($PHP_SELF != DIR_WS_ADMIN . "stats_customer.php") &&

($PHP_SELF != DIR_WS_ADMIN . "stats_sales.php") &&

($PHP_SELF != DIR_WS_ADMIN . "stats_customers.php") &&

($PHP_SELF != DIR_WS_ADMIN . "stats_products_viewed.php") &&

($PHP_SELF != DIR_WS_ADMIN . "shipping_manifest.php") &&

($PHP_SELF != DIR_WS_ADMIN . "stats_recover_cart_sales.php") &&

($PHP_SELF != DIR_WS_ADMIN . "whos_online.php") &&

($PHP_SELF != DIR_WS_ADMIN . "stats_monthly_sales.php") &&

($PHP_SELF != DIR_WS_ADMIN . "customers.php") )

{ die("<br><br><center>You are not authorized to view this page.\n\n</center>"); }

}

?>

 

What do I need to change now to get this functioning again? as it doesn't seem to work with this contrib installed.

rkoechel2004

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...