--- index.php 2001/07/09 14:25:36 1.7 +++ index.php 2001/07/22 18:02:06 1.8 @@ -29,6 +29,17 @@ $main=$smarty->fetch("$main_file.tpl"); } elseif (find_html_file("h",$section)) { $main=join('',file(find_html_file("h",$section))); +} elseif (isset($static)) { + if (strstr($static,",")) { + $d=explode(",",$static); // dir,file + } else { + $d=array($static,$static); + } + if (find_html_file("static/$d[0]",$d[1])) { + $main=join('',file(find_html_file("static/$d[0]",$d[1]))); + } else { + $main="Can't find static/$d[0]/$d[1]"; + } } elseif (file_exists("sections/$section.inc")) { include("sections/$section.inc"); } else {