mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-17 15:02:48 +00:00
移动安装目录,支持根目录index.php访问,也可以像tp5一样只对外开放crmeb一个目录
This commit is contained in:
parent
c02a3a9275
commit
ee4cdd1f06
@ -235,6 +235,7 @@ 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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user