|
ON3AT 89
| Posté : 25-01-2009 23:18
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
/************************************************************************/
br />/* 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. */
/************************************************************************/
br />!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 |  Profil E-mail www
|
|
ON3AT 89
| Posté : 25-01-2009 23:20
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
/************************************************************************/
br />/* 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. */
/************************************************************************/
br />!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 |  Profil E-mail www
|
|
Achel_Jay 2691
| Posté : 25-01-2009 23:23
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). |  Profil E-mail www
|
|
Aller à la page : [ 1 | 2 ] |