Seit dem Wochenende kommt "plötzlich" diese Fehlermeldung.
Eine Information vom Provider, ob er was geändert hat steht noch aus - hat jemand eine Idee woran es liegt könnte? Vielleicht eine Änderung in der php.ini? bzw. wie kann ich den Fehler beseitigen?
Vielen Dank für Eure Antwort.
Undefined variable: cfg in globals_off.inc.php on line 113
-
- Beiträge: 3626
- Registriert: Di 12. Okt 2004, 20:00
- Wohnort: Voerde (Niederrhein)
- Kontaktdaten:
Re: Undefined variable: cfg in globals_off.inc.php on line 113
Welche Version ist denn genau im Einsatz? Könntest du evtl. mal den Inhalt der "contenido/includes/globals_off.inc.php" hier posten? Denn eigentlich hat diese - in den mir bekannten 4.6er-Versionen - weniger als 113 Zeilen.
Re: Undefined variable: cfg in globals_off.inc.php on line 113
Ist eine Version 4.6.4
Code: Alles auswählen
<?php
// REGISTER GLOBAL VARS
// Author Martin Horwath [horwath@dayside.net]
// Makes available those super global arrays that are made available in versions of PHP after v4.1.0
if (phpversion() <= "4.1.0")
{
$_SERVER = & $HTTP_SERVER_VARS;
$_GET = & $HTTP_GET_VARS;
$_POST = & $HTTP_POST_VARS;
$_COOKIE = & $HTTP_COOKIE_VARS;
$_FILES = & $HTTP_POST_FILES;
$_ENV = & $HTTP_ENV_VARS;
// _SESSION is the only superglobal which is conditionally set
if (isset ($HTTP_SESSION_VARS))
{
$_SESSION = & $HTTP_SESSION_VARS;
}
}
// PHP5 with register_long_arrays off?
if (!isset ($HTTP_POST_VARS) && isset ($_POST))
{
$HTTP_POST_VARS = & $_POST;
$HTTP_GET_VARS = & $_GET;
$HTTP_SERVER_VARS = & $_SERVER;
$HTTP_COOKIE_VARS = & $_COOKIE;
$HTTP_ENV_VARS = & $_ENV;
$HTTP_POST_FILES = & $_FILES;
// _SESSION is the only superglobal which is conditionally set
if (isset ($_SESSION))
{
$HTTP_SESSION_VARS = & $_SESSION;
}
}
/* Emulate magic_quotes_gpc if it is not set */
/*
if (@ get_magic_quotes_gpc() == 0)
{
foreach ($_GET as $key => $value)
{
$_GET[$key] = addslashes($_GET[$key]);
}
foreach ($_POST as $key => $value)
{
$_POST[$key] = addslashes($_POST[$key]);
}
foreach ($_COOKIE as $key => $value)
{
$_COOKIE[$key] = addslashes($_COOKIE[$key]);
}
}
if (!isset ($_REQUEST))
{
*/
/* Register post,get and cookie variables into $_REQUEST */
/*
$_REQUEST = array_merge($_GET, $_POST, $_COOKIE);
} else
{
if (@ ini_get("magic_quotes_gpc") == 0)
{
foreach ($_GET as $key => $value)
{
$_GET[$key] = stripslashes($_GET[$key]);
}
foreach ($_POST as $key => $value)
{
$_POST[$key] = stripslashes($_POST[$key]);
}
foreach ($_REQUEST as $key => $value)
{
$_REQUEST[$key] = stripslashes($_REQUEST[$key]);
}
}
}
*/
//if (!isset ($_REQUEST))
//{
///* Register post,get and cookie variables into $_REQUEST */
// $_REQUEST = array_merge($_GET, $_POST, $_COOKIE);
//}
// simulate get_magic_quotes_gpc on if turned off
if (!get_magic_quotes_gpc()) {
function addslashes_deep($value)
{
$value = is_array($value) ?
array_map('addslashes_deep', $value) :
addslashes($value);
return $value;
}
$_POST = array_map('addslashes_deep', $_POST);
$_GET = array_map('addslashes_deep', $_GET);
$_COOKIE = array_map('addslashes_deep', $_COOKIE);
$cfg['simulate_magic_quotes'] = true;
}
if (!isset($_REQUEST) || $cfg['simulate_magic_quotes']) {
/* Register post,get and cookie variables into $_REQUEST */
$_REQUEST = array_merge($_GET, $_POST, $_COOKIE);
}
// this should be the default setting
if (get_magic_quotes_runtime()) {
@set_magic_quotes_runtime(0);
}
// register globals
$types_to_register = array ('GET', 'POST', 'SERVER', 'COOKIE', 'SESSION');
foreach ($types_to_register as $global_type)
{
$arr = @ ${'_'.$global_type};
if (@ count($arr) > 0)
{
// echo "<pre>\$_$global_type:"; print_r ($arr); echo "</pre>";
extract($arr, EXTR_OVERWRITE);
}
}
// save memory
unset ($types_to_register, $global_type, $arr);
$FORM = $_REQUEST;
?>
-
- Beiträge: 3626
- Registriert: Di 12. Okt 2004, 20:00
- Wohnort: Voerde (Niederrhein)
- Kontaktdaten:
Re: Undefined variable: cfg in globals_off.inc.php on line 113
Das ist aber schon mal nicht die Originaldatei aus der 4.6.4, ganz abgesehen davon, dass diese Version (und alle 4.6er außer der 4.6.24) aus Sicherheitsgründen nicht mehr eingesetzt werden sollte.