Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Anyone use AutoTheme??


AllTheAbove

Recommended Posts

I found this neat program that is supposed to add a module in your admin so you can easily change themes. Unless you purchase the $100 package, there is no on-going support. First I was getting an error about an unexpected '>'.. Well, I found it.. now I am getting this error

Parse error: parse error, unexpected T_ECHO in /www/a/alltheabovew/htdocs/store/catalog/admin/index.php on line 91

 

I did a search but found no T_ECHO. I am pasting the index.php here. Yes it is huge, but it is the one that came with this program and I have no clue where to find the error. If you can find out what the error is, I would be EXTREMELY grateful!!!!!!!

 

<?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 (c) 2003 osCommerce



 Released under the GNU General Public License

*/



 require('includes/application_top.php');


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

    'image' => 'autotheme.gif',
                    'href' => tep_href_link(FILENAME_AUTOTHEME),


                   'children' => 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>;
?>

 

Thanks for any help!

Lori

Link to comment
Share on other sites

Found a few problems having a quick look at the file

 

Error

<?
php echo HTML_PARAMS; ?>

Should be

<?php echo HTML_PARAMS; ?>

 

Error

<?
php require(DIR_WS_INCLUDES . 'footer.php');

Should Be

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

 

HTH

 

S

Dont forget to Search. Your problem has already been fixed before.<br>

Please visit Manchester-Fireworks.com.

Link to comment
Share on other sites

Thanks "S" That got rid of my echo error, but now it seems I have an open "<" somewhere. I think I've spotted it, but when I removed it, I got a T_Variable error. So, I'm guessing it needs to be there or one of the other symbols needs to be in it's place. Here is the portion I am referring to..

 

Any help from anyone would be greatly appreciated. Its the first grouping with the line that starts -- for ($1 -- The other line is about half way down and starts with --for ($j --

 

<?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>;
?>

 

Thanks

Lori

Link to comment
Share on other sites

Near the bottom you php tags are messed up

 

<?php require(DIR_WS_INCLUDES . 'footer.php');

</td>

</tr>

</table></td>

</tr>

</table>

 

</body>

 

</html>;<-------that semi colon should not be there

?> <------- this should be at the end of the footer.php line

 

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

</body>

</html>

 

You may think we have eagle eyes, but no we use editors that have syntax highlighting.

Link to comment
Share on other sites

Sheesh.. you would think if they released a version, they would get the bugs out first.. Now I am getting these errors

 

Warning: main(DIR_WS_INCLUDESfilenames.php): failed to open stream: No such file or directory in /www/a/alltheabovew/htdocs/store/catalog/admin/includes/application_top.php on line 44

 

Warning: main(DIR_WS_INCLUDESfilenames.php): failed to open stream: No such file or directory in /www/a/alltheabovew/htdocs/store/catalog/admin/includes/application_top.php on line 44

 

Fatal error: main(): Failed opening required 'DIR_WS_INCLUDESfilenames.php' (include_path='.:/usr/local/php4/lib/php') in /www/a/alltheabovew/htdocs/store/catalog/admin/includes/application_top.php on line 44

 

Which files do I need to change now? There is application_top and filenames in the correct dir

 

Thanks bunches for the help. I guess this is what I get for trying to make changes *sigh*

 

Lori

Link to comment
Share on other sites

Sheesh.. you would think if they released a version, they would get the bugs out first.. Now I am getting these errors

 

Warning: main(DIR_WS_INCLUDESfilenames.php): failed to open stream: No such file or directory in /www/a/alltheabovew/htdocs/store/catalog/admin/includes/application_top.php on line 44

 

Warning: main(DIR_WS_INCLUDESfilenames.php): failed to open stream: No such file or directory in /www/a/alltheabovew/htdocs/store/catalog/admin/includes/application_top.php on line 44

 

Fatal error: main(): Failed opening required 'DIR_WS_INCLUDESfilenames.php' (include_path='.:/usr/local/php4/lib/php') in /www/a/alltheabovew/htdocs/store/catalog/admin/includes/application_top.php on line 44

 

Which files do I need to change now?  There is application_top and filenames in the correct dir

 

Thanks bunches for the help.  I guess this is what I get for trying to make changes *sigh*

 

Lori

 

 

in application_top.php do the require statements look like this

 

require(DIR_WS_INCLUDES . 'filenames.php');

Link to comment
Share on other sites

cause that aint right

 

if it errored because of a missing file it would say

 

Warning: main(includes/filenames.php).......

 

So either you haven't defined DIR_WS_INCLUDES in your configure.php file or you have change the call to the require function

 

like

 

require('DIR_WS_INCLUDESfilenames.php');

Link to comment
Share on other sites

cause that aint right

 

if it errored because of a missing file it would say

 

Warning: main(includes/filenames.php).......

 

So either you haven't defined DIR_WS_INCLUDES in your configure.php file or you have change the call to the require function

 

like

 

require('DIR_WS_INCLUDESfilenames.php');

 

This is what it is

 

// include the list of project filenames

require(DIR_WS_INCLUDES . 'filenames.php');

Link to comment
Share on other sites

This is what it is

 

// include the list of project filenames

  require(DIR_WS_INCLUDES . 'filenames.php');

 

Are we working in Admin here or Catalog

 

post up your configure.php files

 

one from includes/configure.php

 

and one from

 

admin/includes/configure.php

Link to comment
Share on other sites

Here is admin one

 

<?php
/*
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://alltheaboveweb.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://alltheaboveweb.com');
 define('HTTPS_CATALOG_SERVER', 'https://alltheabovewebcom.secure.powweb.com');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/www/a/l/alltheaboveweb.com/htdocs/store/catalog'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/store/catalog/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/www/a/l/alltheaboveweb.com/htdocs/store/catalog/admin'); // absolute pate required
 define('DIR_WS_CATALOG', '/store/catalog/'); // absolute path required
 define('DIR_FS_CATALOG', '/www/a/l/alltheaboveweb.com/htdocs/store/catalog'); // absolute path required
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
 define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

Link to comment
Share on other sites

Here is catalog one

 

<?php
/*
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'https://alltheabovewebcom.secure.powweb.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://alltheabovewebcom.secure.powweb.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'alltheaboveweb.com');
 define('HTTPS_COOKIE_DOMAIN', 'alltheabovewebcom.secure.powweb.com');
 define('HTTP_COOKIE_PATH', '/store/catalog/');
 define('HTTPS_COOKIE_PATH', '/store/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/store/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/store/catalog/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', '/www/a/l/alltheaboveweb.com/htdocs/store/catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

Thanks for your help

Link to comment
Share on other sites

Here is application_top

 

<?php
/*
 $Id: application_top.php,v 1.162 2003/07/12 09:39:03 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// Start the clock for the page parse time log
 define('PAGE_PARSE_START_TIME', microtime());

// Set the level of error reporting
 error_reporting(E_ALL & ~E_NOTICE);

// Check if register_globals is enabled.
// Since this is a temporary measure this message is hardcoded. The requirement will be removed before 2.2 is finalized.
 if (function_exists('ini_get')) {
   ini_get('register_globals') or exit('FATAL ERROR: register_globals is disabled in php.ini, please enable it!');
 }

// Set the local configuration parameters - mainly for developers
 if (file_exists('includes/local/configure.php')) include('includes/local/configure.php');

// Include application configuration parameters
 require('includes/configure.php');

// Define the project version
 define('PROJECT_VERSION', 'osCommerce 2.2-MS2');

// set php_self in the local scope
 $PHP_SELF = (isset($HTTP_SERVER_VARS['PHP_SELF']) ? $HTTP_SERVER_VARS['PHP_SELF'] : $HTTP_SERVER_VARS['SCRIPT_NAME']);

// Used in the "Backup Manager" to compress backups
 define('LOCAL_EXE_GZIP', '/usr/bin/gzip');
 define('LOCAL_EXE_GUNZIP', '/usr/bin/gunzip');
 define('LOCAL_EXE_ZIP', '/usr/local/bin/zip');
 define('LOCAL_EXE_UNZIP', '/usr/local/bin/unzip');

// include the list of project filenames
 require(DIR_WS_INCLUDES . 'filenames.php');

// include the list of project database tables
 require(DIR_WS_INCLUDES . 'database_tables.php');

// customization for the design layout
 define('BOX_WIDTH', 125); // how wide the boxes should be in pixels (default: 125)

// Define how do we update currency exchange rates
// Possible values are 'oanda' 'xe' or ''
 define('CURRENCY_SERVER_PRIMARY', 'oanda');
 define('CURRENCY_SERVER_BACKUP', 'xe');

// include the database functions
 require(DIR_WS_FUNCTIONS . 'database.php');

// make a connection to the database... now
 tep_db_connect() or die('Unable to connect to database server!');

// set application wide parameters
 $configuration_query = tep_db_query('select configuration_key as cfgKey, configuration_value as cfgValue from ' . TABLE_CONFIGURATION);
 while ($configuration = tep_db_fetch_array($configuration_query)) {
   define($configuration['cfgKey'], $configuration['cfgValue']);
 }

// define our general functions used application-wide
 require(DIR_WS_FUNCTIONS . 'general.php');
 require(DIR_WS_FUNCTIONS . 'html_output.php');

// initialize the logger class
 require(DIR_WS_CLASSES . 'logger.php');

// include shopping cart class
 require(DIR_WS_CLASSES . 'shopping_cart.php');

// some code to solve compatibility issues
 require(DIR_WS_FUNCTIONS . 'compatibility.php');

// check to see if php implemented session management functions - if not, include php3/php4 compatible session class
 if (!function_exists('session_start')) {
   define('PHP_SESSION_NAME', 'osCAdminID');
   define('PHP_SESSION_PATH', '/');
   define('PHP_SESSION_SAVE_PATH', SESSION_WRITE_DIRECTORY);

   include(DIR_WS_CLASSES . 'sessions.php');
 }

// define how the session functions will be used
 require(DIR_WS_FUNCTIONS . 'sessions.php');

// set the session name and save path
 tep_session_name('osCAdminID');
 tep_session_save_path(SESSION_WRITE_DIRECTORY);

// set the session cookie parameters
  if (function_exists('session_set_cookie_params')) {
   session_set_cookie_params(0, DIR_WS_ADMIN);
 } elseif (function_exists('ini_set')) {
   ini_set('session.cookie_lifetime', '0');
   ini_set('session.cookie_path', DIR_WS_ADMIN);
 }

// lets start our session
 tep_session_start();

// set the language
 if (!tep_session_is_registered('language') || isset($HTTP_GET_VARS['language'])) {
   if (!tep_session_is_registered('language')) {
     tep_session_register('language');
     tep_session_register('languages_id');
   }

   include(DIR_WS_CLASSES . 'language.php');
   $lng = new language();

   if (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) {
     $lng->set_language($HTTP_GET_VARS['language']);
   } else {
     $lng->get_browser_language();
   }

   $language = $lng->language['directory'];
   $languages_id = $lng->language['id'];
 }

// include the language translations
 require(DIR_WS_LANGUAGES . $language . '.php');
 $current_page = basename($PHP_SELF);
 if (file_exists(DIR_WS_LANGUAGES . $language . '/' . $current_page)) {
   include(DIR_WS_LANGUAGES . $language . '/' . $current_page);
 }

// define our localization functions
 require(DIR_WS_FUNCTIONS . 'localization.php');

// Include validation functions (right now only email address)
 require(DIR_WS_FUNCTIONS . 'validations.php');

// setup our boxes
 require(DIR_WS_CLASSES . 'table_block.php');
 require(DIR_WS_CLASSES . 'box.php');

// initialize the message stack for output messages
 require(DIR_WS_CLASSES . 'message_stack.php');
 $messageStack = new messageStack;

// split-page-results
 require(DIR_WS_CLASSES . 'split_page_results.php');

// entry/item info classes
 require(DIR_WS_CLASSES . 'object_info.php');

// email classes
 require(DIR_WS_CLASSES . 'mime.php');
 require(DIR_WS_CLASSES . 'email.php');

// file uploading class
 require(DIR_WS_CLASSES . 'upload.php');

// calculate category path
 if (isset($HTTP_GET_VARS['cPath'])) {
   $cPath = $HTTP_GET_VARS['cPath'];
 } else {
   $cPath = '';
 }

 if (tep_not_null($cPath)) {
   $cPath_array = tep_parse_category_path($cPath);
   $cPath = implode('_', $cPath_array);
   $current_category_id = $cPath_array[(sizeof($cPath_array)-1)];
 } else {
   $current_category_id = 0;
 }

// default open navigation box
 if (!tep_session_is_registered('selected_box')) {
   tep_session_register('selected_box');
   $selected_box = 'configuration';
 }

 if (isset($HTTP_GET_VARS['selected_box'])) {
   $selected_box = $HTTP_GET_VARS['selected_box'];
 }

// the following cache blocks are used in the Tools->Cache section
// ('language' in the filename is automatically replaced by available languages)
 $cache_blocks = array(array('title' => TEXT_CACHE_CATEGORIES, 'code' => 'categories', 'file' => 'categories_box-language.cache', 'multiple' => true),
                       array('title' => TEXT_CACHE_MANUFACTURERS, 'code' => 'manufacturers', 'file' => 'manufacturers_box-language.cache', 'multiple' => true),
                       array('title' => TEXT_CACHE_ALSO_PURCHASED, 'code' => 'also_purchased', 'file' => 'also_purchased-language.cache', 'multiple' => true)
                      );

// check if a default currency is set
 if (!defined('DEFAULT_CURRENCY')) {
   $messageStack->add(ERROR_NO_DEFAULT_CURRENCY_DEFINED, 'error');
 }

// check if a default language is set
 if (!defined('DEFAULT_LANGUAGE')) {
   $messageStack->add(ERROR_NO_DEFAULT_LANGUAGE_DEFINED, 'error');
 }

 if (function_exists('ini_get') && ((bool)ini_get('file_uploads') == false) ) {
   $messageStack->add(WARNING_FILE_UPLOADS_DISABLED, 'warning');
 }
?>

Link to comment
Share on other sites

do me a favour and make sure this file does not exist

 

admin/includes/local/configure.php

 

if it does delete it.

Link to comment
Share on other sites

Hi Lori,

 

Still got the problem?

 

Well, no but thats because my system was hosed. I couldn't get into my admin at all so I deleted everything and reinstalled osCommerce. I've decided to just go with a premade template then change things here and there to suit my needs.

 

Thanks for trying, though, it is greatly appreciated!

 

Lori

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...