--- index.php 2001/09/20 09:50:24 1.10
+++ index.php 2001/11/05 10:10:51 1.13
@@ -26,8 +26,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)));
} elseif (isset($static)) {
if (strstr($static,",")) {
$d=explode(",",$static); // dir,file
@@ -42,11 +40,17 @@
} 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 {
$main="can't find template or html file for section $section";
}
+
$smarty->assign(array(section=>$section,
mpic=>$mpic,
Section_title=>$title,