aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/index.php b/index.php
index b0d80fd..7f1515a 100644
--- a/index.php
+++ b/index.php
@@ -14,7 +14,7 @@ if ( isset($_SESSION["loggedin"]) && $_SESSION["loggedin"]){
$a = "0_";
}
-if ( ! $c->bypassCache && $_SERVER["REQUEST_METHOD"] == "GET" && $_SERVER["REDIRECT_STATUS"] == 200 ) {
+if ( ! $c->bypassCache && $_SERVER["REQUEST_METHOD"] == "GET" && $_SERVER["REDIRECT_STATUS"] == 200 && $_SESSION["new_login"] != 1) {
$token = $c->getToken($_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]. $_SERVER["QUERY_STRING"], $a);
if ( $c->existsPageCache($token)){
header("X-Cache: Hit");
@@ -66,7 +66,12 @@ require_once 'static/header.php';
<div class="container">
<div class="text-center">
<div class="row">
+ <?php if ($user->login && $_SESSION['new_login'] == 1) {
+?>
+ <div class="alert alert-success" role="alert"><strong>Du bist erfolgreich eingeloggt!</strong></div>
<?php
+ $_SESSION['new_login'] = 0;
+ }
switch($_GET["page"]){
case("index"):
print_index();