<?php $root = $_SERVER['DOCUMENT_ROOT']; include($root . "/util/config.php");//loads database stuff include($root . "/util/session.php"); if($_SESSION['user_type'] == "admin"){ echo "You are an admin"; } echo "You are logged in!" ?>