sugar1569 8a42db5089 fix(nginx): 修复宿主机端口映射下的跳转丢失问题
添加 absolute_redirect off 配置,并修正后台链接末尾斜杠,解决宿主机 8011 映射容器 80 时跳转丢失端口的问题
2026-09-23 16:34:28 +08:00

70 lines
2.0 KiB
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title><?php echo $Title; ?> - <?php echo $Powered; ?></title>
<link rel="stylesheet" href="./css/install.css?v=9.0" />
<script src="js/jquery.js"></script>
<link rel="stylesheet" href="./css/step5.css"/>
<?php
$uri = $_SERVER['REQUEST_URI'];
$root = substr($uri, 0,strpos($uri, "install"));
$admin = $root."../index.php/admin/index/";
$host = $_SERVER['HTTP_HOST'];
?>
</head>
<body>
<div class="wrap">
<div class="title">
安装完成
</div>
<section class="section">
<div class="title">
<img src="./images/install/success.png" alt="">
<h1>安装成功</h1>
</div>
<div class="progress">
<div class="trip p8">
为了您站点的安全,安装完成后即可将网站根目录下的“install”文件夹下的所有文件删除,防止重复安装。
</div>
</div>
<div class="bottom-btn">
<div class="pre btn">
<a href="<?php echo 'http://'.$host;?>" class="btn mid">进入前台</a>
</div>
<div class="admin btn">
<a href="<?php echo 'http://'.$host;?>/admin/" class="btn btn_submit J_install_btn mid">进入后台</a>
</div>
</div>
</div>
</section>
</div>
<?php require './templates/footer.php';?>
<script>
$(function(){
$.ajax({
type: "POST",
url: "http://shop.crmeb.net/index.php/admin/server.upgrade_api/updatewebinfo",
header:{
'Access-Control-Allow-Origin':'*',
'Access-Control-Allow-Headers':'X-Requested-With',
'Access-Control-Allow-Methods':'PUT,POST,GET,DELETE,OPTIONS'
},
data: {
host:'<?php echo $host;?>',
https:'<?php echo 'http://'.$host;?>',
version:'<?php echo $version;?>',
uid:'<?php echo $uid;?>',
version_code:'<?php echo $platform;?>',
ip:<?php echo json_encode($ip);?>
},
dataType: 'json',
success: function(){}
});
});
</script>
</body>
</html>