1st fix of setup
This commit is contained in:
parent
9084fa00e4
commit
74d6eb4925
3 changed files with 5 additions and 4 deletions
|
@ -86,6 +86,10 @@ class Year_Links {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!function_exists('get_magic_quotes_gpc')) {
|
||||||
|
function get_magic_quotes_gpc() { return false; }
|
||||||
|
}
|
||||||
|
|
||||||
// kill Magic Quotes
|
// kill Magic Quotes
|
||||||
function strip($_data) {
|
function strip($_data) {
|
||||||
if (!get_magic_quotes_gpc()) return $_data;
|
if (!get_magic_quotes_gpc()) return $_data;
|
||||||
|
|
|
@ -51,10 +51,6 @@ define("JLOG_DB_CATASSIGN", JLOG_DB_PREFIX."catassign");
|
||||||
define("JLOG_DB_CATEGORIES", JLOG_DB_PREFIX."categories");
|
define("JLOG_DB_CATEGORIES", JLOG_DB_PREFIX."categories");
|
||||||
define("JLOG_DB_ATTRIBUTES", JLOG_DB_PREFIX."attributes");
|
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
|
// we need these files on every page
|
||||||
require_once(JLOG_BASEPATH.'lang'.DIRECTORY_SEPARATOR.'lang.'.JLOG_LANGUAGE.'.inc.php');
|
require_once(JLOG_BASEPATH.'lang'.DIRECTORY_SEPARATOR.'lang.'.JLOG_LANGUAGE.'.inc.php');
|
||||||
require_once(JLOG_BASEPATH.'scripts'.DIRECTORY_SEPARATOR.'database.class.php');
|
require_once(JLOG_BASEPATH.'scripts'.DIRECTORY_SEPARATOR.'database.class.php');
|
||||||
|
|
|
@ -176,6 +176,7 @@
|
||||||
|
|
||||||
global $l;
|
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();
|
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(!@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'];
|
elseif(!version_compare(mysql_get_server_info(), JLOG_MYSQLV, ">=") == 1) $errors[] = $l['admin']['s_mysqlv_tolow'];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue