Skip to content

Commit

Permalink
Tabs are out
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed May 16, 2005
1 parent 1f48479 commit ef9b35a
Show file tree
Hide file tree
Showing 32 changed files with 267 additions and 267 deletions.
4 changes: 2 additions & 2 deletions admin/admin.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?PHP // $Id$
// Admin-only script to assign administrative rights to users

require_once("../config.php");
require_once("../config.php");

define("MAX_USERS_PER_PAGE", 50);

Expand Down Expand Up @@ -48,7 +48,7 @@
$$strstringtoload = get_string($stringtoload);
}

print_header("$site->shortname: $strassignadmins",
print_header("$site->shortname: $strassignadmins",
"$site->fullname",
"<a href=\"index.php\">$stradministration</a> -> <a href=\"users.php\">$strusers</a> -> $strassignadmins", "adminform.searchtext");

Expand Down
4 changes: 2 additions & 2 deletions admin/creators.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?PHP // $Id$
// Admin only script to assign course creator rights to users

require_once("../config.php");
require_once("../config.php");

define("MAX_USERS_PER_PAGE", 50);

Expand Down Expand Up @@ -42,7 +42,7 @@
$$strstringtoload = get_string($stringtoload);
}

print_header("$site->shortname: $strassigncreators",
print_header("$site->shortname: $strassigncreators",
"$site->fullname",
"<a href=\"index.php\">$stradministration</a> -> <a href=\"users.php\">$strusers</a> ->
$strassigncreators", "creatorsform.searchtext");
Expand Down
2 changes: 1 addition & 1 deletion admin/dbperformance.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
$site = get_site();

if (isset($topframe)) {
print_header("$site->shortname: $strdatabaseperformance", "$site->fullname",
print_header("$site->shortname: $strdatabaseperformance", "$site->fullname",
"<a target=\"$CFG->framename\" href=\"index.php\">$stradministration</a> -> Database performance");
exit;
}
Expand Down
6 changes: 3 additions & 3 deletions admin/enrol.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@

/// If data submitted, then process and store.

if ($frm = data_submitted()) {
if ($frm = data_submitted()) {
if ($enrolment->process_config($frm)) {
set_config('enrol', $frm->enrol);
redirect("enrol.php?sesskey=$USER->sesskey", get_string("changessaved"), 1);
}
} else {
} else {
$frm = $CFG;
}

Expand All @@ -59,7 +59,7 @@

/// Choose an enrolment method
echo get_string('chooseenrolmethod').': ';
choose_from_menu ($options, "enrol", $enrol, "",
choose_from_menu ($options, "enrol", $enrol, "",
"document.location='enrol.php?sesskey=$USER->sesskey&enrol='+document.enrolmenu.enrol.options[document.enrolmenu.enrol.selectedIndex].value", "");

echo "</b></p></div>";
Expand Down
18 changes: 9 additions & 9 deletions admin/filters.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@
<input type="hidden" name="options" value="1">
<table cellpadding="20">
<tr valign="top">
<td nowrap="nowrap" align="right"><?php p($strcachetext) ?>:</td>
<td>
<td nowrap="nowrap" align="right"><?php p($strcachetext) ?>:</td>
<td>
<?php
unset($options);
$options[604800] = get_string('numdays', '', 7);
Expand Down Expand Up @@ -115,12 +115,12 @@
?>
</td>
<td>
<?php p($strconfigcachetext) ?>
<?php p($strconfigcachetext) ?>
</td>
</tr>
<tr valign="top">
<td nowrap="nowrap" align="right"><?php p($strfilteruploadedfiles) ?>:</td>
<td>
<td nowrap="nowrap" align="right"><?php p($strfilteruploadedfiles) ?>:</td>
<td>
<?php
unset($options);
$options[0] = get_string('no');
Expand All @@ -130,12 +130,12 @@
?>
</td>
<td>
<?php p($strconfigfilteruploadedfiles) ?>
<?php p($strconfigfilteruploadedfiles) ?>
</td>
</tr>
<tr valign="top">
<td nowrap="nowrap" align="right"><?php p($strfilterall) ?>:</td>
<td>
<td nowrap="nowrap" align="right"><?php p($strfilterall) ?>:</td>
<td>
<?php
unset($options);
$options[0] = get_string('no');
Expand All @@ -145,7 +145,7 @@
?>
</td>
<td>
<?php p($strconfigfilterall) ?>
<?php p($strconfigfilterall) ?>
</td>
</tr>
<tr valign="top">
Expand Down
2 changes: 1 addition & 1 deletion admin/filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
/// If data submitted, then process and store.

if (!empty($options)) {
if (($config = data_submitted()) && confirm_sesskey()) {
if (($config = data_submitted()) && confirm_sesskey()) {
unset($config->options);
unset($config->sesskey);
foreach ($config as $name => $value) {
Expand Down
2 changes: 1 addition & 1 deletion admin/phpinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
$stradministration = get_string("administration");
$site = get_site();

print_header("$site->shortname: phpinfo", "$site->fullname",
print_header("$site->shortname: phpinfo", "$site->fullname",
"<a target=\"$CFG->framename\" href=\"index.php\">$stradministration</a> -> PHP info");
exit;
}
Expand Down
6 changes: 3 additions & 3 deletions admin/process_email.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
$hash = substr($address,-16);

if (substr(md5($prefix.$mod.$modargs.$CFG->siteidentifier),0,16) != $hash) {
die("HASH DIDN'T MATCH!\n");
die("HASH DIDN'T MATCH!\n");
}
list(,$modid) = unpack('C',base64_decode($mod.'=='));

Expand All @@ -59,7 +59,7 @@
$function = $modname.'_process_email';

if (!function_exists($function)) {
die();
die();
}
$fd = fopen('php://stdin','r');
if (!$fd) {
Expand All @@ -76,4 +76,4 @@



?>
?>
2 changes: 1 addition & 1 deletion admin/register.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
$strregistration = get_string("registration");
$strregistrationinfo = get_string("registrationinfo");

print_header("$site->shortname: $strregistration", "$site->fullname",
print_header("$site->shortname: $strregistration", "$site->fullname",
"<a href=\"../$CFG->admin/index.php\">$stradministration</a> -> $strregistration");

print_heading($strregistration);
Expand Down
72 changes: 36 additions & 36 deletions admin/uploaduser.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@
"course3" => 1,
"course4" => 1,
"course5" => 1,
"group1" => 1,
"group2" => 1,
"group3" => 1,
"group4" => 1,
"group5" =>1);
"group1" => 1,
"group2" => 1,
"group3" => 1,
"group4" => 1,
"group5" =>1);

// --- get header (field names) ---
$header = split($csv_delimiter, fgets($fp,1024));
Expand Down Expand Up @@ -209,20 +209,20 @@
notify(get_string('unknowncourse', 'error', $addcourse[$i]));
}
}
for ($i=0; $i<5; $i++) {
for ($i=0; $i<5; $i++) {
$groupid[$i] = 0;
if ($addgroup[$i]) {
if (!$courseid[$i]) {
notify(get_string('coursegroupunknown','error',$addgroup[$i]));
} else {
if ($group = get_record("groups","courseid",$courseid[$i],"name",$addgroup[$i])) {
$groupid[$i] = $group->id;
} else {
notify(get_string('groupunknown','error',$addgroup[$i]));
}
}
}
}
if (!$courseid[$i]) {
notify(get_string('coursegroupunknown','error',$addgroup[$i]));
} else {
if ($group = get_record("groups","courseid",$courseid[$i],"name",$addgroup[$i])) {
$groupid[$i] = $group->id;
} else {
notify(get_string('groupunknown','error',$addgroup[$i]));
}
}
}
}
for ($i=0; $i<5; $i++) {
if ($courseid[$i]) {
if (enrol_student($user->id, $courseid[$i])) {
Expand All @@ -233,26 +233,26 @@
}
}
for ($i=0; $i<5; $i++) {
if ($courseid[$i] && $groupid[$i]) {
if (record_exists("user_students","userid",$user->id,"course",$courseid[$i])) {
$usergroup = user_group($courseid[$i],$user->id);
if ($courseid[$i] && $groupid[$i]) {
if (record_exists("user_students","userid",$user->id,"course",$courseid[$i])) {
$usergroup = user_group($courseid[$i],$user->id);
if ($usergroup) {
notify('-->' . get_string('groupalready','error',$usergroup->name));
} else {
$group_member->groupid = $groupid[$i];
$group_member->userid = $user->id;
$group_member->timeadded = time();
if (insert_record("groups_members",$group_member)) {
notify('-->' . get_string('addedtogroup','',$addgroup[$i]));
} else {
notify('-->' . get_string('addedtogroupnot','',$addgroup[$i]));
}
}
} else {
notify('-->' . get_string('addedtogroupnotenrolled','',$addgroup[$i]));
}
}
}
notify('-->' . get_string('groupalready','error',$usergroup->name));
} else {
$group_member->groupid = $groupid[$i];
$group_member->userid = $user->id;
$group_member->timeadded = time();
if (insert_record("groups_members",$group_member)) {
notify('-->' . get_string('addedtogroup','',$addgroup[$i]));
} else {
notify('-->' . get_string('addedtogroupnot','',$addgroup[$i]));
}
}
} else {
notify('-->' . get_string('addedtogroupnotenrolled','',$addgroup[$i]));
}
}
}

unset ($user);
}
Expand Down
Loading

0 comments on commit ef9b35a

Please sign in to comment.