require_once('./settings.php');
require_once('./db_funcs.php');
+require_once('./html_funcs.php');
function login(){
// if(!isset($_SERVER['HTTPS'])){
return db_get_person($id);
}
-function html_top($title = ""){
- return <<<EOF
-<!DOCTYPE html>
-<html lang="de" dir="ltr">
-<head>
-<meta charset="utf-8">
-<title>$title</title>
-<link rel="stylesheet" href="style.css">
-<script src="sorttable.js"></script>
-</head>
-<body id="welcometucode">
-EOF;
-}
-
-function html_bottom(){
- return <<<EOF
-</body>
-</html>
-EOF;
-}
-
-function html_linkbox($current = "") {
- $items = array(
- 'index' => "Home",
- 'list' => "Anmeldungen",
- 'calendar' => "Kalender",
- 'stats' => "Stats"
- );
- $out = '<div id="menu" class="align-center"><h1>Anmeldesystem welcomeTUcode</h1><ul class="menulist">';
- foreach ($items as $file => $name) {
- $activeitem = ($current === $file) ? ' menuactive' : '';
- $out .= '<li class="menuitem'.$activeitem.'"><a href="./'.$file.'.php">'.$name.'</a></li>';
- }
- $out .= '</ul></div>';
- return $out;
-}
--- /dev/null
+<?php
+
+/**
+* welcome.TU.code Anmeldesystem.
+* by David Kaufmann <astra@ionic.at>
+*/
+
+function html_top($title = ""){
+ return <<<EOF
+<!DOCTYPE html>
+<html lang="de" dir="ltr">
+<head>
+<meta charset="utf-8">
+<title>$title</title>
+<link rel="stylesheet" href="style.css">
+<script src="sorttable.js"></script>
+</head>
+<body id="welcometucode">
+EOF;
+}
+
+function html_bottom(){
+ return <<<EOF
+<hr>
+<!-- Entwickelt 2015 von David "astra" Kaufmann (Layout + Website) und Jan "someone" Valeš (Datenbank + Website). -->
+<p class="footnote"><a href="https://frost.fsinf.at/iris?channels=w2c">Live-Support-WebChat</a> (Ist ein WebIRC zu <a href="irc://irc.fsinf.at/w2c">#w2c auf irc.fsinf.at</a>)
+<br>Auch möglich: <a href="mailto:someone@fsinf.at">eMail an someone@fsinf.at</a></p>
+</body>
+</html>
+EOF;
+}
+
+function html_linkbox($current = "") {
+ $items = array(
+ 'index' => "Home",
+ 'list' => "Anmeldungen",
+ 'calendar' => "Kalender",
+ 'stats' => "Stats"
+ );
+ $out = '<div id="menu" class="align-center"><h1>Anmeldesystem welcomeTUcode</h1><ul class="menulist">';
+ foreach ($items as $file => $name) {
+ $activeitem = ($current === $file) ? ' menuactive' : '';
+ $out .= '<li class="menuitem'.$activeitem.'"><a href="./'.$file.'.php">'.$name.'</a></li>';
+ }
+ $out .= '</ul></div>';
+ return $out;
+}
require_once('./funcs.php');
echo html_top("Anmeldesystem");
echo html_linkbox("index");
-echo html_bottom();
?>
+
+<h2>Benutzungsanleitung</h2>
+<p>TODO</p>
+
+<h2>Live-Support</h2>
+<p>Diese Software ist innerhalb von ca 20 Stunden entstanden, was für einen ordentlichen SW-Entwicklungsprozess viel zu wenig ist, weshalb sich trotz Tests auch
+sicherlich Fehler eingeschlichen haben, die wir nicht entdeckt haben.<br>
+Wenn Du Fragen hast, die aus der Benutzungsanleitung nicht klar werden, oder Du glaubst, einen Fehler in der Software entdeckt zu haben, nutze bitte den
+Live-Support Link unten auf jeder Seite, um mit dem Entwickler_innen-Team in Kontakt zu treten.</p>
+
+<?php echo html_bottom();
+
display: block;
}
}
+
+.footnote {
+ text-align:right;
+ font-size: 12px;
+ }
+