2004-10-03 16:08:27 +00:00
|
|
|
<?php // $Id$
|
2003-08-10 08:01:14 +00:00
|
|
|
|
2006-03-07 16:42:30 +00:00
|
|
|
require_once('../config.php');
|
2003-08-10 08:01:14 +00:00
|
|
|
|
|
|
|
require_login();
|
|
|
|
|
2006-08-25 08:27:27 +00:00
|
|
|
require_capability('moodle/user:create', get_context_instance(CONTEXT_SYSTEM, SITEID));
|
2003-08-10 08:01:14 +00:00
|
|
|
|
|
|
|
if (!$site = get_site()) {
|
|
|
|
redirect("index.php");
|
|
|
|
}
|
2006-08-09 13:18:33 +00:00
|
|
|
$context = get_context_instance(CONTEXT_SYSTEM, SITEID);
|
2003-08-10 08:01:14 +00:00
|
|
|
$stradministration = get_string("administration");
|
|
|
|
$strusers = get_string("users");
|
|
|
|
|
2003-08-18 03:47:49 +00:00
|
|
|
print_header("$site->shortname: $stradministration: $strusers", "$site->fullname",
|
2003-08-10 08:01:14 +00:00
|
|
|
"<a href=\"index.php\">$stradministration</a> -> $strusers");
|
|
|
|
|
|
|
|
print_heading($strusers);
|
|
|
|
|
|
|
|
$table->align = array ("right", "left");
|
|
|
|
|
2004-10-02 19:50:16 +00:00
|
|
|
$table->data[] = array("<b><a href=\"auth.php?sesskey=$USER->sesskey\">".get_string("authentication")."</a></b>",
|
2003-08-10 08:39:29 +00:00
|
|
|
get_string("adminhelpauthentication"));
|
2006-08-08 05:13:06 +00:00
|
|
|
|
2006-08-14 05:55:40 +00:00
|
|
|
if (has_capability('moodle/user:update', $context)) {
|
2006-08-09 13:18:33 +00:00
|
|
|
$table->data[] = array("<b><a href=\"user.php\">".get_string("edituser")."</a></b>",
|
2004-08-21 07:05:50 +00:00
|
|
|
get_string("adminhelpedituser"));
|
2006-08-09 13:18:33 +00:00
|
|
|
}
|
2006-08-08 05:13:06 +00:00
|
|
|
|
2006-08-14 05:55:40 +00:00
|
|
|
if (has_capability('moodle/user:create', $context)) {
|
2006-08-09 13:18:33 +00:00
|
|
|
$table->data[] = array("<b><a href=\"$CFG->wwwroot/$CFG->admin/user.php?newuser=true&sesskey=$USER->sesskey\">".get_string("addnewuser")."</a></b>",
|
2003-08-10 08:39:29 +00:00
|
|
|
get_string("adminhelpaddnewuser"));
|
2006-08-08 05:13:06 +00:00
|
|
|
}
|
2006-08-09 13:18:33 +00:00
|
|
|
|
2006-08-14 05:55:40 +00:00
|
|
|
if (has_capability('moodle/user:create', $context)) {
|
2006-08-09 13:18:33 +00:00
|
|
|
$table->data[] = array("<b><a href=\"$CFG->wwwroot/$CFG->admin/uploaduser.php?sesskey=$USER->sesskey\">".get_string("uploadusers")."</a></b>",
|
2004-01-06 02:35:27 +00:00
|
|
|
get_string("adminhelpuploadusers"));
|
2006-08-08 05:13:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
$table->data[] = array('', '<hr />');
|
|
|
|
$table->data[] = array("<b><a href=\"enrol.php?sesskey=$USER->sesskey\">".get_string("enrolmentplugins")."</a></b>",
|
|
|
|
get_string("adminhelpenrolments"));
|
2006-08-25 08:27:27 +00:00
|
|
|
$table->data[]= array('<b><a href="roles/assign.php?contextid='.$context->id.'">'.
|
|
|
|
get_string('assignsiteroles').'</a></b>', get_string('adminhelpassignsiteroles'));
|
2003-08-10 08:01:14 +00:00
|
|
|
|
|
|
|
print_table($table);
|
2006-06-30 13:06:31 +00:00
|
|
|
|
2003-08-10 08:01:14 +00:00
|
|
|
print_footer($site);
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|