From: Josh Grams Date: Sat, 22 Aug 2009 16:20:26 +0000 (-0400) Subject: * run.php: moved to run2.php to make way for old one. X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=39a2bf23396095c46585cc88c15d0f9e37a44fcb;p=wfpl.git * run.php: moved to run2.php to make way for old one. --- diff --git a/run.php b/run.php deleted file mode 100644 index c67c27e..0000000 --- a/run.php +++ /dev/null @@ -1,150 +0,0 @@ -404

404 File Not Found

'; - exit(); - } - } - - $data =& $GLOBALS['wfpl_tem_data']; - $data['basename'] = $basename; - if(function_exists('display_messages')) { - display_messages(); - } - if($cms_content) foreach($cms_content as $name => $value) { - $data[$name] .= $value; - } - if(file_exists("$basename.css")) { - $data['css_link'] = "$basename.css"; - } - - if(file_exists("template.html")) { - $template = parse_template_file("template.html"); - if($html_exists) { - $subs = parse_template_file($html_file); - $template = merge_templates($template, $subs); - } - } elseif($html_exists) { - $template = parse_template_file("$html_file"); - } - if($template) print fill_template($template, $data); -} - -run_php(); - -?> diff --git a/run2.php b/run2.php new file mode 100644 index 0000000..c67c27e --- /dev/null +++ b/run2.php @@ -0,0 +1,150 @@ +404

404 File Not Found

'; + exit(); + } + } + + $data =& $GLOBALS['wfpl_tem_data']; + $data['basename'] = $basename; + if(function_exists('display_messages')) { + display_messages(); + } + if($cms_content) foreach($cms_content as $name => $value) { + $data[$name] .= $value; + } + if(file_exists("$basename.css")) { + $data['css_link'] = "$basename.css"; + } + + if(file_exists("template.html")) { + $template = parse_template_file("template.html"); + if($html_exists) { + $subs = parse_template_file($html_file); + $template = merge_templates($template, $subs); + } + } elseif($html_exists) { + $template = parse_template_file("$html_file"); + } + if($template) print fill_template($template, $data); +} + +run_php(); + +?>