include("configuration.inc");
include("browsercheck.inc");
include("botdet.inc");
$user_agent = $HTTP_SERVER_VARS["HTTP_USER_AGENT"];
$isBrowser = detectBrowser($user_agent);
if (!($isBrowser=="Bot")) {
include("$Config->templatedir/header.inc");
if ((eregi("Mac",$user_agent)) || (eregi("Firefox",$user_agent))) { // is mac or Firefox
include("$Config->templatedir/macmenu.inc");
}else{
include("$Config->templatedir/menu.inc");
}
include("$Config->templatedir/signup.inc");
} else {
include("$Config->templatedir/header1.inc");
include("$Config->templatedir/macmenu.inc");
}
?>
if (!($cid)){
$cid=$Config->homepage;
}
$qpage=get_selected_category($cid);
($qpage)? $page=dbase_fetch_object($qpage): "";
?>
|
include("$Config->templatedir/title.inc");
?>
if (!($page)){
include("listerror.inc");
}
if (!($isBrowser=="Bot")) {
if ($page->pagetype == "1") {
include("normal.inc");
}
if ($page->pagetype == "2") {
include("gallery.inc");
}
if ($page->pagetype == "3") {
include("slideshow.inc");
}
} else {
include("normalstrip.inc");
}
?>
|
include("$Config->templatedir/footer.inc");
/*********FUNCTION TO RETRIEVE THE LINKS TO UPLOADED FILES**************/
function get_file_links($cid){
$qid = db_query("
SELECT
f.id
,f.name
,f.image1
,f.date
,f.intro
,f.linktext
,pf.menu_id
FROM
files f
,menu_files pf
WHERE f.id = pf.file_id
AND pf.menu_id = $cid
ORDER BY f.id");
return $qid;
}
/***********************************************************************/
?>