Guest Posted February 17, 2004 Posted February 17, 2004 I installed the new version of oscommerce but am getting the following error message: = "/[0-9.]+\s*$from\s*=\s*([0-9.]+)\s*$to/"; $return = file('http://www.xe.net/ucc/convert.cgi?Amount=1&From=' . $from . '&To=' . $to); while (list(, $line) = each($return)) { if (preg_match($regex, $line, $match)) { break; } } if (!isset($match)) { return false; } return $match[1]; } ?> ($to_num > $query_numrows) $to_num = $query_numrows; $from_num = ($max_rows_per_page * ($current_page_number - 1)); if ($to_num == 0) { $from_num = 0; } else { $from_num++; } return sprintf($text_output, $from_num, $to_num, $query_numrows); } } ?>e . $eol; } $output = substr($output, 0, -1 * strlen($eol)); // Don't want last crlf return $output; } } // End of class ?>SION_NAME', 'sID'); define('PHP_SESSION_SAVE_PATH', '/tmp'); include(DIR_WS_CLASSES . 'sessions.php'); } // define how the session functions will be used require(DIR_WS_FUNCTIONS . 'sessions.php'); tep_session_name('osCAdminsID'); // lets start our session tep_session_start(); if (function_exists('session_set_cookie_params')) { session_set_cookie_params(0, substr(DIR_WS_ADMIN, 0, -1)); } // language require(DIR_WS_FUNCTIONS . 'languages.php'); if ( (!$language) || ($HTTP_GET_VARS['language']) ) { if (!$language) { tep_session_register('language'); tep_session_register('languages_id'); } $language = tep_get_languages_directory($HTTP_GET_VARS['language']); if (!$language) $language = tep_get_languages_directory(DEFAULT_LANGUAGE); } // include the language translations require(DIR_WS_LANGUAGES . $language . '.php'); $current_page = split('\?', basename($PHP_SELF)); $current_page = $current_page[0]; // for BadBlue(Win32) webserver compatibility if (file_exists(DIR_WS_LANGUAGES . $language . '/' . $current_page)) { include(DIR_WS_LANGUAGES . $language . '/' . $current_page); } // define our general functions used application-wide require(DIR_WS_FUNCTIONS . 'general.php'); require(DIR_WS_FUNCTIONS . 'html_output.php'); // define our localization functions require(DIR_WS_FUNCTIONS . 'localization.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'); // calculate category path $cPath = $HTTP_GET_VARS['cPath']; if (strlen($cPath) > 0) { $cPath_array = explode('_', $cPath); $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 ($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'); } ?> Please visit my sample site http://www.winebits.com/catalogWinebits See what I mean? WHats wrong? Can someone help me?? Thanks Sam :(
Recommended Posts
Archived
This topic is now archived and is closed to further replies.