però non capisco perchè con altri domini funziona benissimo...
tipo questo: http://www.meteotemplate.com/templat...ffic/index.php
Non funziona con il dominio altervista...
Comunque questo è il codice della pagina...
Codice PHP:
<?php
############################################################################
#
# Meteotemplate
# [url]http://www.meteotemplate.com[/url]
# Free website template for weather enthusiasts
# Author: Jachym
# Brno, Czech Republic
# First release: 2015
#
############################################################################
#
# Air Traffic
#
# Map with current plane positions from two different sources.
#
############################################################################
# Version and change log
#
# v1.0 2016-06-11 Initial release
#
############################################################################
if(!file_exists("settings.php")){
echo "Missing settings file, create one using the plugin setup.";
die();
}
else{
include("settings.php");
}
include("../../config.php");
include($baseURL."css/design.php");
include($baseURL."header.php");
$mainURL = "http://www.flightradar24.com/simple_index.php?lat=".$stationLat."&lon=".$stationLon."&z=8";
if($airports){
$mainURL .= "&airports=1";
}
if($labels){
$mainURL .= "&label1=calsign";
}
if($label!="none" && $labels==true){
$mainURL .= "&label2=".$label;
}
?>
<!DOCTYPE html>
<html>
<head>
<title><?php echo $pageName?></title>
<?php metaHeader()?>
<style>
.frameStyle{
width: 100%;
height: 600px;
border: 3px solid #<?php echo $color_schemes[$design2]['500']?>;
}
</style>
</head>
<body>
<div id="main_top">
<?php bodyHeader()?>
<?php include($baseURL."menu.php")?>
</div>
<div id="main" style="text-align:center">
<img src="plane.png" style="width:100px">
<h1><?php echo lang('air traffic','c')?></h1>
<br>
<div style="width:90%;margin:0 auto">
<iframe frameborder ="0" scrolling="no" marginheight="0" marginwidth="0" class="frameStyle" src="https://www.radarbox24.com/?widget=1&mapid=1&z=6&lat=<?php echo $stationLat?>&lng=<?php echo $stationLon?>"></iframe>
</div>
</div>
<?php include($baseURL."footer.php")?>
</body>
</html>