<?
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
// Software Foundation; either version 2 of the License, or (at your option)
// any later version.
// This program is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
// more details.
// You should have received a copy of the GNU General Public License along with
// this program; if not, write to the Free Software Foundation, Inc., 59 Temple
// Place - Suite 330, Boston, MA 02111-1307, USA.
// Copyright: (C) 2002/2003 Stefan Cyris
$navigation .= navigationway($categoryarray, $categoryid);
eval("\$navigation .= \"".templateget('navigation')."\";");
//categoryjump
$mycatarr = catarr_depthtostr($categoryarray);
while (list ($key, $val) = each ($mycatarr)) {
$arraytemp[$key] = $val["title"];
}
$categoryjump = build_select_box_from_array($arraytemp,"categoryid",$categoryid);
eval("\$jump = \"".templateget('jump')."\";");
//powered
eval("\$powered = \"".templateget('powered')."\";");
//login/logout
if ($session["userid"]>1) {
eval("\$login = \"".templateget('logout')."\";");
} else {
eval("\$login = \"".templateget('login')."\";");
}
// $body for template main
eval("\$body = \"".templateget('table')."\";");
// Speed measurement
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$endtime = $mtime;
$totaltime = ($endtime - $starttime);
$seconds = sprintf("%f", $totaltime);
eval("\$speed = \"".templateget('speed')."\";");
eval("\$bodyfooter = \"".templateget('bodyfooter')."\";");
eval("templateoutput(\"".templateget('main')."\");");
// debug measurement
if (!empty($stats)) {
$DB->query("INSERT INTO ".$DB->tableprefix."stats (script, speed, date) VALUES ('".$url."','".$seconds."',now() )");
}
?>