Skip to content

Commit

Permalink
Added settings for allowemailaddresses and denyemailaddresses to the …
Browse files Browse the repository at this point in the history
…config menus
  • Loading branch information
moodler committed Mar 5, 2005
1 parent 66b7c24 commit f7ab4e5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
13 changes: 11 additions & 2 deletions admin/configvars.php
Expand Up @@ -218,7 +218,7 @@ function display_warning() {

/// language list
$interface['langlist'] = new configvar ( get_string('configlanglist', 'admin'),
'<input name="langlist" type="text" size="40" value="'.s($config->langlist).'" alt="langlist" />' );
'<input name="langlist" type="text" size="60" value="'.s($config->langlist).'" alt="langlist" />' );

/// locale
$interface['locale'] = new configvar ( get_string('configlocale', 'admin'),
Expand Down Expand Up @@ -284,7 +284,7 @@ function display_warning() {

/// sitepolicy
$user['sitepolicy'] = new configvar (get_string('configsitepolicy', 'admin'),
'<input type="text" name="sitepolicy" size="30" value="'.$config->sitepolicy.'" alt="sitepolicy" />' );
'<input type="text" name="sitepolicy" size="60" value="'.$config->sitepolicy.'" alt="sitepolicy" />' );


/// fullnamedisplay
Expand Down Expand Up @@ -459,6 +459,15 @@ function display_warning() {
$mail['digestmailtime'] = new configvar (get_string('configdigestmailtime', 'admin'),
choose_from_menu($hours, 'digestmailtime', $config->digestmailtime, '', '', 0, true) );

/// allowemailaddresses
$mail['allowemailaddresses'] = new configvar (get_string('configallowemailaddresses', 'admin'),
'<input name="allowemailaddresses" type="text" size="60" value="'.s($config->allowemailaddresses).'" alt="allowemailaddresses" />' );

/// denyemailaddresses
$mail['denyemailaddresses'] = new configvar (get_string('configdenyemailaddresses', 'admin'),
'<input name="denyemailaddresses" type="text" size="60" value="'.s($config->denyemailaddresses).'" alt="denyemailaddresses" />' );





Expand Down
2 changes: 2 additions & 0 deletions lang/en/admin.php
Expand Up @@ -8,6 +8,8 @@
$string['change'] = 'change';
$string['cachetext'] = 'Text cache lifetime';
$string['calendarsettings'] = 'Calendar';
$string['configallowemailaddresses'] = 'If you want to restrict all new email addresses to particular domains, then list them here separated by spaces, eg <strong>moodle.com moodle.org</strong>. All other domains will be rejected.';
$string['configdenyemailaddresses'] = 'To deny email addresses from particular domains list them here in the same way. All other domains will be accepted. eg <strong>hotmail.com yahoo.co.uk</strong>';
$string['configallowunenroll'] = 'If this is set \'Yes\', then students are allowed to unenroll themselves from courses whenever they like. Otherwise they are not allowed, and this process will be solely controlled by the teachers and administrators.';
$string['configthemelist'] = 'Leave this blank to allow any valid theme to be used. If you want to shorten the theme menu, you can specify a comma-separated list of names here. For example: standard,orangewhite';
$string['configallowcoursethemes'] = 'If you enable this, then courses will be allowed to set their own themes. Course themes override all other theme choices (site, user, or session themes)';
Expand Down
2 changes: 2 additions & 0 deletions lib/defaults.php
Expand Up @@ -4,6 +4,7 @@
// It defines default values for any important configuration variables

$defaults = array (
'allowemailaddresses' => '',
'allowunenroll' => true,
'allowcoursethemes' => false,
'allowuserthemes' => false,
Expand All @@ -20,6 +21,7 @@
'dbsessions' => false,
'debug' => 7,
'deleteunconfirmed' => 168,
'denyemailaddresses' => '',
'digestmailtime' => 17,
'displayloginfailures' => '',
'enablerssfeeds' => 0,
Expand Down

0 comments on commit f7ab4e5

Please sign in to comment.