From 7891a55bf66fdf38ffa515dd8c00f740096a670a Mon Sep 17 00:00:00 2001 From: deva Date: Sun, 28 Feb 2010 10:23:01 +0000 Subject: Remove old user/users admin files. --- utils/admin_user.php | 32 -------- utils/admin_users.php | 203 -------------------------------------------------- 2 files changed, 235 deletions(-) delete mode 100644 utils/admin_user.php delete mode 100644 utils/admin_users.php (limited to 'utils') diff --git a/utils/admin_user.php b/utils/admin_user.php deleted file mode 100644 index 42ed784..0000000 --- a/utils/admin_user.php +++ /dev/null @@ -1,32 +0,0 @@ -

Password

-findUser($HTTP_COOKIE_VARS["UserID"]); - $user->setPassword($oldpassword, $password1, $password2); - $users->add($user); // We need to update the user after changing the password! - $users->write(); -} -?> - -
Change password
-
-

- Old password: - -

- New password: - -

-

- Confirm password: - -

-

- -

-
diff --git a/utils/admin_users.php b/utils/admin_users.php deleted file mode 100644 index c2e742f..0000000 --- a/utils/admin_users.php +++ /dev/null @@ -1,203 +0,0 @@ -

Users

- - - -
Add user
-findUser($newuserid)) { - $user = new User($newuserid, - sha1(md5($newpassword1)), - $newmodule_users, - $newmodule_news, - $newmodule_events, - $newmodule_guestbook, - $newmodule_gallery, - $newmodule_user, - $newmodule_newsletter); - $users->add($user); - $users->write(); - echo "

User " . $newuserid . " added successfully.

\n"; - } else { - echo "

ERROR: User " . $newuserid . " already exists.

\n"; - } - } else { - echo "

ERROR: Passwords do not match.

\n"; - } -} -?> -
-

- UserID: -

-

- /> - Add/edit.delete users:
- /> - Change password:
- /> - Add news:
- /> - Add events:
- /> - Add images in gallery:
- /> - Send newsletter:
- /> - Modify guestbook -

-

- New password: - -

-

- Confirm password: - -

-

- -

-
- -
Edit user
-findUser($edituserid); - $user->users = $module_users; - $user->user = $module_user; - $user->news = $module_news; - $user->events = $module_events; - $user->gallery = $module_gallery; - $user->newsletter = $module_newsletter; - $user->guestbook = $module_guestbook; - if($password1 != "") { - if($password1 == $password2) { - $user->password = sha1(md5($password1)); - $users->add($user); - $users->write(); - echo "

User " . $edituserid . " successfully updated.

\n"; - } else { - echo "

ERROR: Passwords do not match

\n"; - $task = "edituser"; - } - } else { - $users->add($user); - $users->write(); - echo "

User " . $edituserid . " successfully updated. Password left untouched.

\n"; - } -} -?> -findUser($edituserid); -?> -
-

- UserID: -

-

- users == "on") echo "checked"; ?>/> - Add/edit.delete users:
- user == "on") echo "checked"; ?>/> - Change password:
- news == "on") echo "checked"; ?>/> - Add news:
- events == "on") echo "checked"; ?>/> - Add events:
- gallery == "on") echo "checked"; ?>/> - Add images in gallery:
- newsletter == "on") echo "checked"; ?>/> - Send newsletter:
- guestbook == "on") echo "checked"; ?>/> - Modify guestbook -

-

- New password: - -

-

- Confirm password: - -

-

- -

-
- -
-

- Select the user you want to edit:
- - -

-
- -
Delete user
- -Are you sure you want to delete the user?
-
- - -
-
- - -
- - -deleteUser($deleteuserid)) { - echo "

User ".$deleteuserid." deleted successfully.

\n"; - } -} -?> -
-

- Select the user you want to delete:
- - -

-
-- cgit v1.2.3