View file iblog/admin/inc/check_session.php
<?php
include "../lib/config.php";
session_start();
$uid = isset($_SESSION['aid']);
if($conn->connect_error){
header("Location: ../setup/database.php");
//echo 'Databse connection failed! Please contact support team';
}
else if($uid == ''){
header("Location: login.php");
}
?>