Changeset 138
- Timestamp:
- 06/25/2006 05:02:48 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
actions/usersettings.php (modified) (6 diffs)
-
setup/install.php (modified) (1 diff)
-
wikka.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/actions/usersettings.php
r130 r138 48 48 if (!defined('CHANGE_BUTTON_LABEL')) define('CHANGE_BUTTON_LABEL', "Change password"); 49 49 if (!defined('REGISTER_BUTTON_LABEL')) define('REGISTER_BUTTON_LABEL', "Register"); 50 if (!defined(' REGISTER_CODE_LABEL')) define('REGISTER_CODE_LABEL', "Register Code:");50 if (!defined('INVITATION_CODE_LABEL')) define('INVITATION_CODE_LABEL', "<abbr title=\"Your should have recieved this phrase from your wiki-admin so you can register here.\">Invitation Code</abbr>:"); 51 51 if (!defined('QUICK_LINKS_HEADING')) define('QUICK_LINKS_HEADING', "Quick links"); 52 52 if (!defined('QUICK_LINKS')) define('QUICK_LINKS', "See a list of pages you own (MyPages) and pages you've edited (MyChanges)."); … … 67 67 if (!defined('ERROR_INVALID_REVISION_DISPLAY_LIMIT')) define('ERROR_INVALID_REVISION_DISPLAY_LIMIT', "The number of page revisions should not exceed %d."); 68 68 if (!defined('ERROR_INVALID_RECENTCHANGES_DISPLAY_LIMIT')) define('ERROR_INVALID_RECENTCHANGES_DISPLAY_LIMIT', "The number of recently changed pages should not exceed %d."); 69 if (!defined('ERROR_ REGISTER_CODE_INCORRECT')) define ('ERROR_REGISTER_CODE_INCORRECT', "Sorry, the register-code you entered was not correct!");69 if (!defined('ERROR_INVITATION_CODE_INCORRECT')) define ('ERROR_INVITATION_CODE_INCORRECT', "This is a private wiki, only invited members can register an account! Please contact your wiki-admin for an invitation."); 70 70 if (!defined('NO_REGISTRATION')) define('NO_REGISTRATION', "Registration on this wiki is not possible."); 71 71 if (!defined('REGISTRATION_SUCCEEDED')) define('REGISTRATION_SUCCEEDED', "You have successfully registered!"); … … 106 106 $revisioncount_highlight = ''; 107 107 $changescount_highlight = ''; 108 $ registercode_highlight = '';108 $invitation_code_highlight = ''; 109 109 110 110 //create URL … … 360 360 if (isset($_POST['action']) && ($_POST['action'] == 'login')) 361 361 { 362 print("hallo");363 362 // if user name already exists, check password 364 363 if (isset($_POST['name']) && $existingUser = $this->LoadUser($_POST['name'])) … … 437 436 $password_confirm_highlight = INPUT_ERROR_STYLE; 438 437 break; 439 case ($register == '2' && $_POST[' registercode'] !== $this->GetConfigValue('registercode')):440 $error = ERROR_ REGISTER_CODE_INCORRECT;441 $ registercode_highlight = INPUT_ERROR_STYLE;438 case ($register == '2' && $_POST['invitation_code'] !== $this->GetConfigValue('invitation_code')): 439 $error = ERROR_INVITATION_CODE_INCORRECT; 440 $invitation_code_highlight = INPUT_ERROR_STYLE; 442 441 break; 443 442 default: //valid input, create user … … 551 550 ?> 552 551 <tr> 553 <td align='right'><?php echo REGISTER_CODE_LABEL ?></td>554 <td><input <?php echo $ registercode_highlight; ?> type='text' size='20' name='registercode' /></td>552 <td align='right'><?php echo INVITATION_CODE_LABEL ?></td> 553 <td><input <?php echo $invitation_code_highlight; ?> type='text' size='20' name='invitation_code' /></td> 555 554 </tr> 556 555 <?php -
trunk/setup/install.php
r134 r138 305 305 test(sprintf(ADDING_CONFIG_ENTRY, 'allow_user_registration'), 1); 306 306 $config["allow_user_registration"] = '1'; 307 test(sprintf(ADDING_CONFIG_ENTRY, ' registercode'), 1);308 $config[" registercode"] = '';307 test(sprintf(ADDING_CONFIG_ENTRY, 'invitation_code'), 1); 308 $config["invitation_code"] = ''; 309 309 test(sprintf(ADDING_CONFIG_ENTRY, 'enable_user_host_lookup'), 1); 310 310 $config["enable_user_host_lookup"] = '1'; -
trunk/wikka.php
r134 r138 135 135 'require_edit_note' => '0', # edit note optional (0, default), edit note required (1) edit note disabled (2) 136 136 'allow_user_registration' => '1', # user registration disabled (0), enabled (1) or only possible with register code (2) 137 ' registercode' => '', # used by 'allow_user_registration' => '2'137 'invitation_code' => '', # used by 'allow_user_registration' => '2' 138 138 'enable_user_host_lookup' => '1', #lookup of unregistered users' hostname from IP address can be enabled (1, default) or disabled (0) if too slow 139 139 'double_doublequote_html' => 'safe',