diff --git a/projektpp/voucher.php b/projektpp/voucher.php
index e4bc09e..c698d57 100644
--- a/projektpp/voucher.php
+++ b/projektpp/voucher.php
@@ -4,7 +4,7 @@
if (!isset($_SESSION['zalogowany3']))
{
- header('Location: index.php');
+ header('Location: klient.php');
exit();
}
@@ -31,8 +31,8 @@
diff --git a/projektpp/woda.html b/projektpp/woda.html
new file mode 100644
index 0000000..e1806cf
--- /dev/null
+++ b/projektpp/woda.html
@@ -0,0 +1,43 @@
+
+
+
+
+ woda
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/projektpp/zaloguj.php b/projektpp/zaloguj.php
index 46e59b4..17b1ff8 100644
--- a/projektpp/zaloguj.php
+++ b/projektpp/zaloguj.php
@@ -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'];
diff --git a/projektpp/zaplac.php b/projektpp/zaplac.php
new file mode 100644
index 0000000..a081d6c
--- /dev/null
+++ b/projektpp/zaplac.php
@@ -0,0 +1,63 @@
+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();
+ }
+
+?>
\ No newline at end of file