* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 3 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License in GPL.txt for more details. */ define('IN_PONEPASTE', 1); require_once(__DIR__ . '/common.php'); ?> Paste - Users
' . mysqli_error($con) . '
'; } else { $msg = '
User deleted
'; } } if (isset($_GET['ban'])) { $ban_id = htmlentities(Trim($_GET['ban'])); $query = "UPDATE users SET verified='2' WHERE id='$ban_id'"; $result = mysqli_query($con, $query); if (mysqli_errno($con)) { $msg = '
' . mysqli_error($con) . '
'; } else { $msg = '
User banned
'; } } if (isset($_GET['unban'])) { $ban_id = htmlentities(Trim($_GET['unban'])); $query = "UPDATE users SET verified='1' WHERE id='$ban_id'"; $result = mysqli_query($con, $query); if (mysqli_errno($con)) { $msg = '
' . mysqli_error($con) . '
'; } else { $msg = '
User unbanned
'; } } ?>
querySelectOne('SELECT username, platform, verified, banned, date, ip FROM users WHERE id = ?', [$_GET['details']]); $user_username = $row['username']; $user_full_name = $row['full_name']; $user_platform = Trim($row['platform']); $user_date = $row['date']; $user_ip = $row['ip']; $detail_id = htmlentities(Trim($_GET['details'])); if ($row['banned']) { $user_verified = 'Banned'; } elseif ($row['verified']) { $user_verified = 'Verified'; } else { $user_verified = 'Unverified'; } ?>
Username
Platform
Status
User IP
Date Registered
Full Name
Manage Users
ID Username Date Registered Platform Ban User Profile Delete