Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Wolna linia, wolna, linia, pomoc
Hackett
post 24.11.2012, 20:17:59
Post #1





Grupa: Zarejestrowani
Postów: 13
Pomógł: 0
Dołączył: 21.10.2012

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


Mam taki kodzik smile.gif
  1. <?php
  2. $includeDir = ".".DIRECTORY_SEPARATOR."pages".DIRECTORY_SEPARATOR;
  3. $includeDefault = $includeDir."home.php";
  4. if(isset($_GET['s']) && !empty($_GET['s']))
  5. {
  6. $_GET['s'] = str_replace("\0", '', $_GET['s']);
  7. $includeFile = basename(realpath($includeDir.$_GET['s'].".php"));
  8. $includePath = $includeDir.$includeFile;
  9. if(!empty($includeFile) && file_exists($includePath))
  10. {
  11. include($includePath);
  12. }
  13. else
  14. {
  15. include($includeDefault);
  16. }
  17. }
  18. else
  19. {
  20. include($includeDefault);
  21. }
  22. ?>

I tworzy on wolną linię na stronie...
Da się wykluczyć to tworzenie wolnej linii?
Go to the top of the page
+Quote Post

Posty w temacie


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 Wersja Lo-Fi Aktualny czas: 14.08.2025 - 15:02