Odyssey
totalstats.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/html";
14 
15 $filename = $protectdir . "/WEBLOGHOMECU.html";
16 if (is_readable($filename)) {
17  readfile($filename);
18 } else {
19  header("Status: 404 Not Found");
20  print <<<EOF
21 <HTML><HEAD>
22 <TITLE>404 Not Found</TITLE>
23 </HEAD><BODY>
24 <H1>Not Found</H1>
25 The requested URL ${_SERVER['PHP_SELF']} was not found on this server.<P>
26 <HR>
27 <ADDRESS>${_SERVER['SERVER_SIGNATURE']}</ADDRESS>
28 </BODY></HTML>
29 EOF;
30 }
31 ?>