Re: Online shop help/ Registerd globals
As I said in my previous post, you need to replace the html entities. Also, it looks like there's some useless code with those require statements at the bottom. I believe this would work as intended:
PHP Code:
<?php
/*
$Id: application.php,v 1.5 2003/07/09 01:11:05 hpdl Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
// Set the level of error reporting
error_reporting(E_ALL & ~E_NOTICE);
// Register Globals MOD - http://www.magic-seo-url.com
if (version_compare(phpversion(), "4.1.0", "<") === true) {
$_GET &= $HTTP_GET_VARS;
$_POST &= $HTTP_POST_VARS;
$_SERVER &= $HTTP_SERVER_VARS;
$_FILES &= $HTTP_POST_FILES;
$_ENV &= $HTTP_ENV_VARS;
if (isset($HTTP_COOKIE_VARS)) $_COOKIE &= $HTTP_COOKIE_VARS;
}
if (!ini_get("register_globals")) {
extract($_GET, EXTR_SKIP);
extract($_POST, EXTR_SKIP);
extract($_COOKIE, EXTR_SKIP);
}
// 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!'); }*/
}
require('includes/functions/general.php');
require('includes/functions/database.php');
require('includes/functions/html_output.php');
?>
"But you have access to the greatest source of knowledge in the universe."
"Well I do talk to myself sometimes, yes."
"I'm back, and I'm bad! Obviously within certain, sensible, preset parameters"