mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 17:44:56 +00:00
fix runtime error, show splash message after execution
This commit is contained in:
parent
f647796dcd
commit
b54b28e1f2
|
@ -17,7 +17,7 @@
|
||||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
include("../inc/inc.Settings.php");
|
include("../inc/inc.Settings.php");
|
||||||
include("../inc/inc.LogInit.php");
|
include("../inc/inc.Utils.php");
|
||||||
include("../inc/inc.DBInit.php");
|
include("../inc/inc.DBInit.php");
|
||||||
include("../inc/inc.Language.php");
|
include("../inc/inc.Language.php");
|
||||||
include("../inc/inc.ClassUI.php");
|
include("../inc/inc.ClassUI.php");
|
||||||
|
@ -29,7 +29,13 @@ if(!checkFormKey('clearcache')) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$cmd = 'rm -rf '.$settings->_cacheDir.'/*';
|
$cmd = 'rm -rf '.$settings->_cacheDir.'/*';
|
||||||
system($cmd);
|
$ret = null;
|
||||||
|
system($cmd, $ret);
|
||||||
|
if($ret)
|
||||||
|
$session->setSplashMsg(array('type'=>'error', 'msg'=>getMLText('error_clearcache')));
|
||||||
|
else
|
||||||
|
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_clearcache')));
|
||||||
|
|
||||||
add_log_line("");
|
add_log_line("");
|
||||||
|
|
||||||
header("Location:../out/out.AdminTools.php");
|
header("Location:../out/out.AdminTools.php");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user