Révision e9f59589
Ajouté par Assos Assos il y a presque 10 ans
drupal7/sites/all/modules/cas/cas.admin.inc | ||
---|---|---|
212 | 212 |
'#collapsed' => TRUE, |
213 | 213 |
); |
214 | 214 |
|
215 |
$form['pages']['cas_check_first'] = array(
|
|
216 |
'#type' => 'checkbox',
|
|
215 |
$form['pages']['cas_check_frequency'] = array(
|
|
216 |
'#type' => 'radios',
|
|
217 | 217 |
'#title' => t('Check with the CAS server to see if the user is already logged in?'), |
218 |
'#default_value' => variable_get('cas_check_first', 0), |
|
219 |
'#description' => t('This implements the <a href="@cas-gateway">Gateway feature</a> of the CAS Protocol. The check is only performed the first time a user visits your site, so that the local drupal logout is still useful for site admins.', array('@cas-gateway' => 'https://wiki.jasig.org/display/CAS/gateway')), |
|
218 |
'#default_value' => variable_get('cas_check_frequency', CAS_CHECK_NEVER), |
|
219 |
'#options' => array( |
|
220 |
CAS_CHECK_NEVER => 'Never', |
|
221 |
CAS_CHECK_ONCE => 'Once per browser session', |
|
222 |
CAS_CHECK_ALWAYS => 'Always (every page load)', |
|
223 |
), |
|
224 |
'#description' => t('This implements the') . ' <a href="https://wiki.jasig.org/display/CAS/gateway">Gateway feature</a> ' . t('of the CAS Protocol.') . ' <strong>WARNING:</strong> ' . t('Enabling it at all will') . ' <em>' . t('completely disable page caching') . '</em>' . t(', and will prevent users from logging out locally unless also logged out of CAS. Setting it to "Always" will perform redirects on EVERY page load unless the user is already logged in, and is not recommended in most circumstances.'), |
|
220 | 225 |
); |
221 | 226 |
|
222 | 227 |
$form['pages']['cas_access'] = array( |
... | ... | |
337 | 342 |
|
338 | 343 |
$form['advanced']['cas_debugfile'] = array( |
339 | 344 |
'#type' => 'textfield', |
340 |
'#title' => t('CAS debugging output filename'),
|
|
345 |
'#title' => t('CAS debugging output file'), |
|
341 | 346 |
'#default_value' => variable_get('cas_debugfile', ''), |
342 | 347 |
'#maxlength' => 255, |
343 |
'#description' => t("Leave empty if you don't want debugging output."),
|
|
348 |
'#description' => "<p>" . t("A file system path and filename where the CAS debug log will be written. May be either a full path or a path relative to the Drupal installation root. The directory and file must be writable by Drupal.") . "</p> <p>" . t("Leave blank to disable logging.") . "</p> <p><strong>" . t("Debugging should not be enabled on production systems.") . "</strong></p>",
|
|
344 | 349 |
); |
345 | 350 |
|
346 | 351 |
return system_settings_form($form); |
Formats disponibles : Unified diff
Weekly update of contrib modules