Gazelle/sections/user/manage_linked.php

1 line
749 B
PHP
Raw Normal View History

2012-02-04 08:00:25 +00:00
<? authorize(); include(SERVER_ROOT.'/sections/user/linkedfunctions.php'); if (!check_perms('users_mod')) { error(403); } $UserID = $_REQUEST['userid']; switch ($_REQUEST['dupeaction']) { case 'remove': unlink_user($_REQUEST['removeid']); break; case 'add': $Target = $_REQUEST['target']; $DB->query("SELECT ID FROM users_main WHERE Username LIKE '".db_string($Target)."'"); if (list($TargetID) = $DB->next_record()) { link_users($UserID, $TargetID); } else { error("User '$Target' not found."); } break; case 'comments': dupe_comments($_REQUEST['groupid'], $_REQUEST['dupecomments']); break; default: error(403); } echo '\o/'; header("Location: user.php?id=$UserID"); ?>