Skip to content

Instantly share code, notes, and snippets.

@kaqfa
Created December 19, 2016 11:07
Show Gist options
  • Save kaqfa/ca151ece6dbe17b9d7ef633178cd97ba to your computer and use it in GitHub Desktop.
Save kaqfa/ca151ece6dbe17b9d7ef633178cd97ba to your computer and use it in GitHub Desktop.
<?php
session_start();
// $user = $_SESSION['login'];
$user = $_COOKIE['login'];
if($user){
require "../php/admin_input_mhs.php";
} else {
header("location:login.php");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment