...
|
...
|
@@ -16,12 +16,15 @@ Nevertheless, in case you use a significant part of this code, we ask (but not r
|
16
|
16
|
|
17
|
17
|
require_once('inc/error.php');
|
18
|
18
|
|
19
|
|
-$host = config('db_host');
|
20
|
|
-if (config('db_port')) {
|
21
|
|
- $host .= ":".config('db_port');
|
|
19
|
+include("config.php");
|
|
20
|
+global $config;
|
|
21
|
+
|
|
22
|
+$host = $config['db_host'];
|
|
23
|
+if ($config['db_port']) {
|
|
24
|
+ $host .= ":".$config['db_port'];
|
22
|
25
|
}
|
23
|
26
|
|
24
|
|
-if (!@mysql_connect($host, config('db_user'), config('db_pass')))
|
|
27
|
+if (!@mysql_connect($host, $config['db_user'], $config['db_pass']))
|
25
|
28
|
die('Konnte nicht zur Datenbank verbinden. Wenn dieser Fehler wiederholt auftritt, beachrichtigen Sie bitte den Administrator.');
|
26
|
29
|
|
27
|
30
|
if (!@mysql_query('SET NAMES utf8'))
|