%PDF- %PDF-
Direktori : /proc/thread-self/root/home/medipszd/www/admin/includes/ |
Current File : //proc/thread-self/root/home/medipszd/www/admin/includes/session.php |
<?php include '../includes/conn.php'; session_start(); if(!isset($_SESSION['admin']) || trim($_SESSION['admin']) == ''){ header('location: ../index.php'); exit(); } $conn = $pdo->open(); $stmt = $conn->prepare("SELECT * FROM users WHERE id=:id"); $stmt->execute(['id'=>$_SESSION['admin']]); $admin = $stmt->fetch(); $pdo->close(); ?>