-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
84 lines (61 loc) · 3.11 KB
/
index.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
79
80
81
82
83
84
<?php session_start(); include_once('inc/functions.php');include_once('inc/html.php');
$html = new HTML;
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', dirname(__FILE__));
error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE);
ini_set('display_errors','On');
include_once('inc/Encoding.php');
use \ForceUTF8\Encoding;
function toISO($s)
{
return Encoding::toLatin1($s);
}
function toUTF8($s)
{
return Encoding::fixUTF8($s);
}
//error_reporting(E_ALL & ~E_NOTICE);
//ini_set('display_errors','On');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Schulstart</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/csvgen.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<a href="https://github.com/HaschekSolutions/schulstart"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"></a>
<div class="container theme-showcase" role="main">
<!-- Main jumbotron for a primary marketing message or call to action -->
<div class="jumbotron">
<h1>Schulstart</h1>
<p>by <a href="https://haschek.solutions"><img height="30" src="css/hs_logo.png" /></a></p>
<p> Schulstart ist eine Hilfestellung für Schul-Admins, die jedes Jahr viele Schüler und Gruppen einpflegen müssen. Man lädt das CSV (Export aus Sokrates) hinauf, wählt einige Einstellungen und erhält dann mehrere Scripts, die man auf den Servern einfach ausführen kann um Benutzer/Gruppen usw. zu setzen.</p>
</div>
<?php
if($_POST['submit']=='Berechnung starten')
echo controller();
else if($_GET['h'])
echo renderResults($_GET['h']);
else include('form.html');
?>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>