Odyssey
lastlivestatus.prg
1 <?php
2 $monLibrary= dirname(__FILE__) . "/../library";
3 require_once("$monLibrary/cu_top.i");
4 require_once("$monLibrary/ck_hticket.i");
5 
6  if (!CheckPerm($link, $Hu, basename($_SERVER['SCRIPT_NAME']), $_SERVER['REMOTE_ADDR'])) {
7  // ** Permissions failed
8  // ** redirect to new page
9  header("Location: /hcuadm/hcu_noperm.prg");
10  exit;
11  }
12 
13 $protectdir = "/home/homecu/logs/dms_ia_head";
14 $filename = $protectdir . "/dms_ia_head.log.last_email";
15 
16 if (is_readable($filename)) {
17  print "<br><PRE>";
18  readfile($filename);
19  print "</PRE>";
20 } else {
21  print <<<EOF
22 <H3>Not Found</H3>
23 The requested file was not found on this server.<P>
24 EOF;
25 }
26 ?>