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