Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
metaform: avoid css name conflicts
[wfpl.git]
/
run.php
diff --git
a/run.php
b/run.php
index
2791852
..
60e4eab
100644
(file)
--- a/
run.php
+++ b/
run.php
@@
-89,7
+89,10
@@
function run_php($dest = false) {
if(file_exists('template.html')) {
$GLOBALS['wfpl_main_template'] = new tem();
$GLOBALS['wfpl_main_template']->load("template.html");
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:
}
# cms_get can return one of: