Delete session.php

parent 7a4dd83e
<?php
session_start();
include('../conn.php');
if (!isset($_SESSION['id']) ||(trim ($_SESSION['id']) == '')) {
header('location:../');
exit();
}
$sq=mysqli_query($conn,"select * from `user` where userid='".$_SESSION['id']."'");
$srow=mysqli_fetch_array($sq);
if ($srow['access']!=2){
header('location:../');
exit();
}
$user=$srow['username'];
?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment