run.php now tem_set()s $running_locally if the host name ends with ".l" or is
an is an ipv4 adress.
<![endif]-->
<script>less = {env:'development'};</script>
<link rel="stylesheet/less" href="style_01.less" />
- <script src="http://lesscss.googlecode.com/files/less-1.0.41.min.js"></script>
+ <!--~$running_locally {~--><script src="/javascript/less/less.min.js"></script><!--~}~-->
+ <!--~$running_locally unset {~--><script src="http://lesscss.googlecode.com/files/less-1.0.41.min.js"></script><!--~}~-->
<!--~$head~-->
</head>
if(file_exists('template.html')) {
$GLOBALS['wfpl_main_template'] = new tem();
$GLOBALS['wfpl_main_template']->load("template.html");
- $GLOBALS['wfpl_main_template']->set('wfpl_basename', $basename);
+ $GLOBALS['wfpl_main_template']->set('$basename', $basename);
+ if(preg_match('/([.]l(ocal)?$)|^[0-9.]*$/', $_SERVER['HTTP_HOST'])) {
+ $GLOBALS['wfpl_main_template']->set('$running_locally');
+ }
}
# cms_get can return one of: