diff options
Diffstat (limited to 'index.php')
| -rw-r--r-- | index.php | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -35,6 +35,9 @@ else $u = $_SESSION["username"]; $user = new jg($u); +if( ! isset($_GET["page"]) || $_GET["page"] == "" ) + $_GET["page"] = "index"; + ?> <!doctype html> <html> @@ -44,12 +47,11 @@ $user = new jg($u); <?php //<link rel ="stylesheet" href="/static/style.css"> - //echo "<style>" . file_get_contents('static/style.min.css'); echo "<style>" . file_get_contents('static/style.min.css'); ?> .dl-horizontal dt{white-space: normal;}.btn-info{background-color:#3083D6;border-color:#357ebd}.btn-primary{background-color:#3083D6;}.img-responsive{margin:0 auto;}@-moz-document url-prefix(){fieldset{display:table-cell;}}ul.nav li.dropdown:hover ul.dropdown-menu {display:block;}.video{max-width:720px;margin-right: auto;margin-left: auto;}.btn-info:hover,.btn-info:focus,.btn-info:active,.btn-info.active{background-color:#3071a9}</style> <noscript><style>.navbar{margin-bottom:0;}</style></noscript> - <title>Junge Gemeinde Adlershof</title> + <title>Junge Gemeinde Adlershof | <?php ucfirst($_GET["page"]); ?></title> <link rel='shortcut icon' href='/favicon.ico' type='image/x-icon'> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> @@ -60,13 +62,10 @@ require_once 'static/header.php'; <div class="text-center"> <div class="row"> <?php - if( ! isset($_GET["page"])) - $_GET["page"] = ""; - - if($_GET["page"] == "" || $_GET["page"] == "index") - print_index(); - else{ switch($_GET["page"]){ + case("index"): + print_index(); + break; case("login"): print_login(); break; @@ -107,7 +106,6 @@ require_once 'static/header.php'; print_404(); break; } - } ?> </div> </div> |
