Ignore:
Timestamp:
May 2, 2016, 12:09:23 PM (3 years ago)
Author:
jrpelegrina
Message:

Updated to moodle 3.0.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • moodle/trunk/fuentes/auth/cas/config.html

    r136 r1331  
    3333if (!isset ($config->certificate_path)) {
    3434    $config->certificate_path = '';
     35}
     36if (!isset($config->curl_ssl_version)) {
     37    $config->curl_ssl_version = '';
    3538}
    3639if (!isset($config->logout_return_url)) {
     
    215218    <td>
    216219        <?php print_string('auth_cas_certificate_path', 'auth_cas') ?>
     220    </td>
     221</tr>
     222<tr valign="top" class="required">
     223    <td align="right"><label for="curl_ ssl_version"><?php print_string('auth_cas_curl_ssl_version_key', 'auth_cas') ?>: </label></td>
     224    <td>
     225        <?php
     226            $sslversions = array();
     227            $sslversions[''] = get_string('auth_cas_curl_ssl_version_default', 'auth_cas');
     228            if (defined('CURL_SSLVERSION_TLSv1')) {
     229                $sslversions[CURL_SSLVERSION_TLSv1] = get_string('auth_cas_curl_ssl_version_TLSv1x', 'auth_cas');
     230            }
     231            if (defined('CURL_SSLVERSION_TLSv1_0')) {
     232                $sslversions[CURL_SSLVERSION_TLSv1_0] = get_string('auth_cas_curl_ssl_version_TLSv10', 'auth_cas');
     233            }
     234            if (defined('CURL_SSLVERSION_TLSv1_1')) {
     235                $sslversions[CURL_SSLVERSION_TLSv1_1] = get_string('auth_cas_curl_ssl_version_TLSv11', 'auth_cas');
     236            }
     237            if (defined('CURL_SSLVERSION_TLSv1_2')) {
     238                $sslversions[CURL_SSLVERSION_TLSv1_2] = get_string('auth_cas_curl_ssl_version_TLSv12', 'auth_cas');
     239            }
     240            if (defined('CURL_SSLVERSION_SSLv2')) {
     241                $sslversions[CURL_SSLVERSION_SSLv2] = get_string('auth_cas_curl_ssl_version_SSLv2', 'auth_cas');
     242            }
     243            if (defined('CURL_SSLVERSION_SSLv3')) {
     244                $sslversions[CURL_SSLVERSION_SSLv3] = get_string('auth_cas_curl_ssl_version_SSLv3', 'auth_cas');
     245            }
     246            echo html_writer::select($sslversions, 'curl_ssl_version', $config->curl_ssl_version, false);
     247            if (isset($err['curl_ssl_version'])) echo $OUTPUT->error_text($err['curl_ssl_version']);
     248        ?>
     249    </td>
     250    <td>
     251        <?php print_string('auth_cas_curl_ssl_version', 'auth_cas') ?>
    217252    </td>
    218253</tr>
Note: See TracChangeset for help on using the changeset viewer.