lissylucky
Mitglied
PHP:
CSS hab ich raus gemacht
Code:
<?php
/* Login */
$_SESSION["email"] = $email;
$_SESSION["startTime"] = time();
header("Location: redeem.php");
exit();
/* Überarbeitete Funktion IsLoggedIn() */
function IsLoggedIn()
{
if (isset($_SESSION["email"]))
{
/* Wenn Zeitspanne größer als 600 Sekunden (=10 Minuten), dann... */
if (time()-$_SESSION["startTime"]>=300)
{
Logout();
return false;
}
else
return true;
}
return false;
}
/* Neue Funktion Logout() */
function Logout()
{
unset($_SESSION["email"]);
unset($_SESSION["startTime"]);
// evtl. weitere Dinge...
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso8859-1" />
<link rel="shortcut icon" href="images/favicon.png" />
<title>Rewardz | Redeem</title>
</head>
<body onload="MM_preloadImages('images/buttonover.png')">
<div id="subscribe_frame">
<div id="subscribe">
<img src="images/logo_top2.png" alt="" align="left" /></div>
</div>
<div id="subscribe3">
<img src="images/topline.png" alt="" align="left" /></div>
</div>
<div id="subscribe4">
<img src="images/bottomline.png" alt="" align="left" /></div>
</div>
<div id="main">
<div id="top"></div>
<div id="middle">
<div class="section"></div>
<div class="section"></div>
<div class="section"></div>
<div class="section"></div>
<div class="section"></div>
<div class="section"></div>
<div class="section"></div>
<div class="section"></div>
<div class="section"></div>
<div class="section"></div>
<div class="section2"></div>
<div id="app1"><a href="boutique1.php"><img src="images/gutscheine.png" alt="Gutscheine" name="Gutscheine" width="250" height="400" border="0" ></a></div>
<div id="app2"><a href="boutique2.php"><img src="images/gutscheine.png" alt="Gutscheine" name="Gutscheine" width="250" height="400" border="0" ></a></div>
<br style="clear:both; height: 0px;" />
</div>
<div id="bottom"></div>
</div>
<br />
<br />
<br />
<br />
<br />
<br />
</body>
</html>
CSS hab ich raus gemacht