source: www/lanchat/seznam.php@ 1

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<?
2include('../style.php');
3ShowHeader('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');
21while (($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}
31closedir($handle);
32rsort($list);
33foreach($list as $item)
34{
35 echo('<a href="show.php?file='.$decode[$item].'">['.$item.']</a> '."\n");
36}
37
38ShowFooter();
39?>
Note: See TracBrowser for help on using the repository browser.