0) { $geg = mysql_fetch_assoc($query); $del = mysql_query("DELETE FROM ".$tblprefix."tblnewslettersubscribers WHERE newssubscriber_email = '".$geg["newssubscriber_email"]."'"); echo $geg["newssubscriber_email"].LANG_SITE_UNSUBSUCCESS; } else { die(LANG_SITE_HASHUNKNOWN); } die(); } if (isset($_POST["log_out"])){ unset($_SESSION["log_status"]); unset($_SESSION["log_peopleid"]); unset($_SESSION["mod_forumid"]); } if (isset($_POST["login_naam"]) && isset($_POST["login_ww"])){ $login_naam = $_POST["login_naam"]; $login_ww = $_POST["login_ww"]; if($login_naam != "" && $login_ww != ""){ $login_ww = md5($login_ww); $check = @mysql_query("SELECT * FROM ".$tblprefix."tblpeople WHERE people_wachtwoord = '".$login_ww."' AND people_loginnaam = '".$login_naam."'"); if(@mysql_num_rows($check) > 0){ $gegcheck = mysql_fetch_assoc($check); $_SESSION["log_peopleid"] = $gegcheck["people_id"]; $_SESSION["log_status"] = "logged"; } else { $_SESSION["log_status"] = ""; $_SESSION["log_peopleid"] = ""; } } } $membergeg = array(); $membergeg["people_status"] = -1; if (isset($_SESSION["log_peopleid"])) { $res = @mysql_query("SELECT * FROM ".$tblprefix."tblpeople WHERE people_id = ".$_SESSION["log_peopleid"]); if ($res) { if (mysql_num_rows($res)) { $membergeg = mysql_fetch_assoc($res); } } } if (IpBlocked($_SERVER["REMOTE_ADDR"])) { die(LANG_GLOBAL_NOACCESS); } header("Content-type: text/html; charset=ISO-8859-1"); if ($config["site_log"] == 1) { @include "apps/w2gLog.php"; } if (isset($_GET["page"])) { $res = @mysql_query("UPDATE ".$tblprefix."tblcontent SET content_stats = content_stats + 1 WHERE content_txtid = '".addslashes($_GET["page"])."' AND content_lingo = '".$currentlingo."'"); } if (!$_GET["template"]) { $res = @mysql_query("SELECT * FROM ".$tblprefix."tbltemplates WHERE template_name = 'current'"); if (!$res) die(""); $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 WHERE content_parent = '000' AND content_lingo = '".$currentlingo."' AND content_active > 0 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"] = LANG_GLOBAL_RESULTS; } if ($_GET["frmEmailSubscribe"]) { $newsEmail = $_GET["frmEmailSubscribe"]; $newsHash = md5($_GET["frmEmailSubscribe"].time()); if(!preg_match( '/^[A-Z0-9._-]+@[A-Z0-9][A-Z0-9.-]{0,61}[A-Z0-9]\.[A-Z.]{2,6}$/i' , $newsEmail)) { echo ""; unset($_GET["frmEmailSubscribe"]); } else { $res = mysql_query("SELECT * FROM ".$tblprefix."tblnewslettersubscribers WHERE newssubscriber_email = '".$newsEmail."'"); if (!mysql_num_rows($res)) { $res = mysql_query("INSERT INTO ".$tblprefix."tblnewslettersubscribers (newssubscriber_email, newssubscriber_date, newssubscriber_hash, newssubscriber_lingo) VALUES ('".$newsEmail."', ".time().", '".$newsHash."', '".$currentlingo."')"); } else { echo ""; } } } 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 (LANG_GLOBAL_CONTACTWEBMASTER); } } } if (array_key_exists("FREEHTML",$w2gsettings) && $_GET["dontshow"] < 1) { include "free.php"; die(); } echo "\n"; echo " \n"; if ($config["site_effect"] != "none" && $config["site_effect"]) { include "apps/w2gEffect.php"; } 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 ""; ?>
".parseTags($config["site_header"])."
"; } echo " 0 && $thepagetype == "HTML") { echo "
"; if (isset($_GET["print"])) { ob_end_clean(); } if ($config["show_path"]) { $theClickPath = getClickPath($_GET["page"]); if (strlen($theClickPath) > 0) { echo "".LANG_SITE_CLICKPATH." "; echo ""; echo $theClickPath; echo "

"; } } if ($config["show_label"]) { echo "
".$thepageinfo["content_label"]."

"; } if (isset($_GET["hash"])){ $hash = $_GET["hash"]; $res = mysql_query("SELECT * FROM ".$tblprefix."tblpeople WHERE people_hash = '".$hash."'"); if($res){ if(mysql_num_rows($res) > 0){ $geg = mysql_fetch_assoc($res); mysql_query("UPDATE ".$tblprefix."tblpeople SET people_hash = '', people_status = '-1' WHERE people_id = '".$geg["people_id"]."'"); echo LANG_PEOPLE_DONEHASH; } else { echo LANG_PEOPLE_WRONGHASH; } } } elseif ($_GET["search"]) { include "apps/w2gSearch.php"; } elseif ($_GET["iframe"]) { include "apps/w2UseIFrame.php"; } elseif ($thepagetype == "HTML") { echo parseTags(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"]); if ($geg["application_file"]) { include $geg["application_file"]; } else { $res2 = mysql_query("SELECT content_html FROM ".$tblprefix."tblcontent WHERE content_lingo = '".$currentlingo."' ORDER BY content_sort ASC LIMIT 0,1"); $geg2 = mysql_fetch_array($res2); echo base64_decode($geg2["content_html"]); } } else { $geg["application_file"] = $thepageinfo["content_html"]; if (substr($geg["application_file"],0,4) == "http") { echo ""; } else { if (stristr($geg["application_file"],"pdf") > -1) { $thefile = $config["site_url"].$thepageinfo["content_html"]; echo LANG_SITE_DLNEWWINDOW; echo ""; } else { include $geg["application_file"]; } } } } if (isset($_GET["print"])) { echo ""; ob_start(); } ?>
"; $sbitems = explode(",",$config["sidebaritems"]); include "apps/w2gSideBar.php"; echo "



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