$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']); /** * Build global array of Link Tags used by the header of a page. This is a stop * gap measure to support pagination with rel="next" and rel="prev" in * COM_printPageNavigation. When the GL Page class is finished this global