$footer = true; if (isset($info['footer']) && !$info['footer']) { $footer = false; } $_SCRIPTS->setJavaScriptLibrary($info['library'], $footer); } } $func = "theme_js_files_" . $_CONF['theme']; if (function_exists($func)) { foreach ($func() as $info) { $footer = true; if (isset($info['footer']) && !$info['footer']) { $footer = false; } $priority = !empty($info['priority']) ? $info['priority'] : 100; $_SCRIPTS->setJavaScriptFile(md5($info['file']), $info['file'], $footer, $priority); } } $func = "theme_init_" . $_CONF['theme']; if (function_exists($func)) { $func(); } unset($theme_config, $func); // Clear out any expired sessions DB_lockTable($_TABLES['sessions']); DB_query("UPDATE {$_TABLES['sessions']} SET whos_online = 0 WHERE start_time < " . (time() - $_CONF['whosonline_threshold'])); DB_unlockTable($_TABLES['sessions']); /** * Global array of groups current user belongs to * * @global array $_GROUPS