-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathshowYear.php
61 lines (50 loc) · 4.72 KB
/
showYear.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
<!DOCTYPE html>
<html>
<body>
<?php
// $files = scandir("$dir");
$year=(string)$_GET['year'];
$dir = "motion/$year/";
foreach (scandir("$dir", SCANDIR_SORT_ASCENDING) as $month) {
if (fnmatch("[0-9]*", $month)) {
echo "
<a href=\"showMonth.php?year=$year&month=$month\" >
$month
</a>
";
// foreach (scandir("$dir" + $year, SCANDIR_SORT_DESCENDING) as $month) {
// if (fnmatch("[0-9]*", $month)) {
//
// foreach (scandir("$dir" + $year, SCANDIR_SORT_DESCENDING) as $month) {
// if (fnmatch("[0-9]*", $month)) {
//
// // <a href=\"$dir/$year/$month/mean.png\" >
// echo "
// <a href=\"showDay.php?year=$year&month=$month\" >
// <img src=\"$dir/$year/$month/mean.png\" />
// </a>
// ";
// }
//
// }
// }
// }
}
// if (fnmatch("*.png", $file)) {
// echo "
// <a href=\"$dir/$file\" >
// <img src=\"$dir/$file\" />
// </a>
// ";
// }
// if (fnmatch("*.ogv", $file)) {
// echo "
// <video controls>
// <source src=\"$dir/$file\" type=video/ogg>
// </video>
// ";
// }
}
?>
</body>
</html>