Created
October 21, 2023 10:38
-
-
Save matthewgream/8e56eeb7f7e898ed82987ab33e1e2654 to your computer and use it in GitHub Desktop.
ulrikashus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
const PASSWORD = "branna"; | |
session_start (); | |
if (isset ($_POST ['submit_pass']) && $_POST ['pass']) { | |
$pass = $_POST ['pass']; | |
if ($pass == PASSWORD) { | |
$_SESSION ['the_password'] = $pass; | |
} else { | |
$error = "Incorrect Password"; | |
} | |
} | |
if (isset ($_POST ['page_logout'])) { | |
unset ($_SESSION ['the_password']); | |
} | |
?> | |
<html> | |
<head> | |
<title>Ulrika's Hus</title> | |
<style> | |
body { | |
margin:0 auto; | |
padding:0px; | |
text-align:center; | |
width:100%; | |
font-family: "Myriad Pro","Helvetica Neue",Helvetica,Arial,Sans-Serif; | |
background-color:#32B141; | |
} | |
#wrapper { | |
margin:0 auto; | |
padding:0px; | |
text-align:center; | |
width:995px; | |
} | |
#wrapper p { | |
font-size:16px; | |
} | |
#login_form { | |
margin-top:200px; | |
background-color:white; | |
width:350px; | |
margin-left:310px; | |
padding:20px; | |
box-sizing:border-box; | |
} | |
#login_form input[type="password"] { | |
width:250px; | |
margin-top:10px; | |
height:40px; | |
padding-left:10px; | |
font-size:16px; | |
} | |
#login_form input[type="submit"] { | |
width:250px; | |
margin-top:10px; | |
height:40px; | |
font-size:16px; | |
background-color:#32B141; | |
border:none; | |
color:white; | |
border-radius:3px; | |
} | |
#login_form p { | |
margin:0px; | |
margin-top:15px; | |
color:#32B141; | |
font-size:17px; | |
font-weight:bold; | |
} | |
#logout_form input[type="submit"] { | |
width:250px; | |
margin-top:10px; | |
height:40px; | |
font-size:16px; | |
background:none; | |
border:2px solid white; | |
color:white; | |
} | |
a[target="_blank"]::after { | |
content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==); | |
margin: 0 3px 0 5px; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="wrapper"> | |
<?php | |
if ($_SESSION ['the_password'] == PASSWORD) { | |
?> | |
<p> </p> | |
<iframe src="https://rtsp.me/embed/hSTAfEdb/" frameborder="0" allowfullscreen onload='javascript:(function(o){o.style.height=o.contentWindow.document.body.scrollHeight+"px";}(this));' style="height:640px;width:100%;border:none;overflow:hidden;"></iframe> | |
<p>Click on the play button to start, and maximise using the full screen button in the lower right corner.</p> | |
<p><b>Instagram: </b><a href="https://www.instagram.com/ulrikashus" class="external" target="_blank">ulrikashus</a>, | |
<b>Location: </b><a href="https://goo.gl/maps/tBddwNKnypXABy6t8" class="external" target="_blank">671 94 Brunskog, Värmland, Sverige</a>,<br /> | |
<b>Weather: </b><a href="https://www.wunderground.com/dashboard/pws/IBRUNS40" class="external" target="_blank">Bränna (IBRUNS40)</a> | |
(<a href="https://en.sat24.com/en/scan" class="external" target="_blank">Satellite</a>, <a href="https://www.wetterzentrale.de/topkarten.php?map=8&model=gfs&var=1&time=0&run=6&lid=OP&h=0&tr=1&mv=0#mapref" class="external" target="_blank">Forecast</a>, | |
<a href="https://www.windy.com/59.653/12.891?radar,59.495,12.890,9,m:fkAagwE" class="external" target="_blank">Windy</a>, | |
<a href="https://www.aro.lfv.se/Links/Link/ViewLink?TorLinkId=229&type=MET" class="external" target="_blank">LFV</a>, | |
<a href="http://www.perkins-aviation.ch/weather/EuropeWeatherPackage.html" class="external" target="_blank">Europe</a>) | |
</p> | |
<form method="post" action="" id="logout_form"><input type="submit" name="page_logout" value="LOGOUT"></form> | |
<?php | |
} else { | |
?> | |
<form method="post" action="" id="login_form"> | |
<input type="password" name="pass" placeholder="******"><input type="submit" name="submit_pass" value="LOGIN"><p><font style="color:red;"><?php echo $error;?></font></p> | |
</form> | |
<?php | |
} | |
?> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment