This repository has been archived by the owner on Oct 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
100 lines (83 loc) · 1.98 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?php
function is_dir_empty($dir) {
if (!is_readable($dir)) return NULL;
$handle = opendir($dir);
while (false !== ($entry = readdir($handle))) {
if ($entry != "." && $entry != "..") {
return FALSE;
}
}
return TRUE;
}
$currentSelfiesDir = './aktuell/';
?>
<html>
<head>
<title>Selfies Studentenclub Stecker</title>
<style type="text/css">
@import url(https://fonts.googleapis.com/css?family=Open+Sans);
body{
background-color: black;
font-family: "Open Sans", Arial, Helvetica;
text-align: center;
margin-top: 30px;
color: white;
}
h1{
font-weight: 400;
font-size: 32pt;
}
div#btnContainer{
margin-top: 60px;
}
div#btnContainer a{
display: block;
margin: 15px auto;
width: 300px;
padding: 20px 35px;
background-color: #FF4500;
text-decoration: none;
color: white;
font-size: 20pt;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
}
div#btnContainer a img{
margin-right: 10px;
}
div#btnContainer a.recent{
background-image: linear-gradient(to top, #3f710f, #72c91c);
}
div#btnContainer a.recent:hover{
background-image: linear-gradient(to top, #549516, #72c91c);
}
div#btnContainer a.archive{
background-image: linear-gradient(to top, #8f3600, #ff6000);
}
div#btnContainer a.archive:hover{
background-image: linear-gradient(to top, #ad4302, #ff6000);
}
</style>
</head>
<body>
<img src="media/Stecker_white.png" alt="" width="400">
<h1>Stecker-Selfieautomat</h1>
<div id="btnContainer">
<?php if(!is_dir_empty($currentSelfiesDir)) { ?>
<a href="<?php echo $currentSelfiesDir ?>" class="recent">
<img src="media/iconmonstr-picture-multi-5-icon-32.png" alt="" width="32">
Aktuelle Fotos
</a>
<?php } ?>
<a href="./archiv/2023-09-02-Stecker-Abschlussfest" class="recent">
<img src="media/iconmonstr-picture-multi-5-icon-32.png" alt="" width="32">
Abschlussfest<br>02.09.2023
</a>
<a href="./archiv" class="archive">
<img src="media/iconmonstr-archive-6-icon-32.png" alt="" width="32">
Archiv
</a>
</div>
</body>
</html>