Last change
on this file since 1 was 1, checked in by george, 18 years ago |
Prvotní import všeho
|
-
Property svn:executable
set to
*
|
File size:
768 bytes
|
Line | |
---|
1 | <?
|
---|
2 | include('../style.php');
|
---|
3 | ShowHeader('Výpis historie SunriseChatu', 'Historie LANChatu');
|
---|
4 |
|
---|
5 | // List file
|
---|
6 | $mesice = array(
|
---|
7 | 'Jan' => '01',
|
---|
8 | 'Feb' => '02',
|
---|
9 | 'Mar' => '03',
|
---|
10 | 'Apr' => '04',
|
---|
11 | 'May' => '05',
|
---|
12 | 'Jun' => '06',
|
---|
13 | 'Jul' => '07',
|
---|
14 | 'Aug' => '08',
|
---|
15 | 'Sep' => '09',
|
---|
16 | 'Oct' => '10',
|
---|
17 | 'Nov' => '11',
|
---|
18 | 'Dec' => '12',
|
---|
19 | );
|
---|
20 | $handle=opendir('data');
|
---|
21 | while (($item=readdir($handle))!==false)
|
---|
22 | {
|
---|
23 | if (($item[0]!='.')&&($item!='seznam.php')&&($item!='show.php'))
|
---|
24 | {
|
---|
25 | $data = explode('-',$item);
|
---|
26 | $data = $data[2].'-'.$mesice[$data[1]].'-'.$data[0];
|
---|
27 | $list[] = $data;
|
---|
28 | $decode[$data] = $item;
|
---|
29 | }
|
---|
30 | }
|
---|
31 | closedir($handle);
|
---|
32 | rsort($list);
|
---|
33 | foreach($list as $item)
|
---|
34 | {
|
---|
35 | echo('<a href="show.php?file='.$decode[$item].'">['.$item.']</a> '."\n");
|
---|
36 | }
|
---|
37 |
|
---|
38 | ShowFooter();
|
---|
39 | ?>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.