mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 10:56:26 +00:00
1 line
749 B
PHP
1 line
749 B
PHP
<?
|
|
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");
|
|
?>
|