- New Backtrace tool -FRU
- New Upload manager -FRU
- #641: Miniwiki syntax -Car/FRU
+ - New PlSet: Model/View tool for displaying a set of user -FRU
* Events:
- #642: Can add an image -FRU
- #407: RSS feed -FRU
* Carnet:
+ - #448: Geoloc for contacts -FRU
- #510: Use RSS hash to get iCal -FRU
* Core:
{
return array(
'geoloc' => $this->make_hook('default', AUTH_COOKIE),
- '%grp/geoloc' => $this->make_hook('default',AUTH_COOKIE),
'admin/geoloc' => $this->make_hook('admin', AUTH_MDP, 'admin'),
'admin/geoloc/dynamap' => $this->make_hook('admin_dynamap', AUTH_MDP, 'admin'),
);
'%grp/annuaire' => $this->make_hook('annuaire', AUTH_MDP, 'groupannu'),
'%grp/annuaire/vcard' => $this->make_hook('vcard', AUTH_MDP, 'groupmember:groupannu'),
'%grp/trombi' => $this->make_hook('trombi', AUTH_MDP, 'groupannu'),
+ '%grp/geoloc' => $this->make_hook('geoloc', AUTH_MDP, 'groupannu'),
'%grp/subscribe' => $this->make_hook('subscribe', AUTH_MDP),
'%grp/unsubscribe' => $this->make_hook('unsubscribe', AUTH_MDP, 'groupmember'),
run_banana($page, 'ForumsBanana', $get);
}
- function handler_annuaire(&$page)
+ function handler_annuaire(&$page, $action = null, $subaction = null)
{
global $globals;
+
+ if ($action == 'geoloc' || $action == 'trombi') {
+ $view = new UserSet();
+ $view->addMod('trombi', 'Trombinoscope');
+ $view->addMod('geoloc', 'Planisphère');
+ $view->apply('annuaire', $page, $action, $subaction);
+ if ($action == 'geoloc' && $subaction) {
+ return;
+ }
+ }
$page->changeTpl('xnetgrp/annuaire.tpl');
$sort = Env::v('order');
$page->jsonAssign('ann', $ann);
}
- function handler_trombi(&$page, $action = null, $subaction = null)
+ function handler_trombi(&$page)
+ {
+ pl_redirect('annuaire/trombi');
+ }
+
+ function handler_geoloc(&$page)
{
- $view = new UserSet();
- $view->addMod('trombi', 'Trombinoscope', true, array('with_admin' => false, 'with_promo' => true));
- $view->apply('trombi', $page, 'trombi', $action, $subaction);
+ pl_redirect('annuaire/geoloc');
}
function handler_vcard(&$page, $photos = null)
</li>
</ul>
+{if $plset_base}
+{include file="core/plset.tpl"}
+{else}
+
<p class="center">
[<a href="{$platal->ns}annuaire?order={$smarty.request.order}" {if !$only_admin}class="erreur"{/if}>tous les membres</a>]
[<a href="{$platal->ns}annuaire?order={$smarty.request.order}&admin=1" {if $only_admin}class="erreur"{/if}>administrateurs</a>]<br/>
</p>
{/if}
+{/if}
+
{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}
+++ /dev/null
-{**************************************************************************}\r
-{* *}\r
-{* Copyright (C) 2003-2007 Polytechnique.org *}\r
-{* http://opensource.polytechnique.org/ *}\r
-{* *}\r
-{* This program is free software; you can redistribute it and/or modify *}\r
-{* it under the terms of the GNU General Public License as published by *}\r
-{* the Free Software Foundation; either version 2 of the License, or *}\r
-{* (at your option) any later version. *}\r
-{* *}\r
-{* This program is distributed in the hope that it will be useful, *}\r
-{* but WITHOUT ANY WARRANTY; without even the implied warranty of *}\r
-{* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}\r
-{* GNU General Public License for more details. *}\r
-{* *}\r
-{* You should have received a copy of the GNU General Public License *}\r
-{* along with this program; if not, write to the Free Software *}\r
-{* Foundation, Inc., *}\r
-{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}\r
-{* *}\r
-{**************************************************************************}\r
-\r
-<h1>\r
- Trombinoscope du groupe\r
-</h1>\r
-<p>\r
-{if $trombi}\r
-\r
-{$trombi->show()|smarty:nodefaults}\r
-\r
-{/if}\r
-\r
-{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}\r