-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings1.php
executable file
·31 lines (26 loc) · 1.19 KB
/
settings1.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
<?php session_start();
#include('/var/www/html/db_config.php');
include('db_config.php');
if ($_POST["function"] == "Update") {
$sql = "update ospotasettings set ";
$sql = $sql . "contestcallsign = '" . $_POST["contestcallsign"] . "', ";
$sql = $sql . "clubname = '" . $_POST["clubname"] . "', ";
$sql = $sql . "parkid = " . $_POST["location"] . ", ";
$sql = $sql . "licenseclassid = " . $_POST["licenseclass"] . ", ";
$sql = $sql . "classid = " . $_POST["entryclass"] . ", ";
$sql = $sql . "operators = '" . $_POST["operators"] . "', ";
$sql = $sql . "contactname = '" . $_POST["contactname"] . "', ";
$sql = $sql . "contactaddress = '" . $_POST["contactaddress"] . "', ";
$sql = $sql . "contactcity = '" . $_POST["contactcity"] . "', ";
$sql = $sql . "contactstate = '" . $_POST["contactstate"] . "', ";
$sql = $sql . "contactzip = '" . $_POST["contactzip"] . "', ";
$sql = $sql . "contactcountry = '" . $_POST["contactcountry"] . "', ";
$sql = $sql . "contactemail = '" . $_POST["contactemail"] . "', ";
$sql = $sql . "cabrillo = '" . $_POST["cabrillo"] . "'";
$conn->query($sql);
$_SESSION["settingsupdated"] = 1;
} else {
$_SESSION["settingsupdated"] = 0;
}
header("location: settings.php");
?>