prepare("SELECT identity FROM pending_tc WHERE mac_addr=?"); $res->execute(array($addr)); $row = $res->fetch(); if (!$row) { die("No pending session for the specified MAC address"); } $identity = $row[0]; ?> HS 2.0 Terms and Conditions Accept the following terms and conditions by clicking here: Accept

\n
\n"; readfile($t_c_file); } else { $res = $db->prepare("UPDATE users SET t_c_timestamp=? WHERE identity=?"); if (!$res->execute(array($t_c_timestamp, $identity))) { echo "

Failed to update user account.

"; } else { $res = $db->prepare("DELETE FROM pending_tc WHERE mac_addr=?"); $res->execute(array($addr)); echo "

Terms and conditions were accepted.

"; } } ?>