Changeset 138

Show
Ignore:
Timestamp:
06/25/2006 05:02:48 PM (4 years ago)
Author:
NilsLindenberg
Message:

further 'fix' for #236

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/actions/usersettings.php

    r130 r138  
    4848if (!defined('CHANGE_BUTTON_LABEL')) define('CHANGE_BUTTON_LABEL', "Change password"); 
    4949if (!defined('REGISTER_BUTTON_LABEL')) define('REGISTER_BUTTON_LABEL', "Register"); 
    50 if (!defined('REGISTER_CODE_LABEL')) define('REGISTER_CODE_LABEL', "Register Code:"); 
     50if (!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>:"); 
    5151if (!defined('QUICK_LINKS_HEADING')) define('QUICK_LINKS_HEADING', "Quick links"); 
    5252if (!defined('QUICK_LINKS')) define('QUICK_LINKS', "See a list of pages you own (MyPages) and pages you've edited (MyChanges)."); 
     
    6767if (!defined('ERROR_INVALID_REVISION_DISPLAY_LIMIT')) define('ERROR_INVALID_REVISION_DISPLAY_LIMIT', "The number of page revisions should not exceed %d."); 
    6868if (!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!"); 
     69if (!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."); 
    7070if (!defined('NO_REGISTRATION')) define('NO_REGISTRATION', "Registration on this wiki is not possible."); 
    7171if (!defined('REGISTRATION_SUCCEEDED')) define('REGISTRATION_SUCCEEDED', "You have successfully registered!"); 
     
    106106$revisioncount_highlight = ''; 
    107107$changescount_highlight = ''; 
    108 $registercode_highlight = ''; 
     108$invitation_code_highlight = ''; 
    109109 
    110110//create URL 
     
    360360        if (isset($_POST['action']) && ($_POST['action'] == 'login')) 
    361361        { 
    362                 print("hallo"); 
    363362                // if user name already exists, check password 
    364363                if (isset($_POST['name']) && $existingUser = $this->LoadUser($_POST['name'])) 
     
    437436                                        $password_confirm_highlight = INPUT_ERROR_STYLE; 
    438437                                        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; 
    442441                        break; 
    443442                                default: //valid input, create user 
     
    551550?> 
    552551               <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> 
    555554               </tr> 
    556555<?php 
  • trunk/setup/install.php

    r134 r138  
    305305        test(sprintf(ADDING_CONFIG_ENTRY, 'allow_user_registration'), 1); 
    306306        $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"] = ''; 
    309309        test(sprintf(ADDING_CONFIG_ENTRY, 'enable_user_host_lookup'), 1); 
    310310        $config["enable_user_host_lookup"] = '1';        
  • trunk/wikka.php

    r134 r138  
    135135        'require_edit_note'             => '0',         # edit note optional (0, default), edit note required (1) edit note disabled (2) 
    136136        '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' 
    138138        'enable_user_host_lookup'       => '1',         #lookup of unregistered users' hostname from IP address can be enabled (1, default) or disabled (0) if too slow 
    139139        'double_doublequote_html'       => 'safe',