git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-588
require 'xnet.inc.php';
new_groupadmin_page('xnet/groupe/alias-admin.tpl');
-$page->useMenu();
-$page->setType($globals->asso('cat'));
if (!Get::has('liste')) {
header("Location: listes.php");
require 'xnet.inc.php';
new_groupadmin_page('xnet/groupe/alias-create.tpl');
-$page->useMenu();
-$page->setType($globals->asso('cat'));
-
-$page->assign('asso', $globals->asso());
if(Post::has('submit')) {
if (!Post::has('liste')) {
require 'xnet.inc.php';
new_group_page('xnet/groupe/annuaire.tpl');
-$page->setType($globals->asso('cat'));
-$page->assign('asso', $globals->asso());
$page->assign('admin', may_update());
-$page->useMenu();
$tri = (Env::get('order') == 'alpha' ? 'promo, nom, prenom' : 'nom, prenom, promo');
$res = $globals->xdb->iterRow(
require 'xnet.inc.php';
new_page('xnet/groupe/asso.tpl', AUTH_PUBLIC);
+$page->useMenu();
+$page->setType($globals->asso('cat'));
+
+$page->assign('asso', $globals->asso());
if (!$globals->asso('id')) {
header("Location: ../");
}
-$page->useMenu();
-$page->setType(strtolower($globals->asso('cat')));
-$page->assign('asso', $globals->asso());
-
// Sélection de toutes les associations ayant la même catégorie et le même domaine que l'activité sélectionnée
$gps = $globals->xdb->iterator(
"SELECT diminutif, nom
<?php
require 'xnet.inc.php';
-new_page('xnet/groupe/inscrire.tpl', AUTH_PUBLIC);
+new_page('xnet/groupe/inscrire.tpl', AUTH_MDP);
$page->useMenu();
$page->setType($globals->asso('cat'));
$page->assign('asso', $globals->asso());
$liste = strtolower(Env::get('liste'));
new_group_page('listes/admin.tpl');
-$page->setType($globals->asso('cat'));
-$page->useMenu();
require_once('lists.inc.php');
$client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'), $globals->asso('mail_domain'));
$liste = strtolower(Env::get('liste'));
new_group_page('listes/archives.tpl');
-$page->setType($globals->asso('cat'));
-$page->useMenu();
require_once('lists.inc.php');
$client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'), $globals->asso('mail_domain'));
$liste = strtolower(Env::get('liste'));
new_admin_page('listes/check.tpl');
-$page->setType($globals->asso('cat'));
-$page->useMenu();
require_once('lists.inc.php');
$client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'), $globals->asso('mail_domain'));
require 'xnet.inc.php';
new_groupadmin_page('xnet/groupe/listes-create.tpl');
-$page->useMenu();
-$page->setType($globals->asso('cat'));
-$page->assign('asso', $globals->asso());
if (Post::has('submit')) {
if (!Post::has('liste')) {
$liste = strtolower(Env::get('liste'));
new_group_page('listes/delete.tpl');
-$page->setType($globals->asso('cat'));
-$page->useMenu();
require_once('lists.inc.php');
$client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'), $globals->asso('mail_domain'));
$liste = strtolower(Env::get('liste'));
new_group_page('listes/members.tpl');
-$page->setType($globals->asso('cat'));
-$page->useMenu();
require_once('lists.inc.php');
$client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'), $globals->asso('mail_domain'));
}
new_group_page('listes/moderate.tpl');
-$page->setType($globals->asso('cat'));
-$page->useMenu();
require_once('lists.inc.php');
$client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'), $globals->asso('mail_domain'));
$liste = strtolower(Env::get('liste'));
new_group_page('listes/options.tpl');
-$page->setType($globals->asso('cat'));
-$page->useMenu();
require_once('lists.inc.php');
$client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'), $globals->asso('mail_domain'));
$liste = strtolower(Env::get('liste'));
new_admin_page('listes/soptions.tpl');
-$page->setType($globals->asso('cat'));
-$page->useMenu();
require_once('lists.inc.php');
$client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'), $globals->asso('mail_domain'));
require_once 'xnet.inc.php';
new_group_page('xnet/groupe/listes.tpl');
-$page->setType($globals->asso('cat'));
-$page->useMenu();
-$page->assign('asso', $globals->asso());
require_once('lists.inc.php');
$client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'), $globals->asso('mail_domain'));
require 'xnet.inc.php';
new_group_page('xnet/groupe/telepaiement.tpl');
-$page->setType($globals->asso('cat'));
-$page->useMenu();
-$page->assign('asso', $globals->asso());
$res = $globals->xdb->query("SELECT id, text FROM {$globals->money->mpay_tprefix}paiements WHERE asso_id = {?}", $globals->asso('id'));
$tit = $res->fetchAllAssoc();
if (logged() && may_update()) {
$sub = array();
- $sub['modifier l\'acceuil'] = "$dim/editer.php";
+ $sub['modifier l\'acceuil'] = "$dim/edit.php";
$sub['envoyer un mail'] = "$dim/mail.php";
$sub['créer une liste'] = "$dim/listes-create.php";
$sub['créer un alias'] = "$dim/alias-create.php";
}
// }}}
-// {{{ class XnetGroupPage
+// {{{ class XnetAdmin
/** Une classe pour les pages réservées aux admins (authentifiés!).
*/
-class XnetGroupPage extends XnetAuth
+class XnetAdmin extends XnetAuth
{
// {{{ function XnetAdmin()
- function XnetGroupPage($tpl, $type=SKINNED)
+ function XnetAdmin($tpl, $type=SKINNED)
{
+ global $globals;
+
$this->XnetAuth($tpl, $type);
- if (!is_member() && !has_perms()) {
- $this->kill("You have not sufficient credentials");
+ check_perms();
+
+ $this->useMenu();
+ if ($globals->asso('cat')) {
+ $this->assign('asso', $globals->asso());
+ $this->setType($globals->asso('cat'));
}
}
}
// }}}
-// {{{ class XnetGroupAdmin
+// {{{ class XnetGroupPage
/** Une classe pour les pages réservées aux admins (authentifiés!).
*/
-class XnetGroupAdmin extends XnetAuth
+class XnetGroupPage extends XnetAuth
{
// {{{ function XnetAdmin()
- function XnetGroupAdmin($tpl, $type=SKINNED)
+ function XnetGroupPage($tpl, $type=SKINNED)
{
+ global $globals;
+
$this->XnetAuth($tpl, $type);
- if (!may_update()) {
+ if (!is_member() && !has_perms()) {
$this->kill("You have not sufficient credentials");
}
+
+ $this->useMenu();
+ $this->assign('asso', $globals->asso());
+ $this->setType($globals->asso('cat'));
}
// }}}
}
// }}}
-// {{{ class XnetAdmin
+// {{{ class XnetGroupAdmin
/** Une classe pour les pages réservées aux admins (authentifiés!).
*/
-class XnetAdmin extends XnetAuth
+class XnetGroupAdmin extends XnetAuth
{
// {{{ function XnetAdmin()
- function XnetAdmin($tpl, $type=SKINNED)
+ function XnetGroupAdmin($tpl, $type=SKINNED)
{
+ global $globals;
+
$this->XnetAuth($tpl, $type);
- check_perms();
+ if (!may_update()) {
+ $this->kill("You have not sufficient credentials");
+ }
+
+ $this->useMenu();
+ $this->assign('asso', $globals->asso());
+ $this->setType($globals->asso('cat'));
}
// }}}
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************}
+<h1>{$asso.nom} : Accueil</h1>
+
<table id="content" cellpadding="0" cellspacing="0">
<tr>
- <td colspan="2">
- <h1>
- <a class="s" href="../groupes.php?cat={$asso.cat}">{$asso.cat}</a>
- {if $asso.dom}>
- <a class="s" href="../groupes.php?cat={$asso.cat}&dom={$asso.dom}">{$asso.domnom}</a>
- {/if}
- > {$asso.nom} : Accueil
- </h1>
- </td>
- </tr>
- <tr>
<td>
{if $asso.site}
<a href="{$asso.site}"><img src='getlogo.php' alt="LOGO" /></a>