Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Register_Globals_Off


sliquid

Recommended Posts

Hello,

 

I searched the forum, but I did not see any solution to this problem Im having, other than a note saying a fix was on the TODO list.

 

My host refuses to turn register_globals On

 

says there are security issues (which there are) and will not do it.

 

 

I found this on php.net that can says it can emulate register_globals On, but I am not sure where I should be inserting this code for it to function.

 

Here is the code:

 

<?php
// Emulate register_globals on
if (!ini_get('register_globals')) {
$superglobals = array($_SERVER, $_ENV,
	$_FILES, $_COOKIE, $_POST, $_GET);
if (isset($_SESSION)) {
	array_unshift($superglobals, $_SESSION);
}
foreach ($superglobals as $superglobal) {
	extract($superglobal, EXTR_SKIP);
}
}
?>

 

any other ideas are welcome, but I am not able to change my host at this time.

Link to comment
Share on other sites

How exactly do you install that patch? Do you upload it insted of the current admin and catalog folders or something else?

(I'm going to murder the person who suggested I should go with Goaddy)

 

when you download it, the folder structure is maintained....

 

just replace the files that are in the original installation with those that you download in the patch

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...