Changeset 50 for branches/old/global.php
- Timestamp:
- Feb 20, 2015, 8:54:42 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/old/global.php
r49 r50 2 2 3 3 session_start(); 4 $FileName = dirname(__FILE__).'/config.php'; 5 if(file_exists($FileName)) include($FileName); 6 else { 7 die('Configuration file "'.$FileName.'" not found.'); 8 } 4 9 include_once('config.php'); 5 10 include_once('database.php'); … … 9 14 include_once('stat_functions.php'); 10 15 $Database = new Database($Config['Database']['Host'], $Config['Database']['User'], $Config['Database']['Password'], $Config['Database']['Database']); 16 if ($Database->connect_error) { 17 die('Connect Error (' . $Database->connect_errno . ') '.$Database->connect_error); 18 } 19 11 20 $Database->Prefix = $Config['Database']['Prefix']; 12 21 $Database->charset($Config['Database']['Charset']);
Note:
See TracChangeset
for help on using the changeset viewer.