التعديلات على ملف pbboardCodeparse.class.php لتركيب هاك ارباح ترايدنت كالتالي :
حرر ملف : includes/pbboardCodeparse.class.php
وابحث عن :
CODE
function censor_words($text)
وأضف أعلاها :
CODE
function arbah_hex($string)
{
global $PowerBB;
$string = bin2hex(\"$string\");
$string = chunk_split($string, 2, '%');
$string = '%' . substr($string, 0, strlen($string) - 1);
return $string;
}
function arabh_function($text)
{
global $PowerBB;
if (!empty($text))
{
if (@preg_match_all(\"/(\\<a href=\\\")(.[^\\\"]*)/i\", $text, $matches))
{
$localdomains = array($PowerBB->_SERVER['SERVER_NAME']);
$preg_search = array();
$preg_replace = array();
foreach ($matches[2] AS $key=>$serverurl)
{
// Do we have a local url?
if (($parsed_url = @parse_url($serverurl)) !== false)
{
$servername = $parsed_url['host'];
if ($parsed_url['fragment'] AND !$parsed_url['host'])
{
continue;
}
foreach ($localdomains AS $localdomain)
{
if (substr($localdomain, 0, 1) == \".\")
{
if (preg_match(\"/$localdomain$/i\", $servername))
{
continue 2;
}
}
else
{
if (strtolower($localdomain) == strtolower($servername))
{
continue 2;
}
}
}
}
else
{
continue;
}
$encoded_url = $this->arbah_hex(base64_encode($serverurl));
$anonymurl = \"arbah.php?url=\" . $encoded_url;
$preg_search[\"$serverurl\"] = \"<a href=\\\"$serverurl\";
$preg_replace[\"$serverurl\"] = \"<a href=\\\"\" . $anonymurl;
}
if ($preg_search)
{
$text = str_replace($preg_search, $preg_replace, $text);
}
}
}
return $text;
}
ثم ابحث عن :
CODE
$text = str_replace(\"(:*
\",\"\",$text);
واضف أسفلة :
CODE
if($PowerBB->_CONF['info_row']['traidnt_arbah_onoff'] == \"1\")
{
$text = $this->arabh_function($text);
}