Esempio n. 1
0
    if (isset($check["Msg_text"]) && $check["Msg_text"] != "OK") {
        $errortables[] = $check["Table"];
    }
}
$smarty->assign("errorcount", count($errortables));
if (count($errortables) > 0) {
    $smarty->assign("errortables", implode(",", $errortables));
}
/*
 *
 * Cache and content
 *
 */
$contentops = cmsms()->GetContentOperations();
if (isset($_POST['updateurls'])) {
    cms_route_manager::rebuild_static_routes();
    audit('', 'System maintenance', 'Static routes rebuilt');
    $themeObject->ShowMessage(lang("routesrebuilt"));
    $smarty->assign("active_content", "true");
}
if (isset($_POST['clearcache'])) {
    cmsms()->clear_cached_files(-1);
    // put mention into the admin log
    audit('', 'System maintenance', 'Cache cleared');
    $themeObject->ShowMessage(lang("cachecleared"));
    $smarty->assign("active_content", "true");
}
if (isset($_POST["updatehierarchy"])) {
    $contentops->SetAllHierarchyPositions();
    audit('', 'System maintenance', 'Page hierarchy positions updated');
    $themeObject->ShowMessage(lang("sysmain_hierarchyupdated"));