|
mishael 1816
| Posté : 26-07-2003 18:39
<?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. |  Profil
|
|
mishael 1816
| Posté : 26-07-2003 18:40
je veus dire donc si je fais ?op=lalala.html et que lalala.html est bien dans le dossier html... |  Profil
|
|
mishael 1816
| Posté : 26-07-2003 20:34
je veux juste préciser que ce truc n'a rien a voir avec NPDS... |  Profil
|
|
Tribal-Dolphin 4374
| Posté : 27-07-2003 16:08
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); |  Profil
|
|
mishael 1816
| Posté : 27-07-2003 17:15
en c bon... en fait ça marche pas en local, mais sur le web oui |  Profil
|
|
Tribal-Dolphin 4374
| Posté : 27-07-2003 21:01
chercher l'erreur !!!!!!! |  Profil
|
|
mishael 1816
| Posté : 28-07-2003 09:08
bizarre j'ai php 2.2.2 sur nux |  Profil
|
|
Xargos 2035
| Posté : 28-07-2003 09:23
Oulà oui... faudra que tu penses à le dépoussiérer un peu pour passer à la version 4. |  Profil E-mail www
|
|
mishael 1816
| Posté : 28-07-2003 12:51
pardon 4.2.2 jai... |  Profil
|
|
Xargos 2035
| |