aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorroot2014-09-30 04:39:21 +0200
committerroot2014-09-30 04:39:21 +0200
commit27bc0fe2182afafee830bda8b161f67282f631c8 (patch)
treedbd7d9cdc834b63c9b1b3e366b7935c177471c29 /index.php
parentdb3252c646838b5cd5657cd5ba289b88256959e3 (diff)
downloadjungegemeinde-27bc0fe2182afafee830bda8b161f67282f631c8.tar.gz
fixed bug, added download page, prettified 404 page and general design
Diffstat (limited to 'index.php')
-rw-r--r--index.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/index.php b/index.php
index 8b91155..8c94c91 100644
--- a/index.php
+++ b/index.php
@@ -42,7 +42,7 @@ $user = new jg($u);
//<link rel ="stylesheet" href="/static/style.css">
echo "<style>" . file_get_contents('static/style.min.css');?>
- .dl-horizontal dt{white-space: normal;} .btn-info{background-color:#3083D6;} .img-responsive{margin: 0 auto;} @-moz-document url-prefix() { fieldset { display: table-cell; } }</style>
+ .dl-horizontal dt{white-space: normal;}.btn-info{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;}</style>
<noscript><style>.navbar{margin-bottom:0;}</style></noscript>
<title>Junge Gemeinde Adlershof</title>
<link rel='shortcut icon' href='/favicon.ico' type='image/x-icon'>
@@ -83,13 +83,16 @@ require_once 'static/header.php';
case("account"):
print_account();
break;
+ case("download"):
+ print_download();
+ break;
case("action"):
require_once 'action.php';
break;
case("404"):
print_404();
break;
- case("recover").
+ case("recover"):
print_recover();
break;
default:
@@ -105,7 +108,7 @@ require_once 'static/footer.php';
$html = ob_get_contents();
-if ( $_SERVER["REQUEST_METHOD"] == "GET" && $_SERVER["REDIRECT_STATUS"] == 200 && strpos($_SERVER["QUERY_STRING"], "account") === false ) {
+if ( $_SERVER["REQUEST_METHOD"] == "GET" && $_SERVER["REDIRECT_STATUS"] == 200 && strpos($_SERVER["QUERY_STRING"], "account") === false && strpos($_SERVER["QUERY_STRING"], "logout") === false && strpos($_SERVER["QUERY_STRING"], "action") === false) {
$c->setKey($token, $html, 3600);
}
ob_end_flush();