@ 2013-10-15T12:39:19Z <?php
if($active=='home' ||
$active=='services' ||
$active=='appointment' ||
$active=='gallery' ||
$active=='contact' ||
$active=='about' ||
$active=='jobs' && !$_GET['dev']){
// Settings
$cachedir = '../cache/'; // Directory to cache files in (keep outside web root)
$cachetime = 7200; // Seconds to cache files for
$cacheext = 'cache'; // Extension to give cached files (usually cache, htm, txt)
// Ignore List
$ignore_list = array(
'mynoblecare.com/rss.php',
'mynoblecare.com/search/'
);
// Script
$page = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; // Requested page
$cachefile = $cachedir . md5($page) . '.' . $cacheext; // Cache file to either load or create
$ignore_page = false;
for ($i = 0; $i < count($ignore_list); $i++) {
$ignore_page = (strpos($page, $ignore_list[$i]) !== false) ? true : $ignore_page;
}
$cachefile_created = ((@file_exists($cachefile)) and ($ignore_page === false)) ? @filemtime($cachefile) : 0;
@clearstatcache();
// Show file from cache if still valid
if (time() - $cachetime < $cachefile_created) {
//ob_start('ob_gzhandler');
@readfile($cachefile);
//ob_end_flush();
exit();
}
// If we're still here, we need to generate a cache file
ob_start();
}
header('Content-type: text/html; charset=utf-8');
$my=$_GET['hl']=='my';
require_once('class.translate.php');
function sanitize_output($buffer)
{
$search = array(
'/\>[^\S ]+/s', //strip whitespaces after tags, except space
'/[^\S ]+\</s', //strip whitespaces before tags, except space
'/(\s)+/s' // shorten multiple whitespace sequences
);
$replace = array(
'>',
'<',
'\\1'
);
$buffer = preg_replace($search, $replace, $buffer);
$buffer = preg_replace("/({$sitename})/i","<span class=\"notranslate\">$1</span>,$buffer);
return $buffer;
}
if(!$_GET['dev']){
ob_start("sanitize_output");
/*ob_end_flush();*/
}
require_once('Minifier.php');
if($_GET['title']){
if($active=='home'){
$pagetitle=ucwords(str_replace("-"," ",$pagetitle));
} elseif($active=='services') {
$pagetitle=ucwords(str_replace("-"," ",$_GET['title'])).' - '.$sitename;
}
$h1=ucwords(str_replace("-"," ",$h1));
$description=ucwords(str_replace("-"," ",$_GET['title'])).' - '.$description;
$metakeywords=ucwords(str_replace("-"," ",$_GET['title'])).', '.$metakeywords;
}
if($active!=='home'){
$description=$pagetitle.' | '.$description;
$metakeywords=$pagetitle.', '.$metakeywords;
}
if($my){
$metakeywords=translate_my($metakeywords);
$description=translate_my($description);
$pagetitle=translate_my($pagetitle);
$h1=translate_my($h1);
}
function curPageURL() {
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
return $pageURL;
}
$socialtitle = str_replace(" - ".$sitename," ",$pagetitle);
?>
<!DOCTYPE html>
<html itemscope="" itemtype="http://schema.org/WebPage" lang="en-US">
<head>
<title><?=$pagetitle?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="<?=$logo_notitle?>" itemprop="image" />
<meta name="description" content="<?=$description?>" />
<meta name="keywords" content="<?=$metakeywords?>" />
<base href="http://www.mynoblecare.com" />
<meta http-equiv="Content-Language" content="EN" />
<meta name="copyright" content="<?=$regname?>" />
<meta name="author" content="<?=$regname?>" />
<!--start social tags-->
<!--Twitter meta tags-->
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@mynoblecare">
<meta name="twitter:title" content="<?=$socialtitle?>">
<meta name="twitter:description" content="<?=$description?>">
<meta name="twitter:image" content="<?=$logo_notitle?>">
<!-- Facebook meta tags-->
<meta property="og:title" content="<?=$socialtitle?>" />
<meta property="og:site_name" content="<?=$sitename?>"/>
<meta property="og:type" content="website" />
<meta property="og:image" content="<?=$logo_notitle?>" />
<meta property="og:url" content="<?=curPageURL()?>" />
<meta property="og:description" content="<?=$description?>" />
<!--end social tags-->
<link rel="alternate" type="application/rss+xml" title="Noble Care Malaysia" href="http://feeds.feedburner.com/NobleCare">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
<link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css' />
<style type="text/css">
<?php
$css=file_get_contents('css/normalize.css');
if($_GET['m']=='1'){
$css.=file_get_contents('css/style_mini.css');
} else {
$css.=file_get_contents('css/style.css');
$css.=file_get_contents('css/subscribe.css');
}
if($active=='gallery'){
$css.=file_get_contents('css/gallery.css');
}
$css.='.h5 { line-height: 25px; font-weight: 300;color: rgb(226, 4, 4) !important;font-family: Arial,Helvetica,tahoma sans-serif;padding-bottom: 5px;border-bottom: 1px solid rgb(255, 0, 0);}';
if($active=='home'){
$css.='.ic2 {background:#888;overflow:hidden;border-top:5px solid #888;border-bottom:5px solid #888;font-family:"Lucida Sans Unicode","Lucida Grande",sans-serif}
.ic_inner {-moz-border-radius: 0px 42px 42px 0px;-webkit-border-radius: 0px 42px 42px 0px;border-radius: 0px 42px 42px 0px;background:rgb(247,247,247);padding:20px 20px 25px;padding-right: 150px;padding-left: 60px;transition:all 0.33s ease-in-out;-moz-transition:all 0.33s ease-in-out;-webkit-transition:all 0.33s ease-in-out;-o-transition:all 0.33 ease-in-out; overflow:hidden; }
.ic-fb { background:url(/images/ic-social.png); float:left;width:48px;height:48px;background-position: 0px 0px;}
.ic-fb:hover { width:48px;height:48px;background-position: 0px -58px;}
.ic-tw { background:url(/images/ic-social.png);float:left;width:48px;height:48px;background-position: 0px -116px;}
.ic-tw:hover { width:48px;height:48px;background-position: 0px -174px;}
.c-a {transition:all 0.33s ease-in-out;-moz-transition:all 0.33s ease-in-out;-webkit-transition:all 0.33s ease-in-out;-o-transition:all 0.33 ease-in-out;background: rgba(255,255,255,.4);border-radius: 10px;padding: 5px; color:rgb(190, 1, 9) !important;position: relative;top: 170px;left: 10px;font-size: 2.5em;}
.c-a:hover { background:rgba(247, 247, 247, 0.8);}';
} else {
$css.='.content-body { padding:20px; }
#content { border-top:none;}
.breadcrumb a { color:#333;}
.breadcrumb a:hover { color:rgb(226, 4, 4);}';
}
if($styles){
$css.=$styles;
}
/* remove comments */
$css = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $css);
/* remove tabs, spaces, newlines, etc. */
$css = str_replace(array("\r\n","\r","\n","\t",' ',' ',' '), '', $css);
/* remove other spaces before/after ; */
$css = preg_replace(array('(( )+{)','({( )+)'), '{', $css);
$css = preg_replace(array('(( )+})','(}( )+)','(;( )*})'), '}', $css);
$css = preg_replace(array('(;( )+)','(( )+;)'), ';', $css);
?>
<?=$css?>
</style>
<!--[if gte IE 9] <style type="text/css"> .gradient { filter: none; } </style> <![endif]-->
<?php if($_GET['title']){ ?>
<script type="text/javascript">window.location='http://www.mynoblecare.com';</script>
<?php } ?>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script type="text/javascript">
<?php
$js=file_get_contents('js/js.js');
if($active=='appointment') {
$js.='$.ajax({
url: "//code.jquery.com/ui/1.10.3/jquery-ui.js",
dataType: "script",
cache: true,
success: function() {
$( "#date" ).datepicker({ minDate: 0, maxDate: "+1M" });
$( "#date" ).datepicker( "option", "dateFormat", "DD, d MM, yy" );
$("head").append(\'<link href="//code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css" />\');
}
});';
} elseif($active=='gallery'){
$js.='$("head").append(\'<link href="css/lightbox.css" rel="stylesheet" type="text/css" />\');
$.ajax({
url: "js/modernizr.custom.js",
dataType: "script",
cache: true
});
$.ajax({
url: "js/lightbox-2.6.min.js",
dataType: "script",
cache: true
});';
}
$js.='
$(\'input[type="submit"]\').on("click",function(){
$("#loading").ajaxStart(function(){
centerDiv("#loading");
$(".overlay").show();
$(this).show();
}).ajaxStop(function(){
$(".overlay").hide();
$(this).hide();
});
});
});';
if(!$_GET['title']){
$js.='$(window).load(function(){
$("html, body").animate({
scrollTop: $(".content-body").offset().top-10
},1000);
$(".aloader").hide();
$(".ajaxlink").on("click",function(){
$(".aloader").show();
return true;
});
});';
}
$js = JShrink\Minifier::minify($js);
/* remove tabs, spaces, newlines, etc. */
$js = str_replace(array("\r\n","\r","\n","\t",' ',' ',' '), '', $js);
?>
<?=$js?>
</script>
</head>
<body>
<div style="text-indent:-99999px;">
<?=$socialtitle?>
<?php
$seotags='
old folks home malaysia
nursing home services
old folks home
elderly care centre malaysia
noble care
noble care malaysia
nursing care malaysia
nursing care services
nursing care services for old folks
nursing care services rawang
nursing care services selangor
nursing care services malaysia
nursing home malaysia
nursing home for old folks
nursing home for parents or grand parents
nursing home selangor
old age care services
care for old folks
old folks care services
patient care services
';
if($my){
$seotags=translate_my($seotags);
}
?>
<?=$seotags?>
</div>
<div style="overflow: hidden;text-align: center;z-index:9999999;position:absolute;border:1px solid #ddd;border-radius:10px;background:#fff;" id="loading" class="hide">
<img src="images/ajax-loader.gif" alt="loading" style="display:block;margin: 10px;" />
</div>
<div class="aloader" style="position:fixed;right:10px;bottom:5px;"><img src="images/ajax-loader.gif" alt="Loading.." title="Loading" /></div>
<noscript><style> .aloader { display:none } </style></noscript>
<div class="overlay hide"></div>
<div class="loader hide">
<div id="map_canvas"></div>
<span class="btn-submit closemodal">Close</span>
</div>
<div class="container">
<div class="main">
<div class="header" id="header">
<a href="/" title="Noble Care"><img id="logo" alt="logo" title="<?=$sitename?>" src="images/logo_1.png" /></a>
<?php
$mt1='Home';
$mt2='Services';
$mt3='Appointments';
$mt4='Gallery';
$mt5='About Us';
$mt6='Contact';
$mt7='Search';
if($my){
$mt1=translate_my($mt1);
$mt2=translate_my($mt2);
$mt3=translate_my($mt3);
$mt4=translate_my($mt4);
$mt5=translate_my($mt5);
$mt6=translate_my($mt6);
$mt7=translate_my($mt7);
}
?>
<ul class="menu">
<li<?php if($active=='home'){ echo ' class="active"'; } ?>><a class="ajaxlink" href="/"><?=$mt1?></a></li>
<!--
<li class="<?php if($active=='centres'){ echo 'active '; } ?>headlink"><a class="ajaxlink" href="/centres" onclick="return false;">Our Centres</a>
<ul>
<li><a href="/centres/rawang" onclick="return false;">Rawang Centre</a></li>
<li><a href="/centres/salayang" onclick="return false;">Salayang Centre</a></li>
<li><a href="/centres/kualalumpur" onclick="return false;">Kualalumpur Centre</a></li>
<li><a href="/centres/kalang" onclick="return false;">Klang Centre</a></li>
<li><a href="/centres/ampang" onclick="return false;">Ampang Centre</a></li>
<li><a href="/centres/petalingjaya" onclick="return false;">Petaling Jaya Centre</a></li>
</ul>
</li>
-->
<li<?php if($active=='services'){ echo ' class="active"'; } ?>><a class="ajaxlink" href="/services"><?=$mt2?></a></li>
<li<?php if($active=='appointment'){ echo ' class="active"'; } ?>><a class="ajaxlink" href="/appointment"><?=$mt3?></a></li>
<li<?php if($active=='gallery'){ echo ' class="active"'; } ?>><a class="ajaxlink" href="/gallery"><?=$mt4?></a></li>
<li<?php if($active=='about'){ echo ' class="active"'; } ?>><a class="ajaxlink" href="/about"><?=$mt5?></a></li>
<li<?php if($active=='contact'){ echo ' class="active"'; } ?>><a class="ajaxlink" href="/contact"><?=$mt6?></a></li>
<li class="sp gradient"> </li>
<form id="searchForm" action="/search" method="GET">
<div class="s-input">
<input type="text" name="q" id="q" placeholder="<?=$mt7?>" />
</div>
<input type="submit" id="searchSubmit" value="" />
</form>
</ul>
</div>
<?php if($active=='home'){ ?>
<?php if (isSet($_GET['msg'])){ echo "<div style='border-bottom: 1px dashed #F60;padding: 15px 20px 0px 20px;height: 32px;background-color: rgb(248, 240, 219);text-align:center;color:red;font-weight:bold;'>".htmlentities($_GET['msg'])."</div>"; } ?>
<?php if (isSet($_GET['msg_gr'])){ echo "<div style='border-bottom: 1px dashed #F60;padding: 15px 20px 0px 20px;height: 32px;background-color: rgb(248, 240, 219);text-align:center;color:green;font-weight:bold;'>".htmlentities($_GET['msg_gr'])."</div>"; } ?>
<div id="slider">
<a href="/forms/assessment-form" title="Assessment Form"><div class="left" style="height: 235px;width: 578px;"><img style="border:2px solid #ccc;" alt="assessment form noble care" src="http://www.mynoblecare.com/thumber.php?img=images/stethoscope_assessment-form.png&h=200&w=575" /></div></a>
<?php
$ocs1='Our Care Services';
if($my){
$ocs1=translate_my($ocs1);
}
?>
<a href="/our-care-services-pg" title="<?=$ocs1?>"><div class="left" style="margin-left: 10px;width: 411px;background: url('http://www.mynoblecare.com/thumber.php?img=images/gallery/_MG_0784.JPG&h=232&w=415') no-repeat scroll 0% 0% transparent;font-family: 'Oswald';height: 232px;border: 2px solid #ccc;"><span class="c-a" style="<?php if($my) { echo 'font-size:2.3em;';} ?>"><?=$ocs1?></span></div></a>
</div>
<?php } ?>
<div id="content">
<?php
if($active!=='home'){
$pagetitle2=str_replace(' - '.$sitename, '', $pagetitle);
echo '<div class="breadcrumb" style="color:#222;padding:10px;border-bottom:1px solid #ccc;">
You are here: ';
if(!$subactive){
echo '<span itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> <a href="http://www.mynoblecare.com" itemprop="url"><span itemprop="title">'.$sitename.'</span></a> » </span>'.$pagetitle2;
} else {
echo '<span itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> <a href="http://www.mynoblecare.com" itemprop="url"><span itemprop="title">'.$sitename.'</span></a> » </span><span itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a href="'.dirname(curPageURL()).'" itemprop="url"> <span itemprop="title">'.ucwords($active).'</span> </a> » </span>'.$pagetitle2;
}
echo '</div>';
}
?>
<div class="content-body" <?php if($active=='home'){ echo 'style="width:100%"'; } ?>>
<?php if($active=='home'){ ?>
<div style="text-align:center;"><h1 style="box-shadow:none;"><?=$h1?></h1></div>
<?php } ?>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Version System time (s) User time (s) Memory (MiB) 5.4.20 0.025 0.046 12.39 5.4.19 0.022 0.043 12.39 5.4.18 0.017 0.044 12.39 5.4.17 0.018 0.043 12.40 5.4.16 0.015 0.045 12.40 5.4.15 0.026 0.067 12.39 5.4.14 0.019 0.038 12.09 5.4.13 0.014 0.046 12.06 5.4.12 0.015 0.044 12.04 5.4.11 0.013 0.044 12.03 5.4.10 0.015 0.047 12.03 5.4.9 0.015 0.046 12.04 5.4.8 0.013 0.047 12.03 5.4.7 0.016 0.048 12.02 5.4.6 0.021 0.040 12.02 5.4.5 0.017 0.043 12.02 5.4.4 0.019 0.040 12.01 5.4.3 0.017 0.045 12.00 5.4.2 0.011 0.047 12.00 5.4.1 0.016 0.043 12.00 5.4.0 0.020 0.038 11.50 5.3.27 0.024 0.069 12.73 5.3.26 0.015 0.048 12.72 5.3.25 0.017 0.046 12.72 5.3.24 0.027 0.064 12.72 5.3.23 0.021 0.041 12.71 5.3.22 0.017 0.045 12.68 5.3.21 0.041 0.099 12.68 5.3.20 0.019 0.045 12.68 5.3.19 0.017 0.047 12.68 5.3.18 0.017 0.047 12.67 5.3.17 0.038 0.122 12.67 5.3.16 0.023 0.048 12.68 5.3.15 0.018 0.058 12.67 5.3.14 0.021 0.044 12.66 5.3.13 0.041 0.083 12.66 5.3.12 0.019 0.043 12.66 5.3.11 0.024 0.073 12.66 5.3.10 0.017 0.047 12.12 5.3.9 0.013 0.047 12.10 5.3.8 0.016 0.045 12.08 5.3.7 0.022 0.045 12.08 5.3.6 0.020 0.042 12.07 5.3.5 0.018 0.043 12.01 5.3.4 0.016 0.047 12.01 5.3.3 0.018 0.044 11.98 5.3.2 0.018 0.040 11.76 5.3.1 0.013 0.045 11.73 5.3.0 0.017 0.042 11.70
preferences:dark mode live preview
137.54 ms | 1394 KiB | 7 Q