mirror of
https://github.com/beestat/app.git
synced 2025-05-24 02:14:03 -04:00
beestat.io, app.beestat.io, api.beestat.io, demo.beestat.io They all now work and the cookies should behave better. Fixes #134 among other things.
26 lines
787 B
PHP
26 lines
787 B
PHP
<?php
|
|
|
|
// If you're not logged in, just take you directly to the ecobee login page.
|
|
if(isset($_COOKIE['session_key']) === false) {
|
|
header('Location: http://' . $_SERVER['HTTP_HOST'] . '/api/?resource=ecobee&method=authorize&arguments={}&api_key=ER9Dz8t05qUdui0cvfWi5GiVVyHP6OB8KPuSisP2');
|
|
die();
|
|
}
|
|
|
|
?>
|
|
|
|
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>beestat</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
|
|
<!-- Chrome, Firefox OS and Opera -->
|
|
<meta name="theme-color" content="#222222">
|
|
<link rel="manifest" href="/manifest.json">
|
|
|
|
<link href="../css/dashboard.css" rel="stylesheet">
|
|
<?php require 'js/js.php'; ?>
|
|
</head>
|
|
<body></body>
|
|
</html>
|