Peržiūrėti temą
PHP-Fusion Mods :: PHP-Fusion modifikacijų forumas :: Taisymas
Problema
|
|
B16 |
parašyta 2011-09-10 13:47
|
Naujokas![]() Reputacija: 0 Pranešimai: 6 Įstojo: 2011-05-15 |
Sveiki, i?kilo problema su seo. Darau seo pagal ?i pamok http://asdf.xz.lt...ticle_id=2 ir met errora. Mano maincore.php(cia ne pilnas) // Prevent any possible XSS attacks via $_GET. foreach ($_GET as $check_url) { if (!is_array($check_url)) { $check_url = str_replace("\"", "", $check_url); if ((preg_match("/<[^>]*script*\"?[^>]*>/i", $check_url)) || (preg_match("/<[^>]*object*\"?[^>]*>/i", $check_url)) || (preg_match("/<[^>]*iframe*\"?[^>]*>/i", $check_url)) || (preg_match("/<[^>]*applet*\"?[^>]*>/i", $check_url)) || (preg_match("/<[^>]*meta*\"?[^>]*>/i", $check_url)) || (preg_match("/<[^>]*style*\"?[^>]*>/i", $check_url)) || (preg_match("/<[^>]*form*\"?[^>]*>/i", $check_url)) || (preg_match("/\([^>]*\"?[^)]*\)/i", $check_url)) || (preg_match("/\"/i", $check_url))) { die (); } } } unset($check_url); // Start Output Buffering // Change links to F-url function f_url($buf) { if(!substr_count($_SERVER[REQUEST_URI],"administration")){ $buf = preg_replace('#readarticle.php?article_id=([0-9]*?)('|")#si', 'skaityti-pamoka1.html2', $buf); $buf = preg_replace('#articles.php?cat_id=([0-9]*?)('|")#si', 'pamoka-kategorija-1.html2', $buf); $buf = preg_replace('#articles.php#si', 'pamokos.html', $buf); $buf = preg_replace('#downloads.php?cat_id=([0-9]*?)('|")#si', 'modai-kategorija-1.html2', $buf); $buf = preg_replace('#downloads.php?cat_id=([0-9]*?)(&|&)download_id=([0-9]*?)('|")#si', 'modai-kategorija-1-failas-3.html4', $buf); $buf = preg_replace('#downloads.php#si', 'modai.html', $buf); $buf = preg_replace('#faq.php?cat_id=([0-9]*?)('|")#si', 'duk-kategorija-1.html2', $buf); $buf = preg_replace('#faq.php#si', 'duk.html', $buf); $buf = preg_replace('#weblinks.php?cat_id=([0-9]*?)('|")#si', 'nuoroda-katalogas-1.html2', $buf); $buf = preg_replace('#weblinks.php?cat_id=([0-9]*?)(&|&)weblink_id=([0-9]*?)('|")#si', 'nuoroda-katalogas-1-strone-3.html4', $buf); $buf = preg_replace('#weblinks.php#si', 'nuoroda.html', $buf); $buf = preg_replace('#contact.php#si', 'kontaktai.html', $buf); $buf = preg_replace('#photogallery.php?album_id=([0-9]*?)('|")#si', 'foto-kategorija-1.html2', $buf); $buf = preg_replace('#photogallery.php?photo_id=([0-9]*?)('|")#si', 'galerija-kategorija-1.html2', $buf); $buf = preg_replace('#showphoto.php?photo_id=([0-9]*?)('|")#si', 'rodyti-foto-1.html2', $buf); $buf = preg_replace('#photogallery.php#si', 'galerija.html', $buf); $buf = preg_replace('#search.php?stype=f#si', 'ieskoti-forume.html', $buf); $buf = preg_replace('#search.php#si', 'ieskoti.html', $buf); $buf = preg_replace('#profile.php?lookup=([0-9]*?)('|")#si', 'narys-1.html2', $buf); $buf = preg_replace('#print.php?type=N(&|&)item_id=([0-9]*?)('|")#si', 'spausdinti-2.html3', $buf); $buf = preg_replace('#print.php?type=A(&|&)item_id=([0-9]*?)('|")#si', 'spausdinti-stacia-2.html3', $buf); $buf = preg_replace('#register.php#si', 'registracija.html', $buf); $buf = preg_replace('#lostpassword.php#si', 'slaptazodis.html', $buf); } return $buf; } // Start Output Buffering ob_start("f_url"); // Locate config.php and set the basedir path $folder_level = ""; $i = 0; while (!file_exists($folder_level.".php")) { $folder_level .= "../"; $i++; if ($i == 5) { die("Config file not found"); } } require_once $folder_level.".php"; define("BASEDIR", $folder_level); Klaida kuria meta Chrome Serverio klaida Nuskaitant http://sad.lt/news.php svetainje vyko klaida. Gali bti, kad jis neveikia dl technins prie?iros arba netinkamai sukonfigruotas. Keletas pasilym: kelti ? tinklalap i? naujo vliau. 500 HTTP klaida (Internal Server Error): Serveriui bandant vykdyti u?klaus susidurta su nenumatyta bsena. |
Exceptio |
parašyta 2011-09-10 15:05
|
![]() Administratorius ![]() Reputacija: 0 Pranešimai: 438 Įstojo: 2008-11-10 |
Nesamoningas seo sitas juk, yra daug geresniu ir patarciau daryt naudojant htaccess |
B16 |
parašyta 2011-09-10 16:06
|
Naujokas![]() Reputacija: 0 Pranešimai: 6 Įstojo: 2011-05-15 |
Kuom jis tau nesamoningas... Jis su htaccess ir eina tik ia pakeiia nuorodas per maincore.php |
Exceptio |
parašyta 2011-09-10 16:35
|
![]() Administratorius ![]() Reputacija: 0 Pranešimai: 438 Įstojo: 2008-11-10 |
Pataisysiu, pakeicia i nuorodas kuriu verte lygiai tokia pati kokia ir buvo katik irasyto fusiono. Beto jei nori pataisyt tai tiesiog chmod htaccess i 777 pamegink. Bet tikrai nieko nelaimesi su tokiais linkais. |
Peršokti į forumą: |