setrename.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <?php
  2. session_start();
  3. if (isset($_SESSION["username"])) {
  4. ?>
  5. <?php require_once('common/header.php'); ?>
  6. <!--页面主要内容-->
  7. <main class="lyear-layout-content">
  8. <div class="container-fluid">
  9. <div class="row">
  10. <div class="col-lg-12">
  11. <div class="card">
  12. <ul class="nav nav-tabs page-tabs">
  13. <li class="active"> <a href="setrename.php">实名配置</a> </li>
  14. </ul>
  15. <?php
  16. include_once("../untils/conn.php");
  17. // 查询type为tencent的系统信息
  18. $sql = "SELECT * FROM system WHERE type = 'tencent'";
  19. $data = mysqli_query($con, $sql);
  20. $result = mysqli_fetch_row($data);
  21. // 将查询结果存储到对应的变量中
  22. $tx_appid = $result[2];
  23. $tx_appkey = $result[3];
  24. // 查询type为aliyun的系统信息
  25. $sql = "SELECT * FROM system WHERE type = 'aliyun'";
  26. $data = mysqli_query($con, $sql);
  27. $result = mysqli_fetch_row($data);
  28. // 将查询结果存储到对应的变量中
  29. $al_appid = $result[2];
  30. $al_appkey = $result[3];
  31. $sql = "SELECT * FROM system WHERE type = 'xitong'";
  32. $data = mysqli_query($con, $sql);
  33. $result = mysqli_fetch_row($data);
  34. // 将查询结果存储到对应的变量中
  35. $auto = $result[10];
  36. ?>
  37. <div class="">
  38. <div class="card-body">
  39. <form class="form-horizontal" action="controller/doUPresys.php" method="POST">
  40. <div class="form-group" >
  41. <p style= "color:red;margin-left:18px;">优先级最高,六月烟云自研正则表达,验证身份证极其精确!(请将代理实名状态默认改为0)</p>
  42. <label class="col-xs-12">系统自动实名:</label>
  43. <div class="col-xs-12">
  44. <select class="form-control" name="auto">
  45. <?php
  46. $auto = $result[10];
  47. $options = array(
  48. "0" => "关闭",
  49. "1" => "开启"
  50. );
  51. foreach ($options as $value => $label) {
  52. $selected = ($auto == $value) ? "selected" : "";
  53. echo "<option value=\"$value\" $selected>$label</option>";
  54. }
  55. ?>
  56. </select>
  57. </div>
  58. </div>
  59. <div class="form-group">
  60. <p style= "color:red;margin-left:18px;">腾讯云和阿里云随机填写一个即可,不填写则需要手动审核~,填写两个默认腾讯云</p>
  61. <label for="title" class="col-xs-12">腾讯云appid:</label>
  62. <div class="col-xs-12">
  63. <input type="text" class="form-control" name="tx_appid" placeholder="输入腾讯云appid" value="<?php echo $tx_appid ?>" >
  64. </div>
  65. </div>
  66. <div class="form-group">
  67. <label for="title" class="col-xs-12">腾讯appkey:</label>
  68. <div class="col-xs-12">
  69. <input type="text" class="form-control" name="tx_appkey" placeholder="输入腾讯云appkey" value="<?php echo $tx_appkey ?>" >
  70. </div>
  71. </div>
  72. <div class="form-group">
  73. <label for="title" class="col-xs-12">阿里云appid:</label>
  74. <div class="col-xs-12">
  75. <input type="text" class="form-control" name="al_appid" placeholder="输入阿里云appid" value="<?php echo $al_appid ?>" >
  76. </div>
  77. </div>
  78. <div class="form-group">
  79. <label for="title" class="col-xs-12">阿里云key:</label>
  80. <div class="col-xs-12">
  81. <input type="text" class="form-control" name="al_key" placeholder="请输入阿里云appkey" value="<?php echo $al_appkey ?>" >
  82. </div>
  83. </div>
  84. <div class="form-group">
  85. <input type="hidden" name="kefu" value="">
  86. <div class="offset-2 col-xs-12">
  87. <button class="btn btn-success" type="submit" value="添加">确认修改</button>
  88. <!-- <button class="btn btn-danger ml-3" type="reset" value="重置">返回</button> -->
  89. </div>
  90. </div>
  91. </form>
  92. </div>
  93. </div>
  94. </div>
  95. </main>
  96. <!--End 页面主要内容-->
  97. <?php require_once('common/footer.php'); ?>
  98. <?php
  99. } else {
  100. echo "<script>alert('您尚未登录,没有权限访问该页面');location.href='login.php';</script>";
  101. }