Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 23... Línea 23...
23
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
23
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
24
 */
24
 */
Línea 25... Línea 25...
25
 
25
 
Línea -... Línea 26...
-
 
26
defined('MOODLE_INTERNAL') || die();
-
 
27
 
-
 
28
$ADMIN->add('server', new admin_category('taskconfig', new lang_string('taskadmintitle', 'admin')));
-
 
29
$ADMIN->add('server', new admin_category('email', new lang_string('categoryemail', 'admin')));
26
defined('MOODLE_INTERNAL') || die();
30
$ADMIN->add('server', new admin_category('webservicesettings', new lang_string('webservices', 'webservice')));
27
 
31
 
28
if ($hassiteconfig) {
32
if ($hassiteconfig) {
29
    // System paths.
33
    // System paths.
30
    $temp = new admin_settingpage('systempaths', new lang_string('systempaths', 'admin'));
34
    $temp = new admin_settingpage('systempaths', new lang_string('systempaths', 'admin'));
Línea 179... Línea 183...
179
        new lang_string('configproxytype', 'admin'), 'HTTP', $options));
183
        new lang_string('configproxytype', 'admin'), 'HTTP', $options));
180
    $temp->add(new admin_setting_configtext('proxyuser', new lang_string('proxyuser', 'admin'),
184
    $temp->add(new admin_setting_configtext('proxyuser', new lang_string('proxyuser', 'admin'),
181
        new lang_string('configproxyuser', 'admin'), ''));
185
        new lang_string('configproxyuser', 'admin'), ''));
182
    $temp->add(new admin_setting_configpasswordunmask('proxypassword', new lang_string('proxypassword', 'admin'),
186
    $temp->add(new admin_setting_configpasswordunmask('proxypassword', new lang_string('proxypassword', 'admin'),
183
        new lang_string('configproxypassword', 'admin'), ''));
187
        new lang_string('configproxypassword', 'admin'), ''));
-
 
188
 
184
    $temp->add(new admin_setting_configtext('proxybypass', new lang_string('proxybypass', 'admin'),
189
    $setting = new admin_setting_configtext('proxybypass', new lang_string('proxybypass', 'admin'),
185
        new lang_string('configproxybypass', 'admin'), 'localhost, 127.0.0.1'));
190
        new lang_string('configproxybypass', 'admin'), 'localhost,127.0.0.1');
-
 
191
    $setting->set_updatedcallback(function() {
-
 
192
        // Normalize $CFG->proxybypass value.
-
 
193
        $normalizedvalue = \core\ip_utils::normalize_internet_address_list(get_config('core', 'proxybypass'));
-
 
194
        set_config('proxybypass', $normalizedvalue);
-
 
195
    });
-
 
196
    $temp->add($setting);
-
 
197
 
186
    $temp->add(new admin_setting_configcheckbox('proxylogunsafe', new lang_string('proxylogunsafe', 'admin'),
198
    $temp->add(new admin_setting_configcheckbox('proxylogunsafe', new lang_string('proxylogunsafe', 'admin'),
187
        new lang_string('configproxylogunsafe_help', 'admin'), 0));
199
        new lang_string('configproxylogunsafe_help', 'admin'), 0));
188
    $temp->add(new admin_setting_configcheckbox('proxyfixunsafe', new lang_string('proxyfixunsafe', 'admin'),
200
    $temp->add(new admin_setting_configcheckbox('proxyfixunsafe', new lang_string('proxyfixunsafe', 'admin'),
189
        new lang_string('configproxyfixunsafe_help', 'admin'), 0));
201
        new lang_string('configproxyfixunsafe_help', 'admin'), 0));
Línea 323... Línea 335...
323
        new lang_string('curltimeoutkbitrate_help', 'admin'), 56, PARAM_INT));
335
        new lang_string('curltimeoutkbitrate_help', 'admin'), 56, PARAM_INT));
Línea 324... Línea 336...
324
 
336
 
Línea 325... Línea 337...
325
    $ADMIN->add('server', $temp);
337
    $ADMIN->add('server', $temp);
326
 
-
 
Línea 327... Línea 338...
327
    // Tasks.
338
 
328
    $ADMIN->add('server', new admin_category('taskconfig', new lang_string('taskadmintitle', 'admin')));
339
    // Tasks.
Línea 329... Línea 340...
329
 
340
 
Línea 457... Línea 468...
457
            "{$CFG->wwwroot}/{$CFG->admin}/tasklogs.php"
468
            "{$CFG->wwwroot}/{$CFG->admin}/tasklogs.php"
458
        ));
469
        ));
459
    }
470
    }
Línea 460... Línea 471...
460
 
471
 
461
    // Email.
-
 
Línea 462... Línea 472...
462
    $ADMIN->add('server', new admin_category('email', new lang_string('categoryemail', 'admin')));
472
    // Email.
463
 
473
 
Línea 464... Línea 474...
464
    // Outgoing mail configuration.
474
    // Outgoing mail configuration.
Línea 629... Línea 639...
629
            new lang_string('updatenotifybuilds_desc', 'core_admin'), 0));
639
            new lang_string('updatenotifybuilds_desc', 'core_admin'), 0));
630
        $ADMIN->add('server', $temp);
640
        $ADMIN->add('server', $temp);
631
    }
641
    }
Línea 632... Línea 642...
632
 
642
 
633
    // Web services.
-
 
Línea 634... Línea 643...
634
    $ADMIN->add('server', new admin_category('webservicesettings', new lang_string('webservices', 'webservice')));
643
    // Web services.
635
 
644
 
636
    // Web services > Overview.
645
    // Web services > Overview.
637
    $temp = new admin_settingpage('webservicesoverview', new lang_string('webservicesoverview', 'webservice'));
646
    $temp = new admin_settingpage('webservicesoverview', new lang_string('webservicesoverview', 'webservice'));