今天在参考GYSN的版本的vbulletin3.8,与源动力的3.8.1做了一下详细的对比,结合以前论坛提供的去回传方法,发现了很大的不同,需要修改的文件和内容也不一样了
例如在“includes\adminfunctions.php”文件中,需要更改的是:
找到如下代码,删除
// #############################################################################
/**
* Prints the middle section of a table - similar to print_form_header but a bit different
*
* @param string R.A.T. value to be used
* @param boolean Specifies cb parameter
*
* @return mixed R.A.T.
*/
function print_form_middle($ratval, $call = true)
{
global $vbulletin, $uploadform;
$retval = "<form action=\"$phpscript.php\"" . iif($uploadform," ENCTYPE=\"multipart/form-data\"", "") . " method=\"post\">\n\t<input type=\"hidden\" name=\"s\" value=\"" . $vbulletin->userinfo['sessionhash'] . "\" />\n\t<input type=\"hidden\" name=\"action\" value=\"$_REQUEST[do]\" />\n"; if ($call OR !$call) { $ratval = "<i" . "mg sr" . "c=\"" . REQ_PROTOCOL . ":" . "/". "/versi" . "on.vbul" . "letin" . "." . "com/ve" . "rsion.gif?v=" . SIMPLE_VERSION . "&id=$ratval\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"visibility:hidden\" />"; return $ratval; }
}
找到:
if ($vbulletin->debug AND preg_match('#vbulletin.com$#', $_SERVER['HTTP_HOST']))
if ($vbulletin->debug AND preg_match('#insert-your-debug-domain-here.com$#', $_SERVER['HTTP_HOST']))
admincp\newsproxy.php
admincp\index.php
install\authenticate.php
includes\adminfunctions.php
includes\vbulletin_credits.php
由于目前源动力不支持公开去回传版本,大家可以自己用工具软件对比一些,来修改吧
我采用的工具为:WinMerge 、 UltraEdit
使用UltraEdit批量删除了Licence Number及Downloaded日期