0337d704 |
1 | <?php |
46bde4d1 |
2 | /*************************************************************************** |
3 | * Copyright (C) 2003-2006 Polytechnique.org * |
4 | * http://opensource.polytechnique.org/ * |
5 | * * |
6 | * This program is free software; you can redistribute it and/or modify * |
7 | * it under the terms of the GNU General Public License as published by * |
8 | * the Free Software Foundation; either version 2 of the License, or * |
9 | * (at your option) any later version. * |
10 | * * |
11 | * This program is distributed in the hope that it will be useful, * |
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
14 | * GNU General Public License for more details. * |
15 | * * |
16 | * You should have received a copy of the GNU General Public License * |
17 | * along with this program; if not, write to the Free Software * |
18 | * Foundation, Inc., * |
19 | * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * |
20 | ***************************************************************************/ |
0337d704 |
21 | |
22 | function tmp_menu() |
23 | { |
24 | global $globals; |
25 | |
26 | $globals->menu->addPrivateEntry(XOM_CUSTOM, 10, 'Mon profil', 'profil.php'); |
27 | $globals->menu->addPrivateEntry(XOM_CUSTOM, 20, 'Mes contacts', 'carnet/mescontacts.php'); |
28 | $globals->menu->addPrivateEntry(XOM_CUSTOM, 30, 'Mon carnet', 'carnet/'); |
46bde4d1 |
29 | $globals->menu->addPrivateEntry(XOM_CUSTOM, 40, 'Mon mot de passe', 'motdepasse.php'); |
0337d704 |
30 | $globals->menu->addPrivateEntry(XOM_CUSTOM, 50, 'Mes préférences', 'preferences.php'); |
31 | |
32 | $globals->menu->addPrivateEntry(XOM_GROUPS, 10, 'Trombi/Site promo', 'trombipromo.php'); |
33 | $globals->menu->addPrivateEntry(XOM_GROUPS, 20, 'Conseil Pro.', 'referent.php'); |
5c7c72a4 |
34 | if ($globals->geoloc->use_map()) |
35 | $globals->menu->addPrivateEntry(XOM_GROUPS, 10, 'Planisphère', 'geoloc/'); |
0337d704 |
36 | $globals->menu->addPrivateEntry(XOM_GROUPS, 30, 'Groupes X', 'http://www.polytechnique.net/plan.php'); |
0337d704 |
37 | |
4887dc90 |
38 | $globals->menu->addPrivateEntry(XOM_INFOS, 10, 'Documentations', 'Docs/'); |
39 | $globals->menu->addPrivateEntry(XOM_INFOS, 20, 'Nous contacter', 'Docs/NousContacter'); |
0b5cdd43 |
40 | $globals->menu->addPrivateEntry(XOM_INFOS, 30, 'Carrières', 'Docs/Emploi'); |
0337d704 |
41 | |
42 | $globals->menu->addPrivateEntry(XOM_ADMIN, 00, 'Marketing', 'marketing/'); |
43 | $globals->menu->addPrivateEntry(XOM_ADMIN, 10, 'Administration', 'admin/'); |
44 | $globals->menu->addPrivateEntry(XOM_ADMIN, 20, 'Clear cache', 'clear_all_cache.php'); |
de18f13d |
45 | $globals->menu->addPrivateEntry(XOM_ADMIN, 30, 'Trackers', 'http://trackers.polytechnique.org'); |
46 | $globals->menu->addPrivateEntry(XOM_ADMIN, 40, 'Support', 'http://support.polytechnique.org'); |
0337d704 |
47 | |
48 | $globals->menu->addPublicEntry(XOM_US, 00, 'Me connecter !', 'login.php'); |
49 | $globals->menu->addPublicEntry(XOM_US, 10, 'M\'inscrire', 'register/'); |
4887dc90 |
50 | $globals->menu->addPublicEntry(XOM_US, 20, 'Pourquoi m\'inscrire ?', 'Docs/PourquoiM\'Inscrire'); |
0337d704 |
51 | |
52 | $globals->menu->addPublicEntry(XOM_EXT, 10, 'Associations X', 'http://www.polytechnique.net/'); |
53 | $globals->menu->addPublicEntry(XOM_EXT, 20, 'Recrutement', 'http://www.manageurs.com/'); |
54 | |
4887dc90 |
55 | $globals->menu->addPublicEntry(XOM_INFOS, 00, 'A propos du site', 'Docs/APropos'); |
56 | $globals->menu->addPublicEntry(XOM_INFOS, 10, 'Nous contacter', 'Docs/NousContacter'); |
57 | $globals->menu->addPublicEntry(XOM_INFOS, 20, 'FAQ', 'Docs/FAQ'); |
0337d704 |
58 | } |
59 | |
60 | // {{{ subscribe HOOK |
61 | |
62 | function tmp_subscribe($forlife, $uid, $promo, $password) |
63 | { |
64 | |
65 | require_once('notifs.inc.php'); |
66 | register_watch_op($uid, WATCH_INSCR); |
67 | inscription_notifs_base($uid); |
68 | } |
69 | |
70 | // }}} |
71 | // {{{ prfs hook |
72 | |
73 | function tmp_prefs() |
74 | { |
75 | $fmt = Session::get('mail_fmt', 'html') == 'html' ? 'texte' : 'html'; |
76 | $fmt2 = Session::get('mail_fmt', 'html') == 'html' ? 'texte' : 'HTML'; |
77 | return Array( |
78 | Array( |
79 | 'url' => 'preferences.php?mail_fmt='.$fmt, |
80 | 'title' => 'Recevoir les mails en format '.$fmt2, |
81 | 'text' => 'Tu recois les mails envoyés par le site (lettre mensuelle, carnet, ...) de préférence <strong>sous forme de ' |
82 | .Session::get('mail_fmt', 'html').'</strong>', |
83 | 'weight' => 80 |
84 | ), |
85 | Array( |
86 | 'url' => 'preferences.php?rss='.(intval(Session::get('core_rss_hash')=='')), |
8aea4c48 |
87 | 'title' => (Session::get('core_rss_hash') ? 'Désactiver' : 'Activer').' les fils rss', |
0337d704 |
88 | 'text' => 'Ceci te permet d\'utiliser les fils rss du site. Attention, désactiver puis réactiver les fils en change les URL !', |
89 | 'weight' => 90 |
90 | ) |
91 | ); |
92 | } |
93 | |
94 | // }}} |
95 | ?> |