打開 includes/mcp/mcp_ban.php
尋找
代碼: 選擇全部
$ban = request_var('ban', '', ($mode === 'user') true ? false);
代碼: 選擇全部
$ban = request_var('ban', '', ($mode === 'user') ? true : false);
尋找
代碼: 選擇全部
// Include MOD _info files for populating language entries within the menus
if (file_exists($user->lang_path . 'mods'))
{
$add_files = array();
foreach (glob($user->lang_path . 'mods/info_' . strtolower($this->p_class) . '_*.' . $phpEx, GLOB_NOSORT) as $file)
{
$add_files[] = 'mods/' . substr(basename($file), 0, -(strlen($phpEx) + 1));
}
if (sizeof($add_files))
{
$user->add_lang($add_files);
}
}
代碼: 選擇全部
// Include MOD _info files for populating language entries within the menus
if (file_exists($user->lang_path . 'mods'))
{
$add_files = array();
$info_files = @glob($user->lang_path . 'mods/info_' . strtolower($this->p_class) . '_*.' . $phpEx, GLOB_NOSORT);
if (!is_array($info_files))
{
$dir = @opendir($user->lang_path . 'mods');
if ($dir)
{
while (($entry = readdir($dir)) !== false)
{
if (strpos($entry, 'info_' . strtolower($this->p_class) . '_') === 0 && substr(strrchr($entry, '.'), 1) == $phpEx)
{
$add_files[] = 'mods/' . substr(basename($entry), 0, -(strlen($phpEx) + 1));
}
}
closedir($dir);
}
}
else
{
foreach ($info_files as $file)
{
$add_files[] = 'mods/' . substr(basename($file), 0, -(strlen($phpEx) + 1));
}
}
if (sizeof($add_files))
{
$user->add_lang($add_files);
}
}
可能的問題:下一次更新到 RC4 或是正式版的時候,執行自動更新檔時,會發生找不到代碼的問題(因為已經被你事先修改過了),因此,到時候你會需要把修正好的代碼恢復成 RC3 一開始的樣子才能執行自動更新檔
~Mac