0337d704 |
1 | <?php |
2 | |
3 | function tmp_menu() |
4 | { |
5 | global $globals; |
6 | |
7 | $globals->menu->addPrivateEntry(XOM_CUSTOM, 10, 'Mon profil', 'profil.php'); |
8 | $globals->menu->addPrivateEntry(XOM_CUSTOM, 20, 'Mes contacts', 'carnet/mescontacts.php'); |
9 | $globals->menu->addPrivateEntry(XOM_CUSTOM, 30, 'Mon carnet', 'carnet/'); |
10 | $globals->menu->addPrivateEntry(XOM_CUSTOM, 40, 'Mon mot de passe', 'motdepassemd5.php'); |
11 | $globals->menu->addPrivateEntry(XOM_CUSTOM, 50, 'Mes préférences', 'preferences.php'); |
12 | |
13 | $globals->menu->addPrivateEntry(XOM_GROUPS, 10, 'Trombi/Site promo', 'trombipromo.php'); |
14 | $globals->menu->addPrivateEntry(XOM_GROUPS, 20, 'Conseil Pro.', 'referent.php'); |
5c7c72a4 |
15 | if ($globals->geoloc->use_map()) |
16 | $globals->menu->addPrivateEntry(XOM_GROUPS, 10, 'Planisphère', 'geoloc/'); |
0337d704 |
17 | $globals->menu->addPrivateEntry(XOM_GROUPS, 30, 'Groupes X', 'http://www.polytechnique.net/plan.php'); |
0337d704 |
18 | |
4887dc90 |
19 | $globals->menu->addPrivateEntry(XOM_INFOS, 10, 'Documentations', 'Docs/'); |
20 | $globals->menu->addPrivateEntry(XOM_INFOS, 20, 'Nous contacter', 'Docs/NousContacter'); |
0b5cdd43 |
21 | $globals->menu->addPrivateEntry(XOM_INFOS, 30, 'Carrières', 'Docs/Emploi'); |
0337d704 |
22 | |
23 | $globals->menu->addPrivateEntry(XOM_ADMIN, 00, 'Marketing', 'marketing/'); |
24 | $globals->menu->addPrivateEntry(XOM_ADMIN, 10, 'Administration', 'admin/'); |
25 | $globals->menu->addPrivateEntry(XOM_ADMIN, 20, 'Clear cache', 'clear_all_cache.php'); |
de18f13d |
26 | $globals->menu->addPrivateEntry(XOM_ADMIN, 30, 'Trackers', 'http://trackers.polytechnique.org'); |
27 | $globals->menu->addPrivateEntry(XOM_ADMIN, 40, 'Support', 'http://support.polytechnique.org'); |
0337d704 |
28 | |
29 | $globals->menu->addPublicEntry(XOM_US, 00, 'Me connecter !', 'login.php'); |
30 | $globals->menu->addPublicEntry(XOM_US, 10, 'M\'inscrire', 'register/'); |
4887dc90 |
31 | $globals->menu->addPublicEntry(XOM_US, 20, 'Pourquoi m\'inscrire ?', 'Docs/PourquoiM\'Inscrire'); |
0337d704 |
32 | |
33 | $globals->menu->addPublicEntry(XOM_EXT, 10, 'Associations X', 'http://www.polytechnique.net/'); |
34 | $globals->menu->addPublicEntry(XOM_EXT, 20, 'Recrutement', 'http://www.manageurs.com/'); |
35 | |
4887dc90 |
36 | $globals->menu->addPublicEntry(XOM_INFOS, 00, 'A propos du site', 'Docs/APropos'); |
37 | $globals->menu->addPublicEntry(XOM_INFOS, 10, 'Nous contacter', 'Docs/NousContacter'); |
38 | $globals->menu->addPublicEntry(XOM_INFOS, 20, 'FAQ', 'Docs/FAQ'); |
0337d704 |
39 | } |
40 | |
41 | // {{{ subscribe HOOK |
42 | |
43 | function tmp_subscribe($forlife, $uid, $promo, $password) |
44 | { |
45 | |
46 | require_once('notifs.inc.php'); |
47 | register_watch_op($uid, WATCH_INSCR); |
48 | inscription_notifs_base($uid); |
49 | } |
50 | |
51 | // }}} |
52 | // {{{ prfs hook |
53 | |
54 | function tmp_prefs() |
55 | { |
56 | $fmt = Session::get('mail_fmt', 'html') == 'html' ? 'texte' : 'html'; |
57 | $fmt2 = Session::get('mail_fmt', 'html') == 'html' ? 'texte' : 'HTML'; |
58 | return Array( |
59 | Array( |
60 | 'url' => 'preferences.php?mail_fmt='.$fmt, |
61 | 'title' => 'Recevoir les mails en format '.$fmt2, |
62 | 'text' => 'Tu recois les mails envoyés par le site (lettre mensuelle, carnet, ...) de préférence <strong>sous forme de ' |
63 | .Session::get('mail_fmt', 'html').'</strong>', |
64 | 'weight' => 80 |
65 | ), |
66 | Array( |
67 | 'url' => 'preferences.php?rss='.(intval(Session::get('core_rss_hash')=='')), |
8aea4c48 |
68 | 'title' => (Session::get('core_rss_hash') ? 'Désactiver' : 'Activer').' les fils rss', |
0337d704 |
69 | 'text' => 'Ceci te permet d\'utiliser les fils rss du site. Attention, désactiver puis réactiver les fils en change les URL !', |
70 | 'weight' => 90 |
71 | ) |
72 | ); |
73 | } |
74 | |
75 | // }}} |
76 | ?> |