This way only valid administrators can access your site and in varying degrees. This module is built around osCommerce CVS pr2.2 snapshot 02/01/2002 ---------------------------------------------------------------------- osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce ---------------------------------------------------------------------- Released under the GNU General Public License ---------------------------------------------------------------------- */ ?> <!-- administrators //--> <tr> <td> <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_ADMINISTRATORS, 'link' => owpLink(basename($_SERVER['PHP_SELF']), owpGetAllGetParameters(array('selected_box')) . 'selected_box=administrators')); # 'link' => owpLink(basename($_SERVER['PHP_SELF']), owpGetAllGetParameters(array('selected_box')) . 'selected_box=administrators')); if ($selected_box == 'administrators') { $contents[] = array('text' => '<a href="' . owpLink($owpFilename['administrators']) . '" class="menuBoxContentLink">' . BOX_ADMINISTRATORS_SETUP . '</a>'); } $box = new box(); echo $box->menuBox($heading, $contents); ?> </td> </tr> <!-- administrators_eof //-->
---------------------------------------------------------------------- osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce ---------------------------------------------------------------------- Released under the GNU General Public License ---------------------------------------------------------------------- */ ?> <!-- configuration //--> <tr> <td> <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_CONFIGURATION, 'link' => owpLink(basename($_SERVER['PHP_SELF']), owpGetAllGetParameters(array('selected_box')) . 'selected_box=configuration')); if ($selected_box == 'configuration') { $cfg_groups = ''; $sql = "SELECT configuration_group_id as cgID, configuration_group_title as cgTitle \n FROM " . $owpDBTable['configuration_group'] . " \n WHERE visible = '1' \n ORDER BY sort_order"; $db->cacheSecs = 3600 * 24; # cache 24 hours $configuration_groups_query = $db->CacheExecute($sql); while ($configuration_groups = $configuration_groups_query->fields) { $cfg_groups .= '<a href="' . owpLink($owpFilename['configuration'], 'gID=' . $configuration_groups['cgID'], 'NONSSL') . '" class="menuBoxContentLink">' . $configuration_groups['cgTitle'] . '</a><br>'; $configuration_groups_query->MoveNext(); } $contents[] = array('text' => $cfg_groups); } $box = new box(); echo $box->menuBox($heading, $contents); ?>
Copyright (c) 2003 r23 ---------------------------------------------------------------------- Based on: File: tools.php,v 1.20 2002/03/16 00:20:11 hpdl ---------------------------------------------------------------------- osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce ---------------------------------------------------------------------- Released under the GNU General Public License ---------------------------------------------------------------------- */ ?> <!-- tools //--> <tr> <td> <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_TOOLS, 'link' => owpLink(basename($_SERVER['PHP_SELF']), owpGetAllGetParameters(array('selected_box')) . 'selected_box=tools')); if ($selected_box == 'tools') { $contents[] = array('text' => '<a href="' . owpLink($owpFilename['backup']) . '" class="menuBoxContentLink">' . BOX_TOOLS_BACKUP . '</a><br>' . '<a href="' . owpLink($owpFilename['file_manager']) . '" class="menuBoxContentLink">' . BOX_TOOLS_FILE_MANAGER . '</a><br>' . '<a href="' . owpLink($owpFilename['mail']) . '" class="menuBoxContentLink">' . BOX_TOOLS_MAIL . '</a><br>' . '<a href="' . owpLink($owpFilename['newsletters']) . '" class="menuBoxContentLink">' . BOX_TOOLS_NEWSLETTER_MANAGER . '</a><br>' . '<a href="' . owpLink($owpFilename['server_info']) . '" class="menuBoxContentLink">' . BOX_TOOLS_SERVER_INFO . '</a><br>' . '<a href="' . owpLink($owpFilename['whos_online']) . '" class="menuBoxContentLink">' . BOX_TOOLS_WHOS_ONLINE . '</a>'); } $box = new box(); echo $box->menuBox($heading, $contents); ?> </td> </tr> <!-- tools_eof //-->
Copyright (c) 2003 r23 ---------------------------------------------------------------------- Based on: File: localization.php,v 1.15 2002/03/16 00:20:11 hpdl ---------------------------------------------------------------------- osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce ---------------------------------------------------------------------- Released under the GNU General Public License ---------------------------------------------------------------------- */ ?> <!-- localization //--> <tr> <td> <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_LANGUAGES, 'link' => owpLink(basename($_SERVER['PHP_SELF']), owpGetAllGetParameters(array('selected_box')) . 'selected_box=localization')); if ($selected_box == 'localization') { $contents[] = array('text' => '<a href="' . owpLink($owpFilename['define_language']) . '" class="menuBoxContentLink">' . BOX_TOOLS_DEFINE_LANGUAGE . '</a><br>' . '<a href="' . owpLink($owpFilename['languages'], '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_LOCALIZATION_LANGUAGES . '</a>'); } $box = new box(); echo $box->menuBox($heading, $contents); ?> </td> </tr> <!-- localization_eof //-->
Copyright (c) 2003 r23 ---------------------------------------------------------------------- Based on: File: taxes.php,v 1.16 2002/03/16 00:20:11 hpdl ---------------------------------------------------------------------- osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce ---------------------------------------------------------------------- Released under the GNU General Public License ---------------------------------------------------------------------- */ ?> <!-- countries //--> <tr> <td> <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_LOCALIZATION, 'link' => owpLink(basename($_SERVER['PHP_SELF']), owpGetAllGetParameters(array('selected_box')) . 'selected_box=countries')); if ($selected_box == 'countries') { $contents[] = array('text' => '<a href="' . owpLink($owpFilename['countries'], '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_TAXES_COUNTRIES . '</a><br>' . '<a href="' . owpLink($owpFilename['zones'], '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_TAXES_ZONES . '</a>'); } $box = new box(); echo $box->menuBox($heading, $contents); ?> </td> </tr> <!-- countries_eof //-->
?> </td> </tr> <?php $admin_query->MoveNext(); } ?> <tr> <td colspan="6"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText" valign="top"><?php echo $admin_split->display_count($admin_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_USER); ?> </td> <td class="smallText" align="right"><?php echo $admin_split->display_links($admin_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page'], owpGetAllGetParameters(array('page', 'info', 'x', 'y', 'aID'))); ?> </td> </tr> <?php if (!$_GET['action']) { ?> <tr> <td align="right"><?php if (OWP_CSV_EXCEL == 'true') { echo '<a href="' . owpLink($owpFilename['administrators'], 'page=' . $_GET['page'] . '&action=download') . '">' . owpImageButton('excel_now.gif', IMAGE_CSV_DOWNLOAD) . '</a>'; } ?> </td> <td align="right"><?php echo '<a href="' . owpLink($owpFilename['create_account']) . '">' . owpImageButton('button_new_user.gif', IMAGE_NEW_USER) . '</a>';