mirror of
https://github.com/sibyperiyar/Easy-HotSpot.git
synced 2024-11-10 09:22:53 +08:00
16 lines
No EOL
477 B
PHP
16 lines
No EOL
477 B
PHP
<?php
|
|
if ( !isset($_SESSION) ) session_start();
|
|
if (($_SESSION['user_level'] == 1) and (!empty($_GET['user_id']))) {
|
|
include('dbconfig.php');
|
|
$id=$_GET['user_id'];
|
|
$myself = $_SESSION['id'];
|
|
$stmt = $DB_con->prepare("delete from hotspot_users where user_id=:id and user_id != :myself");
|
|
$stmt->execute(array(':id' => $id, ':myself' => $myself));
|
|
echo 1;
|
|
}
|
|
else
|
|
{
|
|
echo 0;
|
|
}
|
|
// End Adding a new System User Details, Returned from modal_add_user.php
|
|
?>
|