| version 1.19, 2008/09/08 21:06:58 |
version 1.20, 2008/11/24 10:04:10 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/cfgldr.inc.php,v 1.18 2007-11-25 02:05:12 nepto Exp $ */ |
/* $Platon: Metafox/cfgldr.inc.php,v 1.19 2008-09-08 21:06:58 nepto Exp $ */ |
| |
|
| /* |
/* |
| * WARNING! Do not edit this file! Edit rather config/db-config.inc.php file. |
* WARNING! Do not edit this file! Edit rather config/db-config.inc.php file. |
| Line 227 $ezin_cgi = array( /* {{{ */ |
|
| Line 227 $ezin_cgi = array( /* {{{ */ |
|
| ); /* }}} */ |
); /* }}} */ |
| |
|
| /* |
/* |
| * Config load from database |
* Version & config load from database |
| */ |
*/ |
| |
|
| require_once 'error.inc.php'; |
require_once 'error.inc.php'; |
| Line 235 require_once 'db-core/db-core.inc.php'; |
|
| Line 235 require_once 'db-core/db-core.inc.php'; |
|
| require_once 'db.inc.php'; |
require_once 'db.inc.php'; |
| |
|
| ezin_check_db_handle(); |
ezin_check_db_handle(); |
| |
// the same principle as 'atodo' (see subst.inc.php:133) |
| |
$last_ver = ezin_cache_load_content('version'); |
| |
if ($last_ver === false) { |
| |
ezin_cache_save('version', $ezin_sys['software']['version']); |
| |
} elseif ($last_ver != $ezin_sys['software']['version']) { |
| |
ezin_cache_clear(''); |
| |
ezin_cache_save('version', $ezin_sys['software']['version'], 0, 0); |
| |
} |
| $ezin_cfg = ezin_get_config(); |
$ezin_cfg = ezin_get_config(); |
| ezin_set_db_encoding(); |
ezin_set_db_encoding(); |
| $ezin_auth_options['timeout'] = $ezin_cfg['admin_session_timeout']; |
$ezin_auth_options['timeout'] = $ezin_cfg['admin_session_timeout']; |