Aspirant
Inscrit: 17/04/2007 18:44
|
Bonjour,
Je n'arrive pas à installer ton module. Il faut dire (important) que je ne sais pas chmoder. Je n'y comprend rien.
Si tu pouvais me décrire la mise en route. J'ai placer le répertoire lien dans module, ce dernier est bien installer dans la partie admi de mon site mais dès que je sollicite une page du module voila ce que j'obtiens :
// // 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, or // // (at your option) any later version. // // // // You may not change or alter any portion of this comment or credits // // of supporting developers from this source code or any supporting // // source code which is considered copyrighted (c) material of the // // original comment or credit authors. // // // // This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program; if not, write to the Free Software // // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // include '../../../include/cp_header.php'; require_once "../cache/config.php"; require_once "../cache/settings.php"; //start menu() function menu() { global $xoopsModule; xoops_cp_header(); echo "
" . _AM_LIENS_MENUP . "
"; echo ""; echo " "; echo " "; echo " \n"; echo " "; echo " "; echo " \n"; echo " "; echo " "; echo " \n"; xoops_cp_footer(); } // END menu() //start preference() $system = isset($HTTP_POST_VARS['system']) ? $HTTP_POST_VARS['system']:1; $pr = isset($HTTP_POST_VARS['pr']) ? $HTTP_POST_VARS['pr']:0; $notify = isset($HTTP_POST_VARS['notify']) ? $HTTP_POST_VARS['notify']:0; $max_links = isset($HTTP_POST_VARS['max_links']) ? $HTTP_POST_VARS['max_links']:50; $clean = isset($HTTP_POST_VARS['clean']) ? $HTTP_POST_VARS['clean']:1; $add_to = isset($HTTP_POST_VARS['add_to']) ? $HTTP_POST_VARS['add_to']:1; function preference() { global $xoopsConfig, $xoopsModule, $system, $pr, $notify, $max_links, $clean, $add_to, $HTTP_POST_VARS, $HTTP_GET_VARS; xoops_cp_header(); echo""; echo " \n"; echo " " . _AM_LIENS_PREFERENCE . "
"; echo "" . _AM_LIENS_SYSTEM_DESC . " "; echo " " . _AM_LIENS_PR_DESC . " "; echo " " . _AM_LIENS_NOTIFY_DESC . " "; echo " " . _AM_LIENS_MAXLINK_DESC . " "; echo " " . _AM_LIENS_CLEAN_DESC . " "; echo " " . _AM_LIENS_ADDTO_DESC . " "; echo "
"; echo ""; echo " "; echo " "; echo "
"; exit(); xoops_cp_footer(); } function preferenceS($system, $pr, $notify, $max_links, $clean, $add_to) { global $HTTP_POST_VARS, $system, $pr, $notify, $max_links, $clean, $add_to; $content = "
"; echo""; echo phpinfo(); echo " "; } //end server() $op = 'default'; if (!empty($HTTP_GET_VARS['op'])) $op = $HTTP_GET_VARS['op']; if (!empty($HTTP_POST_VARS['op'])) $op = $HTTP_POST_VARS['op']; switch($op) { case "server": server(); break; case "preference": preference(); break; case "preferenceS": preferenceS($system, $pr, $notify, $max_links, $clean, $add_to); break; default: menu(); break; } ?>
Posté le : 09/10/2007 18:58
|