Subversion Repositories LCARS

Rev

Rev 211 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
236 PointedEar 1
<?php
2
 
151 PointedEar 3
$language = 'en';
236 PointedEar 4
$locale = 'en_US.UTF-8';
5
require_once 'global.php';
6
 
7
$encoding = 'UTF-8';
8
header("Content-Type: text/html" . ($encoding ? "; charset=$encoding" : ""));
9
 
10
$modi = max(array(
11
  @filemtime(__FILE__),
104 PointedEar 12
  @filemtime("styles/lcars-basic.css"),
236 PointedEar 13
  @filemtime("styles/lcars22.css"),
14
  @filemtime("styles/lcars22-ie6.css"),
15
));
16
 
17
\header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $modi ) . ' GMT');
18
 
19
/* Resource expires in HTTP/1.1 caches 24h after last retrieval */
20
\header('Cache-Control: max-age=86400, s-maxage=86400, must-revalidate, proxy-revalidate');
21
 
22
/* Resource expires in HTTP/1.0 caches 24h after last retrieval */
23
\header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 86400) . ' GMT');
24
 
25
?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
26
  "http://www.w3.org/TR/html4/loose.dtd">
27
<html lang="en">
28
  <head>
29
    <title>Language Selection — PointedEars’ Website</title>
30
    <link rel="SHORTCUT ICON" href="favicon.ico">
31
    <!-- Browsers: Character Set, Script Type, Style Sheets Type,
32
         Proxy Usage -->
33
    <meta http-equiv="content-type"content="text/html; charset=UTF-8">
34
    <meta http-equiv="Content-Script-Type" content="text/javascript">
35
    <meta http-equiv="Content-Style-Type" content="text/css">
36
    <meta http-equiv="expires" content="0">
37
    <!-- Robots: Language, Index, Subordinated Files, Description, Author,
38
         Keywords, Document Date -->
39
    <meta name="robots" content="index">
40
<?php /*
41
    <meta name="description"
42
          content="Access to the United Federation of Planets Databanks, an online songbook and software downloads always worth a click. Coming soon: The best internet links categorized and much more via a bilingual (English/German) LCARS terminal styled user interface that can be also used to surf the web anonymously! Bookmark NOW!">
43
*/ ?>
44
    <meta name="author" content="PointedEars, PointedEars Software (PES)">
45
    <!-- No localization of keywords due to following language selection -->
46
    <meta name="keywords"
47
          http-equiv="Keywords"
48
          content="<?php // Appz, ?>Download, Links, LCARS, Star Trek, TNG, The Next Generation, DS9, Deep Space 9, Deep Space Nine, VOY, Voyager, UFP, Federation, United Federation of Planets, Database, Databank, <?php /* Song, Songbook, Surf, anonymously, */ ?>Raumschiff Enterprise, DNG, Die n&auml;chste Generation, VFP, F&ouml;deration, Vereinte F&ouml;deration der Planeten, Datenbasis, Datenbank<?php /* , Lied, Liedtext, surfen, anonym */ ?>">
49
    <!--meta name="keywords" http-equiv="Keywords" lang="de" content=""-->
50
    <!--meta name="keywords" http-equiv="Keywords" lang="en-us" content=""-->
51
    <!--meta name="keywords" http-equiv="Keywords" lang="en" content=""-->
52
    <meta name="revisit-after" content="3 days">
53
    <meta name="date" content="2002-05-23T10:56:00+02:00">
54
    <!-- Robots: Dublin Core Metadata
55
         (http://purl.org/metadata/dublin_core) -->
56
    <meta name="DCTERMS.title" content="PointedEars’ Website">
57
    <meta name="DCTERMS.creator" content="PointedEars, PointedEars Software (PES)">
58
    <meta name="DCTERMS.subject" content="Private Homepage">
59
<?php /*
60
    <meta name="DCTERMS.description"
61
          content="PointedEars' Website: Access to the United Federation of Planets Databanks and an online songbook. Coming soon: Software downloads always worth a click, the best internet links categorized and much more via a bilingual (English/German) LCARS terminal styled user interface that can be also used to surf the web anonymously! Bookmark NOW!">
62
*/ ?>
63
    <meta name="DCTERMS.publisher" content="PointedEars">
64
    <meta name="DCTERMS.created" content="2002-05-23">
65
    <meta name="DCTERMS.modified" content="<?php echo gmdate('Y-m-dTH:i:sO', $modi); ?>">
66
<?php /*
67
    <!--meta name="DC.Type" content=""-->
68
    <!--meta name="DC.Format" content=""-->
69
*/ ?>
70
    <meta name="DCTERMS.identifier" content="http://pointedears.de/">
71
    <meta name="DCTERMS.rightsHolder"
72
          content="Copyright © 2002&#8211;<?php echo gmdate('Y', $modi); ?> Thomas&nbsp;Lahn.">
73
    <meta name="DCTERMS.rights"
74
          content="<?php echo tr("All rights reserved."); ?> <?php echo tr("The author is not responsible for the availability and the content of websites referred by this site, and not responsible for the availability and the content of websites referred by those sites. Whereever outsourced material is used, copyright or trademark infringement is not intended. Third parties who claim copyrights or trademarks used herein are asked to send an informal email to webmaster@PointedEars.de for immediate removal or modification of the respective material on the website instead of reminding the author of usage of this material. Thank you."); ?>">
75
<?php /*
76
    <!-- <link rel="stylesheet" type="text/css" href="styles/lcars21.css"> -->
77
    <!-- IE 9 in non-Compatibility Mode sends "Accept: text/css",
78
         Apache responds with 406 without .php:
79
         http://blog.s9y.org/archives/227-ie9-has-trouble-with-css-content-types.html
80
         (Resource Builder handles negotation for sources)
81
         -->
82
*/ ?>
83
    <link rel="stylesheet" type="text/css" href="scripts/builder.php?type=text/css&amp;prefix=../styles/&amp;src=lcars-basic,lcars22">
84
    <!--[if lt IE 7]>
85
      <link rel="stylesheet" type="text/css" href="styles/lcars22-ie6.css">
86
    <![endif]-->
87
    <style type="text/css">
88
      <!--
89
      a {
90
        text-decoration: none;
91
      }
92
 
93
      ul {
94
        list-style: none;
95
        padding-left: 0;
96
      }
97
 
98
      #greeting {
99
        margin-top: 0;
100
      }
101
 
102
      #greeting p {
103
        background-color: #000;
104
        color: #fff;
105
        font-size: 136%;
106
      }
107
 
108
      .instruction {
109
        line-height: 1.2;
110
      }
111
 
112
      .group {
211 PointedEar 113
        width: 9.92em;
236 PointedEar 114
      }
115
 
116
      #languages .button {
211 PointedEar 117
        width: 8.25em;
236 PointedEar 118
      }
119
 
120
      #languages .button .key {
211 PointedEar 121
        min-width: 0.675em;
236 PointedEar 122
      }
123
 
124
      #languages .button .text {
211 PointedEar 125
        max-width: 4.55em;
236 PointedEar 126
      }
127
      -->
128
    </style>
129
<?php /*
130
    <script type="text/javascript" src="scripts/builder?src=object,dom,dom/css,dom/css/color,dom/ani,dom/window"></script>
131
*/ ?>
211 PointedEar 132
    <script type="text/javascript" src="scripts/builder?src=object,dom,dom/xpath,dom/window,dom/xpath,regexp"></script>
236 PointedEar 133
    <script type="text/javascript">
134
<?php /*
135
      /* Hardcore Frame Buster
136
      if (parent.frames.length > 0 )
137
        parent.location.href = window.location.href;
138
*/ ?>
139
<?php /*
140
      function animate ()
141
      {
142
*/ ?>
143
<?php /*
144
        var s = document.createElement("style");
145
        s.type = "text/css";
146
        s.appendChild(document.createTextNode(
147
            "@-webkit-keyframes fade-out {"
148
          + "  from {"
149
          + "    overflow: hidden;"
150
          + "    border-top-left-radius: 0;"
151
          + "    border-bottom-left-radius: 0;"
152
          + "  }"
153
          + "  to {"
154
          + "    overflow: hidden;"
155
          + "    left: 100%;"
156
          + "    border-top-left-radius: 0;"
157
          + "    border-bottom-left-radius: 0;"
158
          + "  }"
159
          + "}"
160
          + "#bow-top, #footer {"
161
          + "  -webkit-animation-name: fade-out;"
162
          + "  -webkit-animation-duration: 1s;"
163
          + "  -webkit-animation-fill-mode: forwards;"
164
          + "}"
165
          + "#bow-top .text {"
166
          + "  visibility: hidden;"
167
          + "}"
168
          + ".empty .separator-left {"
169
          + "  visibility: hidden;"
170
          + "}"
171
        ));
172
        document.head.appendChild(s);
173
*/ ?>
174
<?php /*
175
        jsx._import(jsx.dom.animation);
176
        var keyFrames = [
177
          {
178
            values: {
179
              style: {
180
                overflow: "hidden",
181
                "border-top-left-radius": 0,
182
                "border-bottom-left-radius": 0
183
              }
184
            }
185
          },
186
          {
187
            time: "1s",
188
            values: {
189
              style: {
190
                overflow: "hidden",
191
                left: "100%",
192
                "border-top-left-radius": 0,
193
                "border-bottom-left-radius": 0
194
              }
195
            }
196
          }
197
        ];
198
 
199
        var animation = new Animation({
200
          timelines: [
201
            new Timeline({
202
              target: document.getElementById("bow-top"),
203
              keyFrames: keyFrames
204
            }),
205
            new Timeline({
206
              target: document.getElementById("footer"),
207
              keyFrames: keyFrames
208
            })
209
          ]
210
        });
211
        animation.play();
212
      }
213
*/
214
?>
215
      var translatables;
216
 
217
      function lcars_translate (language)
218
      {
219
        if (!translatables)
220
        {
221
          translatables = jsx.dom.xpath.evaluate(
222
            './/li[(@lang and (../../*[@id and (@id != "languages")]))'
223
            + ' or (p and p[@lang])]',
224
            document.body);
225
        }
226
 
227
        if (!translatables)
228
        {
229
          return;
230
        }
231
 
232
        var language_prefix = language.match(/^[^-]+/);
233
 
234
        for (var i = translatables.length; i--;)
235
        {
236
          var translatable = translatables[i];
237
          translatable.style.display =
238
            (translatable.lang.indexOf(language_prefix) == 0
239
              || translatable.firstChild.lang == language
240
              || translatable.firstChild.lang.indexOf("vuh") == 0
211 PointedEar 241
              || (translatable.firstChild.lang == "en" && language.indexOf("vuh") == 0))
236 PointedEar 242
                ? ""
243
                : "none";
244
        }
245
      }
246
 
247
      function lcars_translate_reset ()
248
      {
249
        lcars_translate('en');
250
      }
251
 
252
      function body_load (body)
253
      {
254
        if (typeof body.ontouchstart != 'undefined')
255
        {
256
          body.ontouchstart = function () {};
257
        }
258
 
259
        lcars_translate_reset();
260
      }
261
    </script>
262
  </head>
263
  <body class="fade-in empty" onload="body_load(this)">
264
    <div id="LCARS">
265
      <div id="bow">
266
        <div id="bow-top">
267
          <div class="separator-left">&nbsp;</div>
268
          <h1 class="text"><span>PointedEars’ Website</span></h1>
269
        </div>
270
        <div id="bow-left">&nbsp;</div>
271
        <div id="bow-left-concave">&nbsp;</div>
272
      </div>
273
      <div id="footer-container">
274
        <div id="footer">
275
          <h2 class="text"><span>Language Selection</span></h2>
276
          <div class="separator-right">&nbsp;</div>
277
        </div>
278
      </div>
279
    </div>
280
    <div id="content">
281
      <div style="text-align: center"><img
282
        src="media/video/img/vulcan_hand-black-bg.png"
283
        width="120"
284
        height="168"
285
        alt="Vulcan greeting"
286
        title="Vulcan greeting"
287
        border="0"
288
        onmouseover="return setStatus(this.title)"
289
        onmouseout="return resetStatus()"></div>
290
 
291
      <ul id="greeting">
292
        <li style="white-space: nowrap"><p style="text-align: center" lang="<?php echo $vulcan; ?>"><span class="text">Dif-tor heh smusma</span></p></li>
293
<?php foreach ($languages as $key => $name): ?>
294
<?php   if ($key != $vulcan): ?>
295
        <li style="white-space: nowrap"><p style="text-align: center" lang="<?php echo $key; ?>"><?php echo tr('Live long and prosper', $key); ?></p></li>
296
<?php   endif; ?>
297
<?php endforeach; ?>
298
      </ul>
299
 
300
      <ul style="text-align: center">
301
<?php foreach ($languages as $key => $name): ?>
302
        <li class="instruction" lang="<?php echo $key; ?>"><span class="text"><?php echo tr('Please select your language', $key); ?></span></li>
303
<?php endforeach; ?>
304
      </ul>
305
 
306
      <div class="group">
307
        <div class="separator">&nbsp;</div>
308
        <ul id="languages" onmouseout="lcars_translate_reset()">
309
<?php foreach ($languages as $key => $name): ?>
310
          <li><a href="index.<?php echo language_key_short($key); ?>"
211 PointedEar 311
                 class="button right" lang="<?php echo $key; ?>"
236 PointedEar 312
                 hreflang="<?php echo $key; ?>"
313
                 accesskey="<?php echo strtolower($key[0]); ?>"
314
                 onfocus="lcars_translate('<?php echo $key; ?>')"
315
                 onmouseover="lcars_translate('<?php echo $key; ?>')"
316
                 onblur="lcars_translate_reset()"
317
                 ><span class="key"><?php echo language_key_short($key); ?></span>
318
                  <span class="text"><?php echo language_name($key); ?></span></a></li>
319
<?php endforeach; ?>
320
        </ul>
321
        <div style="clear: both"><!--  --></div>
322
      </div>
323
 
324
<?php
325
  $app = 'Language';
326
  require_once 'application/layouts/index/footer.phtml';
327
?>
328
    </div>
329
  </body>
330
</html>