-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmap.php
More file actions
63 lines (48 loc) · 2.41 KB
/
Copy pathmap.php
File metadata and controls
63 lines (48 loc) · 2.41 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
session_start();
if(!isset($_SESSION['userSession'])){
header("Location: pages/login.php");
exit();
} else {
$url = "http://api.openweathermap.org/data/2.5/find?lon=27.8333&lat=43.5667&units=metric&type=accurate&mode=xml&APPID=d53b7d430ab2e82f0aaa4572bdcb38c9";
$getWeather = simplexml_load_file($url);
$getTemp = $getWeather->list->item->temperature['value'];
$getHumidity = $getWeather->list->item->humidity['value'];
require 'php/dbconn.php';
}
?>
<script>
</script>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Healther</title>
<meta name="description" content="Official home of Healther">
<link rel="icon" href="images/healther_clean.png" type="image/gif" sizes="16x16">
<meta property="image" content="https://healther.online/images/healther_clean.png" />
<meta name="keywords" content="health, air, aqi, temp, well-being, home, healther">
<script src="https://kit.fontawesome.com/3186fbbd0c.js" crossorigin="anonymous"></script>
<meta charset="UTF-8">
<!-- bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js" integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0" crossorigin="anonymous"></script>
<meta name="author" content="Iliyan Petrov, Samuil Georgiev">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- <link rel="stylesheet" href="css/index.css"> -->
<link rel="stylesheet" href="css/header.css">
<!-- <link rel="stylesheet" href="css/map.css"> -->
</head>
<body>
<?php include 'pages/header.php';?>
<main>
<div id='map' style='margin: 20px; height: 85%;'></div>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css"/>
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"></script>
</main>
<!-- map? don't touch -->
<script src="js/map.js"></script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/hammerjs@2.0.8"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-zoom@0.7.7"></script> -->
</body>
</html>