mirror of
https://github.com/beestat/app.git
synced 2025-07-09 03:04:07 -04:00
Fixed app welcome page
This commit is contained in:
parent
a4392c37f7
commit
5c061be288
@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require 'api/cora/setting.php';
|
require '../api/cora/setting.php';
|
||||||
$setting = cora\setting::get_instance();
|
$setting = cora\setting::get_instance();
|
||||||
|
|
||||||
// If you're not logged in, just take you directly to the ecobee login page.
|
// If you're already logged in
|
||||||
if(isset($_COOKIE['session_key']) === false) {
|
if(isset($_COOKIE['session_key']) === true) {
|
||||||
header('Location: https://' . $_SERVER['HTTP_HOST'] . '/api/?resource=ecobee&method=authorize&arguments={}&api_key=' . $setting->get('beestat_api_key_local'));
|
header('Location: https://app.beestat.io/');
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -149,7 +149,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<img class="logo" src="../logo.png" height="48" alt="beestat logo"/>
|
<img class="logo" src="../img/logo.png" height="48" alt="beestat logo"/>
|
||||||
</header>
|
</header>
|
||||||
<main>
|
<main>
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user