-<?PHP // $Id$
+<?php // $Id$
/// Check that config.php exists, if not then call the install script
if (!file_exists("../config.php")) {
echo "</td>";
echo "<td align=\"center\" width=\"33%\">";
- print_single_button("register.php", NULL, get_string("registration"));
+ $options['sesskey'] = $USER->sesskey;
+ print_single_button("register.php", $options, get_string("registration"));
echo "</td>";
echo "<tr></table>";
-<?PHP // $Id$
+<?php // $Id$
// register.php - allows admin to register their site on moodle.org
include("../config.php");
redirect("index.php");
}
+ if (!confirm_sesskey()) {
+ error(get_string('confirmsesskeybad', 'error'));
+ }
+
if (!$admin = get_admin()) {
error("No admins");
}
print_header("$site->shortname: $strregistration", "$site->fullname",
"<a href=\"../$CFG->admin/index.php\">$stradministration</a> -> $strregistration");
- print_heading($strmanagemodules);
+ print_heading($strregistration);
print_simple_box($strregistrationinfo, "center", "70%");
echo "<br />";