forked from onprem/euphoria
-
Notifications
You must be signed in to change notification settings - Fork 0
/
reg.php
51 lines (38 loc) · 1.29 KB
/
reg.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
<?php
session_start();
if (!isset($_SESSION['username'])) {
$_SESSION['msg'] = "You must log in first";
header('location: login.php');
}
include('config.php');
$user = $_SESSION['username'];
$e = $_GET['event'];
$db = mysqli_connect($servername, $dbusername, $dbpassword, $dbname);
$event = 'blitzkrieg';
if ($e == 1) {
$query = "UPDATE events SET blitzkrieg=1 WHERE user='$user'";
mysqli_query($db, $query);
} elseif ($e == 2) {
$query = "UPDATE events SET voiceouts=1 WHERE user='$user'";
mysqli_query($db, $query);
} elseif ($e == 3) {
$query = "UPDATE events SET gyration=1 WHERE user='$user'";
mysqli_query($db, $query);
} elseif ($e == 4) {
$query = "UPDATE events SET djwars=1 WHERE user='$user'";
mysqli_query($db, $query);
} elseif ($e == 5) {
$query = "UPDATE events SET freshpaint=1 WHERE user='$user'";
mysqli_query($db, $query);
} elseif ($e == 6) {
$query = "UPDATE events SET lca=1 WHERE user='$user'";
mysqli_query($db, $query);
} elseif ($e == 7) {
$query = "UPDATE events SET dubsmash=1 WHERE user='$user'";
mysqli_query($db, $query);
} elseif ($e == 8) {
$query = "UPDATE events SET shutter=1 WHERE user='$user'";
mysqli_query($db, $query);
}
header("location: dashboard.php#a");
?>