Browse Source
1). Adds configuration options to turn off waiver & email_list options 2). Puts waiver in Connections/waiver.txt 3). New MySQL waiver column added, receive_newsletter used for email_list.devel
Jonathan Rosenbaum
10 years ago
6 changed files with 142 additions and 41 deletions
@ -0,0 +1,16 @@ |
|||
I, and my heirs, in consideration of my participation in the Positive Spin Community |
|||
Bike Project's Open Workshop hereby release Positive Spin, |
|||
its officers, employees and agents, and any other people officially connected with this |
|||
organization, from any and all liability for damage to or loss of personal |
|||
property, sickness, or injury from whatever source, legal entanglements, imprisonment, |
|||
death, or loss of money, which might occur while participating in said event/activity/class. |
|||
Specifically, I release Positive Spin from any liability or |
|||
responsibility for my personal well-being, condition of tools and equipment provided |
|||
and produced thereof, including, but not limited to, bicycles and modes of transportation |
|||
produced by participants. The Positive Spin Community Bike Project is a working, |
|||
mechanical environment and I am aware of the risks of participation. I hereby state |
|||
that I am in sufficient physical condition to accept a rigorous level of physical |
|||
activity and exertion, as is sometimes the case when working in a mechanical environment. |
|||
I understand that participation in this program is strickly voluntary and I |
|||
freely chose to participate. I understand Positive Spin does not provide medical coverage for me. |
|||
I verify that I will be responsible for any medical costs I incur as a result of my participation. |
@ -0,0 +1,49 @@ |
|||
<?php |
|||
|
|||
require_once('../Connections/database_functions.php'); |
|||
require_once('../Connections/YBDB.php'); |
|||
mysql_select_db($database_YBDB, $YBDB); |
|||
|
|||
// update waiver |
|||
if( isset($_POST['waiver']) ) { |
|||
|
|||
$waiver = $_POST['waiver']; |
|||
|
|||
$query = "UPDATE contacts SET waiver=" . $waiver . |
|||
" WHERE contact_id=" . $_POST['contact_id'] . ";"; |
|||
$result = mysql_query($query, $YBDB) or die(mysql_error()); |
|||
|
|||
} |
|||
|
|||
// return waiver value |
|||
if (isset($_POST['waiver_value'])) { |
|||
|
|||
$query = 'SELECT waiver FROM contacts WHERE contact_id="' . $_POST['contact_id'] . '";'; |
|||
$sql = mysql_query($query, $YBDB) or die(mysql_error()); |
|||
$result = mysql_fetch_assoc($sql); |
|||
echo $result['waiver']; |
|||
|
|||
} |
|||
|
|||
// update email_list |
|||
if( isset($_POST['email_list']) ) { |
|||
|
|||
$email_list = $_POST['email_list']; |
|||
$query = "UPDATE contacts SET receive_newsletter=" . $email_list . |
|||
" WHERE contact_id=" . $_POST['contact_id'] . ";"; |
|||
$result = mysql_query($query, $YBDB) or die(mysql_error()); |
|||
|
|||
} |
|||
|
|||
// return email_list value |
|||
if (isset($_POST['email_list_value'])) { |
|||
|
|||
$query = 'SELECT receive_newsletter FROM contacts WHERE contact_id="' . $_POST['contact_id'] . '";'; |
|||
$sql = mysql_query($query, $YBDB) or die(mysql_error()); |
|||
$result = mysql_fetch_assoc($sql); |
|||
echo $result['receive_newsletter']; |
|||
|
|||
} |
|||
|
|||
|
|||
?> |
Loading…
Reference in new issue