Skip to content
Browse files

Removed PHP_SELF ... bug 1522

  • Loading branch information...
1 parent 031dd5f commit 79dd6106dd7986b26bc9ca61ed7b18c125481e05 moodler committed Jun 3, 2004
Showing with 6 additions and 6 deletions.
  1. +3 −3 admin/admin.php
  2. +3 −3 admin/creators.php
View
6 admin/admin.php
@@ -102,7 +102,7 @@
if ($primaryadmin->id == $admin->id){
print_spacer(10, 9, false);
} else {
- echo "<a href=\"{$_SERVER['PHP_SELF']}?remove=$admin->id\"
+ echo "<a href=\"admin.php?remove=$admin->id\"
title=\"$strremoveadmin\"><img src=\"../pix/t/right.gif\"
border=0></A>";
}
@@ -136,14 +136,14 @@
}
foreach ($users as $user) {
- echo "<p align=left><a href=\"{$_SERVER['PHP_SELF']}?add=$user->id\"".
+ echo "<p align=left><a href=\"admin.php?add=$user->id\"".
"title=\"$straddadmin\"><img src=\"../pix/t/left.gif\"".
"border=0></a>&nbsp;&nbsp;".fullname($user).", $user->email";
}
}
if ($search or $usercount > MAX_USERS_PER_PAGE) {
- echo "<form action={$_SERVER['PHP_SELF']} method=post>";
+ echo "<form action=admin.php method=post>";
echo "<input type=text name=search size=20>";
echo "<input type=submit value=\"$searchstring\">";
echo "</form>";
View
6 admin/creators.php
@@ -95,7 +95,7 @@
foreach ($creators as $creator) {
$creatorarray[] = $creator->id;
echo "<p align=right>".fullname($creator, true).", $creator->email &nbsp;&nbsp; ";
- echo "<a href=\"{$_SERVER['PHP_SELF']}?remove=$creator->id\"
+ echo "<a href=\"creators.php?remove=$creator->id\"
title=\"$strremovecreator\"><img src=\"../pix/t/right.gif\"
border=0></a>";
echo "</p>";
@@ -128,14 +128,14 @@
foreach ($users as $user) {
$fullname = fullname($user, TRUE);
- echo "<p align=left><a href=\"{$_SERVER['PHP_SELF']}?add=$user->id\"".
+ echo "<p align=left><a href=\"creators.php?add=$user->id\"".
"title=\"$straddcreator\"><img src=\"../pix/t/left.gif\"".
"border=0></a>&nbsp;&nbsp;$fullname, $user->email";
}
}
if ($search or $usercount > MAX_USERS_PER_PAGE) {
- echo "<form action={$_SERVER['PHP_SELF']} method=post>";
+ echo "<form action=creators.php method=post>";
echo "<input type=text name=search size=20>";
echo "<input type=submit value=\"$searchstring\">";
echo "</form>";

0 comments on commit 79dd610

Please sign in to comment.
Something went wrong with that request. Please try again.