do.php 887 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. define('EmpireCMSAdmin','1');
  3. require("../../class/connect.php");
  4. require("../../class/db_sql.php");
  5. require("../../class/functions.php");
  6. $link=db_connect();
  7. $empire=new mysqlquery();
  8. $editor=1;
  9. //验证用户
  10. $lur=is_login();
  11. $logininid=$lur['userid'];
  12. $loginin=$lur['username'];
  13. $loginrnd=$lur['rnd'];
  14. $loginlevel=$lur['groupid'];
  15. $loginadminstyleid=$lur['adminstyleid'];
  16. //ehash
  17. $ecms_hashur=hReturnEcmsHashStrAll();
  18. //验证权限
  19. CheckLevel($logininid,$loginin,$classid,"ad");
  20. db_close();
  21. $empire=null;
  22. require('set.php');
  23. $cachetotal=0;
  24. if($_POST['del']==1 && is_dir(CACHE_ROOT)){
  25. unlinkDir(CACHE_ROOT);
  26. $ar = getDirectorySize(CACHE_ROOT);
  27. if($ar['count']==0){
  28. ShowMsg('缓存已全部删除','index.php'.$ecms_hashur['whehref'].'',0,5000);exit;
  29. }else{
  30. ShowMsg('删除失败','index.php'.$ecms_hashur['whehref'].'',0,5000);exit;
  31. }
  32. }
  33. ?>