| version 1.85, 2017/06/09 15:12:59 |
version 1.86, 2017/11/07 09:37:48 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/db.inc.php,v 1.84 2016/07/11 13:28:12 igor Exp $ */ |
/* $Platon: Metafox/db.inc.php,v 1.85 2017/06/09 15:12:59 igor Exp $ */ |
| |
|
| /* |
/* |
| * updates: 23/5/2001, 29/7/2001, 11/10/2001, 2/11/2001, 11/1/2002, 23/7/2002 |
* updates: 23/5/2001, 29/7/2001, 11/10/2001, 2/11/2001, 11/1/2002, 23/7/2002 |
| Line 2352 function ezin_get_config() /* {{{ */ |
|
| Line 2352 function ezin_get_config() /* {{{ */ |
|
| global $ezin_sys; |
global $ezin_sys; |
| global $ezin_db_handle; |
global $ezin_db_handle; |
| |
|
| |
// We want to retrieve config in proper encoding |
| |
$encoding = ezin_cache_load_content('encoding'); |
| |
if (strlen($encoding) > 0) { |
| |
ezin_set_db_encoding($encoding); |
| |
} |
| |
|
| // Config retrieval from cache |
// Config retrieval from cache |
| $content = ezin_cache_load_content('config'); |
$content = ezin_cache_load_content('config'); |
| if (isset($content)) { |
if (isset($content)) { |
| Line 2404 function ezin_get_config() /* {{{ */ |
|
| Line 2410 function ezin_get_config() /* {{{ */ |
|
| $array['single_author_id'] = -1; |
$array['single_author_id'] = -1; |
| } |
} |
| |
|
| // Config storage in cache |
// Config and encoding storage in cache |
| ezin_cache_save('config', serialize($array)); |
ezin_cache_save('config', serialize($array)); |
| |
ezin_cache_save('encoding', $array['encoding']); |
| |
|
| return $array; |
return $array; |
| } /* }}} */ |
} /* }}} */ |