]> dev.renevier.net Git - syp.git/blob - index.php
initial commit
[syp.git] / index.php
1 <?php
2 /* Copyright (c) 2009 Arnaud Renevier, Inc, published under the modified BSD
3    license. */
4
5 require ("./inc/settings.php");
6 require ("./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="stylesheet" href="./openlayers/theme/default/style.css" type="text/css">
20     <link rel="stylesheet" href="./media/syp.css" type="text/css">
21
22     <script type="text/javascript">
23         <?php
24             printf ("var sypOrig = [%.18F, %.18F, %.18F, %.18F];\n",
25                     $bbox [0], $bbox [1], $bbox [2], $bbox [3]);
26         ?>
27     </script>
28     <script src="./openlayers/OpenLayers.js" type="text/javascript"></script>
29     <script src="./js/syp.js" type="text/javascript"></script>
30
31     <noscript>
32     <style type="text/css">
33         #map {
34             display: none;
35         }
36     </style>
37     </noscript>
38
39     </head>
40
41     <body onload="SYP.init();">
42
43         <noscript>
44             <p>SYP nĂ©cessite javascript pour fonctionner. Veuillez activer les
45                 scripts dans votre navigateur.</p>
46         </noscript>
47
48         <div id="map"></div>
49         <div id="message"></div>
50
51 </body>
52 </html>