txtCMS里面的master.FRM和master.MYD需要改个名字,
比如改为123456.MYD和123456.FRM。总之不能让别人猜出来。
又比如改为123456admin.MYD和123456admin.FRM。
规则是数字加字母可以。
但是字母加数字不行。
改完名字需要在文件\core\Action\Admin\LoginAction.class.php
和\core\Action\Admin\MasterAction.class.php里面的master改为123456admin
abstract class txtSQL {
public $_STRICT = true;
public $_LIBPATH = null;
public $_USER = null;
public $_PASS = null;
public $_CACHE = array();
public $_SELECTEDDB = null;
public $_QUERYCOUNT = 0;
public $hash_db = array();
function __construct($path = '') {
$this -> _LIBPATH = $path;
$this->hash_db=explode(',',config('DB_HASH_LIST'));
return true;
}
function _check_table_file($table) {
if (is_array($table)) {
foreach($table as $vo) {
$filename = "$this->_LIBPATH/$this->_SELECTEDDB/$vo";
$table_frm = preg_replace('#^([a-z]+)\d+#', '$1', $vo);
if (in_array($table_frm, $this->hash_db)) {
$filename = "$this->_LIBPATH/$this->_SELECTEDDB/$table_frm/$vo";
}
if (!is_file($filename . '.MYD') || !is_file("$this->_LIBPATH/$this->_SELECTEDDB/$table_frm.FRM")) {
$this -> _error(E_USER_NOTICE, 'Table ' . $vo . ' doesn\'t exist');
return false;
}
}