mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-02-13 19:13:51 +00:00
移动安装目录,支持根目录index.php访问,也可以像tp5一样只对外开放crmeb一个目录
This commit is contained in:
parent
ee4cdd1f06
commit
68d9c1dceb
@ -235,7 +235,6 @@ switch ($step) {
|
|||||||
$sql = trim($sqlFormat[$i]);
|
$sql = trim($sqlFormat[$i]);
|
||||||
if (strstr($sql, 'CREATE TABLE')) {
|
if (strstr($sql, 'CREATE TABLE')) {
|
||||||
preg_match('/CREATE TABLE IF NOT EXISTS `eb_([^ ]*)`/is', $sql, $matches);
|
preg_match('/CREATE TABLE IF NOT EXISTS `eb_([^ ]*)`/is', $sql, $matches);
|
||||||
print_r($matches);exit;
|
|
||||||
mysqli_query($conn,"DROP TABLE IF EXISTS `$matches[1]");
|
mysqli_query($conn,"DROP TABLE IF EXISTS `$matches[1]");
|
||||||
$sql = str_replace('`eb_','`'.$dbPrefix,$sql);//替换表前缀
|
$sql = str_replace('`eb_','`'.$dbPrefix,$sql);//替换表前缀
|
||||||
$ret = mysqli_query($conn,$sql);
|
$ret = mysqli_query($conn,$sql);
|
||||||
|
|||||||
@ -43,7 +43,7 @@
|
|||||||
$('#dosubmit').attr("disabled",false);
|
$('#dosubmit').attr("disabled",false);
|
||||||
$('#dosubmit').removeAttr("disabled");
|
$('#dosubmit').removeAttr("disabled");
|
||||||
$('#dosubmit').removeClass("nonext");
|
$('#dosubmit').removeClass("nonext");
|
||||||
setTimeout('gonext()',2000);
|
// setTimeout('gonext()',2000);
|
||||||
return false;
|
return false;
|
||||||
}else{
|
}else{
|
||||||
reloads(msg.n);
|
reloads(msg.n);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user