From: x2000habouzit Date: Sat, 4 Sep 2004 20:33:58 +0000 (+0000) Subject: dead pages X-Git-Tag: xorg/old~1585 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=c8f4e329120ef0843a27f4321a7bf5cc077f8abb;p=platal.git dead pages --- diff --git a/htdocs/domaineperso.php b/htdocs/domaineperso.php deleted file mode 100644 index 7e74a2e..0000000 --- a/htdocs/domaineperso.php +++ /dev/null @@ -1,38 +0,0 @@ -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 index e91b67a..0000000 --- a/htdocs/groupex/index.php +++ /dev/null @@ -1,35 +0,0 @@ -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 index 3757908..0000000 --- a/include/domaine.inc.php +++ /dev/null @@ -1,79 +0,0 @@ -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 "

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

\n"; - } else - return "

Erreur : ".mysql_error()."

\n"; - } else { - return "

Tu as déjà un nom de domaine perso, tu ne peux pas en avoir plusieurs.

\n"; - } -} - -?> diff --git a/templates/domaineperso.tpl b/templates/domaineperso.tpl deleted file mode 100644 index c4f3019..0000000 --- a/templates/domaineperso.tpl +++ /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} - -
- Gère les emails de ton domaine perso -
- -

- Polytechnique.org te propose de gérer les emails de ton domaine personnel. -

-

- 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 - Mydomain), mais pas toujours très performants. Polytechnique.org te propose de - s'occuper de tes emails dans un premier temps. -

-

- 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. -

-

- 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). -

-

- Laisse le temps à la DNS de se mettre à jour (24 à 48h), et le tour est joué. -

-

- Pour toute question, n'hesite pas à {mailto address='info@polytechnique.org' text='envoyer un mail' encode='javascript'} -

-
- Indique le domaine que tu souhaites gérer : -
-
- - - - - - - - - - - -
- Nom de domaine à gérer -
- Nom : - - -
- -
-
-{* 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 index 89794b7..0000000 --- a/templates/groupex/index.tpl +++ /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 $ - ***************************************************************************} - - -
Que sont les groupes X ?
-

- 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.
- 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 http://www.polytechnique.net/. -

- -{include file='include/liste_domaines.tpl' nb_dom=$nbdom domaines=$domaines} - -
Services aux Groupes X
-

- Polytechnique.org a le plaisir d'offrir plusieurs services intéressants aux groupes X. -

-

- 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"}. -

-

- 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. Dans le premier cas, il te suffit - de nous donner l'adresse web de ton site, http://nomdugroupe.polytechnique.org/ devient alors - son équivalent. Il faut donc avoir un hébergeur de site web comme il en existe de nombreux gratuits - (comme free.fr ou freesurf.fr...) - Dans le second cas, 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 : - http://diogenes.polytechnique.org/. -

-

- 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). -

-

- 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"}. -

- -{* 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 index 81a2ff9..0000000 --- a/templates/include/liste_domaines.tpl +++ /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} -
-Administrer le routage email sur ton(tes) domaine(s) -
- -

- 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. -

- -
-{foreach item=dom from=$domaines} - {$dom} -
-{/foreach} -
-{/if} - -{/dynamic} - -{* vim:set et sw=2 sts=2 sws=2: *}