Index: trunk/extensions/ConfirmAccount/ConfirmAccount.php |
— | — | @@ -62,8 +62,12 @@ |
63 | 63 | |
64 | 64 | # Show ToS checkbox |
65 | 65 | $wgAccountRequestToS = true; |
66 | | -# Show confirmation info fields |
| 66 | +# Show confirmation info fields (notes,url,files if enabled) |
67 | 67 | $wgAccountRequestExtraInfo = true; |
| 68 | +# If $wgAccountRequestExtraInfo, also enables file attachments |
| 69 | +$wgAllowAccountRequestFiles = true; |
| 70 | +# If files can be attached, what types can be used? (MIME data is checked) |
| 71 | +$wgAccountRequestExts = array( 'txt', 'pdf', 'doc', 'latex', 'rtf', 'text', 'wp', 'wpd', 'sxw' ); |
68 | 72 | |
69 | 73 | # Prospective account access levels. |
70 | 74 | # An associative array of integer => (special page param,user group,autotext) pairs. |
— | — | @@ -95,9 +99,6 @@ |
96 | 100 | # inject catpchas for requests too? |
97 | 101 | $wgConfirmAccountCaptchas = true; |
98 | 102 | |
99 | | -$wgAllowAccountRequestFiles = true; |
100 | | -$wgAccountRequestExts = array( 'txt', 'pdf', 'doc', 'latex', 'rtf', 'text', 'wp', 'wpd', 'sxw' ); |
101 | | - |
102 | 103 | # Storage repos. Has B/C for when this used FileStore. |
103 | 104 | $wgConfirmAccountFSRepos = array( |
104 | 105 | 'accountreqs' => array( # Location of attached files for pending requests |
— | — | @@ -131,9 +132,9 @@ |
132 | 133 | # If credentials are stored, this right lets users look them up |
133 | 134 | $wgGroupPermissions['bureaucrat']['lookupcredentials'] = true; |
134 | 135 | |
135 | | -$wgAvailableRights[] = 'confirmaccount'; |
136 | | -$wgAvailableRights[] = 'requestips'; |
137 | | -$wgAvailableRights[] = 'lookupcredentials'; |
| 136 | +$wgAvailableRights[] = 'confirmaccount'; // user can confirm account requests |
| 137 | +$wgAvailableRights[] = 'requestips'; // user can see IPs in request queue |
| 138 | +$wgAvailableRights[] = 'lookupcredentials'; // user can lookup info on confirmed users |
138 | 139 | |
139 | 140 | # Show notice for open requests to admins? |
140 | 141 | # This is cached, but still can be expensive on sites with thousands of requests. |
— | — | @@ -185,6 +186,7 @@ |
186 | 187 | $wgHooks['AbortNewAccount'][] = 'ConfirmAccountUIHooks::checkIfAccountNameIsPending'; |
187 | 188 | # Status header like "new messages" bar |
188 | 189 | $wgHooks['SiteNoticeAfter'][] = 'ConfirmAccountUIHooks::confirmAccountsNotice'; |
| 190 | + |
189 | 191 | # Register admin pages for AdminLinks extension. |
190 | 192 | $wgHooks['AdminLinks'][] = 'ConfirmAccountUIHooks::confirmAccountAdminLinks'; |
191 | 193 | |