English (United Kingdom)
Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View e-Privacy Directive Documents

Welcome, Guest
Please Login or Register.    Lost Password?

Magic Quotes Within Joomla
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Magic Quotes Within Joomla
#11478
Magic Quotes Within Joomla 10 Years, 9 Months ago Karma: 0
Basically in my master site I edited the defines.php file within the
administrator/includes directory to actually get it to switch off those retarded magic quotes using this code below

Code:


//Emulate magic_quotes_gpc off
if (get_magic_quotes_gpc()) {
$process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
while (list($key, $val) = each($process)) {
foreach ($val as $k => $v) {
unset($process[$key][$k]);
if (is_array($v)) {
$process[$key][stripslashes($k)] = $v;
$process[] = &$process[$key][stripslashes($k)];
} else {
$process[$key][stripslashes($k)] = stripslashes($v);
}
}
}
unset($process);
}



The problem is , when I create a slave site the magic quotes is switched off and will not complete the installation process. . . is there a way to bypass this as If I remove the code and switch them back on i'm worried it could potentially corrupt all my links in the master site.
ether1
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#11479
Re:Magic Quotes Within Joomla 10 Years, 9 Months ago Karma: 0
I resolved the issue by creating a php.ini file within the installation sub directory of the new slave site with the following code in

Code:


magic_quotes_gpc = Off
session.save_path = "/tmp"

ether1
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla