PHP-Nuke
  Strona głównaDownloadForumFAQ Zaloguj się  
Forum


 
Rules  Forum FAQ   Search   Usergroups   Register   Log in
 
 
Zadając pytanie dotyczące PHPNuke podaj jego wersje!!

View Single Post #21366  Topic: Błąd: your browser doesn't send the HTTP_REFERER header 
Author Message
p-maz
~user



PostPosted: 20 Jul 2007 12:01:52    Post subject: Reply with quote

mainfile.php

znajdź to:
:
// Posting from other servers in not allowed
// Fix by Quake
// Bug found by PeNdEjO
if ($_SERVER['REQUEST_METHOD'] == "POST") {
  if (isset(
$_SERVER['HTTP_REFERER'])) {
if (!
stripos_clone($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'])) {
die(
'Posting from another server not allowed!');
}
  } else {
die(
$posttags);
  }
}


zamień na:
:

// Posting from other servers in not allowed
// Fix by Quake
// Bug found by PeNdEjO
//if ($_SERVER['REQUEST_METHOD'] == "POST") {
//  if (isset($_SERVER['HTTP_REFERER'])) {
// if (!stripos_clone($_SERVER['HTTP_REFERER'], //$_SERVER['HTTP_HOST'])) {
 //    die('Posting from another server not allowed!');
 //   }
 // } else {
 //   die($posttags);
//  }
//}


powinno wystarczyć, napisz czy pomogło, jeśli tak to dodam to do faq-u.
_________________
Nie udzielam porad GG, PW.
search
http://e-maz.net - modyfikacja/tworzenie stron
View user's profile Send private message Visit poster's website
 


Powered by phpBB [CR] © 2001, 2006 phpBB Group.
   
 

Copyright © 2004-2009 by phpnuke.org.pl :: PHP-Nuke Copyright © 2004 by Francisco Burzi.
Zdjęcia ślubne
Tworzenie strony: 0.20 sekund
Zapytań: 7