document.location.href = 'admin/install.php';"); $geg = mysql_fetch_array($res); $w2gsettings = unserialize(base64_decode($geg["template_layout"])); } else { // $config["site_url"] = "http://213.84.28.67/webtogo/"; $w2gsettings = parse_ini_file("templates/".$_GET["template"], true); } if ($_GET["page"]) { $_GET["page"] = $_GET["page"]; } else { $res2 = mysql_query("SELECT content_txtid FROM ".$tblprefix."tblcontent ORDER BY content_sort ASC LIMIT 0,1"); $geg2 = mysql_fetch_array($res2); $_GET["page"] = $geg2["content_txtid"]; } if ($_GET["search"]) { $_GET["page"] = "__NOPAGE__"; $thepageinfo["content_label"] = "Resultaten"; } if ($_GET["app"]) { $_GET["page"] == "__NOPAGE__"; $thepageinfo["content_label"] = "Agenda"; $thepagetype = "APP"; $thelink = "apps/w2gAgenda.php"; } ob_start(); $nav = new BuildNavigation(); if (isset($_GET["action"])) { if ($_GET["action"] == "setpoll") { $res = mysql_query("SELECT * FROM ".$tblprefix."tblpolls WHERE poll_id = ".addslashes($_POST["frmId"])); $geg = mysql_fetch_array($res); $thearr = unserialize(base64_decode($geg["poll_answers"])); if (isset($thearr["answers"][$_POST["frmPoll"]]["result"])) { $thearr["answers"][$_POST["frmPoll"]]["result"]++; } else { $thearr["answers"][$_POST["frmPoll"]]["result"] = 1; } $thearr = base64_encode(serialize($thearr)); $theiplist = explode("\n",$geg["poll_ips"]); if (!in_array($_SERVER["REMOTE_ADDR"],$theiplist)) { $theips = $geg["poll_ips"]."\n".$_SERVER["REMOTE_ADDR"]; mysql_query("UPDATE ".$tblprefix."tblpolls SET poll_answers = '".$thearr."', poll_ips = '".addslashes($theips)."' WHERE poll_id = ".$_POST["frmId"]); header("Location: index.php?page=".$_GET["page"]); } else { die ("Fout! Contacteer de webmaster!"); } } } echo "\n"; echo " \n"; echo " ".$config["site_title"]."\n"; echo " "; echo ""; echo " "; echo " "; echo "
"; if (array_key_exists("TemplateSize",$w2gsettings["Global"])) { $sizes = explode("x",$w2gsettings["Global"]["TemplateSize"]); if ($sizes[0] == "*") $sizes[0] = "100%"; /* if ($sizes[1] == "*") */ $sizes[1] = "100%"; $TableStyleTag = "width: ".$sizes[0]."; height: ".$sizes[1].";"; if ($w2gsettings["Layout"]["LayoutBorderStyle"] != "none") { $TableStyleTag .= "border-left: ".$w2gsettings["Layout"]["LayoutBorderColor"]." 1px ".$w2gsettings["Layout"]["LayoutBorderStyle"]."; border-right: ".$w2gsettings["Layout"]["LayoutBorderColor"]." 1px ".$w2gsettings["Layout"]["LayoutBorderStyle"].";"; } } else { $TableStyleTag = ""; } echo ""; if (array_key_exists("Top",$w2gsettings)) { $topTitleLoc = explode(",",($w2gsettings["Top"]["TopTitleLocation"] ? $w2gsettings["Top"]["TopTitleLocation"] : $w2gsettings["Top"]["TopTitleLocate"]) ); echo ""; echo " "; echo ""; } // TOPMENU if (is_array($w2gsettings["Top2"])) { $menulocs = explode(",",$w2gsettings["Top2"]["TopMenuLocation"]); if (substr($w2gsettings["Top2"]["TopPictureBack"],0,4) != "http") { $thetop2bg = "templates/".$w2gsettings["Global"]["TemplateName"]."/".$w2gsettings["Top2"]["TopPictureBack"]; } else { $thetop2bg = $w2gsettings["Top2"]["TopPictureBack"]; } echo ""; } echo ""; $thecontentsize = $sizes[0] - $w2gsettings["Left"]["LeftWidth"]; if ($thecontentsize < 0) $thecontentsize = "100%"; else $thecontentsize .= "px"; if (strpos($w2gsettings["Layout"]["LayoutNavPosition"],"Right") === false) { include "apps/w2gDrawNav.php"; ?> "; } } else { if (count(explode(",",$config["sidebaritems"])) > 0 && $thepagetype == "HTML") { echo ""; } } /* ?> "; } echo "
"; echo "
"; if (!$config["site_topbanner"]) { echo " ".(($config["site_logo"] == "") ? $config["site_title"] : "").""; } else { echo "
".$config["site_topbanner"]."
"; } echo "
"; if (strpos($w2gsettings["Layout"]["LayoutNavPosition"],"Top") !== false) $nav->PrintMenu(null,0,"top"); echo "
0 && $thepagetype == "HTML") { $sbitems = explode(",",$config["sidebaritems"]); echo "
"; include "apps/w2gSideBar.php"; echo ""; ?>
".$config["site_header"]."
"; } echo " 0 && $thepagetype == "HTML") { echo "
"; if (isset($_GET["print"])) { ob_end_clean(); } echo "
".$thepageinfo["content_label"]."

"; if ($_GET["search"]) { include "apps/w2gSearch.php"; } elseif ($thepagetype == "HTML") { echo base64_decode($thecontent); } else { if ($thepagetype != "EXTERN") { $res = mysql_query("SELECT * FROM ".$tblprefix."tblapplications WHERE application_name = '".$thelink."'"); $geg = mysql_fetch_array($res); $applayout = base64_decode($geg["application_layout"]); include $geg["application_file"]; } else { $geg["application_file"] = $thepageinfo["content_html"]; if (substr($geg["application_file"],0,4) == "http") { echo ""; } else { include $geg["application_file"]; } } } if (isset($_GET["print"])) { echo ""; ob_start(); } ?>
"; $sbitems = explode(",",$config["sidebaritems"]); include "apps/w2gSideBar.php"; echo "



".$config["site_footer"]."
"; include "apps/w2gFooter.php"; echo "
"; ?> "; echo ""; echo "
"; } // echo $theoutput; echo $dotxt; echo "
"; if (!isset($_GET["print"])) { echo $debugtxt; echo "
"; echo ""; foreach ($_REQUEST as $key => $value) { echo ""; } echo "
".$key."".$value."
"; } } ?>