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"]); } $loginError = ""; 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"; $_SESSION["shopuser"] = false; if ($gegcheck["people_status"] == -99) { $_SESSION["shopuser"] = true; } } else { $_SESSION["log_status"] = ""; $_SESSION["log_peopleid"] = ""; $_SESSION["shopuser"] = false; $check = @mysql_query("SELECT * FROM ".$tblprefix."tblpeople WHERE people_loginnaam = '".$login_naam."'"); if (@mysql_num_rows($check)) { $loginError = LANG_LOGIN_PASSWORDINCORRECT; } else { $loginError = LANG_LOGIN_USERNAMENOTFOUND; } } } } $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 ($membergeg["people_status"] == -99) { $membergeg["people_status"] = -1; } } } } if (IpBlocked($_SERVER["REMOTE_ADDR"])) { die(LANG_GLOBAL_NOACCESS); } $charset = $config["site_charset"]; if (empty($charset)) { $charset = "ISO-8859-1"; } // header("Content-type: text/html; charset=ISO-8859-1"); header("Content-type: text/html; charset=$charset"); if ($config["site_log"] == 1) { @include "apps/w2gLog.php"; } if (isset($_REQUEST["page"])) { $res = @mysql_query("UPDATE ".$tblprefix."tblcontent SET content_stats = content_stats + 1 WHERE content_txtid = '".addslashes($_REQUEST["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); } // load general shop settings, to use in all modules: global $shopsettings; $sql = "SELECT * FROM {$shoptblprefix}settings"; $ssres = mysql_query($sql); $shopsettings = mysql_fetch_array($ssres); $sql = "SELECT * FROM {$shoptblprefix}vendor"; $ss2res = mysql_query($sql); $vendorinfo = mysql_fetch_array($ss2res); if (!is_array($shopsettings)) { // je weet maar nooit, als het fout gaat, dan zorgt dit ervoor dat andere delen geen BOEM doen $shopsettings = array(); } if (!is_array($vendorinfo)) { // je weet maar nooit, als het fout gaat, dan zorgt dit ervoor dat andere delen geen BOEM doen $vendorinfo = array(); } $shopsettings = array_merge($shopsettings,$vendorinfo); $sql = "SELECT * from {$shoptblprefix}settings_translations WHERE LanguageCode = '".$_SESSION["wtgCurrentLingo"]."' "; $res = mysql_query($sql); if ($translation = mysql_fetch_array($res)) { $shopsettings["email_confirm_template"] = base64_decode($translation["email_confirm_template"]); $shopsettings["email_send_template"] = base64_decode($translation["email_send_template"]); $shopsettings["email_recommend_template"] = base64_decode($translation["email_recommend_template"]); $shopsettings["email_confirm_subject"] = $translation["email_confirm_subject"]; $shopsettings["email_send_subject"] = $translation["email_send_subject"]; $shopsettings["email_recommend_subject"] = $translation["email_recommend_subject"]; } if ($_REQUEST["page"]) { $_GET["page"] = $_REQUEST["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); $oldgetpage = $geg2["content_txtid"]; $_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(); // for shop pages, map them to the SHop page in the menu if (preg_match("/(shop|account|checkout)\/([a-zA-Z]+)/i",$_REQUEST["page"],$matches)) { $res = mysql_query("SELECT content_txtid FROM ".$tblprefix."tblcontent WHERE content_type = 'SHOP' AND content_lingo = '".$currentlingo."' AND content_active = 1"); if ($shoppagename = mysql_fetch_array($res)) { $_GET["page"] = $shoppagename["content_txtid"]; $_REQUEST["page"] = $shoppagename["content_txtid"]; } $shopPageName = $matches[2]; } $nav = new BuildNavigation(); // we have built the menu, so set page back to the original to show the right page $_GET["page"] = $oldgetpage; $_REQUEST["page"] = $oldgetpage; 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 (isset($_GET["referer"])) { if (is_numeric($_GET["referer"])) { $thisip = $_SERVER['REMOTE_ADDR']; $res = mysql_query("UPDATE ".$tblprefix."tblbanners SET banner_maxclicks = banner_maxclicks + 1, banner_lastip = '".$thisip."' WHERE banner_id = ".$_GET["referer"]." AND banner_lastip != '".$thisip."'"); } } include "apps/w2gClickPath.php"; if (array_key_exists("FREEHTML",$w2gsettings) && $_GET["dontshow"] < 1) { include "free.php"; die(); } echo "\n"; echo " \n"; echo ""; if ($config["site_effect"] != "none" && $config["site_effect"]) { include "apps/w2gEffect.php"; } echo " ".$config["site_title"]."\n"; echo " "; echo " "; echo " "; echo " "; echo "
"; //print "
";print_r($w2gsettings);print "
"; 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 ""; $hasleftbar = false; if (strpos($w2gsettings["Layout"]["LayoutNavPosition"],"Right") === false) { echo ""; $thecontentsize = $sizes[0] - $w2gsettings["Left"]["LeftWidth"]; if ($thecontentsize < 0) $thecontentsize = "100%"; } else { $thecontentsize = $sizes[0] ; if ($thecontentsize < 0) $thecontentsize = "100%"; } // $thecontentsize = "10%"; // now start main content TD : ?> "; include "apps/w2gDrawNav.php"; $hasrightbar = true; } //check if we habe a right bar if ($config["sidebaritems"]) { global $colwidth; if (strpos($w2gsettings["Layout"]["LayoutNavPosition"],"Right") === false) { $colwidth = "160px"; } else { $colwidth = $w2gsettings["Left"]["LeftWidth"]; } $bars = explode("|",$config["sidebaritems"]); if (count($bars) > 1) // new style, we have 2 columns { // right column if (count(explode(",",$bars[1])) > 0 && (($thepagetype == "HTML") OR ($thepagetype == "SHOP"))) { if ($shopPageName != "billing") { if (!$hasrightbar ) { echo ""; } if ($config["site_footer"] != "") { if ($hasrightbar) { $cols = "2"; } else { $cols = "1"; } echo ""; } echo "
"; echo "
"; if (!$config["site_topbanner"]) { echo " ".(($config["site_logo"] == "") ? $config["site_title"] : "").""; } else { echo "\n
".$config["site_topbanner"]."
\n"; } echo "
"; if (strpos($w2gsettings["Layout"]["LayoutNavPosition"],"Top") !== false) { $nav->PrintMenu(null,0,"top"); } echo "
"; include "apps/w2gDrawNav.php"; $hasleftbar = true; } if ($config["sidebaritems"]) { global $colwidth; if (strpos($w2gsettings["Layout"]["LayoutNavPosition"],"Right") === false) { $colwidth = $w2gsettings["Left"]["LeftWidth"]; } else { $colwidth = "160px"; } //print "colwidth = $colwidth"; $bars = explode("|",$config["sidebaritems"]); if (count($bars) > 1) // new style, we have 2 columns { // left column if (count(explode(",",$bars[0])) > 0 && (($thepagetype == "HTML") OR (($thepagetype == "SHOP") ) )) { if ($shopPageName != "billing") { if (!$hasleftbar ) { echo ""; } $hasleftbar = true; $sbitems = explode(",",$bars[0]); if (strpos($w2gsettings["Layout"]["LayoutNavPosition"],"Right") === false) { // remove cart im menu is on the left, because cart is already shown above menu $key = array_search("cart",$sbitems); if (is_numeric($key)) { $sbitems[$key] = ""; } } include "apps/w2gSideBar.php"; } else { if ($hasleftbar ) { $hasleftbar = true; $sbitems = explode(",",$bars[0]); if (strpos($w2gsettings["Layout"]["LayoutNavPosition"],"Right") === false) { // remove cart im menu is on the left, because cart is already shown above menu $key = array_search("cart",$sbitems); if (is_numeric($key)) { $sbitems[$key] = ""; } } include "apps/w2gSideBar.php"; } } } } else // old style: only 1 column check if we should whow here { if (strpos($w2gsettings["Layout"]["LayoutNavPosition"],"Right") !== false) { if (count(explode(",",$config["sidebaritems"])) > 0 && (($thepagetype == "HTML") OR ($thepagetype == "SHOP"))) { if ($shopPageName != "billing") { if (!$hasleftbar ) { echo ""; } $hasleftbar = true; $sbitems = explode(",",$config["sidebaritems"]); include "apps/w2gSideBar.php"; } else { if ($hasleftbar ) { $hasleftbar = true; $sbitems = explode(",",$config["sidebaritems"]); include "apps/w2gSideBar.php"; } } } } } } if ($hasleftbar ) { print "
\n"; if ($config["site_header"] != "") { echo "\n
".parseTags($config["site_header"])."
\n"; } 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 "\n
".$thepageinfo["content_label"]."

\n"; } 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") { if ($thepageinfo["content_memberniv"] <= $membergeg["people_status"]+1) { echo parseTags(base64_decode($thecontent)); } } elseif ($thepagetype == "SHOP") { include("apps/shop.php"); } else { if ($thepageinfo["content_memberniv"] <= $membergeg["people_status"]+1) { 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."' AND content_parent = '000' 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(); } ?>
"; } $hasrightbar = true; $sbitems = explode(",",$bars[1]); if (strpos($w2gsettings["Layout"]["LayoutNavPosition"],"Right") !== false) { // remove cart im menu is on the left, because cart is already shown above menu $key = array_search("cart",$sbitems); if (is_numeric($key)) { $sbitems[$key] = ""; } } include "apps/w2gSideBar.php"; } else { if ($hasrightbar ) { $hasrightbar = true; $sbitems = explode(",",$bars[1]); if (strpos($w2gsettings["Layout"]["LayoutNavPosition"],"Right") !== false) { // remove cart im menu is on the left, because cart is already shown above menu $key = array_search("cart",$sbitems); if (is_numeric($key)) { $sbitems[$key] = ""; } } include "apps/w2gSideBar.php"; } } } } else // old style: only 1 column check if we should whow here { if (strpos($w2gsettings["Layout"]["LayoutNavPosition"],"Right") === false) { if (count(explode(",",$config["sidebaritems"])) > 0 && (($thepagetype == "HTML") OR ($thepagetype == "SHOP"))) { if ($shopPageName != "billing") { $hasrightbar = true; echo ""; $sbitems = explode(",",$config["sidebaritems"]); include "apps/w2gSideBar.php"; } else { if ($hasrightbar ) { $hasrightbar = true; $sbitems = explode(",",$config["sidebaritems"]); include "apps/w2gSideBar.php"; } } } } } } if ($hasrightbar) { print "
".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."
"; } } } ?>