\n\n$page->title\n"); print("target\">\n"); print("style "); print("type=text/css>\n\nbgimage) print(" background=\"$page->bgimage\""); print(">\n"); return($page->id); } function finish($page) { $prev = $page->prev; $next = $page->next; print("
\n
\n"); if($page->content == "home") print("\n"); print("
\n"); if($prev) { print(""); print("\n"); } if($next) { print(""); print("\n"); } include("$page->footer"); print("\n"); } function clear($item) { if($item->clear) { print("clear != "br") print(" clear=$item->clear"); print(">\n"); } } function text($item) { if($item->class && $item->class != "float") { print("class\""); print(">\n"); } print("$item->dat\n"); if($item->class == "title") print("
\n"); if($item->class && $item->class != "float") print("
\n"); clear($item); } function image($item) { $image = $item->dat; $size = getimagesize($image); if($item->url) { $href = "url\">\n"; $cap = ""; } if($item->class) { if($item->class == "center" || $item->class == "banner") { $div = "
class\">\n"; } else { $div = "
\n"; $float = "align=\"$item->class\""; } } print("$div"); print("$href"); print("alt\" "); print("$float border=0>$cap\n"); clear($item); } function insert($item) { if($item->class) print("
class\">\n"); include($item->dat); if($item->class) print("
\n"); } function lookup($item) { $result = fopen("$item->dat","r"); print("class) print(" class=\"$item->class\""); print(">\n"); fpassthru($result); print("
\n"); clear($item); }