����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 162.0.232.25 / Your IP : 18.222.108.185 Web Server : LiteSpeed System : Linux premium276.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : kwacuqig ( 988) PHP Version : 8.2.26 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/kwacuqig/learn.skilltainment.org/ |
Upload File : |
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1.0"> <script type="text/javascript" src="./js/sweetalert.min.js"></script> <style> * { font-family: Arial, Helvetica, sans-serif; } </style> </head> <body> <?php include './php/connect.php'; include './php/core.php'; if (!loggedin()) { header('location:../signin'); } if (isset($_GET['id'], $_GET['type'])) { $id = $_GET['id']; $type = $_GET['type']; $type = ($type == 0) ? 1 : 0; $sql = "SELECT `firstname`,`surname` FROM `users` WHERE `uid`=$id"; if ($query_run = mysqli_query($conn, $sql)) { list($fname, $sname) = mysqli_fetch_array($query_run); $sql = "UPDATE `users` SET `type`=$type WHERE `uid`=$id"; if ($query_run = mysqli_query($conn, $sql)) { ?> <script> swal("SUCCESS", "<?php echo "$fname $sname's account type was successfully changed"; ?>", "success"); setTimeout(function() { window.location = 'users'; }, 2000); </script> <?php } else { die(mysqli_error($conn)); } } } ?> </body> </html>