Rev 106 | Rev 137 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
63 | PointedEar | 1 | <?php |
2 | |||
3 | $encoding = 'UTF-8'; |
||
4 | header("Content-Type: text/html" . ($encoding ? "; charset=$encoding" : "")); |
||
5 | |||
6 | $modi = max(array( |
||
7 | @filemtime(__FILE__), |
||
106 | PointedEar | 8 | @filemtime('LocaleData'), |
63 | PointedEar | 9 | @filemtime('index.phtml'), |
106 | PointedEar | 10 | @filemtime('styles/lcars-basic.css'), |
11 | @filemtime('styles/lcars22.css'), |
||
12 | @filemtime('styles/lcars-ani.css'), |
||
13 | @filemtime('scripts/object.js'), |
||
63 | PointedEar | 14 | )); |
15 | |||
16 | header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $modi) . ' GMT'); |
||
17 | |||
18 | /* Cached resource expires in HTTP/1.1 caches 24h after last retrieval */ |
||
117 | PointedEar | 19 | header('Cache-Control: max-age=86400, s-maxage=86400, must-revalidate, proxy-revalidate'); |
63 | PointedEar | 20 | |
21 | /* Cached resource expires in HTTP/1.0 caches 24h after last retrieval */ |
||
117 | PointedEar | 22 | header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 86400) . ' GMT'); |
63 | PointedEar | 23 | |
24 | $languages = array( |
||
25 | 'en' => 'English', |
||
26 | 'de' => 'Deutsch' |
||
27 | ); |
||
28 | |||
29 | /* Specify location of translation tables */ |
||
30 | bindtextdomain("de.pointedears", "./LocaleData"); |
||
31 | |||
32 | /* Choose domain */ |
||
33 | textdomain("de.pointedears"); |
||
34 | |||
35 | /* Translation is looking for in ./LocaleData/de_DE/LC_MESSAGES/de.pointedears.mo now */ |
||
36 | |||
37 | $menu = array( |
||
71 | PointedEar | 38 | 'scripts' => array('path' => 'scripts/', 'text' => 'Scripting'), |
39 | 'es-matrix' => array( |
||
40 | 'path' => 'es-matrix', |
||
41 | 'text' => 'ES Matrix', |
||
42 | 'title' => 'ECMAScript Support Matrix: ' . _("A comparison of features of ECMAScript implementations") |
||
43 | ), |
||
44 | 'devel' => array('path' => 'devel/', 'text' => _('Other software')), |
||
45 | 'series' => array('path' => "media/video/series/", 'text' => 'Seri-o-meter'), |
||
46 | 'ufpdb' => array( |
||
63 | PointedEar | 47 | 'path' => "ufpdb/index.$language", |
48 | 'text' => 'UFPDB', |
||
49 | 'title' => _('United Federation of Planets DataBase') |
||
50 | ) |
||
51 | ); |