SetMemberConnect.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. define('EmpireCMSAdmin','1');
  3. require("../../class/connect.php");
  4. require("../../class/db_sql.php");
  5. require("../../class/functions.php");
  6. require("../../member/class/user.php");
  7. $link=db_connect();
  8. $empire=new mysqlquery();
  9. $editor=1;
  10. //验证用户
  11. $lur=is_login();
  12. $logininid=$lur['userid'];
  13. $loginin=$lur['username'];
  14. $loginrnd=$lur['rnd'];
  15. $loginlevel=$lur['groupid'];
  16. $loginadminstyleid=$lur['adminstyleid'];
  17. //ehash
  18. $ecms_hashur=hReturnEcmsHashStrAll();
  19. //验证权限
  20. CheckLevel($logininid,$loginin,$classid,"memberconnect");
  21. $enews=ehtmlspecialchars($_GET['enews']);
  22. $id=(int)$_GET['id'];
  23. $r=$empire->fetch1("select * from {$dbtbpre}enewsmember_connect_app where id='$id'");
  24. $url="外部接口 &gt; <a href=MemberConnect.php".$ecms_hashur['whehref'].">管理外部登录接口</a>&nbsp;>&nbsp;配置外部登录接口:<b>".$r[apptype]."</b>";
  25. db_close();
  26. $empire=null;
  27. ?>
  28. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  29. <html>
  30. <head>
  31. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  32. <title>外部登录接口</title>
  33. <link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
  34. </head>
  35. <body>
  36. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  37. <tr>
  38. <td width="50%">位置:
  39. <?=$url?>
  40. </td>
  41. <td><div align="right" class="emenubutton"></div></td>
  42. </tr>
  43. </table>
  44. <form name="setmemberconnectform" method="post" action="MemberConnect.php" enctype="multipart/form-data" autocomplete="off">
  45. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  46. <?=$ecms_hashur['form']?>
  47. <tr class="header">
  48. <td height="25" colspan="2">配置外部登录接口
  49. <input name="enews" type="hidden" id="enews" value="<?=$enews?>"> <input name="id" type="hidden" id="id" value="<?=$id?>"> </td>
  50. </tr>
  51. <tr bgcolor="#FFFFFF">
  52. <td height="25"><div align="right">接口类型:</div></td>
  53. <td height="25">
  54. <?=$r[apptype]?> </td>
  55. </tr>
  56. <tr bgcolor="#FFFFFF">
  57. <td height="25"><div align="right">接口状态:</div></td>
  58. <td height="25"><input type="radio" name="isclose" value="0"<?=$r[isclose]==0?' checked':''?>>
  59. 开启
  60. <input type="radio" name="isclose" value="1"<?=$r[isclose]==1?' checked':''?>>
  61. 关闭</td>
  62. </tr>
  63. <tr bgcolor="#FFFFFF">
  64. <td width="23%" height="25"><div align="right">接口名称:</div></td>
  65. <td width="77%" height="25"><input name="appname" type="text" id="appname" value="<?=$r[appname]?>" size="35"></td>
  66. </tr>
  67. <tr bgcolor="#FFFFFF">
  68. <td height="25"><div align="right">接口别名:</div></td>
  69. <td height="25"><input name="qappname" type="text" id="qappname" value="<?=$r[qappname]?>" size="35"></td>
  70. </tr>
  71. <tr bgcolor="#FFFFFF">
  72. <td height="25" valign="top"><div align="right">接口描述:</div></td>
  73. <td height="25"><textarea name="appsay" cols="65" rows="6" id="appsay"><?=ehtmlspecialchars($r[appsay])?></textarea></td>
  74. </tr>
  75. <tr bgcolor="#FFFFFF">
  76. <td height="25"><div align="right">appid:</div></td>
  77. <td height="25"><input name="appid" type="text" id="appid" value="<?=$r[appid]?>" size="35">
  78. <font color="#666666">(申请的应用ID)</font></td>
  79. </tr>
  80. <tr bgcolor="#FFFFFF">
  81. <td height="25"><div align="right">appkey:</div></td>
  82. <td height="25"><input name="appkey" type="text" id="appkey" value="<?=$r[appkey]?>" size="35">
  83. <font color="#666666">(申请的应用密钥)</font></td>
  84. </tr>
  85. <tr bgcolor="#FFFFFF">
  86. <td height="25"><div align="right">显示排序:</div></td>
  87. <td height="25"><input name=myorder type=text id="myorder" value='<?=$r[myorder]?>' size="35">
  88. <font color="#666666">(值越小显示越前面)</font></td>
  89. </tr>
  90. <tr bgcolor="#FFFFFF">
  91. <td height="25">&nbsp;</td>
  92. <td height="25"><input type="submit" name="Submit" value=" 设 置 "> &nbsp;&nbsp;&nbsp;
  93. <input type="reset" name="Submit2" value="重置"></td>
  94. </tr>
  95. </table>
  96. </form>
  97. </body>
  98. </html>