/** * The UI to enter profile details. * * @return tempcode The UI */ function step2() { if (!is_guest()) { warn_exit(do_lang_tempcode('NO_JOIN_LOGGED_IN')); } $title = get_page_title('_JOIN'); if (get_option('show_first_join_page') == '1' && post_param_integer('confirm', 0) != 1) { warn_exit(do_lang_tempcode('DESCRIPTION_I_AGREE_RULES')); } breadcrumb_set_parents(array(array('_SELF:_SELF:misc', do_lang_tempcode('_JOIN')))); breadcrumb_set_self(do_lang_tempcode('DETAILS')); $map = array('page' => '_SELF', 'type' => 'step3'); $redirect = get_param('redirect', ''); if ($redirect != '') { $map['redirect'] = $redirect; } $url = build_url($map, '_SELF'); list($javascript, $form) = ocf_join_form($url); return do_template('OCF_JOIN_STEP2_SCREEN', array('_GUID' => '5879db5cf331526a999371f76868233d', 'JAVASCRIPT' => $javascript, 'TITLE' => $title, 'FORM' => $form)); }
/** * Let the user login / do an inline join. * * @return tempcode The result of execution. */ function join_or_login() { $title = get_page_title('CREATE_BOOKING'); // Check login: skip to thanks if logged in if (!is_guest()) { return $this->thanks(); } $url = build_url(array('page' => '_SELF', 'type' => 'done'), '_SELF'); list($javascript, $form) = ocf_join_form($url, true, false, false, false); $hidden = build_keep_post_fields(); return do_template('BOOKING_JOIN_OR_LOGIN_SCREEN', array('TITLE' => $title, 'JAVASCRIPT' => $javascript, 'FORM' => $form, 'HIDDEN' => $hidden)); }