Merge commit 'catalyst/MOODLE_19_STABLE' into mdl19-linuxchix
[moodle-linuxchix.git] / mod / chat / settings.php
blob7769d5af797a222281ebd2e9603673fc7287bbed
1 <?php //$Id$
3 $settings->add(new admin_setting_heading('chat_method_heading', get_string('generalconfig', 'chat'),
4 get_string('explaingeneralconfig', 'chat')));
6 $options = array();
7 $options['header_js'] = get_string('methodnormal', 'chat');
8 $options['sockets'] = get_string('methoddaemon', 'chat');
9 $settings->add(new admin_setting_configselect('chat_method', get_string('method', 'chat'),
10 get_string('configmethod', 'chat'), 'header_js', $options));
12 $settings->add(new admin_setting_configtext('chat_refresh_userlist', get_string('refreshuserlist', 'chat'),
13 get_string('configrefreshuserlist', 'chat'), 10, PARAM_INT));
15 $settings->add(new admin_setting_configtext('chat_old_ping', get_string('oldping', 'chat'),
16 get_string('configoldping', 'chat'), 35, PARAM_INT));
19 $settings->add(new admin_setting_heading('chat_normal_heading', get_string('methodnormal', 'chat'),
20 get_string('explainmethodnormal', 'chat')));
22 $settings->add(new admin_setting_configtext('chat_refresh_room', get_string('refreshroom', 'chat'),
23 get_string('configrefreshroom', 'chat'), 5, PARAM_INT));
25 $options = array();
26 $options['jsupdate'] = get_string('normalkeepalive', 'chat');
27 $options['jsupdated'] = get_string('normalstream', 'chat');
28 $settings->add(new admin_setting_configselect('chat_normal_updatemode', get_string('updatemethod', 'chat'),
29 get_string('confignormalupdatemode', 'chat'), 'jsupdate', $options));
32 $settings->add(new admin_setting_heading('chat_daemon_heading', get_string('methoddaemon', 'chat'),
33 get_string('explainmethoddaemon', 'chat')));
35 $settings->add(new admin_setting_configtext('chat_serverhost', get_string('serverhost', 'chat'),
36 get_string('configserverhost', 'chat'), $_SERVER['HTTP_HOST']));
38 $settings->add(new admin_setting_configtext('chat_serverip', get_string('serverip', 'chat'),
39 get_string('configserverip', 'chat'), '127.0.0.1'));
41 $settings->add(new admin_setting_configtext('chat_serverport', get_string('serverport', 'chat'),
42 get_string('configserverport', 'chat'), 9111, PARAM_INT));
44 $settings->add(new admin_setting_configtext('chat_servermax', get_string('servermax', 'chat'),
45 get_string('configservermax', 'chat'), 100, PARAM_INT));