step5.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. <?php
  9. $uri = $_SERVER['REQUEST_URI'];
  10. $root = substr($uri, 0,strpos($uri, "install"));
  11. $admin = $root."../index.php/admin/index/";
  12. $host = $_SERVER['HTTP_HOST'];
  13. ?>
  14. </head>
  15. <body>
  16. <div class="wrap">
  17. <?php require './templates/header.php';?>
  18. <section class="section">
  19. <div class="">
  20. <div class="success_tip cc"> <a href="<?php echo $admin;?>" class="f16 b">安装完成,进入后台管理</a>
  21. <p>为了您站点的安全,安装完成后即可将网站根目录下的“install”文件夹删除,或者/install/目录下创建install.lock文件防止重复安装。<p>
  22. </div>
  23. <div class="bottom tac">
  24. <a href="<?php echo 'http://'.$host;?>/index.php" class="btn">进入前台</a>
  25. <a href="<?php echo 'http://'.$host;?>/index.php/admin/login/index" class="btn btn_submit J_install_btn">进入后台</a>
  26. </div>
  27. <div class=""> </div>
  28. </div>
  29. </section>
  30. </div>
  31. <?php require './templates/footer.php';?>
  32. <script>
  33. $(function(){
  34. $.ajax({
  35. type: "POST",
  36. url: "http://shop.crmeb.net/index.php/admin/server.upgrade_api/updatewebinfo",
  37. data: {host:'<?php echo $host;?>',https:'<?php echo 'http://'.$host;?>',version:<?php echo json_encode($curent_version['version']);?>',ip:<?php echo json_encode($ip);?>},
  38. dataType: 'json',
  39. success: function(){}
  40. });
  41. });
  42. </script>
  43. </body>
  44. </html>