Index du forum »»  Pour débuter »» [Résolu] - Forums

[Résolu] - Forums#24129

3Contributeur(s)
ON3ATHotfirenetAchel_Jay
3 Modérateur(s)
developpeurjpbJireck
ON3AT ON3ATicon_post
voici mon fichier Modul pouvez vous me dir ou je dois placer

url de type : modules.php?ModPath=CentralBoard&ModStart=CentralBoard



voici un exemplair de fichier modules



<?php

/************************************************************************/

/* DUNE by NPDS */

/* =========================== */

/* */

/* Based on PhpNuke 4.x source code */

/* */

/* NPDS Copyright (c) 2002-2007 */

/* */

/* This program is free software. You can redistribute it and/or modify */

/* it under the terms of the GNU General Public License as published by */

/* the Free Software Foundation; either version 2 of the License. */

/************************************************************************/

!include! ("grab_globals.php");



function Access_Error () {

!include!("admin/die.php");

}

function filtre_module($strtmp) {

if (strstr($strtmp,"..") || stristr($strtmp,"script") || stristr($strtmp,"cookie") || stristr($strtmp,"!iframe!") || stristr($strtmp,"applet") || stristr($strtmp,"object")) {

Access_Error();

} else {

if ($strtmp!="") {

return (true);

} else {

return (false);

}

}

}

if (filtre_module($ModPath) and filtre_module($ModStart)) {

if (!function_exists("Mysql_Connexion")) {!include! ("mainfile.php");}

if (file_exists("modules/$ModPath/$ModStart.php")) {

!include!("modules/$ModPath/$ModStart.php");

die();

} else {

Access_Error();

}

} elseif (filtre_module($name) and filtre_module($file)) {

// phpnuke compatibility

if (!function_exists("Mysql_Connexion")) {!include! ("mainfile.php");}

if (file_exists("modules/$name/$file.php")) {

!include!("modules/$name/$file.php");

die();

} else {

Access_Error();

}

} else {

Access_Error();

}

?>





merci d'avance Pierre
ON3AT ON3ATicon_post
pouvez vous me dir ou je dois placer dans mon fichier module l'url si dessous:

url de type : modules.php?ModPath=CentralBoard&ModStart=CentralBoard



voici un exemplair de mon fichier modules:



<?php

/************************************************************************/

/* DUNE by NPDS */

/* =========================== */

/* */

/* Based on PhpNuke 4.x source code */

/* */

/* NPDS Copyright (c) 2002-2007 */

/* */

/* This program is free software. You can redistribute it and/or modify */

/* it under the terms of the GNU General Public License as published by */

/* the Free Software Foundation; either version 2 of the License. */

/************************************************************************/

!include! ("grab_globals.php");



function Access_Error () {

!include!("admin/die.php");

}

function filtre_module($strtmp) {

if (strstr($strtmp,"..") || stristr($strtmp,"script") || stristr($strtmp,"cookie") || stristr($strtmp,"!iframe!") || stristr($strtmp,"applet") || stristr($strtmp,"object")) {

Access_Error();

} else {

if ($strtmp!="") {

return (true);

} else {

return (false);

}

}

}

if (filtre_module($ModPath) and filtre_module($ModStart)) {

if (!function_exists("Mysql_Connexion")) {!include! ("mainfile.php");}

if (file_exists("modules/$ModPath/$ModStart.php")) {

!include!("modules/$ModPath/$ModStart.php");

die();

} else {

Access_Error();

}

} elseif (filtre_module($name) and filtre_module($file)) {

// phpnuke compatibility

if (!function_exists("Mysql_Connexion")) {!include! ("mainfile.php");}

if (file_exists("modules/$name/$file.php")) {

!include!("modules/$name/$file.php");

die();

} else {

Access_Error();

}

} else {

Access_Error();

}

?>





merci d'avance Pierre
Achel_Jay Achel_Jayicon_post
Il existe des tutos et des réponses pour toutes tes questions suffit de les télécharger dans la zone de download ou de chercher sur les forums à l'aide du (je te le donne en mille même si tu ne me crois pas) "champ de recherche".

=> quand on change de portail on télécharge et lit en premier la doc ... (c'ets juste un conseil surtout que toute la doc existe et est à deux click d'ici).