$Interview = new Interview($f_interview_id); // new usernames may exist foreach(array('guest') as $type) { if ($_REQUEST['f_'.$type.'_user_id'] == '__new__') { require_once($GLOBALS['g_campsiteDir']. "/$ADMIN_DIR/users/users_common.php"); if (User::UserNameExists($_REQUEST['f_'.$type.'_new_user_login']) || Phorum_user::UserNameExists($_REQUEST['f_'.$type.'_new_user_login'])) { $errorMsg = getGS('User name $1 already exists, please choose a different login name.', $_REQUEST['f_'.$type.'_new_user_login']); camp_html_add_msg($errorMsg); $error = true; } } }; if (!$error && $Interview->store()) { ?> <script language="javascript"> window.opener.location.reload(); window.close(); </script> <?php exit(); } ?> <?php camp_html_display_msgs(); ?> <table style="margin-top: 10px; margin-left: 15px; margin-right: 15px;" cellpadding="0" cellspacing="0" width="95%" class="table_input"> <TR> <TD style="padding: 3px";> <B><?php $Interview->exists() ? putGS('Edit Interview') : putGS('Add new Interview'); ?></B>