Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> index.php?id=art&txt=1
Usr
post
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 21.05.2004

Ostrzeżenie: (0%)
-----


Jak mam zrobic "podwojne includowanie" zeby bylo tak, ze wchodze w artykoly(index.php?id=art) i klikam pierwszy to zeby sie on wyswietlil? Czy moze jest nie potrzebne podwojne includowanie i mam w glownym pliku zaincludowac?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
xardas
post
Post #2





Grupa: Zarejestrowani
Postów: 16
Pomógł: 0
Dołączył: 7.03.2004

Ostrzeżenie: (0%)
-----


  1. <?
  2. if(isset($_GET['id']) && file_exists($_GET['id'].&#092;".php\" && $_GET['id'] !== 'index')
  3. {
  4. include($_GET['id'].&#092;".php\");
  5. }
  6. else{
  7. include(&#092;"domyslny.php\");
  8. }
  9.  
  10. ?>


HaRy:
Cytat
tia ... index.php?s=../index bedzie szczegolnie ciekawe


Tjaaaa,a od kiedy php pozwoli na wejście np. do includes/../index.php ? ;]

edit: Ups,sorka (IMG:http://forum.php.pl/style_emoticons/default/aaevil.gif) teraz dopiero zobaczyłem datę ;/

Ten post edytował xardas 21.10.2004, 12:09:23
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 9.10.2025 - 12:53