header.php 948 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. define('EmpireCMSAdmin','1');
  3. @require("../../../../class/connect.php");
  4. if(!defined('InEmpireCMS'))
  5. {
  6. exit();
  7. }
  8. require("config.php");
  9. require("../../../../class/db_sql.php");
  10. require("../../../../class/functions.php");
  11. require("../../class/functions.php");
  12. require "../../../".LoadLang("pub/fun.php");
  13. $link=db_connect();
  14. $empire=new mysqlquery();
  15. //验证用户
  16. $logininid=getcvar('loginuserid',1);
  17. $loginin=getcvar('loginusername',1);
  18. $loginrnd=getcvar('loginrnd',1);
  19. $loginlevel=getcvar('loginlevel',1);
  20. $editor=3;
  21. is_login_ebak($logininid,$loginin,$loginrnd);
  22. //ehash
  23. $ecms_hashur=hReturnEcmsHashStrAll();
  24. //验证权限
  25. //CheckLevel($logininid,$loginin,$classid,"dbdata");
  26. hCheckEcmsRHash();
  27. $mydbname=RepPostVar($_GET['mydbname']);
  28. $mypath=RepPostStr($_GET['mypath'],1);
  29. if(empty($mydbname)||empty($mypath))
  30. {
  31. printerror("ErrorUrl","history.go(-1)");
  32. }
  33. //编码
  34. DoSetDbChar($b_dbchar);
  35. $usql=$empire->usequery("use `$mydbname`");
  36. ?>