From fe930cf3ca7da09c32fbc4e2c527a648ee861f82 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 12 May 2003 11:30:19 +0000 Subject: [PATCH] New feature - registration page. Registration should be working, but I'm still working on the server-side stuff. Look for the new button on the admin page. --- admin/index.php | 5 ++ admin/register.php | 121 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 126 insertions(+) create mode 100644 admin/register.php diff --git a/admin/index.php b/admin/index.php index 98ed066ca5..04f312a43a 100644 --- a/admin/index.php +++ b/admin/index.php @@ -355,10 +355,15 @@ } print_table($table); + echo "
"; print_single_button("$CFG->wwwroot/doc", NULL, get_string("documentation")); echo "
"; + echo "
"; + print_single_button("register.php", NULL, get_string("registration")); + echo "
"; + print_heading("Moodle $CFG->release ($CFG->version)", "CENTER", 1); print_footer($site); diff --git a/admin/register.php b/admin/register.php new file mode 100644 index 0000000000..dd5fbeb475 --- /dev/null +++ b/admin/register.php @@ -0,0 +1,121 @@ +country and $CFG->country) { + $admin->country = $CFG->country; + } + + +/// Print headings + + $stradministration = get_string("administration"); + $strregistration = get_string("registration"); + $strregistrationinfo = get_string("registrationinfo"); + + print_header("$site->shortname: $strregistration", "$site->fullname", + "admin/index.php\">$stradministration -> $strregistration"); + + print_heading($strmanagemodules); + + print_simple_box($strregistrationinfo, "center", "70%"); + echo "
"; + +/// Print the form + + print_simple_box_start("center", "", "$THEME->cellheading"); + + echo "
"; + echo "\n"; + + echo ""; + echo ""; + echo ""; + //// The following hidden variables are to help prevent fake entries being sent. + //// Together they form a key. If any of these change between updates then the entry + //// is flagged as a new entry and will be manually checked by the list maintainer + echo "wwwroot\">"; + echo "password\">"; + echo ""; + echo ""; + echo "\n"; + + echo ""; + echo ""; + echo ""; + echo "\n"; + + echo ""; + echo ""; + echo ""; + echo "\n"; + + echo ""; + echo ""; + echo ""; + echo "\n"; + + echo ""; + echo "\n"; + + echo ""; + echo ""; + echo ""; + echo "\n"; + + echo ""; + echo ""; + echo ""; + echo "\n"; + + echo ""; + echo ""; + echo ""; + echo "\n"; + + echo ""; + echo ""; + echo ""; + echo "\n"; + + + echo "

Moodle URL:

$CFG->wwwroot

".get_string("fullsitename").":

fullname\">

".get_string("country").":

"; + choose_from_menu ($COUNTRIES, "country", $admin->country, get_string("selectacountry")."...", "", ""); + echo "

".get_string("publicdirectory").":

"; + $options[0] = get_string("publicdirectory0"); + $options[1] = get_string("publicdirectory1"); + $options[2] = get_string("publicdirectory2"); + choose_from_menu ($options, "public", "2", "", "", ""); + unset($options); + echo "


"; + echo "

".get_string("administrator").":

firstname $admin->lastname\">

".get_string("email").":

email\">

".get_string("registrationemail").":

"; + $options[1] = get_string("registrationyes"); + $options[0] = get_string("registrationno"); + choose_from_menu ($options, "mailme", "1", "", "", ""); + unset($options); + echo "

 

"; + echo "
\n"; + + print_simple_box_end(); + + echo "
"; + + print_footer(); + +?> -- 2.39.5