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 | |
2f678da1 |
26 | $globals->menu->addPrivateEntry(XOM_CUSTOM, 10, 'Mon profil', 'profile/edit'); |
b48a0758 |
27 | $globals->menu->addPrivateEntry(XOM_CUSTOM, 20, 'Mes contacts', 'carnet/contacts'); |
15a094c0 |
28 | $globals->menu->addPrivateEntry(XOM_CUSTOM, 30, 'Mon carnet', 'carnet/'); |
7c77c3ee |
29 | $globals->menu->addPrivateEntry(XOM_CUSTOM, 40, 'Mon mot de passe', 'password'); |
7927d719 |
30 | $globals->menu->addPrivateEntry(XOM_CUSTOM, 50, 'Mes préférences', 'prefs'); |
0337d704 |
31 | |
7b728d84 |
32 | $globals->menu->addPrivateEntry(XOM_GROUPS, 10, 'Trombi promo', 'trombi'); |
7da8ef90 |
33 | $globals->menu->addPrivateEntry(XOM_GROUPS, 20, 'Conseil Pro.', 'referent/search'); |
5c7c72a4 |
34 | if ($globals->geoloc->use_map()) |
15a094c0 |
35 | $globals->menu->addPrivateEntry(XOM_GROUPS, 10, 'Planisphère', 'geoloc/'); |
71fe935c |
36 | $globals->menu->addPrivateEntry(XOM_GROUPS, 30, 'Groupes X', 'http://www.polytechnique.net/plan'); |
0337d704 |
37 | |
15a094c0 |
38 | $globals->menu->addPrivateEntry(XOM_INFOS, 10, 'Documentations', 'Docs/'); |
39 | $globals->menu->addPrivateEntry(XOM_INFOS, 20, 'Nous contacter', 'Docs/NousContacter'); |
40 | $globals->menu->addPrivateEntry(XOM_INFOS, 30, 'Carrières', 'Docs/Emploi'); |
0337d704 |
41 | |
15a094c0 |
42 | $globals->menu->addPrivateEntry(XOM_ADMIN, 00, 'Marketing', 'marketing'); |
43 | $globals->menu->addPrivateEntry(XOM_ADMIN, 10, 'Administration', 'admin/'); |
0889eb33 |
44 | $globals->menu->addPrivateEntry(XOM_ADMIN, 20, 'Clear cache', 'purge_cache'); |
15a094c0 |
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 | |
1a828cd4 |
48 | $globals->menu->addPublicEntry(XOM_US, 00, 'Me connecter !', 'events'); |
0337d704 |
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 | // }}} |
0337d704 |
71 | ?> |