yms/admincp.php
changeset 8 be4a5f24bb29
parent 7 3db638306413
equal deleted inserted replaced
7:3db638306413 8:be4a5f24bb29
    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_force_client_id', !empty($_POST['force_client_id']) && ctype_digit($_POST['force_client_id']) ? $_POST['force_client_id'] : '');
    24     setConfig('yms_claim_enable', isset($_POST['claim_enable']) ? '1' : '0');
    25     setConfig('yms_claim_enable', isset($_POST['claim_enable']) ? '1' : '0');
    25     setConfig('yms_claim_auth_enable', isset($_POST['claimauth_enable']) ? '1' : '0');
    26     setConfig('yms_claim_auth_enable', isset($_POST['claimauth_enable']) ? '1' : '0');
    26     setConfig('yms_claim_auth_field', $_POST['claimauth_field']);
    27     setConfig('yms_claim_auth_field', $_POST['claimauth_field']);
    27     setConfig('yms_claim_auth_url', $_POST['claimauth_url']);
    28     setConfig('yms_claim_auth_url', $_POST['claimauth_url']);
    28     setConfig('yms_claim_auth_key', $_POST['claimauth_key']);
    29     setConfig('yms_claim_auth_key', $_POST['claimauth_key']);
    49       <td class="row1" style="width: 50%;">
    50       <td class="row1" style="width: 50%;">
    50         <label>
    51         <label>
    51           <input type="checkbox" name="require_reauth" <?php if ( getConfig('yms_require_reauth', 1) == 1 ) echo 'checked="checked" '; ?>/>
    52           <input type="checkbox" name="require_reauth" <?php if ( getConfig('yms_require_reauth', 1) == 1 ) echo 'checked="checked" '; ?>/>
    52           <?php echo $lang->get('yms_acp_field_require_reauth'); ?>
    53           <?php echo $lang->get('yms_acp_field_require_reauth'); ?>
    53         </label>
    54         </label>
       
    55       </td>
       
    56     </tr>
       
    57     
       
    58     <tr>
       
    59       <td class="row2" style="width: 50%;">
       
    60         <?php echo $lang->get('yms_acp_field_force_client_id_title'); ?><br />
       
    61         <small><?php echo $lang->get('yms_acp_field_force_client_id_hint'); ?></small>
       
    62       </td>
       
    63       <td class="row1" style="width: 50%;">
       
    64         <input type="text" size="5" name="force_client_id" <?php if ( ($force_cid = getConfig('yms_force_client_id', 0)) > 0 ) echo 'value="' . $force_cid . '"'; ?>/>
    54       </td>
    65       </td>
    55     </tr>
    66     </tr>
    56     
    67     
    57     <tr>
    68     <tr>
    58       <td class="row2" style="width: 50%;">
    69       <td class="row2" style="width: 50%;">