Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]!$_SERVER['HTTP_REFERER'] includowanie innego pliku
bambolo
post
Post #1





Grupa: Zarejestrowani
Postów: 135
Pomógł: 0
Dołączył: 10.02.2007

Ostrzeżenie: (10%)
X----


Witam i prosze o pomoc (IMG:style_emoticons/default/smile.gif) jak za pomocą !$_SERVER['HTTP_REFERER'] gdy ktoś wejdze z niepoządanej domeny podmienic includowany plikna inny
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
bambolo
post
Post #2





Grupa: Zarejestrowani
Postów: 135
Pomógł: 0
Dołączył: 10.02.2007

Ostrzeżenie: (10%)
X----


Dziękuje juz sobie poradziem (IMG:style_emoticons/default/smile.gif) poza tym gdzies tam w twoim jest bład (IMG:style_emoticons/default/sad.gif) ja zastosowałem tak

  1. $SERVER1 = "domena.pl";
  2. $SERVER2 = "domena2.pl";
  3.  
  4. if ( eregi($SERVER1, $_SERVER['HTTP_REFERER']) )
  5. include 'template/index_end2.php';
  6. elseif ( eregi($SERVER2, $_SERVER['HTTP_REFERER']) )
  7. include 'template/index_end2.php';
  8. else
  9. // prekierowanie w przypadku innej strony
  10. include 'template/index_end.php';
  11. exit;




Ten post edytował bambolo 7.02.2010, 11:32:16
Go to the top of the page
+Quote Post

Posty w temacie


Closed TopicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 3.10.2025 - 05:28