LJSUP-17669: Login.bml form refactoring
[livejournal.git] / cgi-bin / crumbs.pl
blobedc1c67ed50269dfcec902b5ba5025ef2dc659c0
1 package LJ;
2 use strict;
4 # Stores all global crumbs and builds the crumbs hash
6 use POSIX qw/ENOENT/;
8 %LJ::CRUMBS = (
9 ## key => [ (name, not used), (link href), (parent) ]
11 'acctstatus' => ['Account Status', '/accountstatus.bml', 'manage'],
12 'addfriend' => ['Add Friend', '', 'friends'],
13 'addtodo' => ['Add To-Do Item', '', 'todo'],
14 'advcustomize' => ['Customize Advanced S2 Settings', '/customize/advanced/', 'manage'],
15 'advsearch' => ['Advanced Search', '/directorysearch.bml', 'search'],
16 'aliases' => ['My Aliases', '/manage/notes.bml', 'home'],
17 'birthdays' => ['Birthdays', '/birthdays.bml', 'friends'],
18 'changeemail' => ['Change Email Address', '/changeemail.bml', 'editprofile'],
19 'changepass' => ['Change Password', '/changepassword.bml', 'manage'],
20 'comminvites' => ['Community Invitations', '/manage/invites.bml', 'manage'],
21 'commmembers' => ['Community Membership', '', 'managecommunity'],
22 'commpending' => ['Pending Memberships', '', 'managecommunity'],
23 'commsearch' => ['Community Search', '/community/search.bml', 'community'],
24 'commsentinvites' => ['Sent Invitations', '/community/sentinvites.bml', 'managecommunity'],
25 'commsettings' => ['Community Settings', '/community/settings.bml', 'managecommunity'],
26 'community' => ['Community Center', '/community/', 'home'],
27 'createcommunity' => ['Create Community', '/community/create.bml', 'managecommunity'],
28 'createjournal_1' => ['Create Your Account', '/create.bml', 'home'],
29 'createstyle' => ['Create Style', '/styles/create.bml', 'modify'],
30 'customize' => ['Customize S2 Settings', '/customize/', 'manage'],
31 'customizelayer' => ['Individual Customizations', '/customize/layer.bml', 'customize'],
32 'domain' => ['Domain Aliasing', '/manage/domain.bml', 'manage'],
33 'delcomment' => ['Delete Comment', '/delcomment.bml', 'home'],
34 'editentries' => ['Edit Entries', '/editjournal.bml', 'manage'],
35 'editentries_do' => ['Edit Entry', '/editjournal_do.bml', 'editentries'],
36 'scheduledposts' => ['Edit Scheduled Entries', '/manage/scheduled_posts.bml', 'manage'],
37 'editinfo' => ['Personal Info', '/manage/profile/', 'manage'],
38 'editprofile' => ['Edit Profile', '/manage/profile/', 'manage'],
39 'editsettings' => ['Viewing Options', '/manage/profile/', 'manage'],
40 'editstyle' => ['Edit Style', '/styles/edit.bml', 'modify'],
41 'emailmanage' => ['Email Management', '/tools/emailmanage.bml', 'manage'],
42 'encodings' => ['About Encodings', '/support/encodings.bml', 'support'],
43 'export' => ['Export Journal', '/export.bml', 'home'],
44 'faq' => ['Frequently Asked Questions', '/support/faq/', 'support'],
45 'feedstersearch' => ['Search a Journal', '/tools/search.bml', 'home'],
46 'filterfriends' => ['Filter Friends Page', '/friends/filter.bml', 'friends'],
47 'friends' => ['Friends Tools', '/friends/', 'manage'],
48 'home' => ['Home', '/', ''],
49 'invitefriend' => ['Invite a Friend', '/friends/invite.bml', 'friends'],
50 'invite2paid' => ['Invite To Paid', '/friends/invite2paid.bml', 'friends'],
51 'joincomm' => ['Join Community', '', 'community'],
52 'latestposts' => ['Latest Posts', '/stats/latest.bml', 'stats'],
53 'layerbrowse' => ['Public Layer Browser', '/customize/advanced/layerbrowse.bml', 'advcustomize'],
54 'leavecomm' => ['Leave Community', '', 'community'],
55 'login' => ['Login', '/login.bml', 'home'],
56 'logout' => ['Logout', '/logout.bml', 'home'],
57 'lostinfo' => ['Lost Info', '/lostinfo.bml', 'manage'],
58 'manage' => ['Manage Accounts', '/manage/', 'home'],
59 'managecomments' => ['Manage Comments', '/tools/recent_comments.bml', 'manage'],
60 'managecommentsettings' => [ 'Manage Comment Settings', '/manage/comments', 'manage'],
61 'managecommunities' => ['Manage Communities', '/community/manage.bml', 'manage'],
62 'managefriends' => ['Manage Friends', '/friends/edit.bml', 'friends'],
63 'managefriendgrps' => ['Manage Custom Friends Groups', '/friends/editgroups.bml', 'friends'],
64 'managetags' => ['Manage Tags', ($LJ::DISABLED{'tags_merge'} ? '/manage/tags.bml' : '/account/settings/tags'), 'manage'],
65 'managelogins' => ['Manage Your Login Sessions', '/manage/logins.bml', 'manage'],
66 'manageuserpics' => ['Manage Userpics', '/editpics.bml', 'manage'],
67 'meme' => ['Meme Tracker', '/meme.bml', 'home'],
68 'memories' => ['Memorable Posts', '/tools/memories.bml', 'manage'],
69 'mobilepost' => ['Mobile Post Settings', '/manage/emailpost.bml', 'manage'],
70 'moderate' => ['Community Moderation', '/community/moderate.bml', 'community'],
71 'moodeditor' => ['Custom Mood Theme Editor', '/manage/moodthemes.bml', 'manage'],
72 'moodlist' => ['Mood Viewer', '/moodlist.bml', 'manage'],
73 'news' => ['News', '/news.bml', 'home'],
74 'nudgefriend' => ['Nudge a Friend', '/friends/nudge.bml', 'friends'],
75 'popfaq' => ['Popular FAQs', '/support/popfaq.bml', 'faq'],
76 'postentry' => ['Post an Entry', '/update.bml', 'home'],
77 'preview' => ['Layout Previews', '/customize/preview.bml', 'customize'],
78 'register' => ['Validate Email', '/register.bml', 'home'],
79 'schools' => ['Schools Directory', '/schools/', 'home'],
80 'schoolsfind' => ['Find a School', '', 'schools'],
81 'schoolsmy' => ['My Schools', '/schools/manage.bml', 'schools'],
82 'searchinterests' => ['Search By Interest', '/interests.bml', 'search'],
83 'searchregion' => ['Search By Region', '/directory.bml', 'search'],
84 'seeoverrides' => ['View User Overrides', '', 'support'],
85 'setpgpkey' => ['Public Key', '/manage/pubkey.bml', 'manage'],
86 'stats' => ['Statistics', '/stats.bml', 'about'],
87 'styles' => ['Styles', '/styles/', 'modify'],
88 'support' => ['Support', '/support/', 'home'],
89 'supportact' => ['Request Action', '', 'support'],
90 'supportappend' => ['Append to Request', '', 'support'],
91 'supporthelp' => ['Request Board', '/support/help.bml', 'support'],
92 'supportnotify' => ['Notification Settings', '/support/changenotify.bml', 'support'],
93 'supportscores' => ['High Scores', '/support/highscores.bml', 'support'],
94 'supportsubmit' => ['Submit Request', '/support/submit.bml', 'support'],
95 'textmessage' => ['Send Text Message', '/tools/textmessage.bml', 'home'],
96 'themes' => ['Theme Previews', '/customize/themes.bml', 'customize'],
97 'todo' => ['Todo List', '/todo', 'home'],
98 'transfercomm' => ['Transfer Community', '/community/transfer.bml', 'managecommunity'],
99 'translate' => ['Translation Area', '/translate/', 'home'],
100 'translateteams' => ['Translation Teams', '/translate/teams.bml', 'translate'],
101 'unsubscribe' => ['Unsubscribe', '/unsubscribe.bml', 'home'],
102 'utf8convert' => ['UTF-8 Converter', '/utf8convert.bml', 'manage'],
103 'yourlayers' => ['Your Layers', '/customize/advanced/layers.bml', 'advcustomize'],
104 'yourstyles' => ['Your Styles', '/customize/advanced/styles.bml', 'advcustomize'],
107 # include the local crumbs info
108 eval { require "crumbs-local.pl" };
109 die $@ if $@ && $! != ENOENT;