Removing old templating
[apertium.git] / webspace / index.php
blob869d0d7034ca6fdc6d68bdb9a55e0e7b2a30a7e9
1 <?php
2 session_start()
3 ?>
5 <?php include_once("common/meta.php") ?>
6 <body>
7 <?php
8 $id = $HTTP_GET_VARS["id"];
9 if ($id == "") {
10 $id = "whatisapertium";
13 ?>
14 <div id="content">
15 <!--
16 <div id="search">
17 <form action="" method="get">
18 <p>
19 search:&nbsp;<input type="text" />&nbsp;
20 <input type="image" src="images/zoom.jpg" value="Submit" alt="Search" title="Search" />
21 </p>
22 </form>
23 </div>
24 -->
25 <?php include_once("content/" . $lang . "/header.html") ?>
26 <?php include_once("php/lang_menu.php") ?>
28 <div id="body">
29 <!-- Navigation -->
30 <?php include_once("common/navigation.php") ?>
31 <?php $file = "content/" . $lang . "/" . $id . ".html"; ?>
33 <?php
34 if( file_exists($file) ) {
35 include_once("content/" . $lang . "/" . $id . ".html");
36 } else {
37 if (file_exists("content/en/" . $id . ".html") ) {
38 include_once("content/en/" . $id . ".html");
40 //echo '<div id="translateit"><p>This page is not available in' . $langtext. '</p>';
41 //echo '<p>Do you want to <a href="?id=howto&amp;src=' . $id . '&amp;lang=' . $lang . '">help us to translate it</a>?</p>';
42 //echo '</div>';
43 } else {
44 print '<br/><br/>';
45 print 'The page does not exist!';
46 print '<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>';
47 print '<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>';
51 </div>
52 <!-- footer -->
53 <br/>
54 <?php include_once("common/footer.php") ?>
55 </div>
57 </body>
59 </html>