Пример #1
0
require 'require/class.Connection.php';
require 'require/class.Spotter.php';
require 'require/class.SpotterLive.php';
require 'require/class.SpotterArchive.php';
$from_archive = false;
if (isset($_GET['ident'])) {
    $ident = $_GET['ident'];
    $spotter_array = SpotterLive::getLastLiveSpotterDataByIdent($ident);
    if (empty($spotter_array)) {
        $from_archive = true;
        $spotter_array = SpotterArchive::getLastArchiveSpotterDataByIdent($ident);
    }
}
if (isset($_GET['flightaware_id'])) {
    $flightaware_id = $_GET['flightaware_id'];
    $spotter_array = SpotterLive::getLastLiveSpotterDataById($flightaware_id);
    if (empty($spotter_array)) {
        $from_archive = true;
        $spotter_array = SpotterArchive::getLastArchiveSpotterDataById($flightaware_id);
    }
}
/*
?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Spotter TV</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="<?php print $globalURL; ?>/images/touch-icon.png">