Make WebMum ready for the public \o/
This commit is contained in:
parent
7e401995d7
commit
e15bf5aa98
5 changed files with 41 additions and 17 deletions
|
@ -196,7 +196,9 @@ body{
|
|||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Footer
|
||||
*/
|
||||
|
||||
#footer{
|
||||
position:relative;
|
||||
|
@ -206,8 +208,16 @@ body{
|
|||
background-color:white;
|
||||
padding:20px;
|
||||
box-sizing:border-box;
|
||||
color:grey;
|
||||
}
|
||||
|
||||
#footer a{
|
||||
text-decoration:none;
|
||||
color:grey;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Notifications
|
||||
|
|
|
@ -26,7 +26,7 @@ if(isset($_POST['sent'])){
|
|||
|
||||
|
||||
<p>
|
||||
Your new password must have <?php echo MIN_PASS_LENGTH; ?> characters or more.
|
||||
Your new password must contain <?php echo MIN_PASS_LENGTH; ?> characters or more.
|
||||
</p>
|
||||
|
||||
<form action="" method="post">
|
||||
|
|
|
@ -2,16 +2,12 @@
|
|||
|
||||
?>
|
||||
|
||||
<h1>Welcome to your personal account!</h1>
|
||||
<h1>Welcome to your dashboard!</h1>
|
||||
|
||||
<p>
|
||||
What do you want to do?
|
||||
Please choose an action.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<a class="button button-big" href="<?php echo FRONTEND_BASE_PATH; ?>private/changepass/">Change my e-mail password</a>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<i>(Yeah, that's all you can do right now :P)</i>
|
||||
</p>
|
|
@ -1,7 +1,7 @@
|
|||
</div> <!-- Closing content -->
|
||||
|
||||
<div id="footer">
|
||||
WebMUM is free software created by Thomas Leister.
|
||||
Copyright (C) 2014 Thomas Leister <br/> WebMUM on GitHub: <a href="https://github.com/ThomasLeister/webmum/">https://github.com/ThomasLeister/webmum/</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
34
index.php
34
index.php
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue