UCenter_1.6.0_SC_UTF8 – Eternal Night https://www.shuijingwanwq.com There is no problem not worth solving, and no technology not worth learning! Sun, 07 Jun 2026 14:14:50 +0000 en-US hourly 1 https://wordpress.org/?v=7.0 Enable the MySQL enhanced extension under UCenter_1.6.0_sc_utf8, that is, the mysqli extension https://www.shuijingwanwq.com/en/2015/11/19/16295/ https://www.shuijingwanwq.com/en/2015/11/19/16295/#respond Thu, 19 Nov 2015 08:49:15 +0000 https://www.shuijingwanwq.com/?p=16295 浏览量: 1

1. Copy Discuz_x3.2_sc_utf8/upload/uc_server/lib/dbi. class.php to ucenter_1.6.0_sc_utf8/lib/dbi.class.php

复制Discuz_X3.2_SC_UTF8/upload/uc_server/lib/dbi.class.php到UCenter_1.6.0_SC_UTF8/lib/dbi.class.php

Copy Discuz_x3.2_sc_utf8/upload/uc_server/lib/dbi.c LASS.php to ucenter_1.6.0_sc_utf8/lib/dbi.class.php

2. Edit ucenter_1.6.0_sc_utf8/model/base.php

function init_db() {
//require_once uc_root.lib/db.class.php;
if(function_exists(“mysqli_connect”)) {
require_once UC_ROOT.lib/dbi.class.php;
} else {
require_once UC_ROOT.lib/db.class.php;
}
$this->db = new ucserver_db();
$this->db->connect(uc_dbhost, uc_dbuser, uc_dbpw, uc_dbname, uc_dbcharset, UC_DBConnect, UC_DBTablePre);
}

编辑UCenter_1.6.0_SC_UTF8/model/base.php

Edit ucenter_1.6.0_sc_utf8/model/base.php

3. Copy the class of discuz_x3.2_sc_utf8/upload/uc_server/api/dbbak.php dbstuffi to ucenter_1.6.0_sc_utf8/api/dbbak.php

4. Edit ucenter_1.6.0_sc_utf8/api/dbbak.php

编辑UCenter_1.6.0_SC_UTF8/api/dbbak.php

Edit ucenter_1.6.0_sc_utf8/api/dbbak.php

5. Enable the mysqli extension in uc_client, copy discuz_x3.2_sc_utf8/upload/u c_client/lib/dbi.class.php to uc_client/lib/dbi.class.php

复制Discuz_X3.2_SC_UTF8/upload/uc_client/lib/dbi.class.php到uc_client/lib/dbi.class.php

Copy Discuz_x3.2_sc_utf8/upload/uc_client/lib/dbi.class.php to uc_client/lib/dbi.class.php

6. Edit uc_client/client.php,

if(empty($UC_CONTROLS)[$model])) {
//INCLUDE_ONCE UC_ROOT../lib/db.class.php;
if(function_exists(“mysqli_connect”)) {
INCLUDE_ONCE UC_ROOT../lib/dbi.class.php;
} else {
INCLUDE_ONCE UC_ROOT../lib/db.class.php;
}
INCLUDE_ONCE UC_ROOT../model/uc_base.php;
include_once uc_root.”./control/$model.php”;
eval(“\$UC_CONTROLS[‘$model’]= new {$model}control();”);
}

编辑uc_client/client.php

Edit UC_Client/Client.php

7. Edit /uc_client/model/uc_base.php

function init_db() {
//require_once uc_root.lib/db.class.php;
if(function_exists(“mysqli_connect”)) {
require_once UC_ROOT.lib/dbi.class.php;
} else {
require_once UC_ROOT.lib/db.class.php;
}
$this->db = new uclient_db();
$this->db->connect(uc_dbhost, uc_dbuser, uc_dbpw,, uc_dbcharset, uc_dbconnect, uc_dbtablepre);
}

编辑/uc_client/model/uc_base.php

Edit /uc_client/model/uc_base.php

 

]]>
https://www.shuijingwanwq.com/en/2015/11/19/16295/feed/ 0
Enable the MySQL enhanced extension in Discuz_x3.2_sc_utf8, that is, the mysqli extension https://www.shuijingwanwq.com/en/2015/11/18/16300/ https://www.shuijingwanwq.com/en/2015/11/18/16300/#respond Wed, 18 Nov 2015 08:41:09 +0000 https://www.shuijingwanwq.com/?p=16300 浏览量: 0

1. ;extension=php_mysql.dll, disable mysql extension in php.ini;

2. In the function dependency check, mysqli_connect is supported;

在函数依赖性检查中,mysqli_connect是支持的

mysqli_connect is supported in function dependency checking

3. After installation, open the blank;

安装之后,打开空白

After installation, open the blank

4. Delete the program file, copy the file to the installation directory, edit discuz_x3.2_sc_utf8/source/class/discuz/discuz_database.php, and find the function quote, modify, because it does not make the judgment of extended support:

tiveting
if (is_string($str))
return\. mysql_escape_string($str) .\;
;
*/
if (is_string($str)) {
if(function_exists(“mysqli_connect”)) {
return\. self::$db->escape_string($str) .\;
} else {
return\. mysql_escape_string($str) .\;
}
}

查找function quote,修改,因为其未做扩展支持的判断

Find Function Quote, modify it, because it does not make the judgment of extended support

5. Reinstall and install successfully

重新安装,安装成功

Reinstalled, the installation was successful

]]>
https://www.shuijingwanwq.com/en/2015/11/18/16300/feed/ 0