$value){ if ( strpos ( " " . $_SERVER['HTTP_REFERER'], $value) > 0 ){ die ("Gebruik van autohitters/klik programma's is helaas verboden!"); } } $ip = GetIP(); include("block_spam_china.php"); //aangezet 2015-04-24 $PageID = $_REQUEST["PageID"]; //$ip_blocks = array("212.23.63.56","72.36.205.10","72.36.162.26","85.101.49.182","64.127.124.139","65.19.150.222","65.19.150.243","65.19.150.224","65.19.150.240","212.129.202.166x","172.16.80.51","172.16.80.52","172.16.80.53","172.16.80.54","172.16.80.55","213.244.179.251","69.31.80.250","63.238.163.75","63.238.163.76","63.238.163.79","205.134.161.24","65.254.54.90","84.120.224.90","65.19.150.244"); //$ip_blocks = array("x"); $ip_blocks = array("5.35.25.223","86.81.93.205","31.161.128.121","128.140.221.132","81.4.104.129","148.251.91.38","178.63.0.194","80.120.131.26","37.239.46.50","148.251.92.48","188.143.232.31","217.195.202.13","178.255.215.75","188.143.232.111","188.92.75.244","95.108.156.251","120.43.7.99","85.144.221.101X","192.114.71.13","80.56.95.133","77.167.229.135x","94.215.225.115","94.215.224.31","207.241.237.205","198.100.100.30","126.15.4.225"); if (!in_array ($ip, $ip_blocks)){//if1... include_once("admin/config.php"); //$url = $HTTP_HOST; $url = $_SERVER["HTTP_HOST"]; $len = strlen($url); $sub_len = $len - 11; $sub = substr($url,0,$sub_len); //echo "sub=".$sub; if (substr($sub,0,4) == 'www.'){ include("redirect.php"); $len2 = strlen($sub); $sub = substr($sub,4,($len2-4)); } //insert_hit($ip); if ($sub == "italiancontact"){die("no..");} //echo $url; if ($url == "mysites.nl"){//checkit... //Header( "HTTP/1.1 301 Moved Permanently" ); //Header( "Location: http://www.mysites.nl" ); redirect("http://www.mysites.nl"); die; } if ($sub == "kenkteddywidders"){ Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://kenkteddywiddersendwergjes.mysites.nl" ); die; } if ($sub == "kenkteddywiddersendwergjes"){ Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://kenkteddys.mysites.nl" ); die; } if ($sub == "zvvsparta27"){ Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://zvvsparta24.mysites.nl" ); die; } if ($sub == "paulgulikers"){ Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://twcecht.mysites.nl" ); die; } if ($sub == "paranormaaltherapeute"){ Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://geestenjagers.mysites.nl" ); die; } if ($sub == "logojosje"){ Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://logopedie.mysites.nl" ); die; } if ($sub == "kleuters"){ Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.woordjes.nl" ); die; } if ($sub == "dineshpromotions" OR $sub == "dvswitch" OR $sub == "tonysinatra" OR $sub == "brugmanstoeterij" OR $sub == "sarabenoot" OR $sub == "daantjuhhh" OR $sub == "illegale-vuurwerk" OR $sub == "mondhygienepraktijkvanpoppel" OR $sub == "snelverdienen" OR $sub == "brandweernederweert" OR $sub == "haanrocamping" OR $sub == "cafecarillon" OR $sub == "vvvogelvreugdolstdiepenveen" OR $sub == "bouwdorphees" OR $sub == "afrika" OR $sub == "vogelrijkmeerhoven" OR $sub == "massagepraktijkjannezevenberg" ){//checkit... Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.mysites.nl" ); redirect("http://www.mysites.nl"); die; } $query = "SELECT id , actief , to_days(valid_till) - to_days(sysdate()) days_left , cat , email , actief , taal , layout , category , friends_y_n , recorder , naam , num_menu , num_pages FROM members WHERE username = '".q($sub)."' AND valid = '1' "; $result = db_query($query); $numrows = mysql_num_rows($result); $r = db_fetch_object($result); //MemberID... $id = $r->id; $MemberID = $r->id; $layout2 = $r->layout; $_recorder = $r->recorder; //enough menus/pages for adsense? $_NumMenusThisUser2011 = $r->num_menu; $_NumPagesThisUser2011 = $r->num_pages; if ($_NumMenusThisUser2011 < $CFG->NEED_MENUS_ADSENSE OR $_NumPagesThisUser2011 < $CFG->NEED_PAGES_ADSENSE){ $_AdsenseAllowed5566 = "n"; }else{ $_AdsenseAllowed5566 = "y"; } //ivm rubriekenpagina's... $_SESSION[online][id] = $r->id; $_SESSION[online][email] = $r->email; $_SESSION[online][username] = $sub; $CATMEMBER = $r->cat; $cat2 = $r->category; $EmailMember1 = $r->email; $Actief = $r->actief; $Taal = $r->taal; $friends_y_n = $r->friends_y_n; $_naam_recorder = urlencode($r->naam); //ahv gratis/basis/top bepaal daysleft; bij gratis is die altijd 1... if ($CATMEMBER == "basis"){ $DaysLeft = $r->days_left; } elseif($CATMEMBER == "top"){ $DaysLeft = $r->days_left; } else {//gratis members... $DaysLeft = 1; } /* echo "url=".$url."
"; echo "sub_len=".$sub_len."
"; echo "SUB=".$sub."
"; echo "MemID=".$MemberID; */ //partners... if ($sub == "partners"){ include("http://www.mysites.nl/php/partners.php"); die; } if ($sub == "buddies"){ include("http://www.mysites.nl/php/buddy_accept.php?u=$u&b=$b&key=$key"); die; } if (!isset($id) or $id == ''){ if ($sub != "www"){//sub bestaat niet... header("HTTP/1.1 404 Not Found"); //include("http://www.mysites.nl/templates/page.php"); redirect("http://www.mysites.nl/?error=2"); die(); } $sub = "www"; } if ($sub == "www"){//www... //============================================================================================================================= // // HOMEPAGE // //============================================================================================================================= //kill processen alleen bij www... kill_all_processes(); delete_stylesheets(); ?> hier ".$PageID.""; if (isset($PageID) AND $PageID != "gallery" AND $PageID != "gallery1" AND $PageID != "gallery2" AND $PageID != "gallery3" AND $PageID != "gallery4"){ $MypageArray = GetArrayMyPage($PageID); $PageTitle = ucfirst($MypageArray[name])." op ".ucfirst($sub)." Mysites.nl"; $MenuArray = GetArrayMenu($PageID); $MenuItem = $MenuArray["name"]; $pieces = explode (",", $PageKeywords); $p1 = rtrim(ltrim($pieces[0])); $p2 = rtrim(ltrim($pieces[1])); $p3 = rtrim(ltrim($pieces[2])); if ($MenuItem != ""){ $PageDescription = ucfirst($MenuItem).": Op $sub.mysites.nl vind je belangrijke informatie over $sub, $p1, $p2 en $p3."; }else{ $PageDescription = ucfirst($sub)." | Op $sub.mysites.nl vind je belangrijke informatie over $sub, $p1, $p2 en $p3."; } } //==================== if ($MenuItem != "" OR 1==11){ //$PageTitle = ucfirst($MenuItem)." - ".$PageTitle; } //========== if ($sub == "jurgenx"){ ?> <body bgcolor="#ffffff"> <p></p> </body>
Time > 90){ //echo $r->Time."
"; $query_kill_query = "KILL ".$r->Id; $result_kill_query = db_query($query_kill_query); } } } function delete_stylesheets(){ global $CFG; //echo $CFG->DOC_ROOT; #delete all stylesheets in /css2... // foreach (glob("/home/mysit01/HTML/css2/style*.*") as $filename){ foreach (glob($CFG->DOC_ROOT."/css2/style*.*") as $filename){ unlink($filename); } //mobiel foreach (glob($CFG->DOC_ROOT."/mobile/css2/style*.*") as $filename2){ //unlink($filename2); } } function GetLeftRightBgColor($id){ $query4 = "SELECT LeftRightBgColor FROM layout WHERE member_id = '".$id."' "; $result4 = db_query($query4); $r4 = db_fetch_object($result4); $BgColor = $r4->LeftRightBgColor; if ($BgColor == ''){ $BgColor = "#FFFFFF"; } return $BgColor; } function GetLeftMenusForKeywords($id){ $str=''; $query4 = "SELECT * FROM left_menus WHERE user_id = '".$id."' AND name NOT like 'welkom%' AND name NOT like 'home%' ORDER BY volg_nr LIMIT 0,18 "; $result4 = db_query($query4); while ($r = db_fetch_object($result4)) {//#2... $add = $r->name; $add = rtrim(ltrim((strtolower($add)))); $str = $str.", ".$add; }//while... $str = substr($str,2,1024); return $str; } function GetIP(){ global $HTTP_SERVER_VARS; if (getenv('HTTP_X_FORWARDED_FOR')){ $ip=getenv('HTTP_X_FORWARDED_FOR'); } else { $ip=getenv('REMOTE_ADDR'); } return $ip; } function DeleteSpamEntries(){ global $strSpam,$strDeleteSpamEntries; foreach ($strSpam as $el) { if ($el != ''){ $add = $add."or website like '%".$el."%' or bericht like '%".$el."%' or email like '%".$el."%' or naam like '%".$el."%' "; } }//end foreach $query = "DELETE FROM guestbook WHERE website like '%viagra%' ".$add; if ($strDeleteSpamEntries == "yes"){ $result = db_query($query); } //echo "Q=".$query."
"; //extra nov '13 $queryExtraDelete1 = "DELETE FROM guestbook WHERE website = 'http://www.facebook.com/profile.php?id=1'"; $resultExtraDelete1 = db_query($queryExtraDelete1); //extra } function ShowGoogleAdThisUser($userid, $Category2){ $NumRowsInGoogleBlockTable = UserBlockedForGoogle($userid); //echo "
NUmGoogleBlock = ".$NumRowsInGoogleBlockTable."
"; if ($NumRowsInGoogleBlockTable > 0 OR $Category2 == 3 OR $Category2 == 15 OR $Category2 == 164 OR $Category2 == 43 OR $Category2 == 58 OR $Category2 == 120 OR $Category2 == 144){ return false; }else{ return true; } } function UserBlockedForGoogle($userid){ $query = "SELECT count(*) aantal FROM google_blockers WHERE user_id = '".$userid."' "; //echo $query; $result = db_query($query); $r = db_fetch_object($result); $Num = $r->aantal; return $Num; } //close connection... //mysql_close($conn); ?>