= '17') && $currentpage != 'registration') header('Location: http://ita.ucsd.edu/workshop/'.$year); if (($year == '16') && $currentpage != 'registration') header('Location: http://ita.ucsd.edu/workshop16/index'); } $title = "ITA Workshop"; login_handle(); // Admin login attempt? if (isset($_GET['login']) && isset($_GET['pw'])) login_force($_GET['login'], $_GET['pw']); if ( (isset($_GET['action']) && ($_GET['action']=='logout')) || (isset($_POST['submitcancel']) && ($_GET['action'] == 'submit_registration')) || (($_GET['action']=='submit_registration') && isset($_POST['submit'])) ) { $msg = "You have been successfully logged out of the system"; logout(); } else if (isset($_POST['paylaterconfirm'])) { logout(); } else if (isset($_GET['action']) && ($_GET['action'] == 'formsubmitted')) { if ( (isset($_POST['submitsave']) && (strlen($_POST['submitsave']) > 0)) || (isset($_POST['submitConfirmRegistration'])) || (isset($_POST['submitConfirmAffiliate']))) { /* if ($_POST['selfReg'] == 1) { mysql_query("UPDATE `workshop" . $currentyear . "_registration` SET `paylater`=1 WHERE `user_id`='" . $_SESSION['user_id'] . "'"); $eventuserrs = mysql_query("SELECT * FROM `users_events` WHERE `userid`='" . $_SESSION['user_id'] . "' AND `eventid`=" . $workshopEventID); if (!mysql_num_rows($eventuserrs)) { mysql_query("INSERT INTO `users_events` (`userid`,`eventid`,`optionalbit`) VALUES ('" . $_SESSION['user_id'] . "','" . $workshopEventID . "','1')"); } else { mysql_query("UPDATE `users_events` SET `optionalbit`=1 WHERE `userid`=" . $_SESSION['user_id']); } } */ if ($_POST['admin'] == 1) $msg = "Administrative changes have been saved.
\n"; else $msg = "Thank you for updating your record. Your updated information has
been saved and mailed to " . $_POST['email'] . ". If you do not receive the confirmation
email or experience other problems, please contact ita@ucsd.edu."; logout(); } else if (isset($_POST['submitcancel']) && (strlen($_POST['submitcancel']) > 0)) { $msg = 'No profile changes have been recorded'; logout(); } else { $optionalOnload = 'InitForm();'; } } else if ($currentpage == "registration" && loggedin()) { $optionalOnload = 'InitForm();'; } require_once('header.php'); ?>
Logged in as
Logged in as
'; echo 'Not found
'; } ?>