Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cannot run Admin - 'no return page'


jimporter

Recommended Posts

Posted

Installed Loaded 5 and the catalog works fine but when trying to run admin all I get is a text that says 'no return page'.

 

As a newbie I am stumped.

 

Any help welcome

Thanks

Jim

  • 4 weeks later...
Posted

Jim,

I don't remember exactly what I did to fix this problem, so I am including the entire source code for the file. The problem is somewhere within the admin>includes>functions> administrators.php. Hope this helps out... :o

 

<?php

/*

 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Implemented by Blake Schwendiman ([email protected])

Updated 2002/3/30 -- Ross Lapkoff ([email protected])



 Copyright (c) 2002 osCommerce



 Released under the GNU General Public License

*/

   

   $aADMBoxes = array ( 

          'administrators.php'   => BOX_HEADING_ADMINISTRATORS, 

                        'catalog.php'          => BOX_HEADING_CATALOG, 

                        'configuration.php'    => BOX_HEADING_CONFIGURATION,

                        'customers.php'        => BOX_HEADING_CUSTOMERS, 

                        'localization.php'     => BOX_HEADING_LOCALIZATION,

      'taxes.php'            => BOX_HEADING_LOCATION_AND_TAXES, 

                        'modules.php'          => BOX_HEADING_MODULES, 

                        'reports.php'          => BOX_HEADING_REPORTS,

                        'tools.php'            => BOX_HEADING_TOOLS,

                        'polls.php'            => BOX_HEADING_POLLS,

                        'gv_admin.php'         => BOX_HEADING_GV_ADMIN,

                        'paypalipn.php.php'    => BOX_HEADING_PAYPALIPN

                        );

                     

   // associate all the admin pages with the box class that includes it                      

   $aADMPages = array( 'configuration.php'            => 'configuration.php',

                       'modules.php'                  => 'modules.php',

     'categories.php'        => 'catalog.php',

                       'products_attributes.php'      => 'catalog.php',

                       'manufacturers.php'            => 'catalog.php',

                       'reviews.php'                  => 'catalog.php',

                       'specials.php'                 => 'catalog.php', 

                       'products_expected.php'        => 'catalog.php',

                       'customers.php'                => 'customers.php',

                       'orders.php'                   => 'customers.php',

                       'countries.php'                => 'taxes.php',

                       'zones.php'                    => 'taxes.php',

                       'geo_zones.php'                => 'taxes.php',

                       'tax_classes.php'              => 'taxes.php',

                       'tax_rates.php'                => 'taxes.php',

                       'banner_manager.php'           => 'banners.php',

                       'currencies.php'               => 'localization.php',

                       'languages.php'                => 'localization.php',

                       'orders_status.php'            => 'localization.php',

                       'stats_products_viewed.php'    => 'reports.php',

                       'stats_products_purchased.php' => 'reports.php',

                       'stats_customers.php'          => 'reports.php',

                       'file_manager.php'             => 'tools.php',

                       'backup.php'                   => 'tools.php',

	 'banner_manager.php'        => 'tools.php',

	 'define_languages.php'        => 'tools.php',

                       'whos_online.php'              => 'tools.php',

                       'cache.php'                    => 'tools.php',

                       'mail.php'                     => 'tools.php',

	 'newsletters.php'        => 'tools.php',

	 'server_info.php'        => 'tools.php',

                       'administrators.php'           => 'administrators.php',

	 'update_admin.php'        => 'administrators.php',

	 'index.php'         => 'support',

	 'logoff.php'         => 'support',

	 'login.php'         => 'support',            

	 'paypalipn_txn.php'        => 'paypalipn.php'            

                    );                    

   



   function RequireLoginValidForPage($aRetPage)

   {

   global $PHP_SELF, $in_login, $login_id, $aADMPages;

    

// if (!$aRetPage) die('no return page');

if (!$aRetPage) $aRetPage = 'index.php';

if (basename($aRetPage)=='') $aRetPage = 'index.php';

        $aRetPage = basename($aRetPage);

        if ($aRetPage == 'admin') $aRetPage = 'index.php';

$aThisPage = basename($PHP_SELF);

//        $aRetPage  = str_replace( $aThisPage, 'index.php', $aRetPage );

//	$aRetPage = 'index.php';       

       if (empty($in_login ))

       {

           if (!tep_session_is_registered('login_id')) 

           {

           tep_redirect(tep_href_link('login.php','in_login=yes&retpage=' . urlencode($aRetPage)));



           } else {

             $aSQL = "select allowed_pages from administrators where (admin_id = '$login_id')";

             $aRes = tep_db_query($aSQL);

               if ($aVal = tep_db_fetch_array($aRes))

               {

                 $aPages = $aVal['allowed_pages'];

                 if (trim($aPages != '*'))

                 {

                   $aAllowedPages   = explode('|', $aPages);

                   $aCurrentPageBox = $aADMPages[$aThisPage];

                     if ($aCurrentPageBox != '*')

                       {

                         if (!in_array( $aCurrentPageBox, $aAllowedPages))

                         {

    echo '<center><p><font size="+2">You are not authorized to view this page, please go back.';

    exit();

                         }

                      }

                  }

              } 

          }

      }

  }

   

   function CanShowBox($aBoxName)

   {

       global $login_id;

       $aSQL = "select allowed_pages from administrators where (admin_id = '$login_id')";

       $aRes = tep_db_query($aSQL);

       if ( $aVal = tep_db_fetch_array( $aRes ) )

       {

           $aPages = $aVal['allowed_pages'];

           if (trim( $aPages != '*' ))

           {

               $aAllowedPages   = explode('|', $aPages);

               $aCurrentPageBox = $aBoxName;

               if (in_array($aCurrentPageBox, $aAllowedPages))

               {

                   return true;

               }

           } else {

               return true;

           }

       }

       return false;

   }

?>

 

Good Luck, it will be worth the frustration!! :D

 

Regarids,

Obewanz

The GraphicZoo

check profile for web address

  • 6 months later...
Posted

I tried this and now end up with

 

The page cannot be found,

the usual 404 error.

 

If anyone has any more suggestions I would be grateful, 'cos working without the admin side of things is getting rather frustrating.

 

Thanks.

  • 1 year later...
Posted

I'm having issuses loading the admin area at all. I get the login box & I login... then this page shows up:

*********************************************************

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@********.biz and inform them of the time the error occurred, and anything you might have done that may have caused the error.

 

More information about this error may be available in the server error log.

 

 

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

 

--------------------------------------------------------------------------------

 

Apache/1.3.33 Server at www.***********.biz Port 80

 

 

*********************************************************

So... I go and check my server logs & these are the errors that I found:

*********************************************************

 

File does not exist: /home/xbox/public_html/500.shtml

Premature end of script headers: /home/xbox/public_html/iShop/admin/index.php

File does not exist: /home/xbox/public_html/401.shtml

 

*********************************************************

I'm not concerned about the missing page... but I am worried about the admin section not loading for me.

 

Here is a copy of the shop > admin > index.php

*********************************************************

 

<?php

/*

$Id: index.php,v 1.19 2003/06/27 09:38:31 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

$cat = array(array('title' => BOX_HEADING_CONFIGURATION,

'image' => 'configuration.gif',

'href' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=1'),

'children' => array(array('title' => BOX_CONFIGURATION_MYSTORE, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=1')),

array('title' => BOX_CONFIGURATION_LOGGING, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=10')),

array('title' => BOX_CONFIGURATION_CACHE, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=11')))),

array('title' => BOX_HEADING_MODULES,

'image' => 'modules.gif',

'href' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=payment'),

'children' => array(array('title' => BOX_MODULES_PAYMENT, 'link' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=payment')),

array('title' => BOX_MODULES_SHIPPING, 'link' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=shipping')))),

array('title' => BOX_HEADING_CATALOG,

'image' => 'catalog.gif',

'href' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog'),

'children' => array(array('title' => CATALOG_CONTENTS, 'link' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog')),

array('title' => BOX_CATALOG_MANUFACTURERS, 'link' => tep_href_link(FILENAME_MANUFACTURERS, 'selected_box=catalog')))),

array('title' => BOX_HEADING_LOCATION_AND_TAXES,

'image' => 'location.gif',

'href' => tep_href_link(FILENAME_COUNTRIES, 'selected_box=taxes'),

'children' => array(array('title' => BOX_TAXES_COUNTRIES, 'link' => tep_href_link(FILENAME_COUNTRIES, 'selected_box=taxes')),

array('title' => BOX_TAXES_GEO_ZONES, 'link' => tep_href_link(FILENAME_GEO_ZONES, 'selected_box=taxes')))),

array('title' => BOX_HEADING_CUSTOMERS,

'image' => 'customers.gif',

'href' => tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers'),

'children' => array(array('title' => BOX_CUSTOMERS_CUSTOMERS, 'link' => tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers')),

array('title' => BOX_CUSTOMERS_ORDERS, 'link' => tep_href_link(FILENAME_ORDERS, 'selected_box=customers')))),

array('title' => BOX_HEADING_LOCALIZATION,

'image' => 'localization.gif',

'href' => tep_href_link(FILENAME_CURRENCIES, 'selected_box=localization'),

'children' => array(array('title' => BOX_LOCALIZATION_CURRENCIES, 'link' => tep_href_link(FILENAME_CURRENCIES, 'selected_box=localization')),

array('title' => BOX_LOCALIZATION_LANGUAGES, 'link' => tep_href_link(FILENAME_LANGUAGES, 'selected_box=localization')))),

array('title' => BOX_HEADING_REPORTS,

'image' => 'reports.gif',

'href' => tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, 'selected_box=reports'),

'children' => array(array('title' => REPORTS_PRODUCTS, 'link' => tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, 'selected_box=reports')),

array('title' => REPORTS_ORDERS, 'link' => tep_href_link(FILENAME_STATS_CUSTOMERS, 'selected_box=reports')))),

array('title' => BOX_HEADING_TOOLS,

'image' => 'tools.gif',

'href' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools'),

'children' => array(array('title' => TOOLS_BACKUP, 'link' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools')),

array('title' => TOOLS_BANNERS, 'link' => tep_href_link(FILENAME_BANNER_MANAGER, 'selected_box=tools')),

array('title' => TOOLS_FILES, 'link' => tep_href_link(FILENAME_FILE_MANAGER, 'selected_box=tools')))));

 

$languages = tep_get_languages();

$languages_array = array();

$languages_selected = DEFAULT_LANGUAGE;

for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {

$languages_array[] = array('id' => $languages[$i]['code'],

'text' => $languages[$i]['name']);

if ($languages[$i]['directory'] == $language) {

$languages_selected = $languages[$i]['code'];

}

}

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title><?php echo TITLE; ?></title>

<style type="text/css"><!--

a { color:#080381; text-decoration:none; }

a:hover { color:#aabbdd; text-decoration:underline; }

a.text:link, a.text:visited { color: #000000; text-decoration: none; }

a:text:hover { color: #000000; text-decoration: underline; }

a.main:link, a.main:visited { color: #ffffff; text-decoration: none; }

A.main:hover { color: #ffffff; text-decoration: underline; }

a.sub:link, a.sub:visited { color: #dddddd; text-decoration: none; }

A.sub:hover { color: #dddddd; text-decoration: underline; }

.heading { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 20px; font-weight: bold; line-height: 1.5; color: #D3DBFF; }

.main { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 17px; font-weight: bold; line-height: 1.5; color: #ffffff; }

.sub { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; line-height: 1.5; color: #dddddd; }

.text { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; line-height: 1.5; color: #000000; }

.menuBoxHeading { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #ffffff; font-weight: bold; background-color: #7187bb; border-color: #7187bb; border-style: solid; border-width: 1px; }

.infoBox { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #080381; background-color: #f2f4ff; border-color: #7187bb; border-style: solid; border-width: 1px; }

.smallText { font-family: Verdana, Arial, sans-serif; font-size: 10px; }

//--></style>

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">

 

<table border="0" width="600" height="100%" cellspacing="0" cellpadding="0" align="center" valign="middle">

<tr>

<td><table border="0" width="600" height="440" cellspacing="0" cellpadding="1" align="center" valign="middle">

<tr bgcolor="#000000">

<td><table border="0" width="600" height="440" cellspacing="0" cellpadding="0">

<tr bgcolor="#ffffff" height="50">

<td height="50"><?php echo tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce', '204', '50'); ?></td>

<td align="right" class="text" nowrap><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . HEADER_TITLE_ADMINISTRATION . '</a>  |  <a href="' . tep_catalog_href_link() . '">' . HEADER_TITLE_ONLINE_CATALOG . '</a>  |  <a href="http://www.oscommerce.com" target="_blank">' . HEADER_TITLE_SUPPORT_SITE . '</a>'; ?>  </td>

</tr>

<tr bgcolor="#080381">

<td colspan="2"><table border="0" width="460" height="390" cellspacing="0" cellpadding="2">

<tr valign="top">

<td width="140" valign="top"><table border="0" width="140" height="390" cellspacing="0" cellpadding="2">

<tr>

<td valign="top"><br>

<?php

$heading = array();

$contents = array();

 

$heading[] = array('params' => 'class="menuBoxHeading"',

'text' => 'osCommerce');

 

$contents[] = array('params' => 'class="infoBox"',

'text' => '<a href="http://www.oscommerce.com" target="_blank">' . BOX_ENTRY_SUPPORT_SITE . '</a><br>' .

'<a href="http://www.oscommerce.com/community.php/forum" target="_blank">' . BOX_ENTRY_SUPPORT_FORUMS . '</a><br>' .

'<a href="http://www.oscommerce.com/community.php/mlists" target="_blank">' . BOX_ENTRY_MAILING_LISTS . '</a><br>' .

'<a href="http://www.oscommerce.com/community.php/bugs" target="_blank">' . BOX_ENTRY_BUG_REPORTS . '</a><br>' .

'<a href="http://www.oscommerce.com/community.php/faq" target="_blank">' . BOX_ENTRY_FAQ . '</a><br>' .

'<a href="http://www.oscommerce.com/community.php/irc" target="_blank">' . BOX_ENTRY_LIVE_DISCUSSIONS . '</a><br>' .

'<a href="http://www.oscommerce.com/community.php/cvs" target="_blank">' . BOX_ENTRY_CVS_REPOSITORY . '</a><br>' .

'<a href="http://www.oscommerce.com/about.php/portal" target="_blank">' . BOX_ENTRY_INFORMATION_PORTAL . '</a>');

 

$box = new box;

echo $box->menuBox($heading, $contents);

 

echo '<br>';

 

$orders_contents = '';

$orders_status_query = tep_db_query("select orders_status_name, orders_status_id from " . TABLE_ORDERS_STATUS . " where language_id = '" . $languages_id . "'");

while ($orders_status = tep_db_fetch_array($orders_status_query)) {

$orders_pending_query = tep_db_query("select count(*) as count from " . TABLE_ORDERS . " where orders_status = '" . $orders_status['orders_status_id'] . "'");

$orders_pending = tep_db_fetch_array($orders_pending_query);

$orders_contents .= '<a href="' . tep_href_link(FILENAME_ORDERS, 'selected_box=customers&status=' . $orders_status['orders_status_id']) . '">' . $orders_status['orders_status_name'] . '</a>: ' . $orders_pending['count'] . '<br>';

}

$orders_contents = substr($orders_contents, 0, -4);

 

$heading = array();

$contents = array();

 

$heading[] = array('params' => 'class="menuBoxHeading"',

'text' => BOX_TITLE_ORDERS);

 

$contents[] = array('params' => 'class="infoBox"',

'text' => $orders_contents);

 

$box = new box;

echo $box->menuBox($heading, $contents);

 

echo '<br>';

 

$customers_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS);

$customers = tep_db_fetch_array($customers_query);

$products_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS . " where products_status = '1'");

$products = tep_db_fetch_array($products_query);

$reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS);

$reviews = tep_db_fetch_array($reviews_query);

 

$heading = array();

$contents = array();

 

$heading[] = array('params' => 'class="menuBoxHeading"',

'text' => BOX_TITLE_STATISTICS);

 

$contents[] = array('params' => 'class="infoBox"',

'text' => BOX_ENTRY_CUSTOMERS . ' ' . $customers['count'] . '<br>' .

BOX_ENTRY_PRODUCTS . ' ' . $products['count'] . '<br>' .

BOX_ENTRY_REVIEWS . ' ' . $reviews['count']);

 

$box = new box;

echo $box->menuBox($heading, $contents);

 

echo '<br>';

 

$contents = array();

 

if (getenv('HTTPS') == 'on') {

$size = ((getenv('SSL_CIPHER_ALGKEYSIZE')) ? getenv('SSL_CIPHER_ALGKEYSIZE') . '-bit' : '<i>' . BOX_CONNECTION_UNKNOWN . '</i>');

$contents[] = array('params' => 'class="infoBox"',

'text' => tep_image(DIR_WS_ICONS . 'locked.gif', ICON_LOCKED, '', '', 'align="right"') . sprintf(BOX_CONNECTION_PROTECTED, $size));

} else {

$contents[] = array('params' => 'class="infoBox"',

'text' => tep_image(DIR_WS_ICONS . 'unlocked.gif', ICON_UNLOCKED, '', '', 'align="right"') . BOX_CONNECTION_UNPROTECTED);

}

 

$box = new box;

echo $box->tableBlock($contents);

?>

</td>

</tr>

</table></td>

<td width="460"><table border="0" width="460" height="390" cellspacing="0" cellpadding="2">

<tr>

<td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr><?php echo tep_draw_form('languages', 'index.php', '', 'get'); ?>

<td class="heading"><?php echo HEADING_TITLE; ?></td>

<td align="right"><?php echo tep_draw_pull_down_menu('language', $languages_array, $languages_selected, 'onChange="this.form.submit();"'); ?></td>

</form></tr>

</table></td>

</tr>

<?php

$col = 2;

$counter = 0;

for ($i = 0, $n = sizeof($cat); $i < $n; $i++) {

$counter++;

if ($counter < $col) {

echo ' <tr>' . "\n";

}

 

echo ' <td><table border="0" cellspacing="0" cellpadding="2">' . "\n" .

' <tr>' . "\n" .

' <td><a href="' . $cat[$i]['href'] . '">' . tep_image(DIR_WS_IMAGES . 'categories/' . $cat[$i]['image'], $cat[$i]['title'], '32', '32') . '</a></td>' . "\n" .

' <td><table border="0" cellspacing="0" cellpadding="2">' . "\n" .

' <tr>' . "\n" .

' <td class="main"><a href="' . $cat[$i]['href'] . '" class="main">' . $cat[$i]['title'] . '</a></td>' . "\n" .

' </tr>' . "\n" .

' <tr>' . "\n" .

' <td class="sub">';

 

$children = '';

for ($j = 0, $k = sizeof($cat[$i]['children']); $j < $k; $j++) {

$children .= '<a href="' . $cat[$i]['children'][$j]['link'] . '" class="sub">' . $cat[$i]['children'][$j]['title'] . '</a>, ';

}

echo substr($children, 0, -2);

 

echo '</td> ' . "\n" .

' </tr>' . "\n" .

' </table></td>' . "\n" .

' </tr>' . "\n" .

' </table></td>' . "\n";

 

if ($counter >= $col) {

echo ' </tr>' . "\n";

$counter = 0;

}

}

?>

</table></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php require(DIR_WS_INCLUDES . 'footer.php'); ?></td>

</tr>

</table></td>

</tr>

</table>

 

</body>

 

</html>

*********************************************************

 

can anyone point me in the right direction? I need to get my admin section back up and running because I'm not sure if I'm able to still process orders.

 

Thanks for your time!

Everett

  • 1 year later...
Posted
<span style='color:blue'>I'm having issuses loading the admin area at all. I get the login box & I login... then this page shows up:</span>

*********************************************************

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@********.biz and inform them of the time the error occurred, and anything you might have done that may have caused the error.

 

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

--------------------------------------------------------------------------------

 

Apache/1.3.33 Server at www.***********.biz Port 80

*********************************************************

<span style='color:blue'>So... I go and check my server logs & these are the errors that I found:</span>

*********************************************************

 

File does not exist: /home/xbox/public_html/500.shtml

Premature end of script headers: /home/xbox/public_html/iShop/admin/index.php

File does not exist: /home/xbox/public_html/401.shtml

 

*********************************************************

<span style='color:blue'>I'm not concerned about the missing page... but I am worried about the admin section not loading for me.

 

Here is a copy of the shop > admin > index.php </span>

*********************************************************

 

<?php

/*

$Id: index.php,v 1.19 2003/06/27 09:38:31 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

$cat = array(array('title' => BOX_HEADING_CONFIGURATION,

'image' => 'configuration.gif',

'href' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=1'),

'children' => array(array('title' => BOX_CONFIGURATION_MYSTORE, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=1')),

array('title' => BOX_CONFIGURATION_LOGGING, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=10')),

array('title' => BOX_CONFIGURATION_CACHE, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=11')))),

array('title' => BOX_HEADING_MODULES,

'image' => 'modules.gif',

'href' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=payment'),

'children' => array(array('title' => BOX_MODULES_PAYMENT, 'link' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=payment')),

array('title' => BOX_MODULES_SHIPPING, 'link' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=shipping')))),

array('title' => BOX_HEADING_CATALOG,

'image' => 'catalog.gif',

'href' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog'),

'children' => array(array('title' => CATALOG_CONTENTS, 'link' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog')),

array('title' => BOX_CATALOG_MANUFACTURERS, 'link' => tep_href_link(FILENAME_MANUFACTURERS, 'selected_box=catalog')))),

array('title' => BOX_HEADING_LOCATION_AND_TAXES,

'image' => 'location.gif',

'href' => tep_href_link(FILENAME_COUNTRIES, 'selected_box=taxes'),

'children' => array(array('title' => BOX_TAXES_COUNTRIES, 'link' => tep_href_link(FILENAME_COUNTRIES, 'selected_box=taxes')),

array('title' => BOX_TAXES_GEO_ZONES, 'link' => tep_href_link(FILENAME_GEO_ZONES, 'selected_box=taxes')))),

array('title' => BOX_HEADING_CUSTOMERS,

'image' => 'customers.gif',

'href' => tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers'),

'children' => array(array('title' => BOX_CUSTOMERS_CUSTOMERS, 'link' => tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers')),

array('title' => BOX_CUSTOMERS_ORDERS, 'link' => tep_href_link(FILENAME_ORDERS, 'selected_box=customers')))),

array('title' => BOX_HEADING_LOCALIZATION,

'image' => 'localization.gif',

'href' => tep_href_link(FILENAME_CURRENCIES, 'selected_box=localization'),

'children' => array(array('title' => BOX_LOCALIZATION_CURRENCIES, 'link' => tep_href_link(FILENAME_CURRENCIES, 'selected_box=localization')),

array('title' => BOX_LOCALIZATION_LANGUAGES, 'link' => tep_href_link(FILENAME_LANGUAGES, 'selected_box=localization')))),

array('title' => BOX_HEADING_REPORTS,

'image' => 'reports.gif',

'href' => tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, 'selected_box=reports'),

'children' => array(array('title' => REPORTS_PRODUCTS, 'link' => tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, 'selected_box=reports')),

array('title' => REPORTS_ORDERS, 'link' => tep_href_link(FILENAME_STATS_CUSTOMERS, 'selected_box=reports')))),

array('title' => BOX_HEADING_TOOLS,

'image' => 'tools.gif',

'href' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools'),

'children' => array(array('title' => TOOLS_BACKUP, 'link' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools')),

array('title' => TOOLS_BANNERS, 'link' => tep_href_link(FILENAME_BANNER_MANAGER, 'selected_box=tools')),

array('title' => TOOLS_FILES, 'link' => tep_href_link(FILENAME_FILE_MANAGER, 'selected_box=tools')))));

 

$languages = tep_get_languages();

$languages_array = array();

$languages_selected = DEFAULT_LANGUAGE;

for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {

$languages_array[] = array('id' => $languages[$i]['code'],

'text' => $languages[$i]['name']);

if ($languages[$i]['directory'] == $language) {

$languages_selected = $languages[$i]['code'];

}

}

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title><?php echo TITLE; ?></title>

<style type="text/css"><!--

a { color:#080381; text-decoration:none; }

a:hover { color:#aabbdd; text-decoration:underline; }

a.text:link, a.text:visited { color: #000000; text-decoration: none; }

a:text:hover { color: #000000; text-decoration: underline; }

a.main:link, a.main:visited { color: #ffffff; text-decoration: none; }

A.main:hover { color: #ffffff; text-decoration: underline; }

a.sub:link, a.sub:visited { color: #dddddd; text-decoration: none; }

A.sub:hover { color: #dddddd; text-decoration: underline; }

.heading { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 20px; font-weight: bold; line-height: 1.5; color: #D3DBFF; }

.main { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 17px; font-weight: bold; line-height: 1.5; color: #ffffff; }

.sub { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; line-height: 1.5; color: #dddddd; }

.text { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; line-height: 1.5; color: #000000; }

.menuBoxHeading { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #ffffff; font-weight: bold; background-color: #7187bb; border-color: #7187bb; border-style: solid; border-width: 1px; }

.infoBox { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #080381; background-color: #f2f4ff; border-color: #7187bb; border-style: solid; border-width: 1px; }

.smallText { font-family: Verdana, Arial, sans-serif; font-size: 10px; }

//--></style>

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">

 

<table border="0" width="600" height="100%" cellspacing="0" cellpadding="0" align="center" valign="middle">

<tr>

<td><table border="0" width="600" height="440" cellspacing="0" cellpadding="1" align="center" valign="middle">

<tr bgcolor="#000000">

<td><table border="0" width="600" height="440" cellspacing="0" cellpadding="0">

<tr bgcolor="#ffffff" height="50">

<td height="50"><?php echo tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce', '204', '50'); ?></td>

<td align="right" class="text" nowrap><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . HEADER_TITLE_ADMINISTRATION . '</a>  |  <a href="' . tep_catalog_href_link() . '">' . HEADER_TITLE_ONLINE_CATALOG . '</a>  |  <a href="http://www.oscommerce.com" target="_blank">' . HEADER_TITLE_SUPPORT_SITE . '</a>'; ?>  </td>

</tr>

<tr bgcolor="#080381">

<td colspan="2"><table border="0" width="460" height="390" cellspacing="0" cellpadding="2">

<tr valign="top">

<td width="140" valign="top"><table border="0" width="140" height="390" cellspacing="0" cellpadding="2">

<tr>

<td valign="top"><br>

<?php

$heading = array();

$contents = array();

 

$heading[] = array('params' => 'class="menuBoxHeading"',

'text' => 'osCommerce');

 

$contents[] = array('params' => 'class="infoBox"',

'text' => '<a href="http://www.oscommerce.com" target="_blank">' . BOX_ENTRY_SUPPORT_SITE . '</a><br>' .

'<a href="http://www.oscommerce.com/community.php/forum" target="_blank">' . BOX_ENTRY_SUPPORT_FORUMS . '</a><br>' .

'<a href="http://www.oscommerce.com/community.php/mlists" target="_blank">' . BOX_ENTRY_MAILING_LISTS . '</a><br>' .

'<a href="http://www.oscommerce.com/community.php/bugs" target="_blank">' . BOX_ENTRY_BUG_REPORTS . '</a><br>' .

'<a href="http://www.oscommerce.com/community.php/faq" target="_blank">' . BOX_ENTRY_FAQ . '</a><br>' .

'<a href="http://www.oscommerce.com/community.php/irc" target="_blank">' . BOX_ENTRY_LIVE_DISCUSSIONS . '</a><br>' .

'<a href="http://www.oscommerce.com/community.php/cvs" target="_blank">' . BOX_ENTRY_CVS_REPOSITORY . '</a><br>' .

'<a href="http://www.oscommerce.com/about.php/portal" target="_blank">' . BOX_ENTRY_INFORMATION_PORTAL . '</a>');

 

$box = new box;

echo $box->menuBox($heading, $contents);

 

echo '<br>';

 

$orders_contents = '';

$orders_status_query = tep_db_query("select orders_status_name, orders_status_id from " . TABLE_ORDERS_STATUS . " where language_id = '" . $languages_id . "'");

while ($orders_status = tep_db_fetch_array($orders_status_query)) {

$orders_pending_query = tep_db_query("select count(*) as count from " . TABLE_ORDERS . " where orders_status = '" . $orders_status['orders_status_id'] . "'");

$orders_pending = tep_db_fetch_array($orders_pending_query);

$orders_contents .= '<a href="' . tep_href_link(FILENAME_ORDERS, 'selected_box=customers&status=' . $orders_status['orders_status_id']) . '">' . $orders_status['orders_status_name'] . '</a>: ' . $orders_pending['count'] . '<br>';

}

$orders_contents = substr($orders_contents, 0, -4);

 

$heading = array();

$contents = array();

 

$heading[] = array('params' => 'class="menuBoxHeading"',

'text' => BOX_TITLE_ORDERS);

 

$contents[] = array('params' => 'class="infoBox"',

'text' => $orders_contents);

 

$box = new box;

echo $box->menuBox($heading, $contents);

 

echo '<br>';

 

$customers_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS);

$customers = tep_db_fetch_array($customers_query);

$products_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS . " where products_status = '1'");

$products = tep_db_fetch_array($products_query);

$reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS);

$reviews = tep_db_fetch_array($reviews_query);

 

$heading = array();

$contents = array();

 

$heading[] = array('params' => 'class="menuBoxHeading"',

'text' => BOX_TITLE_STATISTICS);

 

$contents[] = array('params' => 'class="infoBox"',

'text' => BOX_ENTRY_CUSTOMERS . ' ' . $customers['count'] . '<br>' .

BOX_ENTRY_PRODUCTS . ' ' . $products['count'] . '<br>' .

BOX_ENTRY_REVIEWS . ' ' . $reviews['count']);

 

$box = new box;

echo $box->menuBox($heading, $contents);

 

echo '<br>';

 

$contents = array();

 

if (getenv('HTTPS') == 'on') {

$size = ((getenv('SSL_CIPHER_ALGKEYSIZE')) ? getenv('SSL_CIPHER_ALGKEYSIZE') . '-bit' : '<i>' . BOX_CONNECTION_UNKNOWN . '</i>');

$contents[] = array('params' => 'class="infoBox"',

'text' => tep_image(DIR_WS_ICONS . 'locked.gif', ICON_LOCKED, '', '', 'align="right"') . sprintf(BOX_CONNECTION_PROTECTED, $size));

} else {

$contents[] = array('params' => 'class="infoBox"',

'text' => tep_image(DIR_WS_ICONS . 'unlocked.gif', ICON_UNLOCKED, '', '', 'align="right"') . BOX_CONNECTION_UNPROTECTED);

}

 

$box = new box;

echo $box->tableBlock($contents);

?>

</td>

</tr>

</table></td>

<td width="460"><table border="0" width="460" height="390" cellspacing="0" cellpadding="2">

<tr>

<td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr><?php echo tep_draw_form('languages', 'index.php', '', 'get'); ?>

<td class="heading"><?php echo HEADING_TITLE; ?></td>

<td align="right"><?php echo tep_draw_pull_down_menu('language', $languages_array, $languages_selected, 'onChange="this.form.submit();"'); ?></td>

</form></tr>

</table></td>

</tr>

<?php

$col = 2;

$counter = 0;

for ($i = 0, $n = sizeof($cat); $i < $n; $i++) {

$counter++;

if ($counter < $col) {

echo ' <tr>' . "\n";

}

 

echo ' <td><table border="0" cellspacing="0" cellpadding="2">' . "\n" .

' <tr>' . "\n" .

' <td><a href="' . $cat[$i]['href'] . '">' . tep_image(DIR_WS_IMAGES . 'categories/' . $cat[$i]['image'], $cat[$i]['title'], '32', '32') . '</a></td>' . "\n" .

' <td><table border="0" cellspacing="0" cellpadding="2">' . "\n" .

' <tr>' . "\n" .

' <td class="main"><a href="' . $cat[$i]['href'] . '" class="main">' . $cat[$i]['title'] . '</a></td>' . "\n" .

' </tr>' . "\n" .

' <tr>' . "\n" .

' <td class="sub">';

 

$children = '';

for ($j = 0, $k = sizeof($cat[$i]['children']); $j < $k; $j++) {

$children .= '<a href="' . $cat[$i]['children'][$j]['link'] . '" class="sub">' . $cat[$i]['children'][$j]['title'] . '</a>, ';

}

echo substr($children, 0, -2);

 

echo '</td> ' . "\n" .

' </tr>' . "\n" .

' </table></td>' . "\n" .

' </tr>' . "\n" .

' </table></td>' . "\n";

 

if ($counter >= $col) {

echo ' </tr>' . "\n";

$counter = 0;

}

}

?>

</table></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php require(DIR_WS_INCLUDES . 'footer.php'); ?></td>

</tr>

</table></td>

</tr>

</table>

 

</body>

 

</html>

*********************************************************

 

<span style='color:blue'>can anyone point me in the right direction? I need to get my admin section back up and running because I'm not sure if I'm able to still process orders.

 

Thanks for your time!

Everett</span>

 

 

 

 

 

yeahh, i have the same problem too,my catalog pages works great but, when i try to access admin pages i have this error:

 

SERVER ERROR

 

Error 500

 

 

what shall i do?

  • 4 weeks later...
Posted

I'am having the same problem.

 

All the links of /catalog/admin/index.php page result into my error page.

 

I´am not able to enter my administration side, catalog works as usual.

 

I'am a programming dude, can someone help me in simple language.

 

Thanks

-Rob

Posted

Hi,

 

I also have a problem with the admin area of oscommerce.

 

I have installed the software and have a home page (default at install).

 

However when I type in the user name and admin password I get the error message "Invalid administrator login attempt"

 

I am satisfied that I have inputted the correct details. They were written down on install.

 

Is there a way of resetting the admin password or creating another admin user to get into this area, or will I have to reinstall everything?

 

I have searched the forum without success therefore any help would be gratefully appreciated.

 

sulvarbir

Posted

This code surely is not oscommerce code.So not the right forum to discuss.

 

As such admin chekin has just been introduced in RC1 but not at different file levels.

 

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Posted
Hi,

 

I also have a problem with the admin area of oscommerce.

 

I have installed the software and have a home page (default at install).

 

However when I type in the user name and admin password I get the error message "Invalid administrator login attempt"

 

I am satisfied that I have inputted the correct details. They were written down on install.

 

Is there a way of resetting the admin password or creating another admin user to get into this area, or will I have to reinstall everything?

 

I have searched the forum without success therefore any help would be gratefully appreciated.

 

sulvarbir

 

Sulvar, you can go to your osCommerce db and empty the table 'administrators'. There should be only one row on a new install.

 

When you go to the login page, it will prompt you to set yourself up as the first administrator. Good luck

Carl Bromley

 

 

"Tell everyone what you want to do and someone will want to help you do it."

W. Clement Stone

Posted
Sulvar, you can go to your osCommerce db and empty the table 'administrators'. There should be only one row on a new install.

 

When you go to the login page, it will prompt you to set yourself up as the first administrator. Good luck

 

Hi Carl,

 

thanks for this advice. I shall give it a go and let you know

 

 

sulvar

Posted

Ok- I'm not sure what I am asking...a week ago Saturday my husband installed the new Norton Internet Security 2007 to our computer and every since then I have not been able to pull up my admin page. I get a bunch of symbols, numbers and letters. I've asked Norton, Cox Communication-Internet Explorer, Aplus.net-my hosting company, the person who installed my website, and quite a few computer people and no one has a clue to what is going on.

 

Here is the web address http://www.bgbjewelry.com/shop/adminb/login.php

 

The weird thing is- it comes up for some people and others it doesn't. I've tried all kinds of things.

 

Any takers?

 

Thanks, Trisha

Posted
Ok- I'm not sure what I am asking...a week ago Saturday my husband installed the new Norton Internet Security 2007 to our computer and every since then I have not been able to pull up my admin page. I get a bunch of symbols, numbers and letters. I've asked Norton, Cox Communication-Internet Explorer, Aplus.net-my hosting company, the person who installed my website, and quite a few computer people and no one has a clue to what is going on.

 

Here is the web address http://www.bgbjewelry.com/shop/adminb/login.php

 

The weird thing is- it comes up for some people and others it doesn't. I've tried all kinds of things.

 

Any takers?

 

Thanks, Trisha

 

 

Maybe that person who uploaded your site uploaded in binary mode not in ascii..

 

I know you told that it started after installing Norton but give it a try.. BTW get Kaspersky don't use Norton unless you have lots of money :)

Posted
Maybe that person who uploaded your site uploaded in binary mode not in ascii..

 

I know you told that it started after installing Norton but give it a try.. BTW get Kaspersky don't use Norton unless you have lots of money :)

 

 

Thank you I will pass this along to them. Or is there some where I can find this out?

 

Thanks, Trisha

Posted
Thank you I will pass this along to them. Or is there some where I can find this out?

 

Thanks, Trisha

 

I am sorry but only the person who uploaded and your hosting company (if they are keeping logs so detailed) may know

  • 1 year later...
Posted

I had the same issue, but was able to resolve it by changing the persmissions on the "Admin" folder itself. For some reason it had become writeable by group. Anyone else think someone was trying to hack my site? Or is it possible that there was a server update or something, because I'm positive I did not make this change and I've given no one else access.

 

At any rate, if you FTP in, and right click on the admin folder, you can then look at the properties to see what permissions are set. Alternatively you can log in via a control panel like CPanel and using a filemanager.

 

Good luck!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...