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.