Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse Error: Syntax Error, Unexpected T_constant_encapsed_string, Expecting ')' In /admin/index.php On Line 55


Recommended Posts

Posted

Hi,

 

I just installed the afilliate mod and it works great! Now, this is what I get when I try to open my admin:

 

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /admin/index.php on line 55

 

Site is: http://threepurpleroses.com/ProductShoppe/admin/index.php

 

This is my code:

 

 

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

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2006 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_AFFILIATE,
                    'image' => 'affiliate.gif',
                    'href' => tep_href_link(FILENAME_AFFILIATE_SUMMARY, 'selected_box=affiliate')
                    'children' => array(array('title' => BOX_AFFILIATE, 'link' => tep_href_link(FILENAME_AFFILIATE, 'selected_box=affiliate')),
              array('title' => BOX_AFFILIATE_BANNERS, 'link' => tep_href_link(FILENAME_AFFILIATE_BANNERS, 'selected_box=affiliate')))),
              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'];
   }
 }
?>

 

Can anyone tell me what's wrong? Am not proficient in php. I appreciate it!

Archived

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

×
×
  • Create New...