-
Notifications
You must be signed in to change notification settings - Fork 1
/
viewdowjones.php
45 lines (40 loc) · 2.04 KB
/
viewdowjones.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
session_start();
?>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Cloud Signals Dow Jones</title>
<link rel="shortcut icon" href="icon/cloud-icon.png">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="js/cloudsignals.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/purecss@2.1.0/build/pure-min.css" integrity="sha384-yHIFVG6ClnONEA5yB5DJXfW2/KC173DIQrYoZMEtBvGzmf0PKiGyNEqe9N6BNDBH" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/purecss@2.1.0/build/grids-responsive-min.css">
<link rel="stylesheet" href="font/sansation/sansation_light/stylesheet.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="font/raleway/stylesheet.css" type="text/css" charset="utf-8" />
<link rel='stylesheet' href='css/style_cloudservice.css'>
</head>
<body>
<?php
//session_start();
require "class/CloudSignalMain.php";
define('DATA_PATH','data/dowjones/');
define('XML_PATH_STOCK_LIST','xml/DowJonesList.xml');
define('DEBUG_MODE',false);
//date_default_timezone_set('Europe/London');//for UK market only
ini_set('max_execution_time', 300); //300 seconds = 5 minutes
// if(empty($_GET["symbol"])) $_tickerSymbol = "BDEV.L";
// else $_tickerSymbol = strtoupper($_GET["symbol"]);
// if(empty($_GET["interval"])) $_tickerInterval = CloudUtility::DAILY;
// else $_tickerInterval = strtoupper($_GET["interval"]);
// _createSignal($_tickerSymbol,"Barratt Developments plc",$_tickerInterval);
if (empty($_SESSION['count'])) $_SESSION['count'] = 1;
else $_SESSION['count']++;
if(DEBUG_MODE) echo "<p>Session Counter: ".$_SESSION['count']."</p>";
$_cloudSignalMain = new CloudSignalMain("Cloud Signals","Dow Jones shares");
$_cloudSignalMain->init(CloudUtility::DISPLAY_MODE);
?>
</body>
</html>