<?php session_start(); include('classes/login-functions.php'); $path = $_SERVER['DOCUMENT_ROOT']."/path.php"; include($path); $username = $_SESSION['username']; $functionsfile = $pathofmayo."/classes/functions.php"; include($functionsfile); //$functions = new AllFunctions(); include('../allpanels/allpanels.php'); //class file calling from attorney panel $functions = new AllPanels(); $doctor_id = $functions->GetDetailsByUsername($username,"id"); $temp_uploads = mysql_query("SELECT a . * , b . * , c.id AS hi_id FROM plantiff_information AS a, plantiff_case_type_info AS b, hire_staff AS c WHERE a.id = b.id && a.form_id = b.form_id && a.id = c.user_id && a.id = c.user_id && b.id = c.user_id && hire_id ='$doctor_id' && a.form_id='$_REQUEST[fid]' && b.form_id='$_REQUEST[fid]' && b.case_closed=0") or die(mysql_error()); if(mysql_num_rows($temp_uploads)>0) { function output_file($file, $name, $mime_type='') { /* This function takes a path to a file to output ($file), the filename that the browser will see ($name) and the MIME type of the file ($mime_type, optional). */ //Check the file premission if(!is_readable($file)) die('File not found or inaccessible!'); $size = filesize($file); $name = rawurldecode($name);
if ($_SESSION['designation'] !== "3") { ?> <script>window.location="<?php echo $sitepath; ?> "</script> <?php } $username = $_SESSION['username']; $functionsfile = $pathofmayo . "/classes/functions.php"; include $functionsfile; //$functions = new AllFunctions(); include '../allpanels/allpanels.php'; //class file calling from attorney panel $functions = new AllPanels(); $doctor_id = $functions->GetDetailsByUsername($username, "id"); $d_f_name = $functions->GetDetailsByUsername($username, "first_name"); $d_l_name = $functions->GetDetailsByUsername($username, "last_name"); $contactn = $functions->GetDetailsByUsername($username, "contact_number"); ?> <!doctype html> <html class="no-js" lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width,initial-scale=1.0"> <?php $title = $_SERVER['REQUEST_URI']; ?> <title> <?php switch ($title) {