mirror of
				https://github.com/beestat/app.git
				synced 2025-10-31 01:57:01 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
|   require_once 'api/cora/setting.php';
 | |
|   $setting = cora\setting::get_instance();
 | |
| 
 | |
|   // 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">
 | |
|     <?php
 | |
|       require_once 'api/cora/setting.php';
 | |
|       $setting = cora\setting::get_instance();
 | |
| 
 | |
|       echo '<link rel="manifest" href="/manifest.json?' . $setting->get('commit') . '">';
 | |
|       echo '<link href="../css/dashboard.css?' . $setting->get('commit') . '" rel="stylesheet">';
 | |
| 
 | |
|       require 'js/js.php';
 | |
|     ?>
 | |
|   </head>
 | |
|   <body></body>
 | |
| </html>
 |