]> dev.renevier.net Git - syp.git/blob - inc/templates_index.php
rss feed
[syp.git] / inc / templates_index.php
1 <?php
2 /* Copyright (c) 2009 Arnaud Renevier, Inc, published under the modified BSD
3    license. */
4
5 require_once ("./inc/settings.php");
6 require_once ("./inc/db/mysql.php");
7
8 try {
9     $connection->connect (DBHOST, DBUSER, DBPWD, DBNAME, DBPREFIX);
10 } catch (Exception $e) {
11 }
12
13 $bbox = $connection->mbr ();
14 ?>
15 <html>
16 <head>
17     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
18     <title><?php echo defined ("SITETITLE") ? SITETITLE : "SYP"?></title>
19     <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="news.php">
20     <link rel="stylesheet" href="./openlayers/theme/default/style.css" type="text/css">
21     <link rel="stylesheet" href="./media/syp.css" type="text/css">
22
23     <script type="text/javascript">
24         var SypStrings = {
25             language: "<?php echo $lang ?>",
26             propulsedByLink: "<?php ptrans('propulsed by <a href=\"http://syp.renevier.net\">syp</a>')?>",
27             noImageRegistered: "<?php ptrans('There is no image registered on this site.')?>"
28         };
29         <?php
30             printf ("var sypOrig = [%.18F, %.18F, %.18F, %.18F];\n",
31                     $bbox [0], $bbox [1], $bbox [2], $bbox [3]);
32         ?>
33     </script>
34     <script src="./openlayers/OpenLayers.js" type="text/javascript"></script>
35     <script src="./js/syp.js" type="text/javascript"></script>
36
37     <noscript>
38     <style type="text/css">
39         #map {
40             display: none;
41         }
42     </style>
43     </noscript>
44
45     </head>
46
47     <body onload="SYP.init();">
48
49         <noscript>
50             <p><?php ptrans('SYP needs javascript. Please activate scripts in your browser.')?></p>
51         </noscript>
52
53         <div id="map"></div>
54         <div id="message"></div>
55
56 </body>
57 </html>