<?php session_start(); if($_SESSION['logged'] == 'true'){ require_once("class/hunt_class.php"); $r = new Raid; if (isset($_GET["p"])) { $r->OppDetails(); } } else { header("Location: index.php"); } ?>