diff --git a/scripts/general.func.php b/scripts/general.func.php index 0172c75..c7a684a 100644 --- a/scripts/general.func.php +++ b/scripts/general.func.php @@ -86,6 +86,10 @@ class Year_Links { } } +if (!function_exists('get_magic_quotes_gpc')) { + function get_magic_quotes_gpc() { return false; } +} + // kill Magic Quotes function strip($_data) { if (!get_magic_quotes_gpc()) return $_data; diff --git a/scripts/prepend.inc.php b/scripts/prepend.inc.php index a6d73c5..ada4dd4 100644 --- a/scripts/prepend.inc.php +++ b/scripts/prepend.inc.php @@ -51,10 +51,6 @@ define("JLOG_DB_CATASSIGN", JLOG_DB_PREFIX."catassign"); define("JLOG_DB_CATEGORIES", JLOG_DB_PREFIX."categories"); define("JLOG_DB_ATTRIBUTES", JLOG_DB_PREFIX."attributes"); -if (!function_exists('get_magic_quotes_gpc')) { - function get_magic_quotes_gpc() { return false; } -} - // we need these files on every page require_once(JLOG_BASEPATH.'lang'.DIRECTORY_SEPARATOR.'lang.'.JLOG_LANGUAGE.'.inc.php'); require_once(JLOG_BASEPATH.'scripts'.DIRECTORY_SEPARATOR.'database.class.php'); diff --git a/setup.php b/setup.php index 4aedf19..c14a900 100644 --- a/setup.php +++ b/setup.php @@ -176,6 +176,7 @@ global $l; +# FIXME: MySQL has a new API! if(!@mysql_connect($data['jlog_db_url'], $data['jlog_db_user'], $data['jlog_db_pwd'])) $errors[] = "Falsche Zugangsdaten | ".mysql_error(); elseif(!@mysql_select_db($data['jlog_db'])) $errors[] = "Datenbank ".$data['jlog_db']." extistiert nicht".mysql_error(); elseif(!version_compare(mysql_get_server_info(), JLOG_MYSQLV, ">=") == 1) $errors[] = $l['admin']['s_mysqlv_tolow'];