_cacheDir.'/[1-9]*'; $ret = null; system($cmd, $ret); } if(!empty($_POST['js'])) { $cmd = 'rm -rf '.$settings->_cacheDir.'/js/*'; $ret = null; system($cmd, $ret); } if($ret) $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");