60 lines
1.7 KiB
PHP
60 lines
1.7 KiB
PHP
|
<?php
|
||
|
|
||
|
session_start();
|
||
|
|
||
|
if (!isset($_SESSION['zalogowany1']))
|
||
|
{
|
||
|
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="login.php">Zaloguj</a></div>
|
||
|
<div class="option"><a href="rejestracja.php">Dołącz</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="logout.php">Wyloguj się</a></div>
|
||
|
</div>
|
||
|
<div style="clear:both;"></div>
|
||
|
</div>
|
||
|
|
||
|
<div id="content">
|
||
|
<?php
|
||
|
$data1=$_SESSION['dnipremium'];
|
||
|
$data=date("Y-m-d");
|
||
|
echo "<p>Witaj ".$_SESSION['user'].'</p>';
|
||
|
echo "<p><b>E-mail</b>: ".$_SESSION['email'];
|
||
|
$data = $_SESSION['dnipremium'];
|
||
|
$obecna_data = date("Y-m-d"); // pobieranie aktualnej daty
|
||
|
$pozostalo = (strtotime($data) - strtotime($obecna_data)) / (60*60*24);
|
||
|
echo "Dni premium ".$pozostalo." Konto ważne do ".$data;
|
||
|
?></div>
|
||
|
|
||
|
<div id="footer">
|
||
|
GymFit. Strona w sieci od 2021r. © Wszelkie prawa zastrzeżone
|
||
|
</div>
|
||
|
|
||
|
</div>
|