ecmsadmin.php 856 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. error_reporting(0);
  3. define('EmpireCMSAdmin','1');
  4. $enews=$_POST['enews'];
  5. if(empty($enews))
  6. {$enews=$_GET['enews'];}
  7. if($enews=='login')
  8. {
  9. define('EmpireCMSAPage','login');
  10. }
  11. require("../class/connect.php");
  12. require("../class/db_sql.php");
  13. require("../class/functions.php");
  14. $link=db_connect();
  15. $empire=new mysqlquery();
  16. if($enews=="login")
  17. {}
  18. else
  19. {
  20. //验证用户
  21. $lur=is_login();
  22. $logininid=$lur['userid'];
  23. $loginin=$lur['username'];
  24. $loginrnd=$lur['rnd'];
  25. $loginlevel=$lur['groupid'];
  26. $loginadminstyleid=$lur['adminstyleid'];
  27. hCheckEcmsRHash();
  28. }
  29. require("../class/adminfun.php");
  30. if($enews=="login")//登陆
  31. {
  32. $username=$_POST['username'];
  33. $password=$_POST['password'];
  34. $key=$_POST['key'];
  35. $loginin=$username;
  36. login($username,$password,$key,$_POST);
  37. }
  38. else
  39. {
  40. printerror("ErrorUrl","history.go(-1)");
  41. }
  42. db_close();
  43. $empire=null;
  44. ?>