/** * Standard modular run function. * * @return tempcode The result of execution. */ function run() { /*if (get_option('allow_member_integration')=='strict') { $title=get_page_title('_JOIN'); $url='http://ocproducts.com/index.php?page=join'; require_code('site2'); assign_refresh($url,1.0); return do_template('REDIRECT_SCREEN',array('_GUID'=>'8398057d3427d54c105fb9c9ae9d2940','URL'=>$url,'TITLE'=>$title,'NO_COMPLETE'=>true,'TEXT'=>do_lang_tempcode('INT_STRICT',ocp_srv('HTTP_HOST')))); }*/ require_code('ocf_join'); check_joining_allowed(); ocf_require_all_forum_stuff(); $type = get_param('type', 'misc'); if ($type == 'misc') { return get_option('show_first_join_page') != '1' ? $this->step2() : $this->step1(); } if ($type == 'step2') { return $this->step2(); } if ($type == 'step3') { return $this->step3(); } if ($type == 'step4') { return $this->step4(); } return new ocp_tempcode(); }
/** * Standard modular run function. * * @return tempcode The result of execution. */ function run() { require_lang('booking'); require_code('booking'); require_code('ocf_join'); $type = get_param('type', 'misc'); if (is_guest() && get_forum_type() != 'ocf') { access_denied('NOT_AS_GUEST'); } elseif (is_guest()) { check_joining_allowed(); } // Decide what to do if ($type == 'misc') { return $this->choose_bookables_and_dates(); } // NB: This may be skipped, if blocks were used to access if ($type == 'flesh_out') { return $this->flesh_out(); } // Finish full details for the booking if ($type == 'account') { return $this->join_or_login(); } // NB: This may be skipped if user already logged in if ($type == 'done') { return $this->thanks(); } return new ocp_tempcode(); }