/* Copyright (c) 2009 Arnaud Renevier, Inc, published under the modified BSD
license. */
-require ("./inc/settings.php");
-require ("./inc/db/mysql.php");
-
-try {
- $connection->connect (DBHOST, DBUSER, DBPWD, DBNAME, DBPREFIX);
-} catch (Exception $e) {
-}
-
-$bbox = $connection->mbr ();
+ require ('inc/langutils.php');
+ require ('inc/html/index.php');
?>
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
- <title><?php echo defined ("SITETITLE") ? SITETITLE : "SYP"?></title>
- <link rel="stylesheet" href="./openlayers/theme/default/style.css" type="text/css">
- <link rel="stylesheet" href="./media/syp.css" type="text/css">
-
- <script type="text/javascript">
- <?php
- printf ("var sypOrig = [%.18F, %.18F, %.18F, %.18F];\n",
- $bbox [0], $bbox [1], $bbox [2], $bbox [3]);
- ?>
- </script>
- <script src="./openlayers/OpenLayers.js" type="text/javascript"></script>
- <script src="./js/syp.js" type="text/javascript"></script>
-
- <noscript>
- <style type="text/css">
- #map {
- display: none;
- }
- </style>
- </noscript>
-
- </head>
-
- <body onload="SYP.init();">
-
- <noscript>
- <p>SYP nécessite javascript pour fonctionner. Veuillez activer les
- scripts dans votre navigateur.</p>
- </noscript>
-
- <div id="map"></div>
- <div id="message"></div>
-
-</body>
-</html>