]> dev.renevier.net Git - syp.git/blobdiff - index.php
bump to version 0.4
[syp.git] / index.php
index 4b640a3f3bb1d657e0c9a21df3809b1f7916d9b9..c1a60bfb8a15afa7ba4b4bb27965cac2cbe94009 100644 (file)
--- a/index.php
+++ b/index.php
@@ -2,51 +2,6 @@
 /* Copyright (c) 2009 Arnaud Renevier, Inc, published under the modified BSD
    license. */
 
-require_once ("./inc/settings.php");
-require_once ("./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>