ecmseditorpage.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. //接收参数
  19. function EcmsEditor_PageGetVar($add){
  20. $r['showmod']=(int)$add['showmod'];
  21. $r['type']=(int)$add['type'];
  22. $r['classid']=(int)$add['classid'];
  23. $r['filepass']=(int)$add['filepass'];
  24. $r['infoid']=(int)$add['infoid'];
  25. $r['modtype']=(int)$add['modtype'];
  26. $r['sinfo']=(int)$add['sinfo'];
  27. $r['doing']=ehtmlspecialchars($add['doing']);
  28. $r['fileno']=ehtmlspecialchars($add['fileno']);
  29. $r['InstanceName']=ehtmlspecialchars($add['InstanceName']);
  30. $r['InstanceId']=intval(str_replace('cke_','',$add['InstanceId']));
  31. return $r;
  32. }
  33. $ecms_topager=array();
  34. $doecmspage=ehtmlspecialchars($_GET['doecmspage']);
  35. $ecms_topager=EcmsEditor_PageGetVar($_GET);
  36. $pagefile='';
  37. if($doecmspage=='TranImg')//上传图片
  38. {
  39. $pagefile='TranImg.php';
  40. }
  41. elseif($doecmspage=='TranFile')//上传附件
  42. {
  43. $pagefile='TranFile.php';
  44. }
  45. elseif($doecmspage=='TranFlash')//上传FLASH
  46. {
  47. $pagefile='TranFlash.php';
  48. }
  49. elseif($doecmspage=='TranMedia')//上传视频
  50. {
  51. $pagefile='TranMedia.php';
  52. }
  53. elseif($doecmspage=='TranMore')//上传多图
  54. {
  55. $pagefile='TranMore.php';
  56. }
  57. else
  58. {
  59. exit();
  60. }
  61. @include($pagefile);
  62. ?>