Compare commits

...

No commits in common. "abc94a1e8bc4f65dad86324459270a07188e4af2" and "990f5c93aa05253babc806d99571710608ac91d1" have entirely different histories.

5 changed files with 95 additions and 4 deletions

8
config.php Normal file
View File

@ -0,0 +1,8 @@
<?php
$config=array(
"DBHOST"=>"data2.thiemoo.at",
"DBNAME"=>"webstatus",
"DBPWD"=>"X5G3njgZ4s@E4S9J",
"DBUSER"=>"webstatus"
);
?>

View File

@ -650,3 +650,65 @@ label::after {
text-decoration: underline;
text-decoration-color: #a6a6a6;
}
.cookies {
position: fixed;
width: 99.7%;
height: 100px;
border-color: #3f9066;
border-style: solid;
background-color: #222c3b;
bottom: 0;
left: 0;
}
.cookies .cogs {
position: absolute;
top: 35%;
left: 15px;
font-size: 2em;
color: white;
}
.cookies h1 {
left: 0px;
font-size: 1vw;
color: white;
margin-top: 25px;
}
.cookies p {
margin-top: -10px;
color: #a6a6a6;
}
.cookies .text {
position: absolute;
left: 5%;
}
.cookies button {
position: fixed;
right: 15px;
bottom: 35px;
cursor: pointer;
border-radius: 5px;
border: none;
outline: none;
transition: 0.7s;
width: 100px;
height: 40px;
font-size: 20px;
color: white;
box-shadow: 0 0 5px rgba(0, 0, 0, 0);
background-color: #83be4e;
}
.cookies button:hover {
background-color: #578230;
}
.cookies .handshake {
margin-left: 10px;
}

View File

@ -16,7 +16,6 @@
$instancename = mysqli_fetch_assoc(mysqli_query($con, "SELECT value FROM settings WHERE type='instancename'"))["value"];
$autoreload_setting = mysqli_fetch_assoc(mysqli_query($con, "SELECT value FROM settings WHERE type='autoreload'"))["value"];
$modular_setting = mysqli_fetch_assoc(mysqli_query($con, "SELECT value FROM settings WHERE type='modularwindow'"))["value"];
$privacy = mysqli_fetch_assoc(mysqli_query($con, "SELECT value FROM settings WHERE type='privacy'"))["value"];
$impressum = mysqli_fetch_assoc(mysqli_query($con, "SELECT value FROM settings WHERE type='impressum'"))["value"];
$newtab = mysqli_fetch_assoc(mysqli_query($con, "SELECT value FROM settings WHERE type='newtab'"))["value"];
@ -256,7 +255,6 @@ echo '</div>';
}
}
?>
<!-- FOOTER -->
<footer class="footer">
<p class="footer">Powered by <a class="underline" href="http://git.thiemoo.at/Givou/WebStatus.git" target="_blank">WebStatus</a></p>
@ -280,6 +278,30 @@ echo '</div>';
<span class="legend-lastdown legend-text"> Last time down</span>
<span class="legend-problems legend-text"> Offline / Problems</span>
</div>
<?php
if(isset($_GET["disclaimcookie"])) {
setcookie('disclaimed', 'true');
}
if(!isset($_COOKIE['disclaimed']) && !isset($_GET["disclaimcookie"])) {
echo '
<div class="cookies">
<i class="cogs fa fa-cogs" aria-hidden="true"></i>
<div class="text">
<h1>Cookie disclaimer</h1>
<p>This website only uses technical cookies to store session information or to hide this disclaimer!</p>
<a href="index.php?disclaimcookie"><button class="button-green button-up">Got it<i class="handshake fa fa-handshake-o" aria-hidden="true"></i></button></a>
</div>
</div>
';
}
?>
</body>

View File

@ -9,7 +9,7 @@ Made with love by Givou
#Demo
https://status.nerdcity.at
https://status.thiemoo.at
#License
This Project is Licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) License

View File

@ -29,7 +29,6 @@ $newtab = mysqli_fetch_assoc(mysqli_query($con, "SELECT value FROM settings WHER
if($role == "administrator") {
$autoreload_setting = mysqli_fetch_assoc(mysqli_query($con, "SELECT value FROM settings WHERE type='autoreload'"))["value"];
$modular_setting = mysqli_fetch_assoc(mysqli_query($con, "SELECT value FROM settings WHERE type='modularwindow'"))["value"];
}
?>