--- index.php 2001/10/10 12:00:18 1.11 +++ index.php 2001/11/05 10:06:05 1.12 @@ -17,6 +17,8 @@ include("find_html_file.inc"); +print "xxxx --$static-- xxxx"; + if (isset($h) && file_exists(find_html_file("h/$section",$h))) { $main=join('',file(find_html_file("h/$section",$h))); if ($menu_item) { @@ -26,11 +28,6 @@ include("sections/$p.inc"); } elseif (file_exists("template/$main_file.tpl")) { $main=$smarty->fetch("$main_file.tpl"); -} elseif (find_html_file("h",$section)) { - $main=join('',file(find_html_file("h",$section))); - if (file_exists("sections/$section.inc")) { - include("sections/$section.inc"); - } } elseif (isset($static)) { if (strstr($static,",")) { $d=explode(",",$static); // dir,file @@ -45,6 +42,11 @@ } else { $main="Can't find static/$d[0]/$d[1]"; } +} elseif (find_html_file("h",$section)) { + $main=join('',file(find_html_file("h",$section))); + if (file_exists("sections/$section.inc")) { + include("sections/$section.inc"); + } } elseif (file_exists("sections/$section.inc")) { include("sections/$section.inc"); } else {