Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin Access With Levels - Administrators 1.5.1


daithi

Recommended Posts

hi all,

does anyone know how i add extra pages to what admins can access using the above contrib?

 

the contrib changes your admi/includes/column_left.php to:

 

//Administrators start

if (CanShowBox('configuration.php')) { include(DIR_WS_BOXES . 'configuration.php'); };

if (CanShowBox('modules.php')) { require(DIR_WS_BOXES . 'modules.php'); };

if (CanShowBox('catalog.php')) { require(DIR_WS_BOXES . 'catalog.php'); };

if (CanShowBox('customers.php')) { require(DIR_WS_BOXES . 'customers.php'); };

if (CanShowBox('taxes.php')) { require(DIR_WS_BOXES . 'taxes.php'); };

if (CanShowBox('localization.php')) { require(DIR_WS_BOXES . 'localization.php'); };

if (CanShowBox('reports.php')) { require(DIR_WS_BOXES . 'reports.php'); };

if (CanShowBox('tools.php')) { require(DIR_WS_BOXES . 'tools.php'); };

if (CanShowBox('administrators.php')) { require(DIR_WS_BOXES . 'administrators.php'); };

//Administrators end

?>

 

but now that i have added more contribs I need to expand on this list and using the same format to add the php files doesn't work - any ideas?

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...