Index: trunk/phase3/includes/SpecialPage.php |
— | — | @@ -80,93 +80,112 @@ |
81 | 81 | ** array( 'SpecialRedirectToSpecial', name, page to redirect to, special page param, ... ) |
82 | 82 | */ |
83 | 83 | static public $mList = array( |
| 84 | + # Maintenance Reports |
| 85 | + 'BrokenRedirects' => array( 'SpecialPage', 'BrokenRedirects' ), |
| 86 | + 'Deadendpages' => array( 'SpecialPage', 'Deadendpages' ), |
84 | 87 | 'DoubleRedirects' => array( 'SpecialPage', 'DoubleRedirects' ), |
85 | | - 'BrokenRedirects' => array( 'SpecialPage', 'BrokenRedirects' ), |
| 88 | + 'Longpages' => array( 'SpecialPage', 'Longpages' ), |
| 89 | + 'Ancientpages' => array( 'SpecialPage', 'Ancientpages' ), |
| 90 | + 'Lonelypages' => array( 'SpecialPage', 'Lonelypages' ), |
| 91 | + 'Fewestrevisions' => array( 'SpecialPage', 'Fewestrevisions' ), |
| 92 | + 'Withoutinterwiki' => array( 'SpecialPage', 'Withoutinterwiki' ), |
| 93 | + 'Protectedpages' => array( 'SpecialPage', 'Protectedpages' ), |
| 94 | + 'Protectedtitles' => array( 'SpecialPage', 'Protectedtitles' ), |
| 95 | + 'Shortpages' => array( 'SpecialPage', 'Shortpages' ), |
| 96 | + 'Uncategorizedcategories' => array( 'SpecialPage', 'Uncategorizedcategories' ), |
| 97 | + 'Uncategorizedimages' => array( 'SpecialPage', 'Uncategorizedimages' ), |
| 98 | + 'Uncategorizedpages' => array( 'SpecialPage', 'Uncategorizedpages' ), |
| 99 | + 'Uncategorizedtemplates' => array( 'SpecialPage', 'Uncategorizedtemplates' ), |
| 100 | + 'Unusedcategories' => array( 'SpecialPage', 'Unusedcategories' ), |
| 101 | + 'Unusedimages' => array( 'SpecialPage', 'Unusedimages' ), |
| 102 | + 'Unusedtemplates' => array( 'SpecialPage', 'Unusedtemplates' ), |
| 103 | + 'Unwatchedpages' => array( 'SpecialPage', 'Unwatchedpages', 'unwatchedpages' ), |
| 104 | + 'Wantedcategories' => array( 'SpecialPage', 'Wantedcategories' ), |
| 105 | + 'Wantedfiles' => array( 'SpecialPage', 'Wantedfiles' ), |
| 106 | + 'Wantedpages' => array( 'IncludableSpecialPage', 'Wantedpages' ), |
| 107 | + 'Wantedtemplates' => array( 'SpecialPage', 'Wantedtemplates' ), |
| 108 | + |
| 109 | + # List of pages |
| 110 | + 'Allpages' => 'SpecialAllpages', |
| 111 | + 'Prefixindex' => 'SpecialPrefixindex', |
| 112 | + 'Categories' => array( 'SpecialPage', 'Categories' ), |
86 | 113 | 'Disambiguations' => array( 'SpecialPage', 'Disambiguations' ), |
| 114 | + 'Listredirects' => array( 'SpecialPage', 'Listredirects' ), |
87 | 115 | |
88 | | - 'Userlogin' => array( 'SpecialPage', 'Userlogin' ), |
89 | | - 'Userlogout' => array( 'UnlistedSpecialPage', 'Userlogout' ), |
| 116 | + # Login/create account |
| 117 | + 'Userlogin' => array( 'SpecialPage', 'Userlogin' ), |
90 | 118 | 'CreateAccount' => array( 'SpecialRedirectToSpecial', 'CreateAccount', 'Userlogin', 'signup', array( 'uselang' ) ), |
91 | | - 'Preferences' => array( 'SpecialPage', 'Preferences' ), |
92 | | - 'Watchlist' => array( 'SpecialPage', 'Watchlist' ), |
| 119 | + |
| 120 | + # Users and rights |
| 121 | + 'Blockip' => array( 'SpecialPage', 'Blockip', 'block' ), |
| 122 | + 'Ipblocklist' => array( 'SpecialPage', 'Ipblocklist' ), |
93 | 123 | 'Resetpass' => 'SpecialResetpass', |
| 124 | + 'DeletedContributions' => 'DeletedContributionsPage', |
| 125 | + 'Preferences' => array( 'SpecialPage', 'Preferences' ), |
| 126 | + 'Contributions' => 'SpecialContributions', |
| 127 | + 'Listgrouprights' => 'SpecialListGroupRights', |
| 128 | + 'Listusers' => array( 'SpecialPage', 'Listusers' ), |
| 129 | + 'Userrights' => 'UserrightsPage', |
94 | 130 | |
| 131 | + # Recent changes and logs |
| 132 | + 'Newimages' => array( 'IncludableSpecialPage', 'Newimages' ), |
| 133 | + 'Log' => array( 'SpecialPage', 'Log' ), |
| 134 | + 'Watchlist' => array( 'SpecialPage', 'Watchlist' ), |
| 135 | + 'Newpages' => 'SpecialNewpages', |
| 136 | + 'Recentchanges' => 'SpecialRecentchanges', |
| 137 | + 'Recentchangeslinked' => 'SpecialRecentchangeslinked', |
| 138 | + 'Tags' => 'SpecialTags', |
95 | 139 | |
96 | | - 'Recentchanges' => 'SpecialRecentchanges', |
| 140 | + # Media reports and uploads |
| 141 | + 'Listfiles' => array( 'SpecialPage', 'Listfiles' ), |
| 142 | + 'Filepath' => array( 'SpecialPage', 'Filepath' ), |
| 143 | + 'MIMEsearch' => array( 'SpecialPage', 'MIMEsearch' ), |
| 144 | + 'FileDuplicateSearch' => array( 'SpecialPage', 'FileDuplicateSearch' ), |
97 | 145 | 'Upload' => array( 'SpecialPage', 'Upload' ), |
98 | | - 'Listfiles' => array( 'SpecialPage', 'Listfiles' ), |
99 | | - 'Newimages' => array( 'IncludableSpecialPage', 'Newimages' ), |
100 | | - 'Listusers' => array( 'SpecialPage', 'Listusers' ), |
101 | | - 'Listgrouprights' => 'SpecialListGroupRights', |
102 | | - 'DeletedContributions' => 'DeletedContributionsPage', |
| 146 | + |
| 147 | + # Wiki data and tools |
103 | 148 | 'Statistics' => 'SpecialStatistics', |
| 149 | + 'Allmessages' => array( 'SpecialPage', 'Allmessages' ), |
| 150 | + 'Version' => 'SpecialVersion', |
| 151 | + 'Lockdb' => array( 'SpecialPage', 'Lockdb', 'siteadmin' ), |
| 152 | + 'Unlockdb' => array( 'SpecialPage', 'Unlockdb', 'siteadmin' ), |
| 153 | + |
| 154 | + # Redirecting special pages |
| 155 | + 'LinkSearch' => array( 'SpecialPage', 'LinkSearch' ), |
104 | 156 | 'Randompage' => 'Randompage', |
105 | | - 'Lonelypages' => array( 'SpecialPage', 'Lonelypages' ), |
106 | | - 'Uncategorizedpages' => array( 'SpecialPage', 'Uncategorizedpages' ), |
107 | | - 'Uncategorizedcategories' => array( 'SpecialPage', 'Uncategorizedcategories' ), |
108 | | - 'Uncategorizedimages' => array( 'SpecialPage', 'Uncategorizedimages' ), |
109 | | - 'Uncategorizedtemplates' => array( 'SpecialPage', 'Uncategorizedtemplates' ), |
110 | | - 'Unusedcategories' => array( 'SpecialPage', 'Unusedcategories' ), |
111 | | - 'Unusedimages' => array( 'SpecialPage', 'Unusedimages' ), |
112 | | - 'Wantedpages' => array( 'IncludableSpecialPage', 'Wantedpages' ), |
113 | | - 'Wantedcategories' => array( 'SpecialPage', 'Wantedcategories' ), |
114 | | - 'Wantedfiles' => array( 'SpecialPage', 'Wantedfiles' ), |
115 | | - 'Wantedtemplates' => array( 'SpecialPage', 'Wantedtemplates' ), |
| 157 | + 'Randomredirect' => 'SpecialRandomredirect', |
| 158 | + |
| 159 | + # High use pages |
| 160 | + 'Mostlinkedcategories' => array( 'SpecialPage', 'Mostlinkedcategories' ), |
| 161 | + 'Mostimages' => array( 'SpecialPage', 'Mostimages' ), |
116 | 162 | 'Mostlinked' => array( 'SpecialPage', 'Mostlinked' ), |
117 | | - 'Mostlinkedcategories' => array( 'SpecialPage', 'Mostlinkedcategories' ), |
118 | 163 | 'Mostlinkedtemplates' => array( 'SpecialPage', 'Mostlinkedtemplates' ), |
119 | 164 | 'Mostcategories' => array( 'SpecialPage', 'Mostcategories' ), |
120 | | - 'Mostimages' => array( 'SpecialPage', 'Mostimages' ), |
121 | 165 | 'Mostrevisions' => array( 'SpecialPage', 'Mostrevisions' ), |
122 | | - 'Fewestrevisions' => array( 'SpecialPage', 'Fewestrevisions' ), |
123 | | - 'Shortpages' => array( 'SpecialPage', 'Shortpages' ), |
124 | | - 'Longpages' => array( 'SpecialPage', 'Longpages' ), |
125 | | - 'Newpages' => 'SpecialNewpages', |
126 | | - 'Ancientpages' => array( 'SpecialPage', 'Ancientpages' ), |
127 | | - 'Deadendpages' => array( 'SpecialPage', 'Deadendpages' ), |
128 | | - 'Protectedpages' => array( 'SpecialPage', 'Protectedpages' ), |
129 | | - 'Protectedtitles' => array( 'SpecialPage', 'Protectedtitles' ), |
130 | | - 'Allpages' => 'SpecialAllpages', |
131 | | - 'Prefixindex' => 'SpecialPrefixindex', |
132 | | - 'Ipblocklist' => array( 'SpecialPage', 'Ipblocklist' ), |
133 | | - 'Specialpages' => array( 'UnlistedSpecialPage', 'Specialpages' ), |
134 | | - 'Contributions' => 'SpecialContributions', |
135 | | - 'Emailuser' => array( 'UnlistedSpecialPage', 'Emailuser' ), |
| 166 | + |
| 167 | + # Page tools |
| 168 | + 'Export' => 'SpecialExport', |
| 169 | + 'Import' => 'SpecialImport', |
| 170 | + 'Undelete' => array( 'SpecialPage', 'Undelete', 'deletedhistory' ), |
136 | 171 | 'Whatlinkshere' => array( 'SpecialPage', 'Whatlinkshere' ), |
137 | | - 'LinkSearch' => array( 'SpecialPage', 'LinkSearch' ), |
138 | | - 'Recentchangeslinked' => 'SpecialRecentchangeslinked', |
139 | | - 'Movepage' => array( 'UnlistedSpecialPage', 'Movepage' ), |
140 | | - 'Blockme' => array( 'UnlistedSpecialPage', 'Blockme' ), |
| 172 | + 'MergeHistory' => array( 'SpecialPage', 'MergeHistory', 'mergehistory' ), |
| 173 | + |
| 174 | + # Other |
141 | 175 | 'Booksources' => 'SpecialBookSources', |
142 | | - 'Categories' => array( 'SpecialPage', 'Categories' ), |
143 | | - 'Export' => 'SpecialExport', |
144 | | - 'Version' => 'SpecialVersion', |
| 176 | + |
| 177 | + # Unlisted / redirects |
145 | 178 | 'Blankpage' => array( 'UnlistedSpecialPage', 'Blankpage' ), |
146 | | - 'Allmessages' => array( 'SpecialPage', 'Allmessages' ), |
147 | | - 'Log' => array( 'SpecialPage', 'Log' ), |
148 | | - 'Blockip' => array( 'SpecialPage', 'Blockip', 'block' ), |
149 | | - 'Undelete' => array( 'SpecialPage', 'Undelete', 'deletedhistory' ), |
150 | | - 'Import' => 'SpecialImport', |
151 | | - 'Lockdb' => array( 'SpecialPage', 'Lockdb', 'siteadmin' ), |
152 | | - 'Unlockdb' => array( 'SpecialPage', 'Unlockdb', 'siteadmin' ), |
153 | | - 'Userrights' => 'UserrightsPage', |
154 | | - 'MIMEsearch' => array( 'SpecialPage', 'MIMEsearch' ), |
155 | | - 'FileDuplicateSearch' => array( 'SpecialPage', 'FileDuplicateSearch' ), |
156 | | - 'Unwatchedpages' => array( 'SpecialPage', 'Unwatchedpages', 'unwatchedpages' ), |
157 | | - 'Listredirects' => array( 'SpecialPage', 'Listredirects' ), |
158 | | - 'Revisiondelete' => array( 'UnlistedSpecialPage', 'Revisiondelete', 'deleterevision' ), |
159 | | - 'Unusedtemplates' => array( 'SpecialPage', 'Unusedtemplates' ), |
160 | | - 'Randomredirect' => 'SpecialRandomredirect', |
161 | | - 'Withoutinterwiki' => array( 'SpecialPage', 'Withoutinterwiki' ), |
162 | | - 'Filepath' => array( 'SpecialPage', 'Filepath' ), |
163 | | - 'Tags' => 'SpecialTags', |
164 | | - |
| 179 | + 'Blockme' => array( 'UnlistedSpecialPage', 'Blockme' ), |
| 180 | + 'Emailuser' => array( 'UnlistedSpecialPage', 'Emailuser' ), |
| 181 | + 'Listadmins' => array( 'SpecialRedirectToSpecial', 'Listadmins', 'Listusers', 'sysop' ), |
| 182 | + 'Listbots' => array( 'SpecialRedirectToSpecial', 'Listbots', 'Listusers', 'bot' ), |
| 183 | + 'Movepage' => array( 'UnlistedSpecialPage', 'Movepage' ), |
| 184 | + 'Mycontributions' => array( 'SpecialMycontributions' ), |
165 | 185 | 'Mypage' => array( 'SpecialMypage' ), |
166 | 186 | 'Mytalk' => array( 'SpecialMytalk' ), |
167 | | - 'Mycontributions' => array( 'SpecialMycontributions' ), |
168 | | - 'Listadmins' => array( 'SpecialRedirectToSpecial', 'Listadmins', 'Listusers', 'sysop' ), |
169 | | - 'MergeHistory' => array( 'SpecialPage', 'MergeHistory', 'mergehistory' ), |
170 | | - 'Listbots' => array( 'SpecialRedirectToSpecial', 'Listbots', 'Listusers', 'bot' ), |
| 187 | + 'Revisiondelete' => array( 'UnlistedSpecialPage', 'Revisiondelete', 'deleterevision' ), |
| 188 | + 'Specialpages' => array( 'UnlistedSpecialPage', 'Specialpages' ), |
| 189 | + 'Userlogout' => array( 'UnlistedSpecialPage', 'Userlogout' ), |
171 | 190 | ); |
172 | 191 | |
173 | 192 | static public $mAliases; |