105 lines
No EOL
3.7 KiB
PHP
105 lines
No EOL
3.7 KiB
PHP
<meta name="robots" content="noindex,nofollow">
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
<meta http-equiv="expires" content="0">
|
|
<?php
|
|
// echo'<pre>'; print_r($tag_tour5); echo'</pre>';
|
|
header('Content-Type: text/html; charset=utf-8');
|
|
error_reporting(E_ALL); ini_set('display_errors',1);
|
|
|
|
|
|
//------------------------------------------------------------------
|
|
if(!isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'on') {
|
|
header('Location: https://'.$_SERVER['SERVER_NAME']);
|
|
exit();
|
|
}
|
|
//------------------------------------------------------------------
|
|
require('lib/config.php');
|
|
include('lib/class.mysms.php');
|
|
require('lib/mysql.class.php');
|
|
require('lib/core.class.php');
|
|
session_name(CONFIG_SESSION);
|
|
session_start();
|
|
$realtime=time(); // zeit fuer fuss
|
|
$userip=$_SERVER['REMOTE_ADDR'];// ip fuer fuss
|
|
date_default_timezone_set('Europe/Berlin'); // Default Time Zone
|
|
// define('SITE_ACCESS',true);
|
|
$GLOBALS['mysql'] = new mysql(CONFIG_MYSQL_HOST,CONFIG_MYSQL_USER,CONFIG_MYSQL_PW,CONFIG_MYSQL_DB); mysqli_set_charset($mysql, 'utf8');
|
|
|
|
require('lib/smarty/Smarty.class.php');
|
|
$GLOBALS['core'] = new core;
|
|
|
|
$template = new smarty();
|
|
$template->template_dir = './template/';
|
|
$template->compile_dir = './template/compile';
|
|
$template->compile_check = TRUE;
|
|
$template->debugging = false;
|
|
$template->debug_output = "html";
|
|
$template->plugins_dir[] = 'lib/smarty/plugins/';
|
|
$template->force_compile = true;
|
|
//-----------------------------------------------------
|
|
//-----------------------------------------------------
|
|
//-----------------------------------------------------
|
|
//-----------------------------------------------------
|
|
//-----------------------------------------------------
|
|
//-----------------------------------------------------
|
|
|
|
//$jahr = (int)date('Y');
|
|
//$kw_aktuell = (int)date('W');
|
|
//$monat=(int)date('m'); $tag=(int)date('j');
|
|
|
|
//-----------------------------------------------------
|
|
$wochentag=date('w');
|
|
$tagname = array("Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag");
|
|
//-------------------------------------------------------------------------------------------------------------
|
|
//-------------------------------------------------------------------------------------------------------------
|
|
//-------------------------------------------------------------------------------------------------------------
|
|
//-------------------------------------------------------------------------------------------------------------
|
|
// 23-behinderung
|
|
// 21-Unfall
|
|
// 20-Stau
|
|
// 0-6 mobile blitzer
|
|
// 22
|
|
// 24-Glätte
|
|
// 25-Nebel
|
|
// 26- Baustellen 2
|
|
|
|
$page='https://cdn2.atudo.net/api/1.0/vl.php?type=0,1,2,3,4,5,6,20,21,23,24,25&box=51.287258756825445,11.80755615234375,51.50147667659363,13.114242553710938';
|
|
|
|
$html = file_get_contents($page);
|
|
$jsonrow=json_decode($html);
|
|
for($i=0; $i < 10; $i++) {
|
|
if(isset($jsonrow->pois[$i])) {
|
|
$lat=($jsonrow->pois[$i]->lat);
|
|
$lng=($jsonrow->pois[$i]->lng);
|
|
|
|
|
|
echo'<pre>'; print_r($jsonrow->pois[0]); echo'</pre>';
|
|
} else {
|
|
break;
|
|
}
|
|
}
|
|
/*
|
|
|
|
|
|
$page1='http://nominatim.openstreetmap.org/reverse?format=json&lat='.$lat.'&lon='.$lng.'&email=frank@first-mp.de';
|
|
$html2 = file_get_contents($page1);
|
|
|
|
$jsonrow2=json_decode($html2);
|
|
echo'<pre>'; print_r($jsonrow2->address->road); echo'</pre>';
|
|
|
|
|
|
echo'<pre>'; print_r($jsonrow2); echo'</pre>';
|
|
|
|
|
|
|
|
//echo'<pre>'; print_r($jsonrow); echo'</pre>';
|
|
*/
|
|
//------------------------------------------------------
|
|
//if(isset($jsonrow->pois[0])) {
|
|
//echo'<pre>'; print_r($jsonrow); echo'</pre>';
|
|
|
|
//} $jsonrow->messages[0]->dateStatus
|
|
//------------------------------------------------------
|
|
//------------------------------------------------------
|
|
?>
|