Upload files to 'projektpp'
This commit is contained in:
parent
bab254d37a
commit
fc0ed5979c
@ -4,7 +4,7 @@
|
||||
|
||||
if (!isset($_SESSION['zalogowany3']))
|
||||
{
|
||||
header('Location: index.php');
|
||||
header('Location: klient.php');
|
||||
exit();
|
||||
}
|
||||
|
||||
@ -31,8 +31,8 @@
|
||||
<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="login.php">Strona główna</a></div>
|
||||
<div class="option"><a href="terminarz.php">Terminarz</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>
|
||||
@ -42,15 +42,16 @@
|
||||
|
||||
<div id="content">
|
||||
|
||||
|
||||
<span class="bigtitle">Kup Voucher</span>
|
||||
<div class="dottedline"></div>
|
||||
<input type="submit" value="30 dni" </div>
|
||||
<br />
|
||||
<input type="submit" value="3 miesiące" </div>
|
||||
<br />
|
||||
<input type="submit" value="6 miesięcy" </div>
|
||||
<br />
|
||||
<input type="submit" value="1 rok" </div>
|
||||
<form action="zaplac.php" method="post">
|
||||
|
||||
Ilość dni: <br /> <input type="text" name="dni" /> <br />
|
||||
|
||||
<input type="submit" value="Zaloguj się" />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer">
|
||||
|
@ -53,7 +53,7 @@
|
||||
<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="terminarz.html">Terminarz</a></div>
|
||||
<div class="option"><a href="kontakt.html">Kontakt</a></div>
|
||||
</div>
|
||||
<div style="clear:both;"></div>
|
||||
|
43
projektpp/woda.html
Normal file
43
projektpp/woda.html
Normal file
@ -0,0 +1,43 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="pl">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>woda </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="terminarz.html">Terminarz</a></div>
|
||||
<div class="option"><a href="kontakt.html">Kontakt</a></div>
|
||||
</div>
|
||||
<div style="clear:both;"></div>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
GymFit. Strona w sieci od 2021r. © Wszelkie prawa zastrzeżone
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -44,8 +44,6 @@
|
||||
$_SESSION['imie'] = $wiersz['imie'];
|
||||
$_SESSION['nazwisko'] = $wiersz['nazwisko'];
|
||||
$_SESSION['perm'] = $wiersz['perm'];
|
||||
$_SESSION['kamien'] = $wiersz['kamien'];
|
||||
$_SESSION['zboze'] = $wiersz['zboze'];
|
||||
$_SESSION['email'] = $wiersz['email'];
|
||||
$_SESSION['dnipremium'] = $wiersz['dnipremium'];
|
||||
|
||||
@ -66,8 +64,6 @@
|
||||
$_SESSION['imie'] = $wiersz['imie'];
|
||||
$_SESSION['nazwisko'] = $wiersz['nazwisko'];
|
||||
$_SESSION['perm'] = $wiersz['perm'];
|
||||
$_SESSION['kamien'] = $wiersz['kamien'];
|
||||
$_SESSION['zboze'] = $wiersz['zboze'];
|
||||
$_SESSION['email'] = $wiersz['email'];
|
||||
$_SESSION['dnipremium'] = $wiersz['dnipremium'];
|
||||
|
||||
@ -85,8 +81,6 @@
|
||||
$_SESSION['imie'] = $wiersz['imie'];
|
||||
$_SESSION['nazwisko'] = $wiersz['nazwisko'];
|
||||
$_SESSION['perm'] = $wiersz['perm'];
|
||||
$_SESSION['kamien'] = $wiersz['kamien'];
|
||||
$_SESSION['zboze'] = $wiersz['zboze'];
|
||||
$_SESSION['email'] = $wiersz['email'];
|
||||
$_SESSION['dnipremium'] = $wiersz['dnipremium'];
|
||||
|
||||
|
63
projektpp/zaplac.php
Normal file
63
projektpp/zaplac.php
Normal file
@ -0,0 +1,63 @@
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
if ((!isset($_POST['dni'])) || (!isset($_SESSION['zalogowany3'])))
|
||||
{
|
||||
header('Location: voucher.php');
|
||||
exit();
|
||||
}
|
||||
|
||||
require_once "connect.php";
|
||||
|
||||
$polaczenie = @new mysqli($host, $db_user, $db_password, $db_name);
|
||||
$dni=$_POST['dni'];
|
||||
|
||||
if ($polaczenie->connect_errno!=0)
|
||||
{
|
||||
echo "Error: ".$polaczenie->connect_errno;
|
||||
}
|
||||
else
|
||||
|
||||
{
|
||||
$data=$_SESSION['dnipremium'];
|
||||
$user=$_SESSION['user'];
|
||||
|
||||
if($dni==30)
|
||||
{
|
||||
$dni=$_POST['dni'];
|
||||
$nowa_data = date( 'y-m-d', strtotime( $data .' +30 day' ));
|
||||
$polaczenie->query("UPDATE uzytkownicy SET dnipremium='$nowa_data' WHERE user='$user'");
|
||||
|
||||
|
||||
header('Location: klient.php');
|
||||
|
||||
}
|
||||
elseif($dni==180)
|
||||
{
|
||||
$dni=$_POST['dni'];
|
||||
$nowa_data = date( 'y-m-d', strtotime( $data .' +180 day' ));
|
||||
$polaczenie->query("UPDATE uzytkownicy SET dnipremium='$nowa_data' WHERE user='$user'");
|
||||
|
||||
|
||||
header('Location: klient.php');
|
||||
|
||||
}
|
||||
elseif($dni==360)
|
||||
{
|
||||
$dni=$_POST['dni'];
|
||||
$nowa_data = date( 'y-m-d', strtotime( $data .' +360 day' ));
|
||||
$polaczenie->query("UPDATE uzytkownicy SET dnipremium='$nowa_data' WHERE user='$user'");
|
||||
|
||||
|
||||
header('Location: klient.php');
|
||||
|
||||
}
|
||||
else
|
||||
|
||||
|
||||
header('Location: błąd.php');
|
||||
|
||||
$polaczenie->close();
|
||||
}
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user