移动安装目录,支持根目录index.php访问,也可以像tp5一样只对外开放crmeb一个目录

This commit is contained in:
xurongyao 2018-09-15 17:34:02 +08:00
parent 7e3aeedae9
commit f6b46532cc

View File

@ -8,7 +8,7 @@
<?php
$uri = $_SERVER['REQUEST_URI'];
$root = substr($uri, 0,strpos($uri, "install"));
$admin = $root."../index.php/Admin/admin/";
$admin = $root."../index.php/admin/index/";
?>
</head>
<body>
@ -21,7 +21,7 @@ $admin = $root."../index.php/Admin/admin/";
</div>
<div class="bottom tac">
<a href="<?php echo 'http://'.$host;?>/index.php/wap/" class="btn">进入前台</a>
<a href="<?php echo 'http://'.$host;?>/index.php//admin/login/index.html" class="btn btn_submit J_install_btn">进入后台</a>
<a href="<?php echo 'http://'.$host;?>/index.php/admin/login/index" class="btn btn_submit J_install_btn">进入后台</a>
</div>
<div class=""> </div>
</div>