-
Notifications
You must be signed in to change notification settings - Fork 25
/
settings.php
78 lines (70 loc) · 2.75 KB
/
settings.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
/*
_____ _ _ _
| __ \ (_) | | | |
| |__) | _ | |__| | ___ _ __ ___ ___
| ___/ | | | __ | / _ \ | |_ \_ \ / _ \
| | | | | | | | | (_) | | | | | | | | __/
|_| |_| |_| |_| \___/ |_| |_| |_| \___|
S M A R T H E A T I N G C O N T R O L
*************************************************************************"
* PiHome is Raspberry Pi based Central Heating Control systems. It runs *"
* from web interface and it comes with ABSOLUTELY NO WARRANTY, to the *"
* extent permitted by applicable law. I take no responsibility for any *"
* loss or damage to you or your property. *"
* DO NOT MAKE ANY CHANGES TO YOUR HEATING SYSTEM UNTILL UNLESS YOU KNOW *"
* WHAT YOU ARE DOING *"
*************************************************************************"
*/
require_once(__DIR__.'/st_inc/session.php');
confirm_logged_in();
require_once(__DIR__.'/st_inc/connection.php');
require_once(__DIR__.'/st_inc/functions.php');
if(isset($_GET["frost"])) {
$frost_temp = $_GET['frost'];
$info_message = "Frost Protection Temperature Changed to $frost_temp°";
}
if(isset($_GET["reboot"])) {
$info_message = "Server is Rebooting <small> Please Do not Refresh... </small>";
}
if(isset($_GET["shutdown"])) {
$info_message = "Server is Shutting down <small> Please Do not Refresh... </small>";
}
if(isset($_GET["del_user"])) {
$info_message = "User account removed successfully...</small>";
}
if(isset($_GET["zone_deleted"])) {
$info_message = "Zone records removed successfully...</small>";
}
if(isset($_GET["find_gw"])) {
$info_message = "Searching for PiHome Netwotk gateway on your local network <small> Please Do not Refresh... </small>";
}
//backup process start
if(isset($_GET['db_backup'])) {
$info_message = "Data Base Backup Request Started, This process may take some time complete..." ;
include("start_backup.php");
}
//query to frost protection temperature
$query = "SELECT * FROM frost_protection LIMIT 1 ";
$result = $conn->query($query);
$frosttemp = mysqli_fetch_array($result);
$frost_temp = $frosttemp['temperature'];
?>
<?php include("header.php"); ?>
<?php include("notice.php"); ?>
<div id="page-wrapper">
<br>
<div class="row">
<div class="col-lg-12">
<div id="settingslist" >
<div class="text-center"><br><br><p><?php echo $lang['please_wait_text']; ?></p>
<br><br><img src="images/loader.gif">
</div>
</div>
</div>
<!-- /.col-lg-4 -->
</div>
<!-- /.row -->
</div>
<!-- /#page-wrapper -->
<?php include("footer.php"); ?>