assignInclude("BODY", $templatecache['links'], T_BYVAR); eval($templatecache['phpinclude']); $tpl->prepare(); $tpl->assign("TITLE", $title); $result = miraquery("SELECT * FROM links WHERE status=1 ORDER BY name"); while ($row = mira_fetch_array($result)) { $tpl->newBlock(SITES); $tpl->assign("name", stripslashes($row[name])); $tpl->assign("url", stripslashes($row[url])); if ($row[description]) { $tpl->newBlock(DESCRIP); $tpl->assign("description", stripslashes($row[description])); } } $tpl->gotoBlock(_ROOT); $tpl->assign("TODAYSDATE", date("F j, Y")); noads(); $screencontent = $tpl->getOutputContent(); echo $screencontent; if ($enable_cache and $cacheok) { $cache->save($screencontent); } } if ($debug) { echo ""; echo "$numqueries database queries total"; echo "
Execution time = ".elapsed($scriptexec_start)." seconds\n"; /*$varlist = get_defined_vars(); while (list($var,$val) = each($varlist)) { echo "$var => $val
\n"; }*/ echo "
"; } if ($enable_gzip) { new gzip_encode(); } ?>