/**
  * Cleanup in memory tasks
  */
 private static function cleanup()
 {
     // we don't need the tasks in memory any more.
     self::$_tasks = '';
 }
Exemple #2
0
  $contentops = cmsms()->GetContentOperations();
  $contentops->register_routes();
  debug_buffer('','End of Loading Routes');
}
*/
#Load all installed module code
if (!isset($CMS_INSTALL_PAGE)) {
    debug_buffer('', 'Loading Modules');
    $modops = cmsms()->GetModuleOperations();
    $modops->LoadModules(isset($LOAD_ALL_MODULES), !isset($CMS_ADMIN_PAGE));
    debug_buffer('', 'End of Loading Modules');
}
#Setup language stuff.... will auto-detect languages (Launch only to admin at this point)
if (isset($CMS_ADMIN_PAGE)) {
    CmsNlsOperations::set_language();
}
$CMS_LAZYLOAD_MODULES = 1;
// still used ??
#Do auto task stuff.
if (!isset($CMS_INSTALL_PAGE)) {
    CmsRegularTaskHandler::handle_tasks();
}
$smarty->assign('sitename', get_site_preference('sitename', 'CMSMS Site'));
function sanitize_input_array(&$value, $key)
{
    $value = preg_replace('/\\<\\/?script[^\\>]*\\>/i', '', $value);
    //the i makes it caseinsensitive
    $value = preg_replace('/javascript\\:/i', '', $value);
    //the i makes it caseinsensitive
}
# vim:ts=4 sw=4 noet