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

This commit is contained in:
xurongyao 2018-09-15 19:13:23 +08:00
parent ee4cdd1f06
commit 68d9c1dceb
2 changed files with 1 additions and 2 deletions

View File

@ -235,7 +235,6 @@ switch ($step) {
$sql = trim($sqlFormat[$i]);
if (strstr($sql, 'CREATE TABLE')) {
preg_match('/CREATE TABLE IF NOT EXISTS `eb_([^ ]*)`/is', $sql, $matches);
print_r($matches);exit;
mysqli_query($conn,"DROP TABLE IF EXISTS `$matches[1]");
$sql = str_replace('`eb_','`'.$dbPrefix,$sql);//替换表前缀
$ret = mysqli_query($conn,$sql);

View File

@ -43,7 +43,7 @@
$('#dosubmit').attr("disabled",false);
$('#dosubmit').removeAttr("disabled");
$('#dosubmit').removeClass("nonext");
setTimeout('gonext()',2000);
// setTimeout('gonext()',2000);
return false;
}else{
reloads(msg.n);