[ كود ] : تحويل php الى html تم التجربه على النسخه 4.1.2
<div>بسم الله الرحمن الرحيم
الله اكبر بسم الله
اخوانى الان كود تحويل php الى html تم التجربه على النسخه 4.1.2
الشرح
افتح ملف includes/functions.php
ابحث عن
كود PHP:
function print_output($vartext, $sendheader
انا بسهل عليك الموضوع البحث ولكن
هنحط الكود بعد الكود التالى:
كود PHP:
function print_output($vartext, $sendheader = true)
{
global $querytime, $vbulletin, $show, $vbphrase;
if (VB_API)
{
$template = vB_Template::create('response');
$template->register('response', $vartext);
$vartext = $template->render(true, true);
}
ضع الكود بعد الكود للفوق
ضع فى السطر 6886 ضع الكود التالى
<div style="margin:20px; margin-top:5px"> كود PHP:
<div class="alt2"> <div dir="ltr" style="text-align:left;"> <span style="color: #000000">
// do Dani's SEO optimization
global $session;
$search_array = array(
'#]*)href' . preg_quote("=\"forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)' . preg_quote("&page=") . '([0-9]+)' . preg_quote("&sort=") . '([a-z]*)' . preg_quote("&order="). '([a-z]*)' . preg_quote("&pp=") . '([0-9]*)' . preg_quote("&daysprune="). '([^"]*)"#',
'#]*)href' . preg_quote("=\"forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)' . preg_quote("&daysprune=") . '([^"]*)' . preg_quote("&order=") . '([a-z]*)' . preg_quote("&sort=") . '([a-z]*)' . preg_quote("&pp=") . '([0-9]*)' . preg_quote("&page=") . '([0-9]+)"#',
'#]*)href' . preg_quote("=\"forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)' . preg_quote("&daysprune=") . '([^"^&]*)' . preg_quote("&order=") . '([a-z]*)' . preg_quote("&sort=") . '([a-z]*)"#',
'#]*)href' . preg_quote("=\"forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)' . preg_quote("&daysprune="). '([^"^&]*)"#',
'#]*)href' . preg_quote("=\"forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)' . preg_quote("&page=") . '([0-9]+)"#',
'#]*)href' . preg_quote("=\"forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)"#',
'#]*)href' . preg_quote("=\"showthread.php?$session[sessionurl]t=") . '([0-9]+)' . preg_quote("&page=") . '([0-9]*)' . preg_quote("&pp=") . '([0-9]+)"#',
'#]*)href' . preg_quote("=\"showthread.php?$session[sessionurl]t=") . '([0-9]+)' . preg_quote("&page=") . '([0-9]+)"#',
'#]*)href' . preg_quote("=\"showthread.php?$session[sessionurl]t=") . '([0-9]+)"#',
'#]*)href' . preg_quote("=\"showthread.php?$session[sessionurl]goto=lastpo st&t=") . '([0-9]+)"#',
'#]*)href' . preg_quote("=\"showthread.php?$session[sessionurl]goto=newpos t&t=") . '([0-9]+)"#',
'#]*)href' . preg_quote("=\"printthread.php?$session[sessionurl]t=") . '([0-9]+)"#',
'#]*)href' . preg_quote("=\"sendmessage.php?$session[sessionurl]do=sendtof riend&t=") . '([0-9]+)"#',
'#]*)href' . preg_quote("=\"showthread.php?$session[sessionurl]t=") . '([0-9]+)' . preg_quote("&goto=next"). '([a-z]+)"#',
'#]*)href' . preg_quote("=\"showthread.php?$session[sessionurl]p=") . '([0-9]+)"#',
'#]*)href' . preg_quote("=\"showthread.php?$session[sessionurl]p=") . '([0-9]+)' . preg_quote("&page=") . '([0-9]+)' . preg_quote("&pp=") . '([0-9]+)"#',
'#]*)href' . preg_quote("=\"showpost.php?$session[sessionurl]p=") . '([0-9]+)' . preg_quote("&postcount=") . '([0-9]+)"#',
'#]*)href' . preg_quote("=\"showthread.php?$session[sessionurl]mode=") . '([a-z]+)' . preg_quote("&t=") . '([0-9]+)"#',
'#]*)href' . preg_quote("=\"showthread.php?$session[sessionurl]p=") . '([0-9]+)' . preg_quote("&mode=") . '([a-z]+)\##',
'#]*)href' . preg_quote("=\"announcement.php?$session[sessionurl]f=") . '([0-9]+)' . preg_quote("&announcementid=") . '([0-9]+)"#',
'#]*)href' . preg_quote("=\"announcement.php?$session[sessionurl]f=") . '([0-9]+)"#',
// sanitizing
'#]*)href\=\"([^"]*)&page=([^"]*).html"#',
'#]*)href\=\"([^"]*)&highlight=([^"]*).html"#',
// other
'#]*)href' . preg_quote("=\"search.php?$session[sessionurl]do=getdaily &f=") . '([0-9]*)"#',
'#]*)href' . preg_quote("=\"search.php?$session[sessionurl]do=getdaily ") . '"#',
'#]*)href' . preg_quote("=\"search.php?$session[sessionurl]do=process&repl yless=1&replylimit=0&dontcache=1&forumchoice=&chil dforums=1") . '"#',
'#]*)href' . preg_quote("=\"search.php?$session[sessionurl]do=process&repl yless=1&replylimit=0&dontcache=1&forumchoice=") . '([0-9]+)' . preg_quote("&childforums=1") . '"#'
);
$replace_array = array(
<span style="color: #DD0000">'