From: x2000habouzit Date: Mon, 22 Nov 2004 20:04:35 +0000 (+0000) Subject: move to require_once everywhere X-Git-Tag: xorg/old~835 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=688d46bcd58e608bb0c0505a38583431a405ac1a;p=platal.git move to require_once everywhere --- diff --git a/htdocs/acces_smtp.php b/htdocs/acces_smtp.php index 7fb4b8e..2a56dd6 100644 --- a/htdocs/acces_smtp.php +++ b/htdocs/acces_smtp.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: acces_smtp.php,v 1.5 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: acces_smtp.php,v 1.6 2004-11-22 20:04:35 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('acces_smtp.tpl', AUTH_MDP); if (isset($_REQUEST['op']) && $_REQUEST['op'] == "Valider" diff --git a/htdocs/admin/admin_trombino.php b/htdocs/admin/admin_trombino.php index 8913afe..eb71008 100644 --- a/htdocs/admin/admin_trombino.php +++ b/htdocs/admin/admin_trombino.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: admin_trombino.php,v 1.4 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: admin_trombino.php,v 1.5 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_admin_page('admin/admin_trombino.tpl'); $q = $globals->db->query("SELECT a.alias,promo diff --git a/htdocs/admin/ax-xorg.php b/htdocs/admin/ax-xorg.php index 52cebbf..ebb49f8 100644 --- a/htdocs/admin/ax-xorg.php +++ b/htdocs/admin/ax-xorg.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: ax-xorg.php,v 1.5 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: ax-xorg.php,v 1.6 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require('xorg.inc.php'); +require_once('xorg.inc.php'); new_admin_page('admin/ax-xorg.tpl'); // liste des différences diff --git a/htdocs/admin/deces_promo.php b/htdocs/admin/deces_promo.php index 8574d39..1c6bf7a 100644 --- a/htdocs/admin/deces_promo.php +++ b/htdocs/admin/deces_promo.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: deces_promo.php,v 1.10 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: deces_promo.php,v 1.11 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_admin_page('admin/deces_promo.tpl'); $promo = ( isset($_REQUEST["promo"]) ? $_REQUEST["promo"] : 0 ); diff --git a/htdocs/admin/evenements.php b/htdocs/admin/evenements.php index 0d6a5e7..1adfdaf 100644 --- a/htdocs/admin/evenements.php +++ b/htdocs/admin/evenements.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: evenements.php,v 1.6 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: evenements.php,v 1.7 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_admin_page('admin/evenements.tpl'); $arch = isset($_REQUEST['arch']) ? $_REQUEST['arch'] : 0; diff --git a/htdocs/admin/gerer_applis.php b/htdocs/admin/gerer_applis.php index ffbf2db..6e35ae2 100644 --- a/htdocs/admin/gerer_applis.php +++ b/htdocs/admin/gerer_applis.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: gerer_applis.php,v 1.3 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: gerer_applis.php,v 1.4 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require('xorg.inc.php'); +require_once('xorg.inc.php'); new_admin_table_editor('applis_def','id'); $editor->add_join_table('applis_ins','aid',true); diff --git a/htdocs/admin/gerer_auth-groupex.php b/htdocs/admin/gerer_auth-groupex.php index 4107993..cb4c54a 100644 --- a/htdocs/admin/gerer_auth-groupex.php +++ b/htdocs/admin/gerer_auth-groupex.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: gerer_auth-groupex.php,v 1.3 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: gerer_auth-groupex.php,v 1.4 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require('xorg.inc.php'); +require_once('xorg.inc.php'); new_admin_table_editor('groupesx_auth','id'); $editor->describe('name','nom',true); diff --git a/htdocs/admin/gerer_binets.php b/htdocs/admin/gerer_binets.php index 7bc27c7..187ec93 100644 --- a/htdocs/admin/gerer_binets.php +++ b/htdocs/admin/gerer_binets.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: gerer_binets.php,v 1.3 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: gerer_binets.php,v 1.4 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require('xorg.inc.php'); +require_once('xorg.inc.php'); new_admin_table_editor('binets_def','id'); $editor->add_join_table('binets_ins','binet_id',true); diff --git a/htdocs/admin/gerer_coupure.php b/htdocs/admin/gerer_coupure.php index 882b18f..1292394 100644 --- a/htdocs/admin/gerer_coupure.php +++ b/htdocs/admin/gerer_coupure.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: gerer_coupure.php,v 1.3 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: gerer_coupure.php,v 1.4 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require('xorg.inc.php'); +require_once('xorg.inc.php'); new_admin_table_editor('coupures','id'); $editor->describe('debut','date',true,'timestamp'); diff --git a/htdocs/admin/gerer_groupesx.php b/htdocs/admin/gerer_groupesx.php index 14de36b..e9ddc47 100644 --- a/htdocs/admin/gerer_groupesx.php +++ b/htdocs/admin/gerer_groupesx.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: gerer_groupesx.php,v 1.3 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: gerer_groupesx.php,v 1.4 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require('xorg.inc.php'); +require_once('xorg.inc.php'); new_admin_table_editor('groupesx_def','id'); $editor->add_join_table('groupesx_ins','gid',true); diff --git a/htdocs/admin/gerer_paiement.php b/htdocs/admin/gerer_paiement.php index baa93a5..5e15f36 100644 --- a/htdocs/admin/gerer_paiement.php +++ b/htdocs/admin/gerer_paiement.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: gerer_paiement.php,v 1.3 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: gerer_paiement.php,v 1.4 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require('xorg.inc.php'); +require_once('xorg.inc.php'); new_admin_table_editor('paiement.paiements','id'); $editor->add_join_table('paiement.transactions','ref',true); diff --git a/htdocs/admin/gerer_skins.php b/htdocs/admin/gerer_skins.php index 7e5b737..e5c735f 100644 --- a/htdocs/admin/gerer_skins.php +++ b/htdocs/admin/gerer_skins.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: gerer_skins.php,v 1.4 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: gerer_skins.php,v 1.5 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require('xorg.inc.php'); +require_once('xorg.inc.php'); new_admin_table_editor('skins','id'); $editor->describe('name','nom',true); $editor->describe('skin_tpl','nom du template',true); diff --git a/htdocs/admin/homonymes.php b/htdocs/admin/homonymes.php index e7722da..2d6c16c 100644 --- a/htdocs/admin/homonymes.php +++ b/htdocs/admin/homonymes.php @@ -18,12 +18,12 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: homonymes.php,v 1.10 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: homonymes.php,v 1.11 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_admin_page('admin/homonymes.tpl'); -require("diogenes.hermes.inc.php"); +require_once("diogenes.hermes.inc.php"); $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : 'list'; diff --git a/htdocs/admin/index.php b/htdocs/admin/index.php index ccfff13..77899c9 100644 --- a/htdocs/admin/index.php +++ b/htdocs/admin/index.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: index.php,v 1.4 2004-11-22 11:15:31 x2000habouzit Exp $ + $Id: index.php,v 1.5 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_admin_page('admin/index.tpl'); $page->run(); diff --git a/htdocs/admin/lists.php b/htdocs/admin/lists.php index 013473b..4509f1e 100644 --- a/htdocs/admin/lists.php +++ b/htdocs/admin/lists.php @@ -18,12 +18,12 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: lists.php,v 1.4 2004-11-22 11:15:31 x2000habouzit Exp $ + $Id: lists.php,v 1.5 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_admin_page('admin/lists.tpl'); -include('xml-rpc-client.inc.php'); +require_once('xml-rpc-client.inc.php'); $res = $globals->db->query("SELECT password FROM auth_user_md5 WHERE user_id={$_SESSION['uid']}"); list($pass) = mysql_fetch_row($res); diff --git a/htdocs/admin/logger.php b/htdocs/admin/logger.php index ec46d4a..25973c1 100644 --- a/htdocs/admin/logger.php +++ b/htdocs/admin/logger.php @@ -18,12 +18,12 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: logger.php,v 1.5 2004-11-22 11:15:31 x2000habouzit Exp $ + $Id: logger.php,v 1.6 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_admin_page('logger-view.tpl'); -require('diogenes.logger-view.inc.php'); +require_once('diogenes.logger-view.inc.php'); if(empty($_REQUEST['logauth'])) $_REQUEST['logauth']='native'; diff --git a/htdocs/admin/logger_actions.php b/htdocs/admin/logger_actions.php index 9600c8e..9d73a8a 100644 --- a/htdocs/admin/logger_actions.php +++ b/htdocs/admin/logger_actions.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: logger_actions.php,v 1.3 2004-11-22 11:15:31 x2000habouzit Exp $ + $Id: logger_actions.php,v 1.4 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require('xorg.inc.php'); +require_once('xorg.inc.php'); new_admin_table_editor('logger.actions','id'); $editor->add_join_table('logger.events','action',true); diff --git a/htdocs/admin/newsletter.php b/htdocs/admin/newsletter.php index a3643f7..e59f1c3 100644 --- a/htdocs/admin/newsletter.php +++ b/htdocs/admin/newsletter.php @@ -18,12 +18,12 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: newsletter.php,v 1.3 2004-11-22 11:15:31 x2000habouzit Exp $ + $Id: newsletter.php,v 1.4 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_admin_page('admin/newsletter.tpl'); -require("newsletter.inc.php"); +require_once("newsletter.inc.php"); if(isset($_GET['new'])) { insert_new_nl(); diff --git a/htdocs/admin/newsletter_cats.php b/htdocs/admin/newsletter_cats.php index e83d3aa..224e2b3 100644 --- a/htdocs/admin/newsletter_cats.php +++ b/htdocs/admin/newsletter_cats.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: newsletter_cats.php,v 1.2 2004-11-22 11:15:31 x2000habouzit Exp $ + $Id: newsletter_cats.php,v 1.3 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require('xorg.inc.php'); +require_once('xorg.inc.php'); new_admin_table_editor('newsletter_cat','cid'); $editor->describe('titre','intitulé',true); diff --git a/htdocs/admin/newsletter_edit.php b/htdocs/admin/newsletter_edit.php index a099847..aed1565 100644 --- a/htdocs/admin/newsletter_edit.php +++ b/htdocs/admin/newsletter_edit.php @@ -18,12 +18,12 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: newsletter_edit.php,v 1.7 2004-11-22 11:15:31 x2000habouzit Exp $ + $Id: newsletter_edit.php,v 1.8 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_admin_page('admin/newsletter_edit.tpl', 'newsletter/head.tpl'); -require("newsletter.inc.php"); +require_once("newsletter.inc.php"); $nid = empty($_GET['nid']) ? 'last' : $_GET['nid']; $nl = new NewsLetter($nid); diff --git a/htdocs/admin/newsletter_pattecassee.php b/htdocs/admin/newsletter_pattecassee.php index c253588..43453aa 100644 --- a/htdocs/admin/newsletter_pattecassee.php +++ b/htdocs/admin/newsletter_pattecassee.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: newsletter_pattecassee.php,v 1.7 2004-11-22 11:15:31 x2000habouzit Exp $ + $Id: newsletter_pattecassee.php,v 1.8 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_admin_page('admin/newsletter_pattecassee.tpl'); function valide_email($str) { @@ -36,7 +36,7 @@ function valide_email($str) { } -require("xorg.mailer.inc.php"); +require_once("xorg.mailer.inc.php"); if (array_key_exists('email', $_GET) && array_key_exists('action', $_GET)) { $email = valide_email($_GET['email']); diff --git a/htdocs/admin/postfix_blacklist.php b/htdocs/admin/postfix_blacklist.php index f2bbc8c..bf52712 100644 --- a/htdocs/admin/postfix_blacklist.php +++ b/htdocs/admin/postfix_blacklist.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: postfix_blacklist.php,v 1.8 2004-11-22 11:15:31 x2000habouzit Exp $ + $Id: postfix_blacklist.php,v 1.9 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require('xorg.inc.php'); +require_once('xorg.inc.php'); new_admin_table_editor('postfix_blacklist','email',true); $editor->assign('title', 'Blacklist de postfix'); diff --git a/htdocs/admin/postfix_delayed.php b/htdocs/admin/postfix_delayed.php index 534afa1..832f249 100644 --- a/htdocs/admin/postfix_delayed.php +++ b/htdocs/admin/postfix_delayed.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: postfix_delayed.php,v 1.2 2004-11-22 11:15:31 x2000habouzit Exp $ + $Id: postfix_delayed.php,v 1.3 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require('xorg.inc.php'); +require_once('xorg.inc.php'); new_admin_page('admin/postfix_delayed.tpl'); diff --git a/htdocs/admin/postfix_whitelist.php b/htdocs/admin/postfix_whitelist.php index f027f47..994e347 100644 --- a/htdocs/admin/postfix_whitelist.php +++ b/htdocs/admin/postfix_whitelist.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: postfix_whitelist.php,v 1.2 2004-11-22 11:15:31 x2000habouzit Exp $ + $Id: postfix_whitelist.php,v 1.3 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require('xorg.inc.php'); +require_once('xorg.inc.php'); new_admin_table_editor('postfix_whitelist','email',true); $editor->assign('title', 'Whitelist de postfix'); diff --git a/htdocs/admin/utilisateurs.php b/htdocs/admin/utilisateurs.php index ad88150..72c2a04 100644 --- a/htdocs/admin/utilisateurs.php +++ b/htdocs/admin/utilisateurs.php @@ -18,12 +18,12 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: utilisateurs.php,v 1.32 2004-11-22 11:15:31 x2000habouzit Exp $ + $Id: utilisateurs.php,v 1.33 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_admin_page('admin/utilisateurs.tpl'); -require("email.classes.inc.php"); +require_once("email.classes.inc.php"); /* * LOGS de l'utilisateur diff --git a/htdocs/admin/valider.php b/htdocs/admin/valider.php index a354d2b..e1067fe 100644 --- a/htdocs/admin/valider.php +++ b/htdocs/admin/valider.php @@ -18,11 +18,11 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: valider.php,v 1.5 2004-11-22 11:15:31 x2000habouzit Exp $ + $Id: valider.php,v 1.6 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); -require("validations.inc.php"); +require_once("xorg.inc.php"); +require_once("validations.inc.php"); new_admin_page('admin/valider.tpl'); if(isset($_REQUEST["uid"]) and isset($_REQUEST["type"]) diff --git a/htdocs/advanced_search.php b/htdocs/advanced_search.php index 8033291..fa6c0be 100644 --- a/htdocs/advanced_search.php +++ b/htdocs/advanced_search.php @@ -18,11 +18,11 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: advanced_search.php,v 1.32 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: advanced_search.php,v 1.33 2004-11-22 20:04:35 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); -require("search.classes.inc.php"); +require_once("xorg.inc.php"); +require_once("search.classes.inc.php"); new_skinned_page('search.tpl', AUTH_COOKIE); $page->assign('advanced',1); $page->assign('public_directory',0); diff --git a/htdocs/alias.php b/htdocs/alias.php index e866c21..64dbb46 100644 --- a/htdocs/alias.php +++ b/htdocs/alias.php @@ -18,11 +18,11 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: alias.php,v 1.9 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: alias.php,v 1.10 2004-11-22 20:04:35 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); -require("validations.inc.php"); +require_once("xorg.inc.php"); +require_once("validations.inc.php"); new_skinned_page('alias.tpl', AUTH_MDP); diff --git a/htdocs/antispam.php b/htdocs/antispam.php index d6e2784..7b3339e 100644 --- a/htdocs/antispam.php +++ b/htdocs/antispam.php @@ -18,12 +18,12 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: antispam.php,v 1.11 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: antispam.php,v 1.12 2004-11-22 20:04:35 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('antispam.tpl', AUTH_MDP); -require("email.classes.inc.php"); +require_once("email.classes.inc.php"); $bogo = new Bogo($_SESSION['uid']); diff --git a/htdocs/auth-groupex.php b/htdocs/auth-groupex.php index 0beab1c..2603a98 100644 --- a/htdocs/auth-groupex.php +++ b/htdocs/auth-groupex.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: auth-groupex.php,v 1.9 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: auth-groupex.php,v 1.10 2004-11-22 20:04:35 x2000habouzit Exp $ ***************************************************************************/ $gpex_pass = $_GET["pass"]; @@ -33,7 +33,7 @@ if (!preg_match("/^(http|https):\/\/.*/",$gpex_url)) $gpex_url = "http://$gpex_url"; $gpex_challenge = $_GET["challenge"]; -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('index.tpl',AUTH_COOKIE); // mise à jour de l'heure et de la machine de dernier login sauf quand on est en suid diff --git a/htdocs/auth-redirect.php b/htdocs/auth-redirect.php index 3367e1a..583edd9 100644 --- a/htdocs/auth-redirect.php +++ b/htdocs/auth-redirect.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: auth-redirect.php,v 1.3 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: auth-redirect.php,v 1.4 2004-11-22 20:04:35 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('index.tpl',AUTH_COOKIE); //adresse de redirection par defaut diff --git a/htdocs/banana/article.php b/htdocs/banana/article.php index b6320a4..449ede7 100644 --- a/htdocs/banana/article.php +++ b/htdocs/banana/article.php @@ -7,10 +7,10 @@ * Copyright: See COPYING files that comes with this distribution ********************************************************************************/ -require('xorg.inc.php'); +require_once('xorg.inc.php'); new_skinned_page('banana.tpl', AUTH_COOKIE, 'banana.head.tpl'); $page->caching = false; -require('hack.inc.php'); +require_once('hack.inc.php'); $page->register_function('banana', 'banana', false); diff --git a/htdocs/banana/disconnect.php b/htdocs/banana/disconnect.php index b6320a4..449ede7 100644 --- a/htdocs/banana/disconnect.php +++ b/htdocs/banana/disconnect.php @@ -7,10 +7,10 @@ * Copyright: See COPYING files that comes with this distribution ********************************************************************************/ -require('xorg.inc.php'); +require_once('xorg.inc.php'); new_skinned_page('banana.tpl', AUTH_COOKIE, 'banana.head.tpl'); $page->caching = false; -require('hack.inc.php'); +require_once('hack.inc.php'); $page->register_function('banana', 'banana', false); diff --git a/htdocs/banana/include/hack.inc.php b/htdocs/banana/include/hack.inc.php index f0bebaa..0617837 100644 --- a/htdocs/banana/include/hack.inc.php +++ b/htdocs/banana/include/hack.inc.php @@ -8,7 +8,7 @@ function banana($params) { $sname = array_pop($array); unset($array); - include("../../../banana/$sname"); + require_once("../../../banana/$sname"); } ?> diff --git a/htdocs/banana/index.php b/htdocs/banana/index.php index b6320a4..449ede7 100644 --- a/htdocs/banana/index.php +++ b/htdocs/banana/index.php @@ -7,10 +7,10 @@ * Copyright: See COPYING files that comes with this distribution ********************************************************************************/ -require('xorg.inc.php'); +require_once('xorg.inc.php'); new_skinned_page('banana.tpl', AUTH_COOKIE, 'banana.head.tpl'); $page->caching = false; -require('hack.inc.php'); +require_once('hack.inc.php'); $page->register_function('banana', 'banana', false); diff --git a/htdocs/banana/post.php b/htdocs/banana/post.php index b6320a4..449ede7 100644 --- a/htdocs/banana/post.php +++ b/htdocs/banana/post.php @@ -7,10 +7,10 @@ * Copyright: See COPYING files that comes with this distribution ********************************************************************************/ -require('xorg.inc.php'); +require_once('xorg.inc.php'); new_skinned_page('banana.tpl', AUTH_COOKIE, 'banana.head.tpl'); $page->caching = false; -require('hack.inc.php'); +require_once('hack.inc.php'); $page->register_function('banana', 'banana', false); diff --git a/htdocs/banana/scripts/spoolgen.php b/htdocs/banana/scripts/spoolgen.php index 996aee0..820ab7d 100755 --- a/htdocs/banana/scripts/spoolgen.php +++ b/htdocs/banana/scripts/spoolgen.php @@ -10,13 +10,13 @@ ini_set('max_execution_time','300'); ini_set('include_path', '..:../include:../../include:../../../include'); -require("include/encoding.inc.php"); -require("include/config.inc.php"); -require("include/NetNNTP.inc.php"); -include("include/post.inc.php"); -include("include/groups.inc.php"); -require("include/spool.inc.php"); -require("include/password.inc.php"); +require_once("include/encoding.inc.php"); +require_once("include/config.inc.php"); +require_once("include/NetNNTP.inc.php"); +require_once("include/post.inc.php"); +require_once("include/groups.inc.php"); +require_once("include/spool.inc.php"); +require_once("include/password.inc.php"); $nntp = new nntp($news['server']); diff --git a/htdocs/banana/subscribe.php b/htdocs/banana/subscribe.php index b6320a4..449ede7 100644 --- a/htdocs/banana/subscribe.php +++ b/htdocs/banana/subscribe.php @@ -7,10 +7,10 @@ * Copyright: See COPYING files that comes with this distribution ********************************************************************************/ -require('xorg.inc.php'); +require_once('xorg.inc.php'); new_skinned_page('banana.tpl', AUTH_COOKIE, 'banana.head.tpl'); $page->caching = false; -require('hack.inc.php'); +require_once('hack.inc.php'); $page->register_function('banana', 'banana', false); diff --git a/htdocs/banana/thread.php b/htdocs/banana/thread.php index b6320a4..449ede7 100644 --- a/htdocs/banana/thread.php +++ b/htdocs/banana/thread.php @@ -7,10 +7,10 @@ * Copyright: See COPYING files that comes with this distribution ********************************************************************************/ -require('xorg.inc.php'); +require_once('xorg.inc.php'); new_skinned_page('banana.tpl', AUTH_COOKIE, 'banana.head.tpl'); $page->caching = false; -require('hack.inc.php'); +require_once('hack.inc.php'); $page->register_function('banana', 'banana', false); diff --git a/htdocs/carnet/index.php b/htdocs/carnet/index.php index b7a6d4a..eb98b1d 100644 --- a/htdocs/carnet/index.php +++ b/htdocs/carnet/index.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: index.php,v 1.2 2004-11-22 11:15:31 x2000habouzit Exp $ + $Id: index.php,v 1.3 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('carnet/index.tpl', AUTH_COOKIE); $page->run(); diff --git a/htdocs/carnet/mescontacts.php b/htdocs/carnet/mescontacts.php index fea77d1..7b0a313 100644 --- a/htdocs/carnet/mescontacts.php +++ b/htdocs/carnet/mescontacts.php @@ -18,12 +18,12 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: mescontacts.php,v 1.5 2004-11-22 17:28:14 x2000habouzit Exp $ + $Id: mescontacts.php,v 1.6 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page("carnet/mescontacts.tpl",AUTH_COOKIE); -require("applis.func.inc.php"); +require_once("applis.func.inc.php"); // si l'utilisateur demande le retrait de qqun de sa liste if (isset($_REQUEST['action'])) { diff --git a/htdocs/carnet/mescontacts_pdf.php b/htdocs/carnet/mescontacts_pdf.php index 388669b..c7e6437 100644 --- a/htdocs/carnet/mescontacts_pdf.php +++ b/htdocs/carnet/mescontacts_pdf.php @@ -18,17 +18,17 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: mescontacts_pdf.php,v 1.3 2004-11-22 11:15:31 x2000habouzit Exp $ + $Id: mescontacts_pdf.php,v 1.4 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ # -# $Id: mescontacts_pdf.php,v 1.3 2004-11-22 11:15:31 x2000habouzit Exp $ +# $Id: mescontacts_pdf.php,v 1.4 2004-11-22 20:04:38 x2000habouzit Exp $ # -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('index.tpl', AUTH_COOKIE); -require("texify.inc.php"); -require("applis.func.inc.php"); +require_once("texify.inc.php"); +require_once("applis.func.inc.php"); $sql = "SELECT a.*,c.*,e.alias as epouse FROM auth_user_md5 AS a diff --git a/htdocs/carnet/notifs.php b/htdocs/carnet/notifs.php index e793d66..167c174 100644 --- a/htdocs/carnet/notifs.php +++ b/htdocs/carnet/notifs.php @@ -18,12 +18,12 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: notifs.php,v 1.8 2004-11-22 11:15:31 x2000habouzit Exp $ + $Id: notifs.php,v 1.9 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('carnet/notifs.tpl', AUTH_COOKIE); -require('notifs.inc.php'); +require_once('notifs.inc.php'); $watch = new Watch($_SESSION['uid']); diff --git a/htdocs/carnet/panel.php b/htdocs/carnet/panel.php index 552d485..be544b4 100644 --- a/htdocs/carnet/panel.php +++ b/htdocs/carnet/panel.php @@ -18,12 +18,12 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: panel.php,v 1.4 2004-11-22 11:15:31 x2000habouzit Exp $ + $Id: panel.php,v 1.5 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('carnet/panel.tpl', AUTH_COOKIE); -require('notifs.inc.php'); +require_once('notifs.inc.php'); if(isset($_GET['read'])) { $_SESSION['watch_last'] = $_GET['read']; diff --git a/htdocs/clear_all_cache.php b/htdocs/clear_all_cache.php index 800ab0f..537966d 100644 --- a/htdocs/clear_all_cache.php +++ b/htdocs/clear_all_cache.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: clear_all_cache.php,v 1.7 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: clear_all_cache.php,v 1.8 2004-11-22 20:04:35 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_admin_page('index.tpl'); $page->clear_all_cache(); $page->clear_compiled_tpl(); diff --git a/htdocs/confbanana.php b/htdocs/confbanana.php index cfabe6f..a8e84e0 100644 --- a/htdocs/confbanana.php +++ b/htdocs/confbanana.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: confbanana.php,v 1.2 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: confbanana.php,v 1.3 2004-11-22 20:04:35 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('confbanana.tpl', AUTH_MDP); if (!(isset($_POST["action"]) && isset($_POST["banananame"]) && diff --git a/htdocs/cookie_off.php b/htdocs/cookie_off.php index dc079b1..022127f 100644 --- a/htdocs/cookie_off.php +++ b/htdocs/cookie_off.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: cookie_off.php,v 1.5 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: cookie_off.php,v 1.6 2004-11-22 20:04:35 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('index.tpl', AUTH_COOKIE); setcookie('ORGaccess','',(time()+1),'/','',0); diff --git a/htdocs/cookie_on.php b/htdocs/cookie_on.php index 8e20723..0724db5 100644 --- a/htdocs/cookie_on.php +++ b/htdocs/cookie_on.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: cookie_on.php,v 1.5 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: cookie_on.php,v 1.6 2004-11-22 20:04:35 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('cookie_on.tpl', AUTH_MDP); $res = @$globals->db->query( "SELECT password FROM auth_user_md5 WHERE user_id='{$_SESSION['uid']}'" ); diff --git a/htdocs/deconnexion.php b/htdocs/deconnexion.php index fd3c5b6..10ecd7f 100644 --- a/htdocs/deconnexion.php +++ b/htdocs/deconnexion.php @@ -18,12 +18,12 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: deconnexion.php,v 1.7 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: deconnexion.php,v 1.8 2004-11-22 20:04:35 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); -if (isset($_SESSION['suid'])) { require('./exit.php'); } +if (isset($_SESSION['suid'])) { require_once('./exit.php'); } if (isset($_SESSION['log'])) { if (isset($_SERVER['HTTP_REFERER'])) diff --git a/htdocs/docs/apropos.php b/htdocs/docs/apropos.php index 0422da8..01c5dd3 100644 --- a/htdocs/docs/apropos.php +++ b/htdocs/docs/apropos.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: apropos.php,v 1.4 2004-11-22 11:15:32 x2000habouzit Exp $ + $Id: apropos.php,v 1.5 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('docs/apropos.tpl', AUTH_PUBLIC); $page->run(); diff --git a/htdocs/docs/charte.php b/htdocs/docs/charte.php index 5dc5761..b314f46 100644 --- a/htdocs/docs/charte.php +++ b/htdocs/docs/charte.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: charte.php,v 1.4 2004-11-22 11:15:32 x2000habouzit Exp $ + $Id: charte.php,v 1.5 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('docs/charte.tpl',AUTH_PUBLIC); $page->run(); ?> diff --git a/htdocs/docs/contacts.php b/htdocs/docs/contacts.php index f0ed2a0..fe13d2a 100644 --- a/htdocs/docs/contacts.php +++ b/htdocs/docs/contacts.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: contacts.php,v 1.4 2004-11-22 11:15:32 x2000habouzit Exp $ + $Id: contacts.php,v 1.5 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page("docs/contacts.tpl",AUTH_PUBLIC); $page->run(isset($_REQUEST['topic']) ? $_REQUEST['topic'] : ''); ?> diff --git a/htdocs/docs/convention_ax.php b/htdocs/docs/convention_ax.php index 060f5c2..106568c 100644 --- a/htdocs/docs/convention_ax.php +++ b/htdocs/docs/convention_ax.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: convention_ax.php,v 1.3 2004-11-22 11:15:32 x2000habouzit Exp $ + $Id: convention_ax.php,v 1.4 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('docs/convention_ax.tpl', AUTH_PUBLIC); $page->run(); diff --git a/htdocs/docs/doc_carva.php b/htdocs/docs/doc_carva.php index 7407a0f..b0f618f 100644 --- a/htdocs/docs/doc_carva.php +++ b/htdocs/docs/doc_carva.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: doc_carva.php,v 1.5 2004-11-22 11:15:32 x2000habouzit Exp $ + $Id: doc_carva.php,v 1.6 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page("docs/doc_carva.tpl",AUTH_COOKIE); $page->run(isset($_SESSION['alias']) ? 'alias' : ''); ?> diff --git a/htdocs/docs/doc_emails.php b/htdocs/docs/doc_emails.php index 68b2f65..b95b95f 100644 --- a/htdocs/docs/doc_emails.php +++ b/htdocs/docs/doc_emails.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: doc_emails.php,v 1.5 2004-11-22 11:15:32 x2000habouzit Exp $ + $Id: doc_emails.php,v 1.6 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page("docs/doc_emails.tpl",AUTH_COOKIE); $page->run(); ?> diff --git a/htdocs/docs/doc_forums.php b/htdocs/docs/doc_forums.php index 108e41f..e90c4c7 100644 --- a/htdocs/docs/doc_forums.php +++ b/htdocs/docs/doc_forums.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: doc_forums.php,v 1.4 2004-11-22 11:15:32 x2000habouzit Exp $ + $Id: doc_forums.php,v 1.5 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page("docs/doc_forums.tpl",AUTH_COOKIE); $page->run(); ?> diff --git a/htdocs/docs/doc_from.php b/htdocs/docs/doc_from.php index abaca87..e7477c3 100644 --- a/htdocs/docs/doc_from.php +++ b/htdocs/docs/doc_from.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: doc_from.php,v 1.3 2004-11-22 11:15:32 x2000habouzit Exp $ + $Id: doc_from.php,v 1.4 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page("docs/doc_from.tpl",AUTH_COOKIE); $page->run(); ?> diff --git a/htdocs/docs/doc_gratuits.php b/htdocs/docs/doc_gratuits.php index 5bd36f4..6170eae 100644 --- a/htdocs/docs/doc_gratuits.php +++ b/htdocs/docs/doc_gratuits.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: doc_gratuits.php,v 1.5 2004-11-22 11:15:32 x2000habouzit Exp $ + $Id: doc_gratuits.php,v 1.6 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page("docs/doc_gratuits.tpl",AUTH_PUBLIC); $page->run(); ?> diff --git a/htdocs/docs/doc_melix.php b/htdocs/docs/doc_melix.php index e25c2ca..52b7930 100644 --- a/htdocs/docs/doc_melix.php +++ b/htdocs/docs/doc_melix.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: doc_melix.php,v 1.4 2004-11-22 11:15:32 x2000habouzit Exp $ + $Id: doc_melix.php,v 1.5 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page("docs/doc_melix.tpl",AUTH_PUBLIC); $page->run(); ?> diff --git a/htdocs/docs/doc_nn.php b/htdocs/docs/doc_nn.php index 22b0bfc..eab1b61 100644 --- a/htdocs/docs/doc_nn.php +++ b/htdocs/docs/doc_nn.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: doc_nn.php,v 1.5 2004-11-22 11:15:32 x2000habouzit Exp $ + $Id: doc_nn.php,v 1.6 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page("docs/doc_nn.tpl",AUTH_PUBLIC); $page->run(isset($_GET['doc']) ? $_GET['doc'] : ""); ?> diff --git a/htdocs/docs/doc_nntp.php b/htdocs/docs/doc_nntp.php index 07d0920..1dfb52b 100644 --- a/htdocs/docs/doc_nntp.php +++ b/htdocs/docs/doc_nntp.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: doc_nntp.php,v 1.4 2004-11-22 11:15:32 x2000habouzit Exp $ + $Id: doc_nntp.php,v 1.5 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page("docs/doc_nntp.tpl",AUTH_PUBLIC); $page->run(); ?> diff --git a/htdocs/docs/doc_oe.php b/htdocs/docs/doc_oe.php index ff4c25a..db33667 100644 --- a/htdocs/docs/doc_oe.php +++ b/htdocs/docs/doc_oe.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: doc_oe.php,v 1.5 2004-11-22 11:15:32 x2000habouzit Exp $ + $Id: doc_oe.php,v 1.6 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page("docs/doc_oe.tpl",AUTH_PUBLIC); $page->run(isset($_GET['doc']) ? $_GET['doc'] : ""); ?> diff --git a/htdocs/docs/doc_patte_cassee.php b/htdocs/docs/doc_patte_cassee.php index b7dde30..8e22d88 100644 --- a/htdocs/docs/doc_patte_cassee.php +++ b/htdocs/docs/doc_patte_cassee.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: doc_patte_cassee.php,v 1.4 2004-11-22 11:15:32 x2000habouzit Exp $ + $Id: doc_patte_cassee.php,v 1.5 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page("docs/doc_patte_cassee.tpl",AUTH_PUBLIC); $page->run(); ?> diff --git a/htdocs/docs/doc_smtp.php b/htdocs/docs/doc_smtp.php index f268529..f0aded8 100644 --- a/htdocs/docs/doc_smtp.php +++ b/htdocs/docs/doc_smtp.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: doc_smtp.php,v 1.4 2004-11-22 11:15:32 x2000habouzit Exp $ + $Id: doc_smtp.php,v 1.5 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page("docs/doc_smtp.tpl",AUTH_PUBLIC); $page->run(); ?> diff --git a/htdocs/docs/doc_ssl.php b/htdocs/docs/doc_ssl.php index 344359b..e630ad4 100644 --- a/htdocs/docs/doc_ssl.php +++ b/htdocs/docs/doc_ssl.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: doc_ssl.php,v 1.4 2004-11-22 11:15:32 x2000habouzit Exp $ + $Id: doc_ssl.php,v 1.5 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page("docs/doc_ssl.tpl",AUTH_PUBLIC); $page->run(); ?> diff --git a/htdocs/docs/en-cours.php b/htdocs/docs/en-cours.php index c7b2ecf..9e26e84 100644 --- a/htdocs/docs/en-cours.php +++ b/htdocs/docs/en-cours.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: en-cours.php,v 1.3 2004-11-22 11:15:32 x2000habouzit Exp $ + $Id: en-cours.php,v 1.4 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('docs/en-cours.tpl',AUTH_PUBLIC); $page->run(); ?> diff --git a/htdocs/docs/ethique.php b/htdocs/docs/ethique.php index dae3fd7..8ec4ee5 100644 --- a/htdocs/docs/ethique.php +++ b/htdocs/docs/ethique.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: ethique.php,v 1.4 2004-11-22 11:15:32 x2000habouzit Exp $ + $Id: ethique.php,v 1.5 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('docs/ethique.tpl',AUTH_PUBLIC); $page->run(); ?> diff --git a/htdocs/docs/faq.php b/htdocs/docs/faq.php index 951882d..4255fed 100644 --- a/htdocs/docs/faq.php +++ b/htdocs/docs/faq.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: faq.php,v 1.5 2004-11-22 11:15:32 x2000habouzit Exp $ + $Id: faq.php,v 1.6 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('docs/faq.tpl',AUTH_PUBLIC); $page->run(); ?> diff --git a/htdocs/docs/index.php b/htdocs/docs/index.php index 2c4ffed..6c25b13 100644 --- a/htdocs/docs/index.php +++ b/htdocs/docs/index.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: index.php,v 1.6 2004-11-22 11:15:32 x2000habouzit Exp $ + $Id: index.php,v 1.7 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('docs/index.tpl',AUTH_PUBLIC); $page->run(); ?> diff --git a/htdocs/docs/plan.php b/htdocs/docs/plan.php index f876298..c2be437 100644 --- a/htdocs/docs/plan.php +++ b/htdocs/docs/plan.php @@ -18,11 +18,11 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: plan.php,v 1.4 2004-11-22 11:15:32 x2000habouzit Exp $ + $Id: plan.php,v 1.5 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('docs/plan.tpl',AUTH_PUBLIC); diff --git a/htdocs/docs/secu.php b/htdocs/docs/secu.php index fc56921..89205de 100644 --- a/htdocs/docs/secu.php +++ b/htdocs/docs/secu.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: secu.php,v 1.4 2004-11-22 11:15:32 x2000habouzit Exp $ + $Id: secu.php,v 1.5 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('docs/secu.tpl',AUTH_PUBLIC); $page->run(); ?> diff --git a/htdocs/docs/services.php b/htdocs/docs/services.php index 7ecf518..9931889 100644 --- a/htdocs/docs/services.php +++ b/htdocs/docs/services.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: services.php,v 1.4 2004-11-22 11:15:32 x2000habouzit Exp $ + $Id: services.php,v 1.5 2004-11-22 20:04:38 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('docs/services.tpl', AUTH_PUBLIC); $page->run(); diff --git a/htdocs/dons.php b/htdocs/dons.php index 2dd178d..01cefbf 100644 --- a/htdocs/dons.php +++ b/htdocs/dons.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: dons.php,v 1.4 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: dons.php,v 1.5 2004-11-22 20:04:35 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('dons.tpl', AUTH_COOKIE); $page->run(); ?> diff --git a/htdocs/emails.php b/htdocs/emails.php index 7257e12..dc0a6b9 100644 --- a/htdocs/emails.php +++ b/htdocs/emails.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: emails.php,v 1.12 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: emails.php,v 1.13 2004-11-22 20:04:35 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('emails.tpl',AUTH_COOKIE); if(isset($_POST['best'])) { diff --git a/htdocs/epouse.php b/htdocs/epouse.php index 91f3724..3581de9 100644 --- a/htdocs/epouse.php +++ b/htdocs/epouse.php @@ -18,12 +18,12 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: epouse.php,v 1.11 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: epouse.php,v 1.12 2004-11-22 20:04:35 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); -require("validations.inc.php"); -require("xorg.misc.inc.php"); +require_once("xorg.inc.php"); +require_once("validations.inc.php"); +require_once("xorg.misc.inc.php"); new_skinned_page('epouse.tpl', AUTH_MDP); diff --git a/htdocs/evenements.php b/htdocs/evenements.php index d9073db..2aca719 100644 --- a/htdocs/evenements.php +++ b/htdocs/evenements.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: evenements.php,v 1.3 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: evenements.php,v 1.4 2004-11-22 20:04:35 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('evenements.tpl', AUTH_MDP); if (isset($_POST['titre'])) {$titre = stripslashes($_POST['titre']);} @@ -63,7 +63,7 @@ if ($action=="Confirmer") { .", validation_date = 0"; if ($res = $globals->db->query($sql)) { - require("validations.inc.php"); + require_once("validations.inc.php"); $evtreq = new evtreq(mysql_insert_id(),$titre,$texte,$promo_min, $promo_max,$peremption,$validation_message,$_SESSION['uid']); $evtreq->submit(); diff --git a/htdocs/fiche.php b/htdocs/fiche.php index 3a5b746..47a64a4 100644 --- a/htdocs/fiche.php +++ b/htdocs/fiche.php @@ -18,11 +18,11 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: fiche.php,v 1.25 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: fiche.php,v 1.26 2004-11-22 20:04:35 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_simple_page('fiche.tpl',AUTH_COOKIE); require_once('applis.func.inc.php'); diff --git a/htdocs/fiche_referent.php b/htdocs/fiche_referent.php index 99a4538..1c65c39 100644 --- a/htdocs/fiche_referent.php +++ b/htdocs/fiche_referent.php @@ -18,11 +18,11 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: fiche_referent.php,v 1.12 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: fiche_referent.php,v 1.13 2004-11-22 20:04:35 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_simple_page('fiche_referent.tpl',AUTH_COOKIE); //$isnetscape = !empty($_SESSION['skin_compatible']); diff --git a/htdocs/getphoto.php b/htdocs/getphoto.php index c626a5c..43613e1 100644 --- a/htdocs/getphoto.php +++ b/htdocs/getphoto.php @@ -18,15 +18,15 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: getphoto.php,v 1.7 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: getphoto.php,v 1.8 2004-11-22 20:04:35 x2000habouzit Exp $ ***************************************************************************/ -require('xorg.inc.php'); +require_once('xorg.inc.php'); new_skinned_page('login.tpl', AUTH_COOKIE); -//require("db_connect.inc.php"); -//require("controlpermanent.inc.php"); +//require_once("db_connect.inc.php"); +//require_once("controlpermanent.inc.php"); //require_once("appel.inc.php"); //require_once("validations.inc.php"); diff --git a/htdocs/index.php b/htdocs/index.php index 960d644..d10953c 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: index.php,v 1.6 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: index.php,v 1.7 2004-11-22 20:04:35 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('index.tpl', AUTH_PUBLIC); if(logged()) header("Location: login.php"); diff --git a/htdocs/inscription/index.php b/htdocs/inscription/index.php index 494d037..9a20cfd 100644 --- a/htdocs/inscription/index.php +++ b/htdocs/inscription/index.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: index.php,v 1.3 2004-11-22 11:15:35 x2000habouzit Exp $ + $Id: index.php,v 1.4 2004-11-22 20:04:41 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('inscription/index.tpl', AUTH_PUBLIC); $page->run(); diff --git a/htdocs/inscription/maj.php b/htdocs/inscription/maj.php index b4b9861..d6793e5 100644 --- a/htdocs/inscription/maj.php +++ b/htdocs/inscription/maj.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: maj.php,v 1.4 2004-11-22 11:15:35 x2000habouzit Exp $ + $Id: maj.php,v 1.5 2004-11-22 20:04:41 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); if (isset($_REQUEST['n'])) { $sql = "SELECT * FROM envoidirect WHERE uid='".$_REQUEST["n"]."'"; @@ -52,8 +52,8 @@ if (isset($ligne) && $ligne) { $_REQUEST['email'] = $ligne['email']; new_skinned_page('inscription/step2.tpl', AUTH_PUBLIC); - require("identification.inc.php"); - require("applis.func.inc.php"); + require_once("identification.inc.php"); + require_once("applis.func.inc.php"); $page->assign('homonyme', $homonyme); $page->assign('forlife', $forlife); diff --git a/htdocs/inscription/step1.php b/htdocs/inscription/step1.php index 69bdc94..7f5f89c 100644 --- a/htdocs/inscription/step1.php +++ b/htdocs/inscription/step1.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: step1.php,v 1.3 2004-11-22 11:15:35 x2000habouzit Exp $ + $Id: step1.php,v 1.4 2004-11-22 20:04:41 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); $erreur = Array(); diff --git a/htdocs/inscription/step2.php b/htdocs/inscription/step2.php index 4ce5e00..e5e578e 100644 --- a/htdocs/inscription/step2.php +++ b/htdocs/inscription/step2.php @@ -18,15 +18,15 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: step2.php,v 1.3 2004-11-22 11:15:35 x2000habouzit Exp $ + $Id: step2.php,v 1.4 2004-11-22 20:04:41 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); -require("identification.inc.php"); +require_once("xorg.inc.php"); +require_once("identification.inc.php"); new_skinned_page('inscription/step2.tpl', AUTH_PUBLIC); -require("applis.func.inc.php"); +require_once("applis.func.inc.php"); $page->assign('homonyme', $homonyme); $page->assign('forlife', $forlife); diff --git a/htdocs/inscription/step3.php b/htdocs/inscription/step3.php index acf0b89..e72719a 100644 --- a/htdocs/inscription/step3.php +++ b/htdocs/inscription/step3.php @@ -18,14 +18,14 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: step3.php,v 1.6 2004-11-22 11:15:35 x2000habouzit Exp $ + $Id: step3.php,v 1.7 2004-11-22 20:04:41 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); $erreur = Array(); -require("identification.inc.php"); +require_once("identification.inc.php"); if(!isvalid_email($_REQUEST["email"])) $erreur[] = "Le champ 'E-mail' n'est pas valide."; @@ -36,7 +36,7 @@ if (!ereg("[0-3][0-9][0-1][0-9][1][9]([0-9]{2})", $_REQUEST["naissance"])) if(!empty($erreur)) { new_skinned_page('inscription/step2.tpl', AUTH_PUBLIC); - require("applis.func.inc.php"); + require_once("applis.func.inc.php"); $page->assign('homonyme', $homonyme); $page->assign('loginbis', isset($loginbis) ? $loginbis : ''); $page->assign('mailorg', $mailorg); @@ -73,7 +73,7 @@ $globals->db->query("UPDATE auth_user_md5 SET last_known_email='{$_REQUEST['emai if(isset($_REQUEST['envoidirect'])) $globals->db->query("UPDATE envoidirect SET date_succes=NOW() WHERE uid='{$_REQUEST['envoidirect']}'"); -require("xorg.mailer.inc.php"); +require_once("xorg.mailer.inc.php"); $mymail = new XOrgMailer('inscrire.mail.tpl'); $mymail->assign('forlife',$forlife); $mymail->assign('lemail',$_REQUEST['email']); diff --git a/htdocs/inscription/step4.php b/htdocs/inscription/step4.php index 46efd72..80d4d6a 100644 --- a/htdocs/inscription/step4.php +++ b/htdocs/inscription/step4.php @@ -18,14 +18,14 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: step4.php,v 1.18 2004-11-22 11:15:35 x2000habouzit Exp $ + $Id: step4.php,v 1.19 2004-11-22 20:04:41 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('inscription/step4.tpl', AUTH_PUBLIC); -require("user.func.inc.php"); -require('xorg.mailer.inc.php'); +require_once("user.func.inc.php"); +require_once('xorg.mailer.inc.php'); define("ERROR_REF", 1); define("ERROR_ALREADY_SUBSCRIBED", 2); @@ -90,7 +90,7 @@ if (!empty($_REQUEST['ref'])) { $logger->log("inscription",$email); /****************** insertion de l'email dans la table emails + bogofilter ***/ - require("email.classes.inc.php"); + require_once("email.classes.inc.php"); $redirect = new Redirect($uid); $redirect->add_email($email); fix_bestalias($uid); diff --git a/htdocs/listes/admin.php b/htdocs/listes/admin.php index daa11eb..1054188 100644 --- a/htdocs/listes/admin.php +++ b/htdocs/listes/admin.php @@ -18,15 +18,15 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: admin.php,v 1.13 2004-11-22 11:15:39 x2000habouzit Exp $ + $Id: admin.php,v 1.14 2004-11-22 20:04:44 x2000habouzit Exp $ ***************************************************************************/ if(empty($_REQUEST['liste'])) header('Location: index.php'); $liste = strtolower($_REQUEST['liste']); -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('listes/admin.tpl', AUTH_MDP); -include('xml-rpc-client.inc.php'); +require_once('xml-rpc-client.inc.php'); $err = Array(); diff --git a/htdocs/listes/check.php b/htdocs/listes/check.php index 6b2e731..34620b8 100644 --- a/htdocs/listes/check.php +++ b/htdocs/listes/check.php @@ -18,15 +18,15 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: check.php,v 1.7 2004-11-22 11:15:39 x2000habouzit Exp $ + $Id: check.php,v 1.8 2004-11-22 20:04:44 x2000habouzit Exp $ ***************************************************************************/ if(empty($_REQUEST['liste'])) header('Location: index.php'); $liste = strtolower($_REQUEST['liste']); -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_admin_page('listes/check.tpl'); -include('xml-rpc-client.inc.php'); +require_once('xml-rpc-client.inc.php'); $client = new xmlrpc_client("http://{$_SESSION['uid']}:{$_SESSION['password']}@localhost:4949/polytechnique.org"); diff --git a/htdocs/listes/create.php b/htdocs/listes/create.php index df45942..b157d39 100644 --- a/htdocs/listes/create.php +++ b/htdocs/listes/create.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: create.php,v 1.5 2004-11-22 11:15:39 x2000habouzit Exp $ + $Id: create.php,v 1.6 2004-11-22 20:04:44 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('listes/create.tpl', AUTH_MDP); $owners = empty($_POST['owners']) ? Array() : preg_split("/[\r\n]+/",$_POST['owners']); @@ -74,7 +74,7 @@ if(isset($_POST['submit'])) { if(!count($err)) { $page->assign('created', true); - require('validations.inc.php'); + require_once('validations.inc.php'); $req = new ListeReq($_SESSION['uid'], $_POST['liste'], $_POST['desc'], $_POST['advertise'], $_POST['modlevel'], $_POST['inslevel'], $owners, $members); diff --git a/htdocs/listes/index.php b/htdocs/listes/index.php index f0f3e28..aa7bba5 100644 --- a/htdocs/listes/index.php +++ b/htdocs/listes/index.php @@ -18,13 +18,13 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: index.php,v 1.12 2004-11-22 11:15:39 x2000habouzit Exp $ + $Id: index.php,v 1.13 2004-11-22 20:04:44 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('listes/index.tpl', AUTH_MDP); -include('xml-rpc-client.inc.php'); -include('newsletter.inc.php'); +require_once('xml-rpc-client.inc.php'); +require_once('newsletter.inc.php'); $client = new xmlrpc_client("http://{$_SESSION['uid']}:{$_SESSION['password']}@localhost:4949/polytechnique.org"); if(isset($_GET['del'])) { diff --git a/htdocs/listes/members.php b/htdocs/listes/members.php index 209c5c0..f846d55 100644 --- a/htdocs/listes/members.php +++ b/htdocs/listes/members.php @@ -18,15 +18,15 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: members.php,v 1.12 2004-11-22 11:15:39 x2000habouzit Exp $ + $Id: members.php,v 1.13 2004-11-22 20:04:44 x2000habouzit Exp $ ***************************************************************************/ if(empty($_REQUEST['liste'])) header('Location: index.php'); $liste = strtolower($_REQUEST['liste']); -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('listes/members.tpl', AUTH_COOKIE); -include('xml-rpc-client.inc.php'); +require_once('xml-rpc-client.inc.php'); $client = new xmlrpc_client("http://{$_SESSION['uid']}:{$_SESSION['password']}@localhost:4949/polytechnique.org"); $members = $client->get_members($liste); diff --git a/htdocs/listes/moderate.php b/htdocs/listes/moderate.php index ac4b6dc..9b08fc5 100644 --- a/htdocs/listes/moderate.php +++ b/htdocs/listes/moderate.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: moderate.php,v 1.21 2004-11-22 11:15:39 x2000habouzit Exp $ + $Id: moderate.php,v 1.22 2004-11-22 20:04:44 x2000habouzit Exp $ ***************************************************************************/ if(empty($_REQUEST['liste'])) header('Location: index.php'); @@ -28,9 +28,9 @@ if(preg_match('!(?:[a-z0-9]+\.)?polytechnique\.org-(.*)!', $liste,$matches)) { header('Location: ?liste='.$matches[1]); } -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('listes/moderate.tpl', AUTH_MDP); -include('xml-rpc-client.inc.php'); +require_once('xml-rpc-client.inc.php'); $client = new xmlrpc_client("http://{$_SESSION['uid']}:{$_SESSION['password']}@localhost:4949/polytechnique.org"); @@ -47,7 +47,7 @@ if(isset($_POST['sdel'])) { if(isset($_REQUEST['mid'])) { $mid = $_REQUEST['mid']; - include_once('diogenes.hernes.inc.php'); + require_once('diogenes.hernes.inc.php'); $mailer = new HermesMailer(); $mailer->addTo("$liste-owner@polytechnique.org"); $mailer->setFrom("$liste-bounces@polytechnique.org"); diff --git a/htdocs/listes/options.php b/htdocs/listes/options.php index fc363e0..178f06c 100644 --- a/htdocs/listes/options.php +++ b/htdocs/listes/options.php @@ -18,15 +18,15 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: options.php,v 1.9 2004-11-22 11:15:39 x2000habouzit Exp $ + $Id: options.php,v 1.10 2004-11-22 20:04:44 x2000habouzit Exp $ ***************************************************************************/ if(empty($_REQUEST['liste'])) header('Location: index.php'); $liste = strtolower($_REQUEST['liste']); -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('listes/options.tpl', AUTH_MDP); -include('xml-rpc-client.inc.php'); +require_once('xml-rpc-client.inc.php'); $client = new xmlrpc_client("http://{$_SESSION['uid']}:{$_SESSION['password']}@localhost:4949/polytechnique.org"); diff --git a/htdocs/listes/soptions.php b/htdocs/listes/soptions.php index 001aa27..445c62e 100644 --- a/htdocs/listes/soptions.php +++ b/htdocs/listes/soptions.php @@ -18,15 +18,15 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: soptions.php,v 1.8 2004-11-22 11:15:39 x2000habouzit Exp $ + $Id: soptions.php,v 1.9 2004-11-22 20:04:44 x2000habouzit Exp $ ***************************************************************************/ if(empty($_REQUEST['liste'])) header('Location: index.php'); $liste = strtolower($_REQUEST['liste']); -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_admin_page('listes/soptions.tpl'); -include('xml-rpc-client.inc.php'); +require_once('xml-rpc-client.inc.php'); $client = new xmlrpc_client("http://{$_SESSION['uid']}:{$_SESSION['password']}@localhost:4949/polytechnique.org"); diff --git a/htdocs/listes/trombi.php b/htdocs/listes/trombi.php index d1a0192..a299c69 100644 --- a/htdocs/listes/trombi.php +++ b/htdocs/listes/trombi.php @@ -18,16 +18,16 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: trombi.php,v 1.15 2004-11-22 11:15:39 x2000habouzit Exp $ + $Id: trombi.php,v 1.16 2004-11-22 20:04:44 x2000habouzit Exp $ ***************************************************************************/ if(empty($_REQUEST['liste'])) header('Location: index.php'); $liste = strtolower($_REQUEST['liste']); -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('listes/trombi.tpl', AUTH_COOKIE); -include('xml-rpc-client.inc.php'); -require("trombi.inc.php"); +require_once('xml-rpc-client.inc.php'); +require_once("trombi.inc.php"); $client = new xmlrpc_client("http://{$_SESSION['uid']}:{$_SESSION['password']}@localhost:4949/polytechnique.org"); diff --git a/htdocs/login.php b/htdocs/login.php index 96adefe..e3bf46e 100644 --- a/htdocs/login.php +++ b/htdocs/login.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: login.php,v 1.17 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: login.php,v 1.18 2004-11-22 20:04:35 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('login.tpl', AUTH_COOKIE); $param=$globals->db->query("SELECT date,naissance FROM auth_user_md5 WHERE user_id={$_SESSION['uid']};"); @@ -56,7 +56,7 @@ $res = $globals->db->query("SELECT id FROM newsletter ORDER BY date DESC"); list($nb) = mysql_fetch_row($res); mysql_free_result($res); -include('login.conf.php') ; +require_once('login.conf.php') ; $pub_nbElem = $pub_nbLig * $pub_nbCol ; if (count($pub_tjs) <= $pub_nbElem) $publicite = array_slice ($pub_tjs,0,$pub_nbElem) ; diff --git a/htdocs/marketing/envoidirect.php b/htdocs/marketing/envoidirect.php index bbafa68..3b607ca 100644 --- a/htdocs/marketing/envoidirect.php +++ b/htdocs/marketing/envoidirect.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: envoidirect.php,v 1.4 2004-11-22 11:15:45 x2000habouzit Exp $ + $Id: envoidirect.php,v 1.5 2004-11-22 20:04:50 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_admin_page('marketing/envoidirect.tpl'); // effacement des inscrits il y a plus de 8 jours diff --git a/htdocs/marketing/index.php b/htdocs/marketing/index.php index 357766f..27df2a3 100644 --- a/htdocs/marketing/index.php +++ b/htdocs/marketing/index.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: index.php,v 1.7 2004-11-22 17:28:14 x2000habouzit Exp $ + $Id: index.php,v 1.8 2004-11-22 20:04:50 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_admin_page('marketing/index.tpl'); # Quelques statistiques diff --git a/htdocs/marketing/ins_confirmees.php b/htdocs/marketing/ins_confirmees.php index f2cc3d7..2e84bcf 100644 --- a/htdocs/marketing/ins_confirmees.php +++ b/htdocs/marketing/ins_confirmees.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: ins_confirmees.php,v 1.7 2004-11-22 11:15:45 x2000habouzit Exp $ + $Id: ins_confirmees.php,v 1.8 2004-11-22 20:04:50 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_admin_page('marketing/ins_confirmees.tpl'); if (!isset($_GET["sort"]) || $_GET["sort"] != "promo") $_GET["sort"] = "date_ins"; diff --git a/htdocs/marketing/promo.php b/htdocs/marketing/promo.php index 7e1619e..8a29701 100644 --- a/htdocs/marketing/promo.php +++ b/htdocs/marketing/promo.php @@ -18,11 +18,11 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: promo.php,v 1.6 2004-11-22 17:28:14 x2000habouzit Exp $ + $Id: promo.php,v 1.7 2004-11-22 20:04:50 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_admin_page('marketing/promo.tpl'); $promo = (integer) (isset($_REQUEST["promo"]) ? $_REQUEST["promo"] : $_SESSION["promo"]); diff --git a/htdocs/marketing/public.php b/htdocs/marketing/public.php index 073541e..05134da 100644 --- a/htdocs/marketing/public.php +++ b/htdocs/marketing/public.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: public.php,v 1.9 2004-11-22 17:28:14 x2000habouzit Exp $ + $Id: public.php,v 1.10 2004-11-22 20:04:51 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('marketing/public.tpl', AUTH_MDP); if (! isset($_REQUEST["num"])) { exit; } diff --git a/htdocs/marketing/relance.php b/htdocs/marketing/relance.php index a1bac16..d05496e 100644 --- a/htdocs/marketing/relance.php +++ b/htdocs/marketing/relance.php @@ -18,16 +18,16 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: relance.php,v 1.8 2004-11-22 17:28:14 x2000habouzit Exp $ + $Id: relance.php,v 1.9 2004-11-22 20:04:51 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_admin_page('marketing/relance.tpl'); /* une relance a été demandée - on envoit les mails correspondants */ if (isset($_POST["relancer"]) && isset($_POST["relancer"]) != "") { - require("xorg.mailer.inc.php"); + require_once("xorg.mailer.inc.php"); $res=$globals->db->query("SELECT COUNT(*) FROM auth_user_md5"); diff --git a/htdocs/marketing/utilisateurs_marketing.php b/htdocs/marketing/utilisateurs_marketing.php index 1282b82..65e2c83 100644 --- a/htdocs/marketing/utilisateurs_marketing.php +++ b/htdocs/marketing/utilisateurs_marketing.php @@ -18,12 +18,12 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: utilisateurs_marketing.php,v 1.14 2004-11-22 17:28:14 x2000habouzit Exp $ + $Id: utilisateurs_marketing.php,v 1.15 2004-11-22 20:04:51 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); $id_actions = array('Mailer'); -require("select_user.inc.php"); +require_once("select_user.inc.php"); //actions possible une fois un X désigné par son matricule switch ($_REQUEST["submit"]) { @@ -48,7 +48,7 @@ switch ($_REQUEST["submit"]) { break; case "Envoyer le mail": - require('xorg.misc.inc.php'); + require_once('xorg.misc.inc.php'); $result=$globals->db->query("SELECT user_id FROM auth_user_md5 where matricule={$_REQUEST['xmat']} AND perms!='pending'"); if ($myrow = mysql_fetch_assoc($result)) exit_error("Le matricule existe déjà dans la table auth_user_md5."); @@ -100,7 +100,7 @@ switch ($_REQUEST["submit"]) { // pas d'erreur pour l'insert // envoi du mail à l'utilisateur - require('xorg.mailer.inc.php'); + require_once('xorg.mailer.inc.php'); $mymail = new XOrgMailer('marketing.utilisateur.tpl'); $mymail->assign('from', $_REQUEST["from"]); diff --git a/htdocs/marketing/volontaire.php b/htdocs/marketing/volontaire.php index 6687412..eee41f8 100644 --- a/htdocs/marketing/volontaire.php +++ b/htdocs/marketing/volontaire.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: volontaire.php,v 1.9 2004-11-22 17:28:14 x2000habouzit Exp $ + $Id: volontaire.php,v 1.10 2004-11-22 20:04:51 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_admin_page('marketing/volontaire.tpl'); $errors = Array(); diff --git a/htdocs/motdepassemd5.php b/htdocs/motdepassemd5.php index 42a6cbf..7a976fe 100644 --- a/htdocs/motdepassemd5.php +++ b/htdocs/motdepassemd5.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: motdepassemd5.php,v 1.7 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: motdepassemd5.php,v 1.8 2004-11-22 20:04:35 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); if (!empty($_POST['response2'])) { // la variable $response existe-t-elle ? // OUI, alors changeons le mot de passe diff --git a/htdocs/newsletter/index.php b/htdocs/newsletter/index.php index 410aa0a..be7c33b 100644 --- a/htdocs/newsletter/index.php +++ b/htdocs/newsletter/index.php @@ -18,12 +18,12 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: index.php,v 1.2 2004-11-22 11:15:53 x2000habouzit Exp $ + $Id: index.php,v 1.3 2004-11-22 20:05:01 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('newsletter/index.tpl', AUTH_COOKIE); -require("newsletter.inc.php"); +require_once("newsletter.inc.php"); $page->assign_by_ref('nl_list',get_nl_list()); $page->run(); diff --git a/htdocs/newsletter/show.php b/htdocs/newsletter/show.php index 1d1c9f6..219cd50 100644 --- a/htdocs/newsletter/show.php +++ b/htdocs/newsletter/show.php @@ -18,12 +18,12 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: show.php,v 1.5 2004-11-22 11:15:53 x2000habouzit Exp $ + $Id: show.php,v 1.6 2004-11-22 20:05:01 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('newsletter/show.tpl', AUTH_COOKIE, 'newsletter/head.tpl'); -require("newsletter.inc.php"); +require_once("newsletter.inc.php"); $nid = empty($_GET['nid']) ? 'last' : $_GET['nid']; $nl = new NewsLetter($nid); diff --git a/htdocs/newsletter/submit.php b/htdocs/newsletter/submit.php index d945535..dbb5ec2 100644 --- a/htdocs/newsletter/submit.php +++ b/htdocs/newsletter/submit.php @@ -18,12 +18,12 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: submit.php,v 1.8 2004-11-22 11:15:53 x2000habouzit Exp $ + $Id: submit.php,v 1.9 2004-11-22 20:05:01 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('newsletter/submit.tpl', AUTH_COOKIE, 'newsletter/head.tpl'); -require("newsletter.inc.php"); +require_once("newsletter.inc.php"); if(isset($_POST['see'])) { $art = new NLArticle($_POST['title'], $_POST['body'], $_POST['append']); @@ -33,7 +33,7 @@ if(isset($_POST['see'])) { $art = new NLArticle($_POST['title'], $_POST['body'], $_POST['append']); $nl->saveArticle($art); - require("diogenes.hermes.inc.php"); + require_once("diogenes.hermes.inc.php"); $from = "\"{$_SESSION['prenom']} {$_SESSION['nom']} ({$_SESSION['promo']})\" <{$_SESSION['forlife']}@polytechnique.org>"; $mailer = new HermesMailer(); $mailer->setSubject("proposition d'article dans la NL"); diff --git a/htdocs/paiement/cyberpaiement_retour.php b/htdocs/paiement/cyberpaiement_retour.php index 1f825bc..336122b 100644 --- a/htdocs/paiement/cyberpaiement_retour.php +++ b/htdocs/paiement/cyberpaiement_retour.php @@ -18,11 +18,11 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: cyberpaiement_retour.php,v 1.12 2004-11-22 11:15:55 x2000habouzit Exp $ + $Id: cyberpaiement_retour.php,v 1.13 2004-11-22 20:05:04 x2000habouzit Exp $ ***************************************************************************/ require_once("xorg.inc.php"); -require("diogenes.hermes.inc.php"); +require_once("diogenes.hermes.inc.php"); /* sort en affichant une erreur */ function erreur($text) { diff --git a/htdocs/paiement/index.php b/htdocs/paiement/index.php index 62fa2af..c3a4750 100644 --- a/htdocs/paiement/index.php +++ b/htdocs/paiement/index.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: index.php,v 1.6 2004-11-22 11:15:55 x2000habouzit Exp $ + $Id: index.php,v 1.7 2004-11-22 20:05:04 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('paiment/index.tpl', AUTH_MDP); require_once('profil.func.inc.php'); setlocale(LC_NUMERIC,'fr_FR'); diff --git a/htdocs/pattecassee.php b/htdocs/pattecassee.php index 313028d..70ac751 100644 --- a/htdocs/pattecassee.php +++ b/htdocs/pattecassee.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: pattecassee.php,v 1.11 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: pattecassee.php,v 1.12 2004-11-22 20:04:35 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('pattecassee.tpl',AUTH_COOKIE); function valide_email($str) { diff --git a/htdocs/preferences.php b/htdocs/preferences.php index 69a0289..a0dc76c 100644 --- a/htdocs/preferences.php +++ b/htdocs/preferences.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: preferences.php,v 1.6 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: preferences.php,v 1.7 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('preferences.tpl', AUTH_COOKIE); $has_cookie = (isset($_COOKIE['ORGaccess']) ? 'cookie' : ''); diff --git a/htdocs/profil.php b/htdocs/profil.php index 88ff93b..7c347e0 100644 --- a/htdocs/profil.php +++ b/htdocs/profil.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: profil.php,v 1.15 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: profil.php,v 1.16 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('profil.tpl',AUTH_MDP, 'profil.head.tpl'); require_once('tabs.inc.php'); diff --git a/htdocs/recherche.php b/htdocs/recherche.php index 63f8f69..2a0ff25 100644 --- a/htdocs/recherche.php +++ b/htdocs/recherche.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: recherche.php,v 1.2 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: recherche.php,v 1.3 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('recherche.tpl', AUTH_PUBLIC); $page->run(); ?> diff --git a/htdocs/recovery.php b/htdocs/recovery.php index 96c437f..d5a3659 100644 --- a/htdocs/recovery.php +++ b/htdocs/recovery.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: recovery.php,v 1.10 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: recovery.php,v 1.11 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('recovery.tpl', AUTH_PUBLIC); $errors = Array(); @@ -70,7 +70,7 @@ if (isset($_REQUEST['login']) and isset($_REQUEST['birth'])) { mysql_free_result($result); $emails = implode(',', $emails); - require("diogenes.hermes.inc.php"); + require_once("diogenes.hermes.inc.php"); $mymail = new HermesMailer(); $mymail->setFrom('\"Gestion des mots de passe\" '); $mymail->addTo($emails); diff --git a/htdocs/referent.php b/htdocs/referent.php index 9798945..b0b9272 100644 --- a/htdocs/referent.php +++ b/htdocs/referent.php @@ -18,11 +18,11 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: referent.php,v 1.10 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: referent.php,v 1.11 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('referent.tpl',AUTH_COOKIE); $nb_max_resultats_total = 100; diff --git a/htdocs/routage-mail.php b/htdocs/routage-mail.php index 987edbe..f24d709 100644 --- a/htdocs/routage-mail.php +++ b/htdocs/routage-mail.php @@ -18,12 +18,12 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: routage-mail.php,v 1.12 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: routage-mail.php,v 1.13 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('routage-mail.tpl',AUTH_MDP); -require("email.classes.inc.php"); +require_once("email.classes.inc.php"); $redirect = new Redirect($_SESSION['uid']); diff --git a/htdocs/rss.php b/htdocs/rss.php index 12e3540..cb748b5 100644 --- a/htdocs/rss.php +++ b/htdocs/rss.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: rss.php,v 1.6 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: rss.php,v 1.7 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_nonhtml_page('rss.tpl', AUTH_PUBLIC); $requete="SELECT e.id,e.titre,e.texte FROM evenements AS e WHERE FIND_IN_SET(flags, 'valide') AND peremption >= NOW()"; diff --git a/htdocs/search.php b/htdocs/search.php index 986a302..7ecabda 100644 --- a/htdocs/search.php +++ b/htdocs/search.php @@ -18,11 +18,11 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: search.php,v 1.51 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: search.php,v 1.52 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); -require("search.classes.inc.php"); +require_once("xorg.inc.php"); +require_once("search.classes.inc.php"); new_skinned_page('search.tpl', AUTH_PUBLIC); if(logged()) { diff --git a/htdocs/sendmail.php b/htdocs/sendmail.php index 2c064f6..bd0356c 100644 --- a/htdocs/sendmail.php +++ b/htdocs/sendmail.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: sendmail.php,v 1.9 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: sendmail.php,v 1.10 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('sendmail.tpl',AUTH_MDP); @@ -45,7 +45,7 @@ if (isset($_REQUEST['submit']) and $_REQUEST['submit'] == 'Envoyer' if ($_REQUEST['to'] == '' and $_REQUEST['cc'] == '' and $autre_to == '') { $page->assign('error',"Indique au moins un destinataire."); } else { - require("diogenes.hermes.inc.php"); + require_once("diogenes.hermes.inc.php"); //$_REQUEST['contenu'] = chunk_split($_REQUEST['contenu'], 76, "\n"); // pas bon, ne tient pas compte des mots $dest = $_REQUEST['to'].', '.$autre_to; $mymail = new HermesMailer(); diff --git a/htdocs/skins.php b/htdocs/skins.php index f1b8125..403f5c4 100644 --- a/htdocs/skins.php +++ b/htdocs/skins.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: skins.php,v 1.10 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: skins.php,v 1.11 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('skins.tpl', AUTH_COOKIE); if (isset($_REQUEST['newskin'])) { // formulaire soumis, traitons les données envoyées diff --git a/htdocs/stats/coupure.php b/htdocs/stats/coupure.php index bd961f7..b55ad4b 100644 --- a/htdocs/stats/coupure.php +++ b/htdocs/stats/coupure.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: coupure.php,v 1.7 2004-11-22 11:15:58 x2000habouzit Exp $ + $Id: coupure.php,v 1.8 2004-11-22 20:05:06 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('stats/coupure.tpl',AUTH_PUBLIC); function serv_to_str($params) { diff --git a/htdocs/stats/graph_promo.php b/htdocs/stats/graph_promo.php index 8c4a46e..41f65be 100644 --- a/htdocs/stats/graph_promo.php +++ b/htdocs/stats/graph_promo.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: graph_promo.php,v 1.6 2004-11-22 11:15:58 x2000habouzit Exp $ + $Id: graph_promo.php,v 1.7 2004-11-22 20:05:06 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('index.tpl',AUTH_COOKIE); diff --git a/htdocs/stats/index.php b/htdocs/stats/index.php index 36d1002..badf63e 100644 --- a/htdocs/stats/index.php +++ b/htdocs/stats/index.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: index.php,v 1.2 2004-11-22 11:15:58 x2000habouzit Exp $ + $Id: index.php,v 1.3 2004-11-22 20:05:06 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page("stats/index.tpl",AUTH_PUBLIC); $page->run(); ?> diff --git a/htdocs/stats/nb_by_promo.php b/htdocs/stats/nb_by_promo.php index 5a0a88c..8daba9b 100644 --- a/htdocs/stats/nb_by_promo.php +++ b/htdocs/stats/nb_by_promo.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: nb_by_promo.php,v 1.7 2004-11-22 11:15:58 x2000habouzit Exp $ + $Id: nb_by_promo.php,v 1.8 2004-11-22 20:05:06 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('stats/nb_by_promo.tpl', AUTH_COOKIE); $result = $globals->db->query("SELECT promo,COUNT(*) diff --git a/htdocs/stats/parselog.php b/htdocs/stats/parselog.php index 8bc005c..64100af 100644 --- a/htdocs/stats/parselog.php +++ b/htdocs/stats/parselog.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: parselog.php,v 1.5 2004-11-22 11:15:58 x2000habouzit Exp $ + $Id: parselog.php,v 1.6 2004-11-22 20:05:06 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page("stats/parselog.tpl",AUTH_COOKIE); $page->run(); diff --git a/htdocs/stats/stats_promo.php b/htdocs/stats/stats_promo.php index b712e07..f43ef4f 100644 --- a/htdocs/stats/stats_promo.php +++ b/htdocs/stats/stats_promo.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: stats_promo.php,v 1.4 2004-11-22 11:15:58 x2000habouzit Exp $ + $Id: stats_promo.php,v 1.5 2004-11-22 20:05:06 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page("stats/stats_promo.tpl", AUTH_COOKIE); $promo = isset($_REQUEST["promo"]) ? intval($_REQUEST["promo"]) : $_SESSION["promo"]; diff --git a/htdocs/tmpPWD.php b/htdocs/tmpPWD.php index 5adca38..22905b0 100644 --- a/htdocs/tmpPWD.php +++ b/htdocs/tmpPWD.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: tmpPWD.php,v 1.5 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: tmpPWD.php,v 1.6 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); $sql = "DELETE FROM perte_pass WHERE DATE_SUB(NOW(), INTERVAL 380 MINUTE) > created"; $globals->db->query($sql); diff --git a/htdocs/trezo/gere_operations.php b/htdocs/trezo/gere_operations.php index ca7a4d4..6fffc9f 100644 --- a/htdocs/trezo/gere_operations.php +++ b/htdocs/trezo/gere_operations.php @@ -18,11 +18,11 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: gere_operations.php,v 1.5 2004-11-22 11:16:00 x2000habouzit Exp $ + $Id: gere_operations.php,v 1.6 2004-11-22 20:05:08 x2000habouzit Exp $ ***************************************************************************/ -require('xorg.inc.php'); -require("trezo.inc.php"); +require_once('xorg.inc.php'); +require_once("trezo.inc.php"); new_admin_page('trezo/gere_operations.tpl'); //Table operations : diff --git a/htdocs/trezo/index.php b/htdocs/trezo/index.php index 3c7e604..f89a446 100644 --- a/htdocs/trezo/index.php +++ b/htdocs/trezo/index.php @@ -18,11 +18,11 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: index.php,v 1.4 2004-11-22 11:16:00 x2000habouzit Exp $ + $Id: index.php,v 1.5 2004-11-22 20:05:08 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); -require("trezo.inc.php"); +require_once("xorg.inc.php"); +require_once("trezo.inc.php"); new_admin_page('trezo/index.tpl'); //Table operations : diff --git a/htdocs/trombino.php b/htdocs/trombino.php index f5993bd..07e246b 100644 --- a/htdocs/trombino.php +++ b/htdocs/trombino.php @@ -18,13 +18,13 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: trombino.php,v 1.5 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: trombino.php,v 1.6 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('trombino.tpl', AUTH_MDP); -require("validations.inc.php"); +require_once("validations.inc.php"); if (isset($_REQUEST["ordi"]) and isset($_FILES["userfile"]) and isset($_FILES["userfile"]["tmp_name"])) { diff --git a/htdocs/trombipromo.php b/htdocs/trombipromo.php index 7adffb5..ae904d0 100644 --- a/htdocs/trombipromo.php +++ b/htdocs/trombipromo.php @@ -18,12 +18,12 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: trombipromo.php,v 1.10 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: trombipromo.php,v 1.11 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('trombipromo.tpl', AUTH_COOKIE); -require("trombi.inc.php"); +require_once("trombi.inc.php"); function getList($offset,$limit) { global $globals; diff --git a/htdocs/vcard.php b/htdocs/vcard.php index b458076..d2171a1 100644 --- a/htdocs/vcard.php +++ b/htdocs/vcard.php @@ -18,12 +18,12 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: vcard.php,v 1.16 2004-11-22 11:15:30 x2000habouzit Exp $ + $Id: vcard.php,v 1.17 2004-11-22 20:04:36 x2000habouzit Exp $ ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_nonhtml_page('vcard.tpl', AUTH_COOKIE); -require("xorg.misc.inc.php"); +require_once("xorg.misc.inc.php"); function format_adr($params, &$smarty) { // $adr1, $adr2, $adr3, $cp, $ville, $region, $pays diff --git a/htdocs/x.php b/htdocs/x.php index cd1eee0..6d01f7c 100644 --- a/htdocs/x.php +++ b/htdocs/x.php @@ -19,7 +19,7 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ***************************************************************************/ -require("xorg.inc.php"); +require_once("xorg.inc.php"); new_skinned_page('x.tpl', AUTH_PUBLIC); $page->assign('baseurl',$globals->baseurl); $page->run(); diff --git a/include/validations.inc.php b/include/validations.inc.php index fc13fdf..39faf5a 100644 --- a/include/validations.inc.php +++ b/include/validations.inc.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: validations.inc.php,v 1.17 2004-11-22 07:24:56 x2000habouzit Exp $ + $Id: validations.inc.php,v 1.18 2004-11-22 20:05:10 x2000habouzit Exp $ ***************************************************************************/ // {{{ DEFINES @@ -232,11 +232,11 @@ class Validate // }}} // {{{ IMPLEMENTATIONS -require("valid/aliases.inc.php"); -require("valid/epouses.inc.php"); -require("valid/photos.inc.php"); -require("valid/evts.inc.php"); -require("valid/listes.inc.php"); +require_once("valid/aliases.inc.php"); +require_once("valid/epouses.inc.php"); +require_once("valid/photos.inc.php"); +require_once("valid/evts.inc.php"); +require_once("valid/listes.inc.php"); // }}} diff --git a/include/validations/evts.inc.php b/include/validations/evts.inc.php index 55831e7..34bfb38 100644 --- a/include/validations/evts.inc.php +++ b/include/validations/evts.inc.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: evts.inc.php,v 1.2 2004-11-22 07:40:18 x2000habouzit Exp $ + $Id: evts.inc.php,v 1.3 2004-11-22 20:05:11 x2000habouzit Exp $ ***************************************************************************/ // {{{ class EvtReq @@ -85,7 +85,7 @@ class EvtReq extends Validate { global $globals; if (isset($_POST['action'])) { - require("xorg.mailer.inc.php"); + require_once("xorg.mailer.inc.php"); $mymail = new XOrgMailer('valid.evts.tpl'); $mymail->assign('bestalias',$this->bestalias); $mymail->assign('titre',$this->titre); diff --git a/include/validations/listes.inc.php b/include/validations/listes.inc.php index eb0e9df..39490dc 100644 --- a/include/validations/listes.inc.php +++ b/include/validations/listes.inc.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: listes.inc.php,v 1.2 2004-11-22 07:40:18 x2000habouzit Exp $ + $Id: listes.inc.php,v 1.3 2004-11-22 20:05:11 x2000habouzit Exp $ ***************************************************************************/ // {{{ class ListeReq @@ -116,7 +116,7 @@ class ListeReq extends Validate function commit() { global $globals; - include('xml-rpc-client.inc.php'); + require_once('xml-rpc-client.inc.php'); $res = $globals->db->query("SELECT password FROM auth_user_md5 WHERE user_id={$_SESSION['uid']}"); list($pass) = mysql_fetch_row($res); mysql_free_result($res); diff --git a/include/validations/photos.inc.php b/include/validations/photos.inc.php index fa5c932..87e1b0a 100644 --- a/include/validations/photos.inc.php +++ b/include/validations/photos.inc.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: photos.inc.php,v 1.2 2004-11-22 07:40:18 x2000habouzit Exp $ + $Id: photos.inc.php,v 1.3 2004-11-22 20:05:11 x2000habouzit Exp $ ***************************************************************************/ // {{{ class PhotoReq @@ -146,7 +146,7 @@ class PhotoReq extends Validate $globals->db->query("REPLACE INTO photo (uid, attachmime, attach, x, y) VALUES ('{$this->uid}', '{$this->mimetype}', '" .addslashes($this->data)."', '{$this->x}', '{$this->y}')"); - require('notifs.inc.php'); + require_once('notifs.inc.php'); register_watch_op($this->uid,WATCH_FICHE); } diff --git a/include/xorg.inc.php b/include/xorg.inc.php index 84f9f1c..18b9322 100644 --- a/include/xorg.inc.php +++ b/include/xorg.inc.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: xorg.inc.php,v 1.1 2004-11-22 11:16:32 x2000habouzit Exp $ + $Id: xorg.inc.php,v 1.2 2004-11-22 20:05:10 x2000habouzit Exp $ ***************************************************************************/ function microtime_float() @@ -53,7 +53,7 @@ require_once("xorg/menu.inc.php"); require_once("xorg/session.inc.php"); $globals = new XorgGlobals; -require("xorg.config.inc.php"); +require_once("xorg.config.inc.php"); // }}} // {{{ Build Menu, TODO: move that into appropriates hooks diff --git a/include/xorg/session.inc.php b/include/xorg/session.inc.php index f8ceac7..4637a60 100644 --- a/include/xorg/session.inc.php +++ b/include/xorg/session.inc.php @@ -18,11 +18,11 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: session.inc.php,v 1.1 2004-11-21 21:36:04 x2000habouzit Exp $ + $Id: session.inc.php,v 1.2 2004-11-22 20:05:13 x2000habouzit Exp $ ***************************************************************************/ -require("diogenes.core.session.inc.php"); -require("diogenes.misc.inc.php"); +require_once("diogenes.core.session.inc.php"); +require_once("diogenes.misc.inc.php"); // {{{ class XorgSession