diff --git a/admin/configvars.php b/admin/configvars.php index 68cc05068c4..e91f640123a 100644 --- a/admin/configvars.php +++ b/admin/configvars.php @@ -201,6 +201,10 @@ class configvarrss extends configvar { $permissions['messaging'] = new configvar (get_string('configmessaging', 'admin'), choose_from_menu ($noyesoptions, 'messaging', $config->messaging, '', '', '', true) ); +/// allowobjectembed + $permissions['allowobjectembed'] = new configvar (get_string('configallowobjectembed', 'admin'), + choose_from_menu ($noyesoptions, 'allowobjectembed', $config->allowobjectembed, '', '', '', true) ); + //////////////////////////////////////////////////////////////////// diff --git a/lang/en/admin.php b/lang/en/admin.php index 741f25c7fc6..dc6b05ed089 100755 --- a/lang/en/admin.php +++ b/lang/en/admin.php @@ -11,6 +11,7 @@ $string['calendarsettings'] = 'Calendar'; $string['change'] = 'change'; $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)'; $string['configallowemailaddresses'] = 'If you want to restrict all new email addresses to particular domains, then list them here separated by spaces. All other domains will be rejected. eg ourcollege.edu.au .gov.au'; +$string['configallowobjectembed'] = 'As a default security measure, normal users are not allowed to embed multimedia (like Flash) within texts using explicit EMBED and OBJECT tags in their HTML (although it can still be done safely using the mediaplugins filter). If you wish to allow these tags then enable this option.'; $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['configallowuserblockhiding'] = 'Do you want to allow users to hide/show side blocks throughout this site? This feature uses Javascript and cookies to remember the state of each collapsible block, and only affects the user\'s own view.'; $string['configallowuserthemes'] = 'If you enable this, then users will be allowed to set their own themes. User themes override site themes (but not course themes)'; diff --git a/lib/defaults.php b/lib/defaults.php index f6a7eeb3fe1..3eac932fce2 100644 --- a/lib/defaults.php +++ b/lib/defaults.php @@ -4,9 +4,10 @@ // It defines default values for any important configuration variables $defaults = array ( - 'allowemailaddresses' => '', - 'allowunenroll' => true, 'allowcoursethemes' => false, + 'allowemailaddresses' => '', + 'allowobjectembed' => false, + 'allowunenroll' => true, 'allowuserthemes' => false, 'allowuserblockhiding' => true, 'allusersaresitestudents' => true, diff --git a/lib/weblib.php b/lib/weblib.php index 867ae1330e0..9b41b6e5b50 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -75,11 +75,11 @@ define('FORMAT_MARKDOWN', '4'); // Markdown-formatted text http://daringfireba * @global string $ALLOWED_TAGS */ $ALLOWED_TAGS = -'