|
@@ -1,11 +1,32 @@
|
|
|
<?php
|
|
|
+/*
|
|
|
+ * #################### This is WebMUM Version 0.1.0 ######################
|
|
|
+ *
|
|
|
+ * Project on GitHub: https://github.com/ThomasLeister/webmum
|
|
|
+ * Author's Blog: https://thomas-leister.de
|
|
|
+ *
|
|
|
+ * Please report bugs on GitHub.
|
|
|
+ *
|
|
|
+ * Copyright (C) 2014 Thomas Leister
|
|
|
+ *
|
|
|
+ * This program is free software: you can redistribute it and/or modify
|
|
|
+ * it under the terms of the GNU General Public License as published by
|
|
|
+ * the Free Software Foundation, either version 3 of the License, or
|
|
|
+ * (at your option) any later version.
|
|
|
+ * This program is distributed in the hope that it will be useful,
|
|
|
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
+ * GNU General Public License for more details.
|
|
|
+ * You should have received a copy of the GNU General Public License
|
|
|
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
+ */
|
|
|
+
|
|
|
+
|
|
|
define("BACKEND_BASE_PATH", preg_replace("index.php", "", $_SERVER['SCRIPT_FILENAME']));
|
|
|
require_once 'include/php/default.inc.php';
|
|
|
|
|
|
-
|
|
|
require_once 'include/php/template/header.php';
|
|
|
|
|
|
-
|
|
|
function load_page($p){
|
|
|
|
|
|
if(preg_match("/^\/private(.*)$/", $p) == 1){
|
|
@@ -85,10 +106,6 @@ function load_page($p){
|
|
|
}
|
|
|
|
|
|
|
|
|
-/*
|
|
|
- * Here is the content of the page
|
|
|
- */
|
|
|
-
|
|
|
$path = $_SERVER["REQUEST_URI"];
|
|
|
// Remove GET Parameters
|
|
|
$path = preg_replace('/\?.*/', '', $path);
|
|
@@ -101,12 +118,13 @@ if(strrpos($path,"/") != strlen($path)-1){
|
|
|
}
|
|
|
|
|
|
|
|
|
-/* Finally, inlude page content */
|
|
|
+/*
|
|
|
+ * Include page content here
|
|
|
+ */
|
|
|
|
|
|
include load_page($path);
|
|
|
|
|
|
|
|
|
-
|
|
|
/*
|
|
|
* End of dynamic content
|
|
|
*/
|