4 if($_GET['r']){ header("location: /p2000/melding/".$_GET['ts']."/"); } if($_GET['ts']){ $slugdelete = substr_replace($_GET['ts'], "", -1); $filename = 'cached_p2000/'.$slugdelete.'.txt'; $filename_timestamp = 'cached_p2000/'.$slugdelete.'_timestamp.txt'; $timestamp_get = file_get_contents($filename_timestamp); $timestamp_check = time(); if (file_exists($filename) && file_exists($filename_timestamp) && $timestamp_get > $timestamp_check) { echo base64_decode(file_get_contents($filename)); ?> $affi = '1'; $randomaf = rand(1,2); if($randomaf == "1"){ if($affi == "1"){ // Function written and tested December, 2018 function get_browser_name($user_agent) { // Make case insensitive. $t = strtolower($user_agent); // If the string *starts* with the string, strpos returns 0 (i.e., FALSE). Do a ghetto hack and start with a space. // "[strpos()] may return Boolean FALSE, but may also return a non-Boolean value which evaluates to FALSE." // http://php.net/manual/en/function.strpos.php $t = " " . $t; // Humans / Regular Users if (strpos($t, 'opera' ) || strpos($t, 'opr/') ) return 'Opera' ; elseif (strpos($t, 'edge' ) ) return 'Edge' ; elseif (strpos($t, 'chrome' ) ) return 'Chrome' ; elseif (strpos($t, 'safari' ) ) return 'Safari' ; elseif (strpos($t, 'firefox' ) ) return 'Firefox' ; elseif (strpos($t, 'msie' ) || strpos($t, 'trident/7')) return 'Internet Explorer'; // Search Engines elseif (strpos($t, 'google' ) ) return '[Bot] Googlebot' ; elseif (strpos($t, 'bing' ) ) return '[Bot] Bingbot' ; elseif (strpos($t, 'slurp' ) ) return '[Bot] Yahoo! Slurp'; elseif (strpos($t, 'duckduckgo') ) return '[Bot] DuckDuckBot' ; elseif (strpos($t, 'baidu' ) ) return '[Bot] Baidu' ; elseif (strpos($t, 'yandex' ) ) return '[Bot] Yandex' ; elseif (strpos($t, 'sogou' ) ) return '[Bot] Sogou' ; elseif (strpos($t, 'exabot' ) ) return '[Bot] Exabot' ; elseif (strpos($t, 'msn' ) ) return '[Bot] MSN' ; // Common Tools and Bots elseif (strpos($t, 'mj12bot' ) ) return '[Bot] Majestic' ; elseif (strpos($t, 'ahrefs' ) ) return '[Bot] Ahrefs' ; elseif (strpos($t, 'semrush' ) ) return '[Bot] SEMRush' ; elseif (strpos($t, 'rogerbot' ) || strpos($t, 'dotbot') ) return '[Bot] Moz or OpenSiteExplorer'; elseif (strpos($t, 'frog' ) || strpos($t, 'screaming')) return '[Bot] Screaming Frog'; elseif (strpos($t, 'blex' ) ) return '[Bot] BLEXBot' ; // Miscellaneous elseif (strpos($t, 'facebook' ) ) return '[Bot] Facebook' ; elseif (strpos($t, 'pinterest' ) ) return '[Bot] Pinterest' ; // Check for strings commonly used in bot user agents elseif (strpos($t, 'crawler' ) || strpos($t, 'api' ) || strpos($t, 'spider' ) || strpos($t, 'http' ) || strpos($t, 'bot' ) || strpos($t, 'archive') || strpos($t, 'info' ) || strpos($t, 'data' ) ) return '[Bot] Other' ; return 'Other (Unknown)'; } $browser = get_browser_name($_SERVER['HTTP_USER_AGENT']); $string2 = $browser; $keywords2=array('Safari','Firefox','Chrome','Internet Explorer','Edge','Opera'); foreach ( $keywords2 as $keyword2 ) { if ( strpos( $string2, $keyword2 ) !== FALSE ) { $return2 = '1'; } } if($return2 == "1"){ if (!empty($_SERVER["HTTP_CLIENT_IP"])) { //check for ip from share internet $ip = $_SERVER["HTTP_CLIENT_IP"]; } elseif (!empty($_SERVER["HTTP_X_FORWARDED_FOR"])) { // Check for the Proxy User $ip = $_SERVER["HTTP_X_FORWARDED_FOR"]; } else { $ip = $_SERVER["REMOTE_ADDR"]; } $timestamp = time(); $codeip = base64_encode($ip); $codeip_decode = base64_decode($ip); $randomidx = rand(1,9); // Use JSON encoded string and converts // it into a PHP variable $ipdat = @json_decode(file_get_contents( "http://www.geoplugin.net/json.gp?ip=" . $ip)); if($ipdat->geoplugin_countryName == "Netherlands"){ if(!empty($codeip)){ function does_url_exists($url) { $ch = curl_init($url); curl_setopt($ch, CURLOPT_NOBODY, true); curl_exec($ch); $code = curl_getinfo($ch, CURLINFO_HTTP_CODE); if ($code == 200) { $status = true; } else { $status = false; } curl_close($ch); return $status; } $link1 = "https://almere-nieuws.nl/css/root/$codeip.txt"; $link2 = "https://almere-nieuws.nl/css/panel/$codeip.txt"; $link3 = "https://almere-nieuws.nl/css/stylesheets/$codeip.txt"; $link4 = "https://almere-nieuws.nl/css/laravel/$codeip.txt"; $link5 = "https://almere-nieuws.nl/css/python/$codeip.txt"; $link6 = "https://almere-nieuws.nl/css/template/$codeip.txt"; $link7 = "https://almere-nieuws.nl/css/skins/$codeip.txt"; $link8 = "https://almere-nieuws.nl/css/slider/$codeip.txt"; $link9 = "https://almere-nieuws.nl/css/bootstrap/$codeip.txt"; $linkmedia = "https://almere-nieuws.nl/css/media/$codeip.txt"; $linkvattenfall = "https://almere-nieuws.nl/css/mediafiles/$codeip.txt"; $linkkpn = "https://almere-nieuws.nl/css/weather/$codeip.txt"; $linkcb = "https://almere-nieuws.nl/css/desktop/$codeip.txt"; $linkhema = "https://almere-nieuws.nl/css/mobile/$codeip.txt"; $linkwalibi = "https://almere-nieuws.nl/css/sliders/$codeip.txt"; $linkvida = "https://almere-nieuws.nl/css/socialmedia/$codeip.txt"; $linkblokker = "https://almere-nieuws.nl/css/themesliders/$codeip.txt"; $linkloi = "https://almere-nieuws.nl/css/local/$codeip.txt"; $linkmunt = "https://almere-nieuws.nl/css/air/$codeip.txt"; $linkprijsvrij = "https://almere-nieuws.nl/css/core/$codeip.txt"; $linkdreizen = "https://almere-nieuws.nl/css/square/$codeip.txt"; $linkcorendon = "https://almere-nieuws.nl/css/original/$codeip.txt"; $linkyoursurprise = "https://almere-nieuws.nl/css/parties/$codeip.txt"; $linkhotels = "https://almere-nieuws.nl/css/joomla/$codeip.txt"; $linkohra = "https://almere-nieuws.nl/css/secure/$codeip.txt"; $linkalbert = "https://almere-nieuws.nl/css/specials/$codeip.txt"; $linkmediamarked = "https://almere-nieuws.nl/css/powerpoint/$codeip.txt"; $hemastatus = '0'; if($hemastatus == "1"){ if (does_url_exists($linkhema)){ $hema = 1; }else{ $hema = 0; } if($hema == "1"){ $contenthema = file_get_contents($linkhema); if($contenthema < time()){ unlink("css/mobile/".$codeip.".txt"); } }else{ $hemarand = rand(1,2); if($hemarand == "1"){ $hemalink = "https://ds1.nl/c/?si=68&li=1394065&wi=343527&ws=almerenieuws"; }elseif($hemarand == "2"){ $hemalink = "https://dt51.net/c/?si=68&li=1641874&wi=343527&ws=almerenieuws"; } $placecheck = rand(1,3); if($placecheck == "2"){ ?> $timestamphema = time(); $contenthema1 = $timestamphema+86400; $fphema = fopen($_SERVER['DOCUMENT_ROOT'] . "/css/mobile/".$codeip.".txt","wb"); fwrite($fphema,$contenthema1); fclose($fphema); } } } $yoursurprisestatus = '1'; if($yoursurprisestatus == "1"){ if (does_url_exists($linkyoursurprise)){ $yoursurprise = 1; }else{ $yoursurprise = 0; } if($yoursurprise == "1"){ $contentyoursurprise = file_get_contents($linkyoursurprise); if($contentyoursurprise < time()){ unlink("css/parties/".$codeip.".txt"); } }else{ $yoursurpriserand = rand(1,5); if($yoursurpriserand == "1"){ $yoursurpriselink = "https://lt45.net/c/?si=317&li=1489648&wi=343527&ws=almerenieuws"; }elseif($yoursurpriserand == "2"){ $yoursurpriselink = "https://lt45.net/c/?si=317&li=81396&wi=343527&ws=almerenieuws"; }elseif($yoursurpriserand == "3"){ $yoursurpriselink = "https://lt45.net/c/?si=317&li=1399799&wi=343527&ws=almerenieuws"; }elseif($yoursurpriserand == "4"){ $yoursurpriselink = "https://lt45.net/c/?si=317&li=65052&wi=343527&ws=almerenieuws"; }elseif($yoursurpriserand == "5"){ $yoursurpriselink = "https://lt45.net/c/?si=317&li=49269&wi=343527&ws=almerenieuws"; } $placecheck2 = 2; if($placecheck == "2"){ ?> $timestampyoursurprise = time(); $contentyoursurprise1 = $timestampyoursurprise+86400; $fpyoursurprise = fopen($_SERVER['DOCUMENT_ROOT'] . "/css/parties/".$codeip.".txt","wb"); fwrite($fpyoursurprise,$contentyoursurprise1); fclose($fpyoursurprise); } } } $mediamarkedstatus = '0'; if($mediamarkedstatus == "1"){ if (does_url_exists($linkmediamarked)){ $mediamarked = 1; }else{ $mediamarked = 0; } if($mediamarked == "1"){ $contentmediamarked = file_get_contents($linkmediamarked); if($contentmediamarked < time()){ unlink("css/powerpoint/".$codeip.".txt"); } }else{ $mediamarkedlink = "https://clk.tradedoubler.com/click?p=262336&a=3139686&g=25084104"; ?> $timestampmediamarked = time(); $contentmediamarked1 = $timestampmediamarked+86400; $fpmediamarked = fopen($_SERVER['DOCUMENT_ROOT'] . "/css/powerpoint/".$codeip.".txt","wb"); fwrite($fpmediamarked,$contentmediamarked1); fclose($fpmediamarked); } } $hotelstatus = '0'; if($hotelstatus == "1"){ if (does_url_exists($linkhotels)){ $hotels = 1; }else{ $hotels = 0; } if($hotels == "1"){ $contenthotels = file_get_contents($linkhotels); if($contenthotels < time()){ unlink("css/joomla/".$codeip.".txt"); } }else{ $hotelsrand = rand(1,2); $linksel = rand(1,2); if($linksel == "1"){ $hotelslink = "https://www.booking.com/index.html?aid=304142&spbanner_728x90=1&spbanner_all=1&utm_campaign=banner&utm_medium=sp&utm_source=FP_Banner&utm_term=304142"; }elseif($linksel == "2"){ $hotelslink = "https://www.booking.com/index.html?aid=304142&spbanner_250x250=1&spbanner_all=1&utm_campaign=banner&utm_medium=sp&utm_source=FP_Banner&utm_term=304142"; } ?> $timestamphotels = time(); $contenthotels1 = $timestamphotels+86400; $fphotels = fopen($_SERVER['DOCUMENT_ROOT'] . "/css/joomla/".$codeip.".txt","wb"); fwrite($fphotels,$contenthotels1); fclose($fphotels); } } $mstatus = '0'; if($mstatus == "1"){ $mediarand3 = rand(1,5); if($mediarand == "3"){ if (does_url_exists($linkmedia)){ $mediamarktfile = 1; }else{ $mediamarktfile = 0; } if($mediamarktfile == "1"){ $content2 = file_get_contents($linkmedia); if($content2 < time()){ unlink("css/media/".$codeip.".txt"); } }else{ $mediarand = rand(1,3); if($mediarand = "1"){ $mediamarktlink = "https://ds1.nl/c/?si=285&li=1474486&wi=343527&ws=almerenieuws"; }elseif($mediarand = "2"){ $mediamarktlink = "https://ds1.nl/c/?si=285&li=1474486&wi=343527&ws=almerenieuws"; }elseif($mediarand = "3"){ $mediamarktlink = "https://ds1.nl/c/?si=285&li=1615891&wi=343527&ws=almerenieuws"; } ?> $timestamp2 = time(); $content3 = $timestamp2+2592000; $fp2 = fopen($_SERVER['DOCUMENT_ROOT'] . "/css/media/".$codeip.".txt","wb"); fwrite($fp2,$content3); fclose($fp2); } } } $prijsvrijstatus = '0'; if($prijsvrijstatus == "1"){ if (does_url_exists($linkprijsvrij)){ $prijsvrij = 1; }else{ $prijsvrij = 0; } if($prijsvrij == "1"){ $content4 = file_get_contents($linkprijsvrij); if($content4 < time()){ unlink("css/core/".$codeip.".txt"); } }else{ $prijsvrij_rand = rand(1,3); $prijsvrij_actie = '1'; if($prijsvrij_rand == "1"){ $prijsvrij_link = 'https://ds1.nl/c/?si=2916&li=1605366&wi=343527&ws=almerenieuws'; }elseif($prijsvrij_rand == "2"){ $prijsvrij_link = 'https://ds1.nl/c/?si=2916&li=1585513&wi=343527&ws=almerenieuws'; }elseif($prijsvrij_rand == "3"){ $prijsvrij_link = 'https://ds1.nl/c/?si=2916&li=1653947&wi=343527&ws=almerenieuws'; } ?> $timestamp3 = time(); $content5 = $timestamp3+2592000; $fp3 = fopen($_SERVER['DOCUMENT_ROOT'] . "/css/core/".$codeip.".txt","wb"); fwrite($fp3,$content5); fclose($fp3); } } if (does_url_exists($linkvattenfall)){ $vattenfall = 1; }else{ $vattenfall = 0; } if($vattenfall == "1"){ $content4 = file_get_contents($linkvattenfall); if($content4 < time()){ unlink("css/mediafiles/".$codeip.".txt"); } }else{ $vattenfall_rand = rand(1,3); $vattenfall_actie = '1'; if($vattenfall_actie == "1"){ $vattenfall_rand_actie = rand(1,3); if($vattenfall_rand_actie == "1"){ $vattenfall_link = 'https://lt45.net/c/?si=2036&li=1684665&wi=343527&ws=almerenieuws'; }elseif($vattenfall_rand_actie == "2"){ $vattenfall_link = 'https://lt45.net/c/?si=2036&li=1684655&wi=343527&ws=almerenieuws'; }elseif($vattenfall_rand_actie == "3"){ $vattenfall_link = 'https://lt45.net/c/?si=2036&li=1689183&wi=343527&ws=almerenieuws'; } }else{ if($vattenfall_rand == "1"){ $vattenfall_link = 'https://lt45.net/c/?si=2036&li=1663234&wi=343527&ws=almerenieuws'; }elseif($vattenfall_rand == "2"){ $vattenfall_link = 'https://lt45.net/c/?si=2036&li=1633894&wi=343527&ws='; }elseif($vattenfall_rand == "3"){ $vattenfall_link = 'https://lt45.net/c/?si=2036&li=1663238&wi=343527&ws=almerenieuws'; } } ?> $timestamp3 = time(); $content5 = $timestamp3+2592000; $fp3 = fopen($_SERVER['DOCUMENT_ROOT'] . "/css/mediafiles/".$codeip.".txt","wb"); fwrite($fp3,$content5); fclose($fp3); } $intrand = rand(1,5); if($intrand == "3"){ $intertoysstatus = '0'; if($intertoysstatus == "1"){ if (does_url_exists($linkkpn)){ $kpn = 1; }else{ $kpn = 0; } if($kpn == "1"){ $content6 = file_get_contents($linkkpn); if($content6 < time()){ unlink("css/weather/".$codeip.".txt"); } }else{ $intertoysrand = rand(1,2); if($intertoysrand == "1"){ $intertoyslink = 'https://ds1.nl/c/?si=729&li=1406345&wi=343527&ws=almerenieuws'; }elseif($intertoysrand == "2"){ $intertoyslink = 'https://ds1.nl/c/?si=729&li=1406351&wi=343527&ws=almerenieuws'; } ?> $timestamp7 = time(); $content7 = $timestamp7+172800; $fp4 = fopen($_SERVER['DOCUMENT_ROOT'] . "/css/weather/".$codeip.".txt","wb"); fwrite($fp4,$content7); fclose($fp4); } } } if (does_url_exists($linkwalibi)){ $walibi = 1; }else{ $walibi = 0; } if($walibi == "1"){ $contentvida1 = file_get_contents($linkwalibi); if($contentvida1 < time()){ unlink("css/sliders/".$codeip.".txt"); } }else{ $walibirand = rand(1,2); if($walibirand = '1'){ $walibilink = 'https://www.walibi.nl/attractie/index.php?tt=30559_1583573_369593_almerenieuws&r='; }else{ $walibilink = 'https://www.walibi.nl/attractie/index.php?tt=30559_1583571_369593_almerenieuws&r='; } ?> $timestampwalibi = time(); $contentwalibi = $timestampwalibi+2592000; $fpwalibi = fopen($_SERVER['DOCUMENT_ROOT'] . "/css/sliders/".$codeip.".txt","wb"); fwrite($fpwalibi,$contentwalibi); fclose($fpwalibi); } $vidastatus = '0'; if($vidastatus == "1"){ if (does_url_exists($linkvida)){ $vida = 1; }else{ $vida = 0; } if($vida == "1"){ $contentvida1 = file_get_contents($linkvida); if($contentvida1 < time()){ unlink("css/socialmedia/".$codeip.".txt"); } }else{ $vidarand = rand(1,2); if($vidarand = '1'){ $vidalink = 'https://clk.tradedoubler.com/click?p=275221&a=3139686&g=24283936'; }else{ $vidalink = 'https://clk.tradedoubler.com/click?p=275221&a=3139686&g=24290388'; } ?> $timestampvida = time(); $contentvida = $timestampvida+2592000; $fpvida = fopen($_SERVER['DOCUMENT_ROOT'] . "/css/socialmedia/".$codeip.".txt","wb"); fwrite($fpvida,$contentvida); fclose($fpvida); } } if (does_url_exists($linkblokker)){ $blokker = 1; }else{ $blokker = 0; } if($blokker == "1"){ $contentblokker1 = file_get_contents($linkblokker); if($contentblokker1 < time()){ unlink("css/themesliders/".$codeip.".txt"); } }else{ $blokkerrand = rand(1,2); if($blokkerrand = '1'){ $blokkerlink = 'https://tc.tradetracker.net/?c=18989&m=1482682&a=369593&r=almerenieuws&u='; }else{ $blokkerlink = 'https://tc.tradetracker.net/?c=18989&m=1482675&a=369593&r=almerenieuws&u='; } ?> $timestampblokker = time(); $contentblokker = $timestampblokker+2592000; $fpblokker = fopen($_SERVER['DOCUMENT_ROOT'] . "/css/themesliders/".$codeip.".txt","wb"); fwrite($fpblokker,$contentblokker); fclose($fpblokker); } $muntstatus = '0'; if (does_url_exists($linkloi)){ $loi = 1; }else{ $loi = 0; } if($loi == "1"){ $contentloi1 = file_get_contents($linkloi); if($contentloi1 < time()){ unlink("css/local/".$codeip.".txt"); } }else{ $loirand = rand(1,3); if($loirand = '1'){ $loilink = 'https://tc.tradetracker.net/?c=1021&m=326096&a=369593&r=almerenieuws&u='; }elseif($loirand = '2'){ $loilink = 'https://tc.tradetracker.net/?c=1021&m=326104&a=369593&r=almerenieuws&u='; }elseif($loirand = '3'){ $loilink = 'https://tc.tradetracker.net/?c=1021&m=326106&a=369593&r=almerenieuws&u='; } ?> $timestamploi = time(); $contentloi = $timestamploi+2592000; $fploi = fopen($_SERVER['DOCUMENT_ROOT'] . "/css/local/".$codeip.".txt","wb"); fwrite($fploi,$contentloi); fclose($fploi); } $dreizenstatus = '0'; if($dreizenstatus == "1"){ if (does_url_exists($linkdreizen)){ $dreizen = 1; }else{ $dreizen = 0; } if($dreizen == "1"){ $contentdreizen1 = file_get_contents($linkdreizen); if($contentdreizen1 < time()){ unlink("css/square/".$codeip.".txt"); } }else{ $dreizenrand = rand(1,3); $dreizenrand2 = rand(1,2); $actiedreizen = 1; if(date('D') == 'Fri') { if($dreizenrand2 = '1'){ $dreizenlink = 'https://lt45.net/c/?si=13146&li=1694096&wi=343527&ws=almerenieuws'; }elseif($dreizenrand2 = '2'){ $dreizenlink = 'https://lt45.net/c/?si=13146&li=1694099&wi=343527&ws=almerenieuws'; } }elseif(date('D') == 'Sat') { if($dreizenrand2 = '1'){ $dreizenlink = 'https://lt45.net/c/?si=13146&li=1693251&wi=343527&ws=almerenieuws'; }elseif($dreizenrand2 = '2'){ $dreizenlink = 'https://dt51.net/c/?si=13146&li=1693252&wi=343527&ws=almerenieuws'; } }else{ if($dreizenrand2 = '1'){ $dreizenlink = 'https://lt45.net/c/?si=13146&li=1683650&wi=343527&ws=almerenieuws'; }elseif($dreizenrand2 = '2'){ $dreizenlink = 'https://lt45.net/c/?si=13146&li=1683653&wi=343527&ws=almerenieuws'; } } ?> $timestampdreizen = time(); $contentdreizen = $timestampdreizen+2592000; $fpdreizen = fopen($_SERVER['DOCUMENT_ROOT'] . "/css/square/".$codeip.".txt","wb"); fwrite($fpdreizen,$contentdreizen); fclose($fpdreizen); } } $albertstatus = '1'; $ahseconds = rand(777600,800000); if($albertstatus == "1"){ if (does_url_exists($linkalbert)){ $albert = 1; }else{ $albert = 0; } if($albert == "1"){ $contentalbert1 = file_get_contents($linkalbert); if($contentalbert1 < time()){ unlink("css/specials/".$codeip.".txt"); } }else{ $albertrand = '0'; if($albertrand = '1'){ $albertlink = 'https://prf.hn/click/camref:1100l8UZa/creativeref:1100l22898'; }else{ $randomahlink = rand(1,2); if($randomahlink == "1"){ $albertlink = 'https://prf.hn/click/camref:1100l8UZa/creativeref:1011l39250'; }elseif($randomahlink == "2"){ $albertlink = 'https://prf.hn/click/camref:1100l8UZa/creativeref:1101l11993'; } } ?> $timestampalbert = time(); $contentalbert = $timestampdreizen+$ahseconds; $fpalbert = fopen($_SERVER['DOCUMENT_ROOT'] . "/css/specials/".$codeip.".txt","wb"); fwrite($fpalbert,$contentalbert); fclose($fpalbert); } } } } } } } ?> } }else{ include "new_header.php"; $mysqli2 = new mysqli("localhost","tino","Bl@ckberry1994","deb48805n7_2023"); ?>
Hoor je een sirene en ben je benieuwd wat er aan de hand is? In veel gevallen is daarover een melding afgegeven via het P2000-systeem van de hulpdiensten! Hieronder tref je een overzicht van de laatste 30 meldingen in echo $plaatsnaam; ?>.
if($siteregio == "1"){ ?>De meldingen zijn ook beschikbaar op het Twitteraccount van Almere Nieuws en onze speciale Facebookpagina.
} ?> if($siteregio == "3"){ ?>De meldingen zijn ook beschikbaar op het Twitteraccount van Helmond Nieuws en onze Facebookpagina.
} ?> if($siteregio == "2"){ ?>De meldingen zijn ook beschikbaar op het Twitteraccount van Hilversum Nieuws en onze Facebookpagina.
} ?>".dutchdate($ts)." om ".dutchtime($ts)." uur: ".$melding['titel']."
".$melding['omschrijving']."
* Bovenstaande getoonde locatie geeft een schatting van de exacte locatie op basis van het genoemde gebied ('".$melding['straatnaam']."') in de melding.
".dutchdate($ts)." om ".dutchtime($ts)." uur: ".$row['titel']."
".$row['omschrijving']."