-# $Id: Makefile,v 1.3 2004-11-23 10:25:23 x2000habouzit Exp $
+# $Id: Makefile,v 1.4 2004-11-24 10:12:46 x2000habouzit Exp $
################################################################################
# definitions
chmod o+w templates_c
devel: build cache templates_c
+ ln -sf ../cache/valid.html htdocs/valid.html
################################################################################
# diogenes package targets
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: skins.php,v 1.11 2004-11-22 20:04:36 x2000habouzit Exp $
+ * $Id: skins.php,v 1.12 2004-11-24 10:12:47 x2000habouzit Exp $
***************************************************************************/
require_once("xorg.inc.php");
+if (!$globals->skin->enable) {
+ header("Location: index.php");
+}
new_skinned_page('skins.tpl', AUTH_COOKIE);
if (isset($_REQUEST['newskin'])) { // formulaire soumis, traitons les données envoyées
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: smarty.plugins.inc.php,v 1.2 2004-11-23 12:01:32 x2000habouzit Exp $
+ $Id: smarty.plugins.inc.php,v 1.3 2004-11-24 10:12:47 x2000habouzit Exp $
***************************************************************************/
// {{{ function block_dynamic()
global $globals;
$t = explode('.',$s);
if (count($t) == 1) {
- return $globals->$t[0];
+ return var_export($globals->$t[0],true);
} else {
- return $globals->$t[0]->$t[1];
+ return var_export($globals->$t[0]->$t[1],true);
}
}
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: preferences.tpl,v 1.13 2004-11-24 09:47:25 x2000habouzit Exp $
+ $Id: preferences.tpl,v 1.14 2004-11-24 10:12:47 x2000habouzit Exp $
***************************************************************************}
<h1>
<table class="bicol" summary="Préférences: services" cellpadding="0" cellspacing="0">
<tr>
- <th>
+ <th colspan="2">
Configuration des différents services du site
</th>
</tr>
- <tr>
- <td>
- <div class='float2'>
- <h3><a href="{rel}/emails.php">Mes adresses de redirection</a></h3>
- <div class='explication'>
- Tu peux configurer tes différentes redirections de mails ici.
- </div>
- </div>
- <div class='float2'>
- <h3><a href="{rel}/alias.php">Mon alias mail @melix.net/.org</a></h3>
- <div class='explication'>
- Pour choisir un alias @melix.net et @melix.org (en choisir un nouveau annule l'ancien).
- </div>
- </div>
- <div class='float2'>
- <h3><a href="{rel}/carva_redirect.php}">Ma redirection de page WEB</a></h3>
- <div class='explication'>
- Tu peux configurer tes redirections WEB
- http://www.carva.org/{dyn s=$smarty.session.bestalias}
- et http://www.carva.org/{dyn s=$smarty.session.forlife}
- </div>
- </div>
- <div class='float2'>
- <h3><a href="{rel}/skins.php">Apparence du site (skins)</a></h3>
- <div class='explication'>
- Tu peux changer les couleurs et les images du site.
- </div>
- </div>
- <br class='spacer' />
+ {foreach from="preferences.tpl.d/*.tpl"|glob item=inc key=id name=glob}
+ {if $id is even}
+ <tr class="{cycle values="impair,pair"}">
+ {/if}
+ <td class="half">
+ {include file=$inc}
</td>
+ {if $id is even && $smarty.foreach.glob.last}
+ <td class="half"></td>
+ {/if}
+ {if $id is odd || $smarty.foreach.glob.last}
</tr>
+ {/if}
+ {/foreach}
</table>
<br />
<h3><a href="{"motdepassemd5.php"|url}">Changer mon mot de passe pour le site</a></h3>
<div class='explication'>
permet de changer ton mot de passe pour accéder au site Polytechnique.org
+ </div>
</td>
</tr>
<tr class="pair">
Pour activer ton compte sur le serveur SMTP et NNTP de Polytechnique.org.
Cela te permet d'envoyer tes mails plus souplement (SMTP), et de consulter
les forums directement depuis ton logiciel habituel de courrier électronique.
+ </div>
</td>
</tr>
<tr class="impair">
Clique sur le lien ci-dessus pour retirer l'accès sans mot de passe au site. Après avoir
cliqué, tu devras à nouveau entrer ton mot de passe pour accéder aux différentes pages
comme initialement.
+ </div>
{else}
<h3><a href="cookie_on.php">Attribuer un cookie d'authentification permanente</a></h3>
<div class='explication'>
--- /dev/null
+{***************************************************************************
+ * 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: 10.mails.tpl,v 1.1 2004-11-24 10:12:48 x2000habouzit Exp $
+ ***************************************************************************}
+
+<h3><a href="{rel}/emails.php">Mes adresses de redirection</a></h3>
+<div class='explication'>
+ Tu peux configurer tes différentes redirections de mails ici.
+</div>
+
+{* vim:set et sw=2 sts=2 sws=2: *}
--- /dev/null
+{***************************************************************************
+ * 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: 20.alias.tpl,v 1.1 2004-11-24 10:12:48 x2000habouzit Exp $
+ ***************************************************************************}
+
+<h3><a href="{rel}/alias.php">Mon alias mail @melix.net/.org</a></h3>
+<div class='explication'>
+ Pour choisir un alias @melix.net et @melix.org (en choisir un nouveau annule l'ancien).
+</div>
+
+{* vim:set et sw=2 sts=2 sws=2: *}
--- /dev/null
+{***************************************************************************
+ * 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: 30.redirect.tpl,v 1.1 2004-11-24 10:12:48 x2000habouzit Exp $
+ ***************************************************************************}
+
+<h3><a href="{rel}/carva_redirect.php}">Ma redirection de page WEB</a></h3>
+<div class='explication'>
+ Tu peux configurer tes redirections WEB
+ http://www.carva.org/{dyn s=$smarty.session.bestalias}
+ et http://www.carva.org/{dyn s=$smarty.session.forlife}
+</div>
+
+{* vim:set et sw=2 sts=2 sws=2: *}
--- /dev/null
+{***************************************************************************
+ * 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: 90.skin.tpl,v 1.1 2004-11-24 10:12:48 x2000habouzit Exp $
+ ***************************************************************************}
+
+{if #globals.skin.enable#}
+<h3><a href="{rel}/skins.php">Apparence du site (skins)</a></h3>
+<div class="explication">
+ Tu peux changer les couleurs et les images du site.
+</div>
+{/if}
+
+{* vim:set et sw=2 sts=2 sws=2: *}