step5.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8" />
  5. <title><?php echo $Title; ?> - <?php echo $Powered; ?></title>
  6. <link rel="stylesheet" href="./css/install.css?v=9.0" />
  7. <script src="js/jquery.js"></script>
  8. <link rel="stylesheet" href="./css/step5.css"/>
  9. <?php
  10. $uri = $_SERVER['REQUEST_URI'];
  11. $root = substr($uri, 0,strpos($uri, "install"));
  12. $admin = $root."../index.php/admin/index/";
  13. $host = $_SERVER['HTTP_HOST'];
  14. ?>
  15. </head>
  16. <body>
  17. <div class="wrap">
  18. <div class="title">
  19. 安装完成
  20. </div>
  21. <section class="section">
  22. <div class="title">
  23. <img src="./images/install/success.png" alt="">
  24. <h1>安装成功</h1>
  25. </div>
  26. <div class="progress">
  27. <div class="trip p8">
  28. 为了您站点的安全,安装完成后即可将网站根目录下的“install”文件夹下的所有文件删除,防止重复安装。
  29. </div>
  30. </div>
  31. <div class="bottom-btn">
  32. <div class="pre btn">
  33. <a href="<?php echo 'http://'.$host;?>" class="btn mid">进入前台</a>
  34. </div>
  35. <div class="admin btn">
  36. <a href="<?php echo 'http://'.$host;?>/admin" class="btn btn_submit J_install_btn mid">进入后台</a>
  37. </div>
  38. </div>
  39. </div>
  40. </section>
  41. </div>
  42. <?php require './templates/footer.php';?>
  43. <script>
  44. $(function(){
  45. $.ajax({
  46. type: "POST",
  47. url: "http://shop.crmeb.net/index.php/admin/server.upgrade_api/updatewebinfo",
  48. header:{
  49. 'Access-Control-Allow-Origin':'*',
  50. 'Access-Control-Allow-Headers':'X-Requested-With',
  51. 'Access-Control-Allow-Methods':'PUT,POST,GET,DELETE,OPTIONS'
  52. },
  53. data: {
  54. host:'<?php echo $host;?>',
  55. https:'<?php echo 'http://'.$host;?>',
  56. version:'<?php echo $version;?>',
  57. version_code:'<?php echo $platform;?>',
  58. ip:<?php echo json_encode($ip);?>
  59. },
  60. dataType: 'json',
  61. success: function(){}
  62. });
  63. });
  64. </script>
  65. </body>
  66. </html>