Hey guys, hope you can help me out. I’m pulling my hair out trying to figure out what’s wrong here…Keep getting this error when I go to edit my UPS module:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘)’ in xxxxxxxxxxxxxxx(ignore the x’s)/public_html/catalog/admin/modules.php(212) : eval()'d code on line 1
[code]<?php
/*
$Id: modules.php,v 1.47 2003/06/29 22:50:52 hpdl 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’);
$set = (isset($HTTP_GET_VARS[‘set’]) ? $HTTP_GET_VARS[‘set’] : ‘’);
if (tep_not_null($set)) {
switch ($set) {
case ‘shipping’:
$module_type = ‘shipping’;
$module_directory = DIR_FS_CATALOG_MODULES . ‘shipping/’;
$module_key = ‘MODULE_SHIPPING_INSTALLED’;
define(‘HEADING_TITLE’, HEADING_TITLE_MODULES_SHIPPING);
break;
case ‘ordertotal’:
$module_type = ‘order_total’;
$module_directory = DIR_FS_CATALOG_MODULES . ‘order_total/’;
$module_key = ‘MODULE_ORDER_TOTAL_INSTALLED’;
define(‘HEADING_TITLE’, HEADING_TITLE_MODULES_ORDER_TOTAL);
break;
case ‘payment’:
default:
$module_type = ‘payment’;
$module_directory = DIR_FS_CATALOG_MODULES . ‘payment/’;
$module_key = ‘MODULE_PAYMENT_INSTALLED’;
define(‘HEADING_TITLE’, HEADING_TITLE_MODULES_PAYMENT);
break;
}
}
$action = (isset($HTTP_GET_VARS[‘action’]) ? $HTTP_GET_VARS[‘action’] : ‘’);
if (tep_not_null($action)) {
switch ($action) {
case ‘save’:
while (list($key, $value) = each($HTTP_POST_VARS[‘configuration’])) {
tep_db_query(“update " . TABLE_CONFIGURATION . " set configuration_value = '” . $value . “’ where configuration_key = '” . $key . “’”);
}
tep_redirect(tep_href_link(FILENAME_MODULES, ‘set=’ . $set . ‘&module=’ . $HTTP_GET_VARS[‘module’]));
break;
case ‘install’:
case ‘remove’:
$file_extension = substr($PHP_SELF, strrpos($PHP_SELF, ‘.’));
$class = basename($HTTP_GET_VARS[‘module’]);
if (file_exists($module_directory . $class . $file_extension)) {
include($module_directory . $class . $file_extension);
$module = new $class;
if ($action == ‘install’) {
$module->install();
} elseif ($action == ‘remove’) {
$module->remove();
}
}
tep_redirect(tep_href_link(FILENAME_MODULES, ‘set=’ . $set . ‘&module=’ . $class));
break;
}
}
?>
<!doctype html public “-//W3C//DTD HTML 4.01 Transitional//EN”>
|