18 $serviceShowInfo =
false;
19 $serviceLoadMenu =
false;
20 $serviceShowMenu =
false;
21 $serviceAllowReadonly =
true;
22 $serviceSkipSecurity =
true;
23 $serviceSkipCredentials =
true;
26 require_once(dirname(__FILE__) .
'/../library/hcuService.i');
28 $dms_ok=array(
'x'=>
'string');
29 dms_import_v2($HB_ENV,
'HCUPOST', $dms_ok);
31 $docValues= HCU_PayloadDecode($HB_ENV[
'Cu'], $HB_ENV[
'HCUPOST'][
'x']);
33 $Cu = preg_replace(
"/[^A-Za-z0-9]/",
"",$docValues[
'Cu']);
34 $Cu = substr($Cu,0,10);
36 $noticeary = Get_NoticeInfo($dbh, array(
'Cu'=>$HB_ENV[
'Cu'],
'chome'=>$docValues[
'chome'],
'Flang' => $docValues[
'Flang']), $MC, $docValues[
'device'],
'viewcms',
'1',$docValues[
'docsid']);
38 $notice_text = $noticeary[
'notice'][0][
'notice_text'];
39 $notice_title = $noticeary[
'notice'][0][
'notice_title'];
41 # ADD CHECK FOR MATCHIN CU TO AVOID MISMATCHED ACCESS 42 if($Cu != $HB_ENV[
'Cu'] || empty($notice_text)) {
43 $notice_text =
"<H1>Not Found</H1> 44 The requested file was not found on this server<P> 46 <ADDRESS>{$_SERVER['SERVER_SIGNATURE']}</ADDRESS>";
47 $notice_title =
"404 Not Found";
50 if (HCU_array_key_exists(
"noticeOnly", $docValues) && $docValues[
'noticeOnly'] == 1) {
56 <?xml version=
"1.0"?><!DOCTYPE html>
57 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:lang=
"en" lang=
"en">
59 <title>{$notice_title}</title>
60 <meta charset=
"ISO-8859-1"/>
61 <meta name=
"robots" content=
"noindex,nofollow" />
62 <meta http-equiv=
"X-UA-Compatible" content=
"IE=8" />
65 <div
id=
'ViewContent'>