dead pages
authorx2000habouzit <x2000habouzit>
Sat, 4 Sep 2004 20:33:58 +0000 (20:33 +0000)
committerx2000habouzit <x2000habouzit>
Sat, 4 Sep 2004 20:33:58 +0000 (20:33 +0000)
htdocs/domaineperso.php [deleted file]
htdocs/groupex/index.php [deleted file]
include/domaine.inc.php [deleted file]
templates/domaineperso.tpl [deleted file]
templates/groupex/index.tpl [deleted file]
templates/include/liste_domaines.tpl [deleted file]

diff --git a/htdocs/domaineperso.php b/htdocs/domaineperso.php
deleted file mode 100644 (file)
index 7e74a2e..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-/***************************************************************************
- *  Copyright (C) 2003-2004 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                *
- ***************************************************************************
-        $Id: domaineperso.php,v 1.4 2004-08-31 10:03:28 x2000habouzit Exp $
- ***************************************************************************/
-
-require("auto.prepend.inc.php");
-require("domaine.inc.php");
-
-new_skinned_page('domaineperso.tpl', AUTH_MDP);
-
-if (isset($_REQUEST['dnom']))
-    $page->assign('result', add_domain($_REQUEST['dnom']));
-
-$domaines = liste_domaines();
-    
-$page->assign('nb_dom',count($domaines));
-$page->assign_by_ref('domaines',$domaines);
-
-$page->run();
-?>
diff --git a/htdocs/groupex/index.php b/htdocs/groupex/index.php
deleted file mode 100644 (file)
index e91b67a..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-/***************************************************************************
- *  Copyright (C) 2003-2004 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                *
- ***************************************************************************
-        $Id: index.php,v 1.4 2004-08-31 10:03:30 x2000habouzit Exp $
- ***************************************************************************/
-
-require("auto.prepend.inc.php");
-require("domaine.inc.php");
-
-new_skinned_page('groupex/index.tpl',AUTH_COOKIE);
-
-$domaines = liste_domaines();
-    
-$page->assign('nb_dom',count($domaines));
-$page->assign_by_ref('domaines',$domaines);
-
-$page->run();
-?>
diff --git a/include/domaine.inc.php b/include/domaine.inc.php
deleted file mode 100644 (file)
index 3757908..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-<?php
-/***************************************************************************
- *  Copyright (C) 2003-2004 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                *
- ***************************************************************************
-        $Id: domaine.inc.php,v 1.4 2004-08-31 11:16:48 x2000habouzit Exp $
- ***************************************************************************/
-
-/** liste les domaines présents dans le result mysql donné
-* @see domaineperso.php
-* @see groupex.php
-* @return Array
-*/
-function liste_domaines() {
-
-    // on récupère la liste des domaines gérables par l'utilisateur
-    $sql = "SELECT domain FROM groupex.aliases as d ".
-            (has_perms() ? '' : ', groupex.gestionnaires as g').
-           " WHERE domain NOT LIKE '%@%' ".
-            (has_perms() ? '' : " AND g.did = d.id AND g.uid = {$_SESSION['uid']}").
-           " ORDER BY domain";
-
-    $result = $globals->db->query($sql);
-
-    $ret = Array();
-    while (list($domaine) = mysql_fetch_row($result)) {
-        $ret[] = $domaine;
-    }
-    mysql_free_result($result);
-
-    return $ret;
-}
-
-/** ajoute domaine
-* @param $domaine nom du domaine
-* @return string message indiquant le succes ou l'echec de l'ajout de domaine
-* @see domaineperso.php
-*/
-function add_domain($domaine) {
-    if ($_SESSION['perms'] == 'admin') {
-        $ok = true;
-    } else { // si pas admin, on verifie qu'il n'a pas deja de domaine
-        $sql = "SELECT 1 FROM groupex.aliases AS a, groupex.gestionnaires AS g
-                WHERE g.uid = {$_SESSION['uid']} AND a.id = g.did AND a.domain NOT LIKE '%@%'
-                    AND a.domain NOT LIKE '%polytechnique.org'";
-        $result = $globals->db->query($sql);
-        $ok = (mysql_num_rows($result) < 1);
-    }
-    if ($ok) {
-        // ok, ajout du domaine et des droits d'utilisation (sauf si admin)
-        if($globals->db->query("insert into groupex.aliases set domain = '$domaine'")) {;
-        $did = mysql_insert_id();
-            if ($_SESSION['perms'] != 'admin')
-            if($globals->db->query("INSERT INTO groupex.gestionnaires SET did = $did, uid = {$_SESSION['uid']}"))
-                return "<p class='erreur'>Félicitations, ton domaine a été ajouté aux domaines gérés par Polytechnique.org.\n"
-                    .  "Clique sur le lien ci-dessous pour lui ajouter des alias</p>\n";
-        } else
-            return "<p class='erreur'>Erreur : ".mysql_error()."</p>\n";
-    } else {
-        return "<p class=\"erreur\">Tu as déjà un nom de domaine perso, tu ne peux pas en avoir plusieurs.</p>\n";
-    }
-}
-
-?>
diff --git a/templates/domaineperso.tpl b/templates/domaineperso.tpl
deleted file mode 100644 (file)
index c4f3019..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-{***************************************************************************
- *  Copyright (C) 2003-2004 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                *
- ***************************************************************************
-        $Id: domaineperso.tpl,v 1.4 2004-08-31 11:25:38 x2000habouzit Exp $
- ***************************************************************************}
-
-
-{include file='include/liste_domaines.tpl' result=$result nb_dom=$nbdom domaines=$domaines}
-
-<div class="rubrique">
-  Gère les emails de ton domaine perso
-</div>
-
-<p>
- Polytechnique.org te propose de gérer les emails de ton domaine personnel.
-</p>
-<p>
-  Effet, si tu disposes d'un domaine personnel comme ton-nom.org, tu dois utiliser un hébergeur pour ta 
-  DNS, pour tes adresses emails et pour ton espace web. En général, c'est le même pour 
-  les trois éléments, mais tu peux aussi utiliser des hébergeurs différents. Il en 
-  existe certains qui sont gratuits (comme <a href="http://www.mydomain.com/">
-  Mydomain</a>), mais pas toujours très performants. Polytechnique.org te propose de 
-  s'occuper de tes emails dans un premier temps.
-</p>
-<p>
-  Pour que ton domaine soit géré par Polytechnique.org, active d'abord le domaine dans 
-  le formulaire ci-dessous. Le domaine apparaît alors en haut de cette page, places-y 
-  les alias que tu désires.
-</p>
-<p>
-  Ensuite, configure ton serveur DNS pour que le champ MX de ton domaine soit 
-  a.mx.polytechnique.org (ou a.mx.m4x.org pour être plus discret
-  mais pas les deux, c'est la même machine).
-</p>
-<p>
-  Laisse le temps à la DNS de se mettre à jour (24 à 48h), et le tour est joué.
-</p>
-<p>
-  Pour toute question, n'hesite pas à {mailto address='info@polytechnique.org' text='envoyer un mail' encode='javascript'}
-</p>
-<div class="ssrubrique">
-  Indique le domaine que tu souhaites gérer :
-</div>
-<form action="{$smarty.server.REQUEST_URI}" method="post">
-  <table class="bicol" cellpadding="3" summary="Saisie du domaine à gérer">
-    <tr>
-      <th colspan="2">
-        Nom de domaine à gérer
-      </th>
-    </tr>
-    <tr>
-      <td class="titre">
-        Nom :
-      </td>
-      <td>
-       <input type="text" name="dnom" value="" />
-      </td>
-    </tr>
-    <tr>
-      <td colspan="2" class="center">
-       <input type="submit" name="submit" value="Envoyer" />
-      </td>
-    </tr>
-  </table>
-</form>
-{* vim:set et sw=2 sts=2 sws=2: *}
diff --git a/templates/groupex/index.tpl b/templates/groupex/index.tpl
deleted file mode 100644 (file)
index 89794b7..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-{***************************************************************************
- *  Copyright (C) 2003-2004 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                *
- ***************************************************************************
-        $Id: index.tpl,v 1.4 2004-08-31 11:25:40 x2000habouzit Exp $
- ***************************************************************************}
-
-
-<div class="rubrique">Que sont les groupes X ?</div>
-<p>
-  Les groupes X sont des associations, formées de Polytechniciens, anciens ou élèves. Parfois, ils intègrent aussi
-  des personnes originaires d'autres grandes écoles.<br />
-  Un site est dédié aux activités associatives. Il contient en particulier une liste de tous les groupes X. Tu le
-  trouveras à l'adresse <a href="http://www.polytechnique.net/">http://www.polytechnique.net/</a>.
-</p>
-
-{include file='include/liste_domaines.tpl' nb_dom=$nbdom domaines=$domaines}
-
-<div class="rubrique">Services aux Groupes X</div>
-<p>
-  Polytechnique.org a le plaisir d'offrir plusieurs services intéressants aux groupes X.
-</p>
-<p>
-  D'abord, chaque groupe X peut avoir un nom de domaine sur le modèle nomdugroupe.polytechnique.org.
-  Sur ce domaine, nous te donnons la possibilité d'avoir un site web et des emails. Pour obtenir un domaine,
-  {mailto address="info@polytechnique.org" text="écris-nous" subject="Domaine de groupeX" encode="javascript"}.
-</p>
-<p>
-  Pour le site web, ce peut être soit une simple redirection vers un site que tu héberges
-  toi-même, soit un site complètement hébergé par nos soins. <strong>Dans le premier cas</strong>, il te suffit
-  de nous donner  l'adresse web de ton site, http://nomdugroupe.polytechnique.org/ devient alors
-  son &eacute;quivalent. Il faut donc avoir un hébergeur de site web comme il en existe de nombreux gratuits
-  (comme <a href="http://www.free.fr/">free.fr</a> ou <a href="http://www.freesurf.fr/">freesurf.fr</a>...)
-  <strong>Dans le second cas</strong>, l'hébergement se fait grâce à notre logiciel Diogenes. Plusieurs groupes ont déjà
-  opté pour cette solution, comme tu pourras le constater à l'adresse suivante :
-  <a href="http://diogenes.polytechnique.org/">http://diogenes.polytechnique.org/</a>.
-</p>
-<p>
-  Pour les emails, tu pourras mettre en place tous les adresses souhaitées dans le domaine
-  nomdugroupe.polytechnique.org, comme par exemple membres@nomdugroupe.polytechnique.org ou
-  bureau@nomdugroupe.polytechnique.org. Ces alias peuvent être redirigés vers une liste de diffusion
-  déjà existante sur polytechnique.org, vers des utilisateurs de polytechnique.org, mais aussi
-  vers des personnes extérieures (non Polytechniciens par exemple).
-</p>
-<p>
-  Dans tous les cas, pour la mise en place du domaine de ton groupe X ou pour des
-  questions sur les services aux groupes X,
-  {mailto address="info@polytechnique.org" text="écris-nous" subject="Domaine de groupeX" encode="javascript"}.
-</p>
-
-{* vim:set et sw=2 sts=2 sws=2: *}
diff --git a/templates/include/liste_domaines.tpl b/templates/include/liste_domaines.tpl
deleted file mode 100644 (file)
index 81a2ff9..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-{***************************************************************************
- *  Copyright (C) 2003-2004 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                *
- ***************************************************************************
-        $Id: liste_domaines.tpl,v 1.4 2004-08-31 11:25:40 x2000habouzit Exp $
- ***************************************************************************}
-
-
-{dynamic}
-{$result}
-
-{if $nb_dom}
-<div class="rubrique">
-Administrer le routage email sur ton(tes) domaine(s)
-</div>
-
-<p>
-  Voici le(s) domaine(s) dont tu es administrateur.
-  Pour administrer un domaine, il te suffit à l'heure actuelle de cliquer sur son nom.
-  Cependant, prends bien note que cette administration se fera bientôt depuis le site www.polytechnique.net.
-</p>
-
-<div class="right">
-{foreach item=dom from=$domaines}
-  <a href="{"domaine.php?domaine=$dom"|escape:"url"|url}">{$dom}</a>
-  <br />
-{/foreach}
-</div>
-{/if}
-
-{/dynamic}
-
-{* vim:set et sw=2 sts=2 sws=2: *}