session_start(); if(!isset($_SESSION['Unit']) && !isset($_SESSION['user_type'])){ header("Location: ../index.php"); } if($_REQUEST['pno']) { $pno=$_REQUEST['pno']; } if(!$_SESSION['Unit']){ header("Location:../index.php");} $login_unit=$_SESSION['Unit1']; $arr=explode(" ",$login_unit); $login_type=strtoupper($arr[0]); include '../function.php'; include_once "../conn.php"; set_time_limit(300);?>