-
Notifications
You must be signed in to change notification settings - Fork 0
/
accountupgrade.php
106 lines (106 loc) · 2.52 KB
/
accountupgrade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?php
include('functions.php');
htmlHeader('Persoonlijk account upgraden', false);
require_once('php/Gebruiker.php');
?>
<div id="content">
<?php
include('searchBar.php');
if ($GLOBALS['userLoggedIn'])
{
$user = $_SESSION['username'];
$accDetails = Gebruiker::getAccountDetails($user);
if ((int) $accDetails['IsVerkoper'] === 0)
{
if (array_key_exists('betaalmethode', $_POST) && array_key_exists('verificatiemethode', $_POST))
{
$betaalmethode = $_POST['betaalmethode'];
$verificatiemethode = $_POST['verificatiemethode'];
?>
<form action="verkoperupgrade.php" method="post">
<input type="hidden" name="betaalmethode" value="<?php echo $betaalmethode; ?>">
<input type="hidden" name="verificatiemethode" value="<?php echo $verificatiemethode; ?>">
<?php
if ($betaalmethode === "bank")
{
?>
<label>
Selecteer uw bank:
<br/>
<select name="banknaam">
<option value="Rabobank">Rabobank</option>
<option value="ING Bank">ING</option>
<option value="ABN Amro">ANB Amro</option>
<option value="Regiobank">Regiobank</option>
<option value="SNS Bank">SNS Bank</option>
</select>
</label>
<br/>
<label>
Voer uw bankrekeningnummer of IBAN in:
<br/>
<input type="text" size="34" maxlength="34" name="bankrekening">
</label>
<?php
}
else
{
?>
<label>
Voer uw creditcardnummer in:
<br/>
<input type="number" min="0" max="9999999999999999999" name="ccnummer">
</label>
<?php
}
?> <input type="submit" value="Submit"></form><?php
}
else
{
?>
<form method="post">
<label>
Selecteer uw betaalmethode
<br/>
<select name="betaalmethode">
<option value="bank">
Bankrekening
</option>
<option value="creditcard">
Credit card
</option>
</select>
</label>
<br/>
<label>
Selecteer een controleoptie
<br/>
<select name="verificatiemethode">
<option value="post" selected>
Per post
</option>
<option value="e-mail" disabled>
Per e-mail
</option>
<option value="telefoon" disabled>
Per telefoon
</option>
</select>
</label>
<br/>
<input type="submit" value="Submit">
</form>
<?php
}
}
else
{
echo "U bent al geregistreerd als verkoper!";
}
}
else
{
echo "Gelieve eerst in te loggen voordat u uw account upgradet naar verkopersstatus.";
}
?>
</div>