mirror of
https://github.com/RustyRaptor/Culidore.git
synced 2026-12-03 15:15:20 -07:00
13 lines
298 B
PHP
13 lines
298 B
PHP
<?php
|
|
include('db.php');
|
|
if ($conn)
|
|
{
|
|
if(isset($_SESSION['gebruiker'])){
|
|
$advraag = "select admin from Gebruikers where gebruiker='".$_SESSION['gebruiker']."'";
|
|
if ($result = mysqli_query($conn, $advraag)) {
|
|
while ($row = mysqli_fetch_assoc($result)){
|
|
if($row['admin']==1){
|
|
$admin = true;
|
|
}
|
|
}}}}
|
|
?>
|