HoCiNe
صلي على النبي صل الله عليه وسلم انجازاتي لايتوفر على اوسمة بعد: الوسام الأولالوسام الثانيالوسام الثالث
| موضوع: كود تحويل php الى html 2011-03-05, 19:45 | |
| [ندعوك للتسجيل في المنتدى أو التعريف بنفسك لمعاينة هذه الصورة] اخوانى الان كود تحويل php الى html تم التجربه على النسخه 4.1.2 الشرح افتح ملف includes/functions.php ابحث عن - الكود:
-
function print_output($vartext, $sendheader انا بسهل عليك الموضوع البحث ولكن هنحط الكود بعد الكود التالى: - الكود:
-
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 ضع الكود التالى - الكود:
-
// do Dani's SEO optimization global $session; $search_array = array( '#<a ([^>]*)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="). '([^"]*)"#', '#<a ([^>]*)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]+)"#', '#<a ([^>]*)href' . preg_quote("="forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)' . preg_quote("&daysprune=") . '([^"^&]*)' . preg_quote("&order=") . '([a-z]*)' . preg_quote("&sort=") . '([a-z]*)"#', '#<a ([^>]*)href' . preg_quote("="forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)' . preg_quote("&daysprune="). '([^"^&]*)"#', '#<a ([^>]*)href' . preg_quote("="forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)' . preg_quote("&page=") . '([0-9]+)"#', '#<a ([^>]*)href' . preg_quote("="forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)"#', '#<a ([^>]*)href' . preg_quote("="showthread.php?$session[sessionurl]t=") . '([0-9]+)' . preg_quote("&page=") . '([0-9]*)' . preg_quote("&pp=") . '([0-9]+)"#', '#<a ([^>]*)href' . preg_quote("="showthread.php?$session[sessionurl]t=") . '([0-9]+)' . preg_quote("&page=") . '([0-9]+)"#', '#<a ([^>]*)href' . preg_quote("="showthread.php?$session[sessionurl]t=") . '([0-9]+)"#', '#<a ([^>]*)href' . preg_quote("="showthread.php?$session[sessionurl]goto=lastpost&t=") . '([0-9]+)"#', '#<a ([^>]*)href' . preg_quote("="showthread.php?$session[sessionurl]goto=newpost&t=") . '([0-9]+)"#', '#<a ([^>]*)href' . preg_quote("="printthread.php?$session[sessionurl]t=") . '([0-9]+)"#', '#<a ([^>]*)href' . preg_quote("="sendmessage.php?$session[sessionurl]do=sendtofriend&t=") . '([0-9]+)"#', '#<a ([^>]*)href' . preg_quote("="showthread.php?$session[sessionurl]t=") . '([0-9]+)' . preg_quote("&goto=next"). '([a-z]+)"#', '#<a ([^>]*)href' . preg_quote("="showthread.php?$session[sessionurl]p=") . '([0-9]+)"#', '#<a ([^>]*)href' . preg_quote("="showthread.php?$session[sessionurl]p=") . '([0-9]+)' . preg_quote("&page=") . '([0-9]+)' . preg_quote("&pp=") . '([0-9]+)"#', '#<a ([^>]*)href' . preg_quote("="showpost.php?$session[sessionurl]p=") . '([0-9]+)' . preg_quote("&postcount=") . '([0-9]+)"#', '#<a ([^>]*)href' . preg_quote("="showthread.php?$session[sessionurl]mode=") . '([a-z]+)' . preg_quote("&t=") . '([0-9]+)"#', '#<a ([^>]*)href' . preg_quote("="showthread.php?$session[sessionurl]p=") . '([0-9]+)' . preg_quote("&mode=") . '([a-z]+)\##', '#<a ([^>]*)href' . preg_quote("="announcement.php?$session[sessionurl]f=") . '([0-9]+)' . preg_quote("&announcementid=") . '([0-9]+)"#', '#<a ([^>]*)href' . preg_quote("="announcement.php?$session[sessionurl]f=") . '([0-9]+)"#', // sanitizing '#<a ([^>]*)href\="([^"]*)&page=([^"]*).html"#', '#<a ([^>]*)href\="([^"]*)&highlight=([^"]*).html"#', // other '#<a ([^>]*)href' . preg_quote("="search.php?$session[sessionurl]do=getdaily&f=") . '([0-9]*)"#', '#<a ([^>]*)href' . preg_quote("="search.php?$session[sessionurl]do=getdaily") . '"#', '#<a ([^>]*)href' . preg_quote("="search.php?$session[sessionurl]do=process&replyless=1&replylimit=0&dontcache=1&forumchoice=&childforums=1") . '"#', '#<a ([^>]*)href' . preg_quote("="search.php?$session[sessionurl]do=process&replyless=1&replylimit=0&dontcache=1&forumchoice=") . '([0-9]+)' . preg_quote("&childforums=1") . '"#' ); $replace_array = array( '<a \1href="forum\2-\3-\4-\5-\6-\7.html"', '<a \1href="forum\2-\7-\5-\4-\6-\3.html"', '<a \1href="forum\2-\3-\4-\5.html"', '<a \1href="forum\2-\3.html"', '<a \1href="forum\2-\3.html"', '<a \1href="forum\2.html"', '<a \1href="thread\2-\3.html"', '<a \1href="thread\2-\3.html"', '<a \1href="thread\2.html"', '<a \1href="lastpostinthread\2.html"', '<a \1href="newpostinthread\2.html"', '<a \1href="printthread\2.html"', '<a \1href="sendthread\2.html"', '<a \1href="next\3tothread\2.html"', '<a \1href="post\2.html"', '<a \1href="post\2-\3-\4.html"', '<a \1href="post\2-\3.html"', '<a \1href="thread\3-\2.html"', '<a \1href="post\2-\3.html#', '<a \1href="announcement\2-\3.html"', '<a \1href="announcement\2.html"', // sanitizing '<a \1href="\2-\3.html"', '<a \1href="\2-\3.html"', // other '<a \1href="getdaily\2.html"', '<a \1href="getdaily.html"', '<a \1href="unanswered.html"', '<a \1href="unanswered\2.html"' ); $vartext = preg_replace($search_array, $replace_array, $vartext); [ندعوك للتسجيل في المنتدى أو التعريف بنفسك لمعاينة هذه الصورة] |
|
admin
صلي على النبي صل الله عليه وسلم انجازاتي لايتوفر على اوسمة بعد:
| موضوع: رد: كود تحويل php الى html 2011-03-05, 19:49 | |
| |
|