13 require_once(dirname(__FILE__) .
'/../library/hcuService.i');
19 PermCheckFeatureScreen($dbh, $HB_ENV, $MC, FEATURE_BASIC);
24 $protectdir =
"/home/$Cu/public_html";
26 $dms_ok = array(
'Flang' =>
'string',
'speak' =>
'string');
30 $filename = $protectdir . HCU_array_key_value(
"PATH_INFO", $_SERVER);
31 $filemime = mime_content_type($filename);
33 $notallowed =
';$*\\,`&|:?<>"';
35 if (strpos($filename,
'/.') ===
false && strpbrk($filename,$notallowed) ===
false && is_readable($filename)) {
38 case "application/pdf":
39 header(
'Content-Type: application/pdf');
40 header(
"Content-Disposition: attachment;filename='" + $filename);
49 header(
"Status: 404 Not Found");
50 print
"<HTML><HEAD><TITLE>404 " . $MC->msg(
'Not Found') .
"</TITLE> 52 <H1>" . $MC->msg(
'Not Found') .
"</H1>" .
53 $MC->msg(
'The requested URL') .
" ${_SERVER['PHP_SELF']} " .
54 $MC->msg(
'was not found on this server') .
". <P> 56 <ADDRESS>${_SERVER['SERVER_SIGNATURE']}</ADDRESS>