Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Include
Gustavox
post
Post #1





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 19.02.2012

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


Witam, mam takie pytanie czy ten kod nie bedzie podatny na atak LFI ?
  1. <?php
  2. $page = addslashes($_GET['page']);
  3.  
  4. if (empty($page) || $page == 'glowna') {
  5. include("dane/glowna.html");
  6. }
  7. if($page=="newsy"){
  8. include("dane/newsy.php");
  9. }
  10.  
  11. if($page=="pomoc"){
  12. include("dane/pomoc.html");
  13. }
  14.  
  15. if($page=="kontakt"){
  16. include("dane/kontakt.html");
  17. }
  18. ?>

Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
lobopol
post
Post #2





Grupa: Zarejestrowani
Postów: 1 729
Pomógł: 346
Dołączył: 4.04.2009

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


nie będzie


--------------------
Go to the top of the page
+Quote Post
Gustavox
post
Post #3





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 19.02.2012

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


OK dzięki bardzo
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 19.08.2025 - 18:48