left.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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=2;
  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. $r=ReturnLeftLevel($loginlevel);
  19. $movecolor=" onMouseOver=\"this.style.backgroundColor='#EFEFEF'\" onMouseOut=\"this.style.backgroundColor='#FFFFFF'\"";
  20. $gid=(int)$_GET['gid'];
  21. //参数设置
  22. $display="";
  23. if($display=="")
  24. {
  25. $addimg="images/noadd.gif";
  26. }
  27. else
  28. {
  29. $addimg="images/add.gif";
  30. }
  31. $ecms=RepPostVar(RepPathStr($_GET['ecms']));
  32. $menus=',system,classdata,template,usercp,tool,extend,other,fastmenu,';
  33. $ecms=str_replace(',','',$ecms);
  34. if(!strstr($menus,','.$ecms.','))
  35. {
  36. exit();
  37. }
  38. $showmenu='menu/'.$ecms.'.php';
  39. if($ecms&&strstr($menus,','.$ecms.',')&&file_exists($showmenu))
  40. {
  41. @include($showmenu);
  42. }
  43. db_close();
  44. $empire=null;
  45. ?>