* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
'exit' => $this->make_hook('exit', AUTH_PUBLIC),
'admin' => $this->make_hook('admin', AUTH_MDP, 'admin'),
'groups' => $this->make_hook('groups', AUTH_PUBLIC),
'groupes.php' => $this->make_hook('groups2', AUTH_PUBLIC),
'plan' => $this->make_hook('plan', AUTH_PUBLIC),
'exit' => $this->make_hook('exit', AUTH_PUBLIC),
'admin' => $this->make_hook('admin', AUTH_MDP, 'admin'),
'groups' => $this->make_hook('groups', AUTH_PUBLIC),
'groupes.php' => $this->make_hook('groups2', AUTH_PUBLIC),
'plan' => $this->make_hook('plan', AUTH_PUBLIC),
- $page->changeTpl('xnet/index.tpl');
+ if (is_null($x)) {
+ return PL_NOT_FOUND;
+ }
+
+ $res = XDB::query("SELECT attachmime, attach
+ FROM aliases
+ INNER JOIN photo ON(id = uid)
+ WHERE alias = {?}", $x);
+
+ if ((list($type, $data) = $res->fetchOneRow())) {
+ Header("Content-type: image/$type");
+ echo $data;
+ } else {
+ Header('Content-type: image/png');
+ echo file_get_contents(dirname(__FILE__).'/../htdocs/images/none.png');
+ }
+ exit;
$page->assign('nom', $nom);
if ($id && Post::has('del')) {
XDB::query('DELETE FROM groupex.membres WHERE asso_id={?}', $id);
$page->assign('nom', $nom);
if ($id && Post::has('del')) {
XDB::query('DELETE FROM groupex.membres WHERE asso_id={?}', $id);
WHERE alias LIKE {?}', '%@'.$domain);
$page->trig('suppression des alias mails');
WHERE alias LIKE {?}', '%@'.$domain);
$page->trig('suppression des alias mails');
- require_once('lists.inc.php');
- $client =& lists_xmlrpc(S::v('uid'), S::v('password'), $domain);
- if ($listes = $client->get_lists()) {
+ $mmlist = new MMList(S::v('uid'), S::v('password'), $domain);
+ if ($listes = $mmlist->get_lists()) {
WHERE FIND_IN_SET("Institutions", cat)
ORDER BY diminutif');
$page->assign('inst', $res);
WHERE FIND_IN_SET("Institutions", cat)
ORDER BY diminutif');
$page->assign('inst', $res);
WHERE FIND_IN_SET({?}, cat)
ORDER BY nom", $cat);
$page->assign('gps', $res->fetchAllAssoc());
} elseif (!is_null($dom)) {
WHERE FIND_IN_SET({?}, cat)
ORDER BY nom", $cat);
$page->assign('gps', $res->fetchAllAssoc());
} elseif (!is_null($dom)) {
WHERE FIND_IN_SET({?}, cat) AND dom={?}
ORDER BY nom", $cat, $dom);
$page->assign('gps', $res->fetchAllAssoc());
}
WHERE FIND_IN_SET({?}, cat) AND dom={?}
ORDER BY nom", $cat, $dom);
$page->assign('gps', $res->fetchAllAssoc());
}
+
+ function handler_autologin(&$page)
+ {
+ $allkeys = func_get_args();
+ unset($allkeys[0]);
+ $url = join('/',$allkeys);
+ header("Content-type: text/javascript; charset=utf-8");
+ echo '$.ajax({ url: "'.$url.'?forceXml=1", dataType: "xml", success: function(xml) { $("body",xml).insertBefore("body"); $("body:eq(1)").remove(); }});';
+ exit;
+ }