-
Notifications
You must be signed in to change notification settings - Fork 0
/
all_pictures.php
110 lines (87 loc) · 3.33 KB
/
all_pictures.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
101
102
103
104
105
106
107
108
109
110
<?php
/*
*
* Freeware PHP / JS Gallery for Photobooth - Systems. Version 1.0
*
* This program comes with ABSOLUTELY NO WARRANTY;
*
Copyright (C) 2016 Lenny Linux
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ ?>
<?php require_once 'etc/conf.php'; ?>
<!DOCTYPE html>
<html>
<head lang="de">
<meta charset="UTF-8">
<link rel="stylesheet" href="theme/css/foundation.css">
<link rel="stylesheet" href="theme/css/app.css">
<link rel="stylesheet" href="theme/css/jquery-ui.css">
<script src="theme/js/vendor/jquery.js"></script>
<script src="theme/js/vendor/jquery-1.8.2.js"></script>
<script src="theme/js/foundation/foundation.js"></script>
<script src="theme/js/vendor/modernizr.js"></script>
<script src="theme/js/vendor/jquery-ui.js"></script>
<script src="theme/js/foundation/foundation.clearing.js"></script>
<script src="theme/js/foundation/foundation.tooltip.js"></script>
<meta charset="utf-8">
<title><?php echo Constans::getTitle(); ?> - Download</title>
</head>
<body>
<div id="header">
<div class="logo_left"><img src="theme/img/logo_links.jpg" alt="logo_links"></div>
<div class="logo_right"><img src="theme/img/logo_rechts.jpg" alt="logo_rechts"></div>
</div>
<?php
if (file_exists(Constans::getUniqueConfFile()) == true) {
require_once 'modules/uniqueID/index.php';
die();
} ?>
<div id="dialog-message" title="Ihr Bild" style="display: none; width: 900px;">
</div>
<a href="index.php" class="button expand" style="height: 140px!important; text-align: center!important; font-size: 2.0em!important;"<br><span style="color: #d8d8d8; font-size: 2.4em;">Zurück</span></a>
<ul class="clearing-thumbs" data-clearing>
<?php
function sortDate($a, $b)
{
return $b['unxmod'] - $a['unxmod'];
}
$dir = 'images/original/';
$files = glob($dir . "*.{" . Constans::getFileTypes() . "}", GLOB_BRACE);
$array = array();
$array2 = array();
foreach ($files as $file) {
$array['filepath'] = $file;
$array['filename'] = substr($file, strlen($dir));
$array['modtime'] = date("Y-m-d H:i:s", filectime($file));
$array['unxmod'] = filectime($file);
array_push($array2, $array);
}
usort($array2, "sortDate");
/*
echo '<pre>';
print_r($array2);
echo '</pre>';
*/
foreach ($array2 as $image) : ?>
<li>
<a href="images/original/<?php echo $image['filename']; ?>" class="th">
<img src="images/thumbs/<?php echo $image['filename']; ?>">
</a>
</li>
<?php endforeach; ?>
<?php /* echo '<pre>'.print_r($array2).'</pre>' */ ?>
</ul>
<script>
$(document).foundation();
</script>
</body>
</html>