Tidy a bit the files structure.
[Project_webapp.git] / includes / header.php
diff --git a/includes/header.php b/includes/header.php
new file mode 100644 (file)
index 0000000..ac394bf
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+include('header.html');
+/**
+ * Let's use an array as the list of tunables.
+ * Put in a variable the inclusion of this file:
+ * $config_var = include('config.php');
+ */
+$configs = include('config.php');
+?>
+<div id="header">
+    <!-- Put headers stuff here -->
+    <a href="<?php echo $configs['root_url'] ?>/index.php?page=home">Bienvenue sur Air Polytech !</a>
+</div>
+<?php
+
+function display_menu() {
+    switch ($page) {
+        case "home":
+        break;
+        case "register":
+        break;
+    }
+
+}
+?>