From 8a2e09584fa7b9016fbc34c1b961748b21c8196b Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 6 Dec 2005 05:47:58 +0000 Subject: [PATCH] Removed optional_variable --- auth/shibboleth/config.html | 19 +++-- enrol/authorize/config.html | 145 ++++++++++++++++++++---------------- 2 files changed, 93 insertions(+), 71 deletions(-) diff --git a/auth/shibboleth/config.html b/auth/shibboleth/config.html index 244fb555b60..00f89cd0b3b 100755 --- a/auth/shibboleth/config.html +++ b/auth/shibboleth/config.html @@ -1,14 +1,17 @@ auth_instructions) or empty($pluginconfig->shib_user_attribute)) { - $config->auth_instructions = get_string('auth_shib_instructions', 'auth', $CFG->wwwroot.'/auth/shibboleth/shib-protected.php'); -} - -optional_variable($pluginconfig->user_attribute, ''); -optional_variable($pluginconfig->convert_data, ''); + if (!isset($config->auth_instructions) or empty($pluginconfig->shib_user_attribute)) { + $config->auth_instructions = get_string('auth_shib_instructions', 'auth', $CFG->wwwroot.'/auth/shibboleth/shib-protected.php'); + } + if (!isset ($pluginconfig->user_attribute)) { + $pluginconfig->user_attribute = ''; + } + if (!isset ($pluginconfig->convert_data)) { + $pluginconfig->convert_data = ''; + } ?> diff --git a/enrol/authorize/config.html b/enrol/authorize/config.html index 389b72b1e39..c95282e2861 100755 --- a/enrol/authorize/config.html +++ b/enrol/authorize/config.html @@ -1,116 +1,135 @@ -enrol_cost, '5'); -optional_variable($frm->enrol_currency, 'USD'); -optional_variable($frm->enrol_mailstudents, false); -optional_variable($frm->enrol_mailteachers, false); -optional_variable($frm->enrol_mailadmins, false); - -optional_variable($frm->an_login, ''); -optional_variable($frm->an_tran_key, ''); -optional_variable($frm->an_password, ''); -optional_variable($frm->an_referer, 'http://'); -optional_variable($frm->an_test, false); -optional_variable($frm->an_review, false); -optional_variable($frm->an_review_day, 5); - -?> - - - - - + + - - + - - + + - + - - + + - - + + - - + + - - + + - - + + - - + + - - - - - - - - - - - - - - - + - - + + - - + + - - + +

enrol_cost: + + + +
enrol_currency:enrol_currency, "","", "") ?> + + 'US Dollars', + 'EUR' => 'Euros', + 'JPY' => 'Japanese Yen', + 'GBP' => 'British Pounds', + 'CAD' => 'Canadian Dollars' + ); + choose_from_menu ($ancurrencies, "enrol_currency", $frm->enrol_currency, "","", "") ?> + +
loginhttps:loginhttps) ? "off" : "on") ?>url = "$CFG->wwwroot/$CFG->admin/config.php#configsectionsecurity"; - print_string("logindesc", "enrol_authorize", $a) - ?> + loginhttps) ? "off" : "on") ?> + + url = "$CFG->wwwroot/$CFG->admin/config.php#configsectionsecurity"; + print_string("logindesc", "enrol_authorize", $a) + ?> +


an_login: + + + +
+ +
an_tran_key: + + + +
an_password: + + + +
an_referer: + + + +
an_test:an_test)) echo "checked=\"true\"" ?> /> + an_test)) echo "checked=\"true\"" ?> /> + + +

an_review:an_review)) echo "checked=\"true\"" ?> />
an_review_day:an_review_day) ?>


enrol_mailstudents:enrol_mailstudents)) echo "checked=\"true\"" ?> /> + enrol_mailstudents)) echo "checked=\"true\"" ?> /> + + +
enrol_mailteachers:enrol_mailteachers)) echo "checked=\"true\"" ?> /> + enrol_mailteachers)) echo "checked=\"true\"" ?> /> + + +
enrol_mailadmins:enrol_mailadmins)) echo "checked=\"true\"" ?> /> + enrol_mailadmins)) echo "checked=\"true\"" ?> /> + + +