Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl-cms.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make sure image captions are black
[wfpl-cms.git]
/
code
/
cms.php
diff --git
a/code/cms.php
b/code/cms.php
index
4f42655
..
e2ef7d9
100644
(file)
--- a/
code/cms.php
+++ b/
code/cms.php
@@
-1,7
+1,7
@@
<?php
function cms_display($basename, &$tem) {
<?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());
$GLOBALS['wfpl_main_template']->set('$running_locally');
}
$tem->set('$host', this_host());