<?php
function cms_display($basename, &$tem) {
- if(preg_match('/([.]l(ocal)?$)|^[0-9.]*$/', $_SERVER['HTTP_HOST'])) {
+ if(preg_match('/([.]l(ocal)?$)|^192[.]168[.]|^127.0.0.1$|^10[.]/', $_SERVER['HTTP_HOST'])) {
$GLOBALS['wfpl_main_template']->set('$running_locally');
}
$tem->set('$host', this_host());