-
Notifications
You must be signed in to change notification settings - Fork 1
/
qr.php
75 lines (56 loc) · 1.09 KB
/
qr.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
<!DOCTYPE html>
<html>
<head>
<title>Busabfahrtszeiten</title>
<style>
@import url(http://fonts.googleapis.com/css?family=Ubuntu:400,700);
body {
font-family: 'Ubuntu', sans-serif;
font-weight: 400;
color:#000
}
div.qr {
text-align:center;
font-size: 33pt;
}
table {
margin: 0 auto;
}
div.credits td {
width:150px;
text-align:center;
padding: 10px;
}
</style>
</head>
<body>
<div class="qr">
Live-Busabfahrtszeiten<br>für diese Haltestelle<br>
<?php
$url=$_SERVER['HTTP_HOST'] . dirname($_SERVER['REQUEST_URI']);
if(isset($_GET['id'])) {
$url .= "/".$_GET['id'];
}
if(isset($_GET['platform']) && $_GET['platform'] != "") {
$url .= "/".$_GET['platform'];
}
echo "<img src=\"https://chart.googleapis.com/chart?chs=480x480&cht=qr&chl=http://$url\"><br>$url";
?>
<br>
<br>
</div>
<div class="credits">
<table>
<tr>
<td><img src="img/fs-et.png" width="100px"></td>
<td><img src="http://www.ulmapi.de/images/ulmapi.png" width="100px"></td>
<td><span style="font-size:60pt;">[<3]</span></td>
</tr>
<tr>
<td>www.fs-et.de</td>
<td>www.ulmapi.de</td>
<td>DataLove</td>
</tr>
</div>
</body>
</html>