Users
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";
}
}
?>
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);
?>
Are you sure you want to delete the user?
deleteUser($deleteuserid)) {
echo "User ".$deleteuserid." deleted successfully.
\n";
}
}
?>