initial commit

This commit is contained in:
moo
2022-06-15 16:57:55 +02:00
parent a9336cc939
commit 4bdf697940
30 changed files with 2567 additions and 0 deletions

View File

@@ -0,0 +1,101 @@
<!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">
<script type="text/javascript">
function Ajax()
{
var
$http,
$self = arguments.callee;
if (window.XMLHttpRequest) {
$http = new XMLHttpRequest();
} else if (window.ActiveXObject) {
try {
$http = new ActiveXObject('Msxml2.XMLHTTP');
} catch(e) {
$http = new ActiveXObject('Microsoft.XMLHTTP');
}
}
if ($http) {
$http.onreadystatechange = function()
{
if (/4|^complete$/.test($http.readyState)) {
document.getElementById('ReloadThis').innerHTML = $http.responseText;
setTimeout(function(){$self();}, 1000);
}
};
$http.open('GET', 'get_debug_log.php?lines=2' + '&time=' + new Date().getTime(), true);
$http.send(null);
}
}
</script>
</head>
<body>
<script>0</script>
<div class="breitenbegrenzer">
<div class="centertext">
<big><big>Sarah <br>USER MANAGEMENT</big></big><br>
<a href="/">
<img src="FET-Logo.png" height="100px">
<br>
HOME</a>
</div>
<br>
Du kannst berechtigte User_Innen hier anschauen und ändern. <br><br>
(ÄNDERN IST NOCH NICHT IMPLEMENTIERT, 14.6.22 pet)<br><br>
Letzte Zeile aus dem Debug log:<br>
<script type="text/javascript">
setTimeout(function() {Ajax();}, 1000);
</script>
<div id="ReloadThis">Default text</div>
<?php
if (isset($_POST['edit_file'])){
//$content = $_POST['edit_user_text'];
//$file = "/home/zutritt/Documents/sarah/data.csv";
//$Saved_File = fopen($file, 'w');
//fwrite($Saved_File, $content);
//fclose($Saved_File);
echo "<font color='green'>User file updated:</font>";
}
?>
<form method="post" action="" id="edit_form">
Liste:<br>
<textarea name="edit_user_text" rows="20" cols="80"><?php
echo(htmlspecialchars(file_get_contents("/home/zutritt/Documents/sarah/data.csv")));
?></textarea><br>
<input type="submit" value="Speichern" name="edit_file">
</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>