initial commit
This commit is contained in:
52
website_data/html/system_functions.php
Normal file
52
website_data/html/system_functions.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html><head>
|
||||
<meta name="description" content="fet.at - abgesagte Prüfungen">
|
||||
<meta name="author" content="fet.at">
|
||||
<link href="style.css" rel="stylesheet" type="text/css">
|
||||
<meta charset="UTF-8">
|
||||
<title>fet.at - Lab Doorknob</title>
|
||||
<meta name=viewport content="width=device-width, initial-scale=1, user-scalable=yes">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script>0</script>
|
||||
<div class="breitenbegrenzer">
|
||||
<div class="centertext">
|
||||
<big><big>Sarah <br>SYSTEM FUNCTIONS</big></big><br>
|
||||
<a href="/">
|
||||
<img src="FET-Logo.png" height="100px">
|
||||
<br>
|
||||
HOME</a>
|
||||
</div>
|
||||
<br>
|
||||
|
||||
Es gibt nur eine Systemfunktion: <br>
|
||||
Have you tried turning it off and on again? <br><br>
|
||||
Dauert ca. 3-5min.<br><br>
|
||||
|
||||
|
||||
<?php
|
||||
if(isset($_POST['restart_system'])) {
|
||||
$manual_door_open_file = fopen("/home/zutritt/Documents/sarah/system_request_commands/manual_restart_machine_request_set", "w");
|
||||
fclose($manual_door_open_file);
|
||||
chmod("/home/zutritt/Documents/sarah/system_request_commands/manual_restart_machine_request_set", 0777); //chmod so that the python script can delete
|
||||
//we just open the file so it exists, no need to write anything to it
|
||||
$date_now = date("Y-m-d H:i:s");
|
||||
echo $date_now.": System restart queued. <font color='red'>3-5min dauerts.</font>";
|
||||
}
|
||||
?>
|
||||
<form method="post">
|
||||
<input type="submit" name="restart_system"
|
||||
value="restart_system"/>
|
||||
</form>
|
||||
|
||||
|
||||
<div class="centertext">
|
||||
|
||||
<br><br><br>
|
||||
<a href="https://www.fet.at/kontakt">Kontakt</a> <br>pet@fet.at - 2022
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body></html>
|
||||
Reference in New Issue
Block a user