Index du forum »»  Le coin des codeurs »» comprend pas!

comprend pas!#6864

3Contributeur(s)
mishaelTribal-DolphinXargos
3 Modérateur(s)
developpeurjpbJireck
mishael mishaelicon_post
<?PHP
!include! ("header.php");
if (($op!="") and ($op)) {

// Anti Hack

if (eregi("(^[0-9a-z_\.-])",$op) and !stristr($op,".*://") and !stristr($op,"..") and !stristr($op,"../") and !stristr($op, "script") and !stristr($op, "cookie") and !stristr($op, "!iframe!") and !stristr($op, "applet") and !stristr($op, "object") and !stristr($op, "meta")) {

if (file_exists("html/$op")) {

!include! ("html/$op");



}
}
}

!include! ("footer.php");


?>

Y a rien qui s'affiche entre le header et footer. :paf
mishael mishaelicon_post
je veus dire donc si je fais ?op=lalala.html et que lalala.html est bien dans le dossier html... :-|
mishael mishaelicon_post
je veux juste préciser que ce truc n'a rien a voir avec NPDS...
Tribal-Dolphin Tribal-Dolphinicon_post
fait un affichage de $op après la fonction antihack.

Puis teste comme ceci si c bon
if (file_exists("html/".$op)) {

!!include!! ("html/".$op);
mishael mishaelicon_post
en c bon... en fait ça marche pas en local, mais sur le web oui :paf
Tribal-Dolphin Tribal-Dolphinicon_post
chercher l'erreur !!!!!!!
mishael mishaelicon_post
bizarre j'ai php 2.2.2 sur nux
Xargos Xargosicon_post
Oulà oui... faudra que tu penses à le dépoussiérer un peu pour passer à la version 4.
mishael mishaelicon_post
pardon 4.2.2 jai...
Xargos Xargosicon_post
Ouf... c'est déjà mieux.