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'); |
15 | $globals->menu->addPrivateEntry(XOM_GROUPS, 30, 'Groupes X', 'http://www.polytechnique.net/plan.php'); |
16 | $globals->menu->addPrivateEntry(XOM_GROUPS, 40, 'Web Polytechnicien', 'http://www.polytechnique.net/'); |
17 | |
18 | $globals->menu->addPrivateEntry(XOM_INFOS, 10, 'Documentations', 'docs/'); |
19 | $globals->menu->addPrivateEntry(XOM_INFOS, 20, 'Nous contacter', 'docs/contacts.php'); |
20 | $globals->menu->addPrivateEntry(XOM_INFOS, 30, 'Emploi', 'http://www.manageurs.com/'); |
21 | |
22 | $globals->menu->addPrivateEntry(XOM_ADMIN, 00, 'Marketing', 'marketing/'); |
23 | $globals->menu->addPrivateEntry(XOM_ADMIN, 10, 'Administration', 'admin/'); |
24 | $globals->menu->addPrivateEntry(XOM_ADMIN, 20, 'Clear cache', 'clear_all_cache.php'); |
25 | |
26 | $globals->menu->addPublicEntry(XOM_US, 00, 'Me connecter !', 'login.php'); |
27 | $globals->menu->addPublicEntry(XOM_US, 10, 'M\'inscrire', 'register/'); |
28 | $globals->menu->addPublicEntry(XOM_US, 20, 'Pourquoi m\'inscrire ?', 'docs/services.php'); |
29 | |
30 | $globals->menu->addPublicEntry(XOM_EXT, 10, 'Associations X', 'http://www.polytechnique.net/'); |
31 | $globals->menu->addPublicEntry(XOM_EXT, 20, 'Recrutement', 'http://www.manageurs.com/'); |
32 | |
33 | $globals->menu->addPublicEntry(XOM_INFOS, 00, 'A propos du site', 'docs/apropos.php'); |
34 | $globals->menu->addPublicEntry(XOM_INFOS, 10, 'Nous contacter', 'docs/contacts.php'); |
35 | $globals->menu->addPublicEntry(XOM_INFOS, 20, 'FAQ', 'docs/faq.php'); |
36 | } |
37 | |
38 | // {{{ subscribe HOOK |
39 | |
40 | function tmp_subscribe($forlife, $uid, $promo, $password) |
41 | { |
42 | |
43 | require_once('notifs.inc.php'); |
44 | register_watch_op($uid, WATCH_INSCR); |
45 | inscription_notifs_base($uid); |
46 | } |
47 | |
48 | // }}} |
49 | // {{{ prfs hook |
50 | |
51 | function tmp_prefs() |
52 | { |
53 | $fmt = Session::get('mail_fmt', 'html') == 'html' ? 'texte' : 'html'; |
54 | $fmt2 = Session::get('mail_fmt', 'html') == 'html' ? 'texte' : 'HTML'; |
55 | return Array( |
56 | Array( |
57 | 'url' => 'preferences.php?mail_fmt='.$fmt, |
58 | 'title' => 'Recevoir les mails en format '.$fmt2, |
59 | 'text' => 'Tu recois les mails envoyés par le site (lettre mensuelle, carnet, ...) de préférence <strong>sous forme de ' |
60 | .Session::get('mail_fmt', 'html').'</strong>', |
61 | 'weight' => 80 |
62 | ), |
63 | Array( |
64 | 'url' => 'preferences.php?rss='.(intval(Session::get('core_rss_hash')=='')), |
65 | 'title' => (Session::get('core_rss_hash') ? 'désactiver' : 'activer').' les fils rss', |
66 | 'text' => 'Ceci te permet d\'utiliser les fils rss du site. Attention, désactiver puis réactiver les fils en change les URL !', |
67 | 'weight' => 90 |
68 | ) |
69 | ); |
70 | } |
71 | |
72 | // }}} |
73 | ?> |