generated from s449331/Pracownia_Pogramowania
56 lines
1.6 KiB
PHP
56 lines
1.6 KiB
PHP
|
<?php
|
||
|
|
||
|
session_start();
|
||
|
|
||
|
if (!isset($_SESSION['zalogowany3']))
|
||
|
{
|
||
|
header('Location: index.php');
|
||
|
exit();
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
<!DOCTYPE HTML>
|
||
|
<html lang="pl">
|
||
|
<head>
|
||
|
<meta charset="utf-8" />
|
||
|
<title>GymFit </title>
|
||
|
<meta name="description" content="Serwis poświęcony siłowni. />
|
||
|
<meta name="keywords" content="gym, fit, gymfit" />
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||
|
|
||
|
<link rel="stylesheet" href="style.css" type="text/css" />
|
||
|
<link href='http://fonts.googleapis.com/css?family=Lato:400,900&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
|
||
|
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
<div id="container">
|
||
|
|
||
|
<div id="menu">
|
||
|
<div id="logo">
|
||
|
<img src="png/logo.png" />
|
||
|
</div>
|
||
|
<div id="menuP">
|
||
|
<div class="option"><a href="index.html">Strona główna</a></div>
|
||
|
<div class="option"><a href="terminaz.html">Terminaż</a></div>
|
||
|
<div class="option"><a href="kontakt.html">Kontakt</a></div>
|
||
|
<div class="option"><a href="voucher.php">Kup voucher</a></div>
|
||
|
<div class="option"><a href="logout.php">Wyloguj się</a></div>
|
||
|
</div>
|
||
|
<div style="clear:both;"></div>
|
||
|
</div>
|
||
|
|
||
|
<div id="content">
|
||
|
<?php
|
||
|
$data=$_SESSION['dnipremium'];
|
||
|
$obecna_data=date("Y-m-d");
|
||
|
echo "<p>Witaj ".$_SESSION['imie']." ".$_SESSION['nazwisko'];
|
||
|
$pozostalo = (strtotime($data) - strtotime($obecna_data)) / (60*60*24);
|
||
|
echo "<br />Pozostało dni premium ".$pozostalo."<br /> Konto ważne do ".$data;
|
||
|
?></div>
|
||
|
|
||
|
<div id="footer">
|
||
|
GymFit. Strona w sieci od 2021r. © Wszelkie prawa zastrzeżone
|
||
|
</div>
|
||
|
|
||
|
</div>
|