
Apšylantis

Reputacija:
0
Pranešimai: 99
Įstojo: 2008-01-29
|
Sveiki, niekaip nepavyksta pritaikyt to seo modo, failus ikeliau,bet maincore nepagaunu kaip ji sutvarkyt.
mano maincore.php
Codehttp://www1.zippyshare.com/v/92305422/file.html
(idejau i talpykla nes neisejo kopint visko)
seo modo maincore.php
Code
// Change links to F-url
// non-html version
function f_url($buf) {
# MOD F-URL for extreme-fusion 4 #
# Autor: LukasAMD #
# http://www.jacenter.pl #
if(!substr_count($_SERVER[REQUEST_URI],\"administration\")){
$buf = preg_replace('#viewthread\.php\?forum_id=([0-9]*?)(&|&)thread_id=([0-9]*?)\#([0-9]*?)(\'|\")#si', 'post\1-\3-\4\5', $buf);
$buf = preg_replace('#viewthread\.php\?rowstart=([0-9]*?)(&|&)forum_id=([0-9]*?)(&|&)thread_id=([0-9]*?)\#([0-9]*?)(\'|\")#si', 'temat\1-\3-str\5-\6\7', $buf);
$buf = preg_replace('#viewforum\.php\?forum_id=([0-9]*?)(&|&)rowstart=([0-9]*?)(\'|\")#si', 'forum\1-str\3\4', $buf);
$buf = preg_replace('#viewthread\.php\?forum_id=([0-9]*?)(&|&)thread_id=([0-9]*?)(\'|\")#si', 'temat\1-\3\4', $buf);
$buf = preg_replace('#viewforum\.php\?forum_id=([0-9]*?)(\'|\")#si', 'forum\1\2', $buf);
$buf = preg_replace('#viewthread\.php\?rowstart=([0-9]*?)(&|&)forum_id=([0-9]*?)(&|&)thread_id=([0-9]*?)(\'|\")#si', 'temat\3-\5-str\2\6', $buf);
$buf = preg_replace('#viewthread\.php\?forum_id=([0-9]*?)(&|&)thread_id=([0-9]*?)(&|&)pid=([0-9]*?)\#post_([0-9]*?)(\'|\")#si', 'post\1-\3-\5#post_\6\7', $buf);
$buf = preg_replace('#post\.php\?action=newthread(&|&)forum_id=([0-9]*?)(\'|\")#si', 'nowy-temat\2\3', $buf);
$buf = preg_replace('#viewthread\.php\?forum_id=([0-9]*?)(&|&)thread_id=([0-9]*?)(&|&)rowstart=([0-9]*?)(\'|\")#si', 'temat\1-\3-str\5\6', $buf);
$buf = preg_replace('#post\.php\?action=edit(&|&)forum_id=([0-9]*?)(&|&)thread_id=([0-9]*?)(&|&)post_id=([0-9]*?)(\'|\")#si', 'edytuj-post\2-\4-\6\7', $buf);
$buf = preg_replace('#post\.php\?action=reply(&|&)forum_id=([0-9]*?)(&|&)thread_id=([0-9]*?)(\'|\")#si', 'odp-temat\2-\4\5', $buf);
$buf = preg_replace('#post\.php\?action=reply(&|&)forum_id=([0-9]*?)(&|&)thread_id=([0-9]*?)(&|&)post_id=([0-9]*?)(&|&)quote=([0-9]*?)(\'|\")#si', 'odp-temat\2-\4-post\6-\8\9', $buf);
$buf = preg_replace('#readarticle\.php\?article_id=([0-9]*?)(&|&)rowstart([0-9]*?)(\'|\")#si', 'artykul-\1-str\3\4', $buf);
$buf = preg_replace('#readarticle\.php\?article_id=([0-9]*?)(\'|\")#si', 'artykul\1\2', $buf);
$buf = preg_replace('#articles\.php\?cat_id=([0-9]*?)(\'|\")#si', 'artykuly-kat\1\2', $buf);
$buf = preg_replace('#articles\.php#si', 'artykuly', $buf);
$buf = preg_replace('#downloads\.php\?cat_id=([0-9]*?)(&|&)rowstart=([0-9]*?)(\'|\")#si', 'pliki-kat-\1-str\3\4', $buf);
$buf = preg_replace('#downloads\.php\?cat_id=([0-9]*?)(&|&)download_id=([0-9]*?)(\'|\")#si', 'pliki-kat-\1-pobierz\3\4', $buf);
$buf = preg_replace('#downloads\.php\?cat_id=([0-9]*?)(\'|\")#si', 'pliki-kat-\1\2', $buf);
$buf = preg_replace('#downloads\.php#si', 'pliki', $buf);
$buf = preg_replace('#weblinks\.php\?cat_id=([0-9]*?)(&|&)rowstart=([0-9]*?)(\'|\")#si', 'linki-\1-str\3\4', $buf);
$buf = preg_replace('#weblinks\.php\?cat_id=([0-9]*?)(&|&)weblink_id=([0-9]*?)(\'|\")#si', 'linki-\1\3\4', $buf);
$buf = preg_replace('#weblinks\.php\?cat_id=([0-9]*?)(\'|\")#si', 'linki-\1\2', $buf);
$buf = preg_replace('#weblinks\.php#si', 'linki', $buf);
$buf = preg_replace('#faq\.php\?cat_id=([0-9]*?)(&|&)rowstart=([0-9]*?)(\'|\")#si', 'faq-\1-str\3\4', $buf);
$buf = preg_replace('#faq\.php\?cat_id=([0-9]*?)(\'|\")#si', 'faq\1\2', $buf);
$buf = preg_replace('#faq\.php#si', 'faq', $buf);
$buf = preg_replace('#showphoto\.php\?photo_id=([0-9]*?)(\'|\")#si', 'foto-duze\1\2', $buf);
$buf = preg_replace('#photogallery\.php\?album_id=([0-9]*?)(&|&)rowstart=([0-9]*?)(\'|\")#si', 'album-\1-str\3\4', $buf);
$buf = preg_replace('#photogallery\.php\?photo_id=([0-9]*?)(\'|\")#si', 'foto\1\2', $buf);
$buf = preg_replace('#photogallery\.php\?album_id=([0-9]*?)(\'|\")#si', 'album\1\2', $buf);
$buf = preg_replace('#photogallery\.php#si', 'galeria', $buf);
$buf = preg_replace('#news\.php\?rowstart=([0-9]*?)(\'|\")#si', 'news-str\1\2', $buf);
$buf = preg_replace('#news\.php\?readmore=([0-9]*?)(\'|\")#si', 'news\1\2', $buf);
$buf = preg_replace('#news_cats\.php\?cat_id=([0-9]*?)(\'|\")#si', 'news-kat\1\2', $buf);
$buf = preg_replace('#news_cats\.php#si', 'news-kat', $buf);
$buf = preg_replace('#news\.php#si', 'news', $buf);
$buf = preg_replace('#forum/index\.php#si', 'forum/index', $buf);
$buf = preg_replace('#members\.php#si', 'uzytkownicy', $buf);
$buf = preg_replace('#contact\.php#si', 'kontakt', $buf);
$buf = preg_replace('#search\.php\?stype=f#si', 'szukaj-forum', $buf);
$buf = preg_replace('#search\.php#si', 'szukaj', $buf);
$buf = preg_replace('#profile\.php\?lookup=([0-9]*?)(\'|\")#si', 'profil\1\2', $buf);
$buf = preg_replace('#viewpage\.php\?page_id=([0-9]*?)(\'|\")#si', 'inne\1\2', $buf);
$buf = preg_replace('#infusions/button_panel/button\.php\?button_id=([0-9]*?)(\'|\")#si', 'button\1\2', $buf);
$buf = preg_replace('#index\.php#si', 'index', $buf);
$buf = preg_replace('#ion/index#si', 'ion/index.php', $buf);
$buf = preg_replace('#ion/news#si', 'ion/news.php', $buf);
$buf = preg_replace('#ion/articles#si', 'ion/articles.php', $buf);
$buf = preg_replace('#user/index#si', 'user/index.php', $buf);
}
return $buf;
}
// Start Output Buffering
ob_start(\"f_url\");
?>
|