3 $sharedLibrary = dirname(__FILE__) .
"/../../shared/library";
4 require_once(
"$sharedLibrary/hcuCommon.i");
5 require_once(
"$sharedLibrary/dms_imp_val.i");
6 require_once(
"$sharedLibrary/hcuEnv.i");
8 $string = array(
"filter" => HCUFILTER_INPUT_STRING);
9 $shell =
null; $title =
null;
10 HCU_ImportVars($parameters,
"a", array(
"shell" => $string,
"title" => $string));
11 extract($parameters[
"a"]);
13 $title = is_null($title) ?
"" : trim($title);
14 $title = $title ==
"" ?
"HomeCU Admin Portal" : $title;
17 $cloudfrontDomainName = GetCloudFrontDomainName();
18 $homecuKendoVersion = GetHomecuKendoVersion();
19 $bootstrapVersion = GetHomecuBootstrapVersion();
20 $fontawesomeVersion = GetFontawesomeVersion();
21 $loadStyleSheet = GetAdminDefaultKendoStyle();
23 header (
"Pragma: no-cache");
24 header (
"Last-Modified: " . gmdate(
"D, d M Y H:i:s") .
" GMT");
25 header (
"Cache-Control: no-cache, no-store, must-revalidate, max_age=0");
26 header (
"Expires: 0");
27 header(
'X-Frame-Options: sameorigin');
31 <title><?php echo $title; ?></title>
32 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8"/>
33 <meta name=
"robots" content=
"noindex,nofollow" />
34 <meta http-equiv=
"X-UA-Compatible" content=
"IE=edge" />
36 <meta name=
"viewport" content=
"width=device-width, initial-scale=1" />
39 print <<< HTML_INCLUDES
40 <link rel=
'stylesheet' media=
'all' type=
'text/css' href=
'https://{$cloudfrontDomainName}/homecu/css/reset.4085.min.css' />
42 <!-- BASE BOOTSTRAP -->
43 <link href=
'https://{$cloudfrontDomainName}/homecu/css/bootstrap/{$bootstrapVersion}/css/bootstrap.min.css' rel=
'stylesheet'/>
45 <!-- KENDO BOOTSTRAP COMMON STYLES --- REPLACES kendo.common.css -->
46 <link href=
'https://{$cloudfrontDomainName}/homecu/css/KendoUI/{$homecuKendoVersion}/kendo.common-bootstrap.min.css' rel=
'stylesheet'/>
48 <!-- KENDO BOOTSTRAP THEME */ -->
49 <link href=
'https://{$cloudfrontDomainName}/homecu/css/KendoUI/{$homecuKendoVersion}/kendo.{$loadStyleSheet}.min.css' rel=
'stylesheet'/>
52 <link href=
'/static/css/metisMenu.css' rel=
'stylesheet'/>
55 <link rel=
'stylesheet' media=
'all' type=
'text/css' href=
'/admbin/static/css/layout.css' />
58 <link href=
'https://{$cloudfrontDomainName}/homecu/css/font-awesome/font-awesome-4.6.3/css/font-awesome.css' rel=
'stylesheet'/>
61 <link rel=
'stylesheet' media=
'all' type=
'text/css' href=
'/admbin/static/css/brand.css' />
64 <link rel=
'stylesheet' media=
'all' type=
'text/css' href=
'/admbin/static/css/admin_master.css' />
68 background-color: white;
80 if (!is_null($shell) && trim($shell) !=
"") {
81 $dom =
new DOMDocument();
82 $dom->loadHTML($shell);
84 $noTags = array(
"script",
"frame",
"iframe");
86 foreach($noTags as $noTag) {
87 $noes = $dom->getElementsByTagName($noTag);
89 foreach($noes as $no) {
90 $item->parentNode->removeChild($no);
94 $html = $dom->saveHTML();