$dms, 'user'=>$user)); /* Check if the form data comes from a trusted request */ if(!checkFormKey('clearcache')) { UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token")); } /* Make sure the cacheDir exists and isn't manipulated for executing * commands when system() is being called. */ if(!is_dir($settings->_cacheDir)) { UI::exitError(getMLText("admin_tools"),getMLText("error_cleared_cache")); } $controller->setParam('post', $_POST); if(!$controller()) $session->setSplashMsg(array('type'=>'error', 'msg'=>getMLText('error_cleared_cache'))); else $session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_cleared_cache'))); add_log_line(""); header("Location:../out/out.AdminTools.php");