yms/admincp.php
changeset 4 9fdc988ce46e
parent 3 6edb31919f0e
child 7 3db638306413
equal deleted inserted replaced
3:6edb31919f0e 4:9fdc988ce46e
    19   global $lang;
    19   global $lang;
    20   
    20   
    21   if ( isset($_POST['submit']) )
    21   if ( isset($_POST['submit']) )
    22   {
    22   {
    23     setConfig('yms_require_reauth', isset($_POST['require_reauth']) ? '1' : '0');
    23     setConfig('yms_require_reauth', isset($_POST['require_reauth']) ? '1' : '0');
       
    24     setConfig('yms_claim_enable', isset($_POST['claim_enable']) ? '1' : '0');
    24     setConfig('yms_claim_auth_enable', isset($_POST['claimauth_enable']) ? '1' : '0');
    25     setConfig('yms_claim_auth_enable', isset($_POST['claimauth_enable']) ? '1' : '0');
    25     setConfig('yms_claim_auth_field', $_POST['claimauth_field']);
    26     setConfig('yms_claim_auth_field', $_POST['claimauth_field']);
    26     setConfig('yms_claim_auth_url', $_POST['claimauth_url']);
    27     setConfig('yms_claim_auth_url', $_POST['claimauth_url']);
    27     setConfig('yms_claim_auth_key', $_POST['claimauth_key']);
    28     setConfig('yms_claim_auth_key', $_POST['claimauth_key']);
    28     
    29     
    47       </td>
    48       </td>
    48       <td class="row1" style="width: 50%;">
    49       <td class="row1" style="width: 50%;">
    49         <label>
    50         <label>
    50           <input type="checkbox" name="require_reauth" <?php if ( getConfig('yms_require_reauth', 1) == 1 ) echo 'checked="checked" '; ?>/>
    51           <input type="checkbox" name="require_reauth" <?php if ( getConfig('yms_require_reauth', 1) == 1 ) echo 'checked="checked" '; ?>/>
    51           <?php echo $lang->get('yms_acp_field_require_reauth'); ?>
    52           <?php echo $lang->get('yms_acp_field_require_reauth'); ?>
       
    53         </label>
       
    54       </td>
       
    55     </tr>
       
    56     
       
    57     <tr>
       
    58       <td class="row2" style="width: 50%;">
       
    59         <?php echo $lang->get('yms_acp_field_claim_enable_title'); ?><br />
       
    60         <small><?php echo $lang->get('yms_acp_field_claim_enable_hint'); ?></small>
       
    61       </td>
       
    62       <td class="row1" style="width: 50%;">
       
    63         <label>
       
    64           <input type="checkbox" name="claim_enable" <?php if ( getConfig('yms_claim_enable', 0) == 1 ) echo 'checked="checked" '; ?>/>
       
    65           <?php echo $lang->get('yms_acp_field_claim_enable'); ?>
    52         </label>
    66         </label>
    53       </td>
    67       </td>
    54     </tr>
    68     </tr>
    55     
    69     
    56     <tr>
    70     <tr>