3 $monLibrary= dirname(__FILE__) .
"/../library";
4 require_once(
"$monLibrary/cu_top.i");
5 require_once(
"$monLibrary/ck_hticket.i");
7 if (!CheckPerm($link, $Hu, basename($_SERVER[
'SCRIPT_NAME']), $_SERVER[
'REMOTE_ADDR'])) {
10 header(
"Location: /hcuadm/hcu_noperm.prg");
15 $protectdir =
"/home";
17 $filepath = $protectdir . $_SERVER[
'PATH_INFO'];
21 $fp = popen(
"ls -r $filepath/*.out | head -1",
"r");
24 $filename = fread($fp, 13000);
28 $filename = str_replace($filepath .
"/",
"", $filename);
29 $filename = trim(str_replace(
".out",
"", $filename));
32 if (is_readable($filepath .
"/$filename.out")) {
33 print
"<HTML><HEAD><TITLE>Show E-Stmt Log</TITLE></HEAD><BODY>";
34 if (is_readable($filepath .
"/$filename.mae")) {
35 print
"<b>$filename.mae</b><br><PRE>";
36 readfile($filepath .
"/$filename.mae");
39 print
"<b>$filename.out</b><br><PRE>";
40 readfile($filepath .
"/$filename.out");
41 print
"</PRE></BODY></HTML>";
44 header(
"Status: 404 Not Found");
47 <TITLE>404 Not Found</TITLE>
50 The requested URL ${_SERVER[
'PHP_SELF']} was not found on
this server.<P>
52 <ADDRESS>${_SERVER[
'SERVER_SIGNATURE']}</ADDRESS>