Subversion Repositories LCARS

Rev

Rev 63 | Rev 106 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 63 Rev 71
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('index.phtml'),
8
  @filemtime('index.phtml'),
9
));
9
));
10
10
11
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $modi) . ' GMT');
11
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $modi) . ' GMT');
12
12
13
/* Cached resource expires in HTTP/1.1 caches 24h after last retrieval */
13
/* 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');
14
header('Cache-Control: max-age=0, s-maxage=0, must-revalidate, proxy-revalidate');
15
15
16
/* Cached resource expires in HTTP/1.0 caches 24h after last retrieval */
16
/* 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');
17
header('Expires: ' . gmdate('D, d M Y H:i:s', time() /*+ 86400*/) . ' GMT');
18
18
19
$languages = array(
19
$languages = array(
20
  'en' => 'English',
20
  'en' => 'English',
21
  'de' => 'Deutsch'
21
  'de' => 'Deutsch'
22
);
22
);
23
23
24
/* Specify location of translation tables */
24
/* Specify location of translation tables */
25
bindtextdomain("de.pointedears", "./LocaleData");
25
bindtextdomain("de.pointedears", "./LocaleData");
26
26
27
/* Choose domain */
27
/* Choose domain */
28
textdomain("de.pointedears");
28
textdomain("de.pointedears");
29
29
30
/* Translation is looking for in ./LocaleData/de_DE/LC_MESSAGES/de.pointedears.mo now */
30
/* Translation is looking for in ./LocaleData/de_DE/LC_MESSAGES/de.pointedears.mo now */
31
31
32
$menu = array(
32
$menu = array(
33
  'scripts' => array('path' => 'scripts/', 'text' => 'Scripting'),
33
  'scripts'   => array('path' => 'scripts/', 'text' => 'Scripting'),
-
 
34
  'es-matrix' => array(
-
 
35
    'path'  => 'es-matrix',
-
 
36
    'text'  => 'ES Matrix',
-
 
37
    'title' => 'ECMAScript Support Matrix: ' . _("A comparison of features of ECMAScript implementations")
-
 
38
  ),
34
  'devel'   => array('path' => 'devel/',   'text' => _('Other software')),
39
  'devel'     => array('path' => 'devel/',   'text' => _('Other software')),
35
  'series'  => array('path' => "media/video/series/", 'text' => 'Seri-o-meter'),
40
  'series'    => array('path' => "media/video/series/", 'text' => 'Seri-o-meter'),
36
  'ufpdb'   => array(
41
  'ufpdb'     => array(
37
    'path'  => "ufpdb/index.$language",
42
    'path'  => "ufpdb/index.$language",
38
    'text'  => 'UFPDB',
43
    'text'  => 'UFPDB',
39
    'title' => _('United Federation of Planets DataBase')
44
    'title' => _('United Federation of Planets DataBase')
40
  )
45
  )
41
);
46
);