--- /dev/null
+<?php
+/***************************************************************************
+ * Copyright (C) 2003-2006 Polytechnique.org *
+ * http://opensource.polytechnique.org/ *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the Free Software *
+ * Foundation, Inc., *
+ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
+ ***************************************************************************/
+
+class S extends Session { }
+
+?>
}
}
-class S extends Session { }
-
// {{{ function check_perms()
/** verifie si un utilisateur a les droits pour voir une page
Options +FollowSymLinks
RewriteEngine on
-RewriteBase /~x2002bobillot
+RewriteBase /~x2000habouzit
# Rewrite URLs of the form 'index.php?q=x':
RewriteCond %{REQUEST_FILENAME} !-f
***************************************************************************/
require_once dirname(__FILE__).'/../include/xorg.inc.php';
-require_once dirname(__FILE__).'/../classes/XDB.php';
preg_match('/^\/(moderate|admin|members)\/(.*)_([^_]*)$/', $_SERVER['REQUEST_URI'], $matches);
***************************************************************************/
require_once dirname(__FILE__).'/../include/xorg.inc.php';
-require_once dirname(__FILE__).'/../classes/XDB.php';
list($username, $path) = preg_split('/\//', $_SERVER["REQUEST_URI"], 2, PREG_SPLIT_NO_EMPTY);
$res = XDB::query(
$GLOBALS['IS_XNET_SITE'] = true;
-require_once dirname(__FILE__).'/../classes/XDB.php';
-require_once dirname(__FILE__).'/../classes/Xnet.php';
-require_once dirname(__FILE__).'/../classes/PLModule.php';
-require_once dirname(__FILE__).'/../classes/CoreLogger.php';
-
require_once dirname(__FILE__).'/../include/xnet.inc.php';
if (!($path = Env::v('n')) || substr($path, 0, 4) != 'Xnet') {
// $GLOBALS['IS_XNET_SITE'] = true;
-require_once dirname(__FILE__).'/../classes/XDB.php';
-require_once dirname(__FILE__).'/../classes/Platal.php';
-require_once dirname(__FILE__).'/../classes/PLModule.php';
-require_once dirname(__FILE__).'/../classes/CoreLogger.php';
-
require_once dirname(__FILE__).'/../include/xorg.inc.php';
if (!($path = Env::v('n')) || ($path{0} < 'A' || $path{0} > 'Z')) {
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
-// {{{ import class definitions
-
-require_once dirname(__FILE__).'/../classes/XmlrpcClient.php';
-
-// }}}
// {{{ function lists_xmlrpc
function &lists_xmlrpc($uid, $pass, $fqdn=null)
global $globals;
$membres = Array();
-
+
foreach($members as $mem) {
list($m, $dom) = explode('@',$mem);
if ($dom == $globals->mail->domain || $dom == $globals->mail->domain2) {
}
}
}
-
+
ksort($membres);
foreach($membres as $key=>$val) ksort($membres[$key]);
return $membres;
define('SIMPLE', 1);
define('NO_SKIN', 2);
-require_once dirname(__FILE__).'/../classes/Env.php';
+require dirname(dirname(__FILE__)).'/classes/env.php';
+
+function __autoload($cls)
+{
+ require dirname(dirname(__FILE__)).'/classes/'.strtolower($cls).'.php';
+}
function pl_url($path, $query = null, $fragment = null)
{
global $page;
// calcul de la taille de l'image
- require_once dirname(__FILE__).'/../../classes/VarStream.php';
+ require_once dirname(__FILE__).'/../../classes/varstream.php';
$GLOBALS['photoreq'] = $_data;
$image_infos = getimagesize('var://photoreq');
unset ($GLOBALS['photoreq']);
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
-require_once dirname(__FILE__).'/../../classes/Page.php';
+require_once dirname(__FILE__).'/../../classes/page.php';
class XnetPage extends PlatalPage
{
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
-require_once dirname(__FILE__).'/../../classes/Session.php';
-
class XnetSession
{
// {{{ function init
$globals = new PlatalGlobals('XorgSession');
XorgSession::init();
-require_once dirname(__FILE__).'/../classes/Page.php';
+require_once dirname(__FILE__).'/../classes/page.php';
// {{{ class XorgPage
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
-require_once dirname(__FILE__).'/../../classes/Session.php';
-
class XorgSession
{
// {{{ function init
$page->assign('vit', new ValidateIterator());
}
function handler_validate_answers(&$page, $action = 'list', $id = null) {
- require_once('../classes/PLTableEditor.php');
$page->assign('xorg_title','Polytechnique.org - Administration - Réponses automatiques de validation');
$page->assign('title', 'Gestion des réponses automatiques');
$table_editor = new PLTableEditor('admin/validate/answers','requests_answers','id');
$table_editor->apply($page, $action, $id);
}
function handler_skins(&$page, $action = 'list', $id = null) {
- require_once('../classes/PLTableEditor.php');
$page->assign('xorg_title','Polytechnique.org - Administration - Skins');
$page->assign('title', 'Gestion des skins');
$table_editor = new PLTableEditor('admin/skins','skins','id');
$table_editor->apply($page, $action, $id);
}
function handler_postfix_blacklist(&$page, $action = 'list', $id = null) {
- require_once('../classes/PLTableEditor.php');
$page->assign('xorg_title','Polytechnique.org - Administration - Postfix : Blacklist');
$page->assign('title', 'Blacklist de postfix');
$table_editor = new PLTableEditor('admin/postfix/blacklist','postfix_blacklist','email', true);
$table_editor->apply($page, $action, $id);
}
function handler_postfix_whitelist(&$page, $action = 'list', $id = null) {
- require_once('../classes/PLTableEditor.php');
$page->assign('xorg_title','Polytechnique.org - Administration - Postfix : Whitelist');
$page->assign('title', 'Whitelist de postfix');
$table_editor = new PLTableEditor('admin/postfix/whitelist','postfix_whitelist','email', true);
$table_editor->apply($page, $action, $id);
}
function handler_logger_actions(&$page, $action = 'list', $id = null) {
- require_once('../classes/PLTableEditor.php');
$page->assign('xorg_title','Polytechnique.org - Administration - Actions');
$page->assign('title', 'Gestion des actions de logger');
$table_editor = new PLTableEditor('admin/logger/actions','logger.actions','id');
$table_editor->apply($page, $action, $id);
}
function handler_downtime(&$page, $action = 'list', $id = null) {
- require_once('../classes/PLTableEditor.php');
$page->assign('xorg_title','Polytechnique.org - Administration - Coupures');
$page->assign('title', 'Gestion des coupures');
$table_editor = new PLTableEditor('admin/downtime','coupures','id');
http_redirect('https://www.polytechnique.org/');
}
function handler_admin_authgroupesx(&$page, $action = 'list', $id = null) {
- require_once('../classes/PLTableEditor.php');
$page->assign('xorg_title','Polytechnique.org - Administration - Auth groupes X');
$page->assign('title', 'Gestion de l\'authentification centralisée');
$table_editor = new PLTableEditor('admin/auth-groupes-x','groupesx_auth','id');
define ('FPDF_FONTPATH', dirname(__FILE__).'/fonts/');
require_once '/usr/share/fpdf/fpdf.php';
-require_once dirname(__FILE__).'/../../classes/VarStream.php';
+require_once dirname(__FILE__).'/../../classes/varstream.php';
class ContactsPDF extends FPDF
{
$page->assign_by_ref('nl',$nl);
}
function handler_admin_nl_cat(&$page, $action = 'list', $id = null) {
- require_once('../classes/PLTableEditor.php');
$page->assign('xorg_title','Polytechnique.org - Administration - Newsletter : Catégories');
$page->assign('title', 'Gestion des catégories de la newsletter');
$table_editor = new PLTableEditor('admin/newsletter/categories','newsletter_cat','cid');
$page->assign('erreur', $erreur);
}
function handler_admin(&$page, $action = 'list', $id = null) {
- require_once('../classes/PLTableEditor.php');
$page->assign('xorg_title','Polytechnique.org - Administration - Paiements');
$page->assign('title', 'Gestion des télépaiements');
$table_editor = new PLTableEditor('admin/payments','paiement.paiements','id');
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
-require_once dirname(__FILE__).'/../../classes/Flagset.php';
-
class Payment
{
// {{{ properties
require_once 'validations.inc.php';
require_once 'xorg.misc.inc.php';
- require_once dirname(__FILE__).'/../classes/Flagset.php';
$res = XDB::query(
"SELECT u.nom, u.nom_usage, u.flags, e.alias
$page->assign('forlife', $forlife);
}
function handler_admin_binets(&$page, $action = 'list', $id = null) {
- require_once('../classes/PLTableEditor.php');
$page->assign('xorg_title','Polytechnique.org - Administration - Binets');
$page->assign('title', 'Gestion des binets');
$table_editor = new PLTableEditor('admin/binets', 'binets_def', 'id');
$table_editor->apply($page, $action, $id);
}
function handler_admin_formations(&$page, $action = 'list', $id = null) {
- require_once('../classes/PLTableEditor.php');
$page->assign('xorg_title','Polytechnique.org - Administration - Formations');
$page->assign('title', 'Gestion des formations');
$table_editor = new PLTableEditor('admin/formations','applis_def','id');
$table_editor->apply($page, $action, $id);
}
function handler_admin_groupesx(&$page, $action = 'list', $id = null) {
- require_once('../classes/PLTableEditor.php');
$page->assign('xorg_title','Polytechnique.org - Administration - Groupes X');
$page->assign('title', 'Gestion des Groupes X');
$table_editor = new PLTableEditor('admin/groupes-x','groupesx_def','id');
$table_editor->apply($page, $action, $id);
}
function handler_admin_medals(&$page, $action = 'list', $id = null) {
- require_once('../classes/PLTableEditor.php');
$page->assign('xorg_title','Polytechnique.org - Administration - Distinctions');
$page->assign('title', 'Gestion des Distinctions');
$table_editor = new PLTableEditor('admin/medals','profile_medals','id');