Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Wolna linia, wolna, linia, pomoc
Hackett
post
Post #1





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

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


Mam taki kodzik (IMG:style_emoticons/default/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
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 6.10.2025 - 05:37