| 225 | | $obj->lang->load('freakauth'); |
|---|
| 226 | | //if we want to know the user country let's populate the select menu |
|---|
| 227 | | if ($obj->config->item('FAL_use_country')) |
|---|
| 228 | | { |
|---|
| 229 | | $obj->load->model('country'); |
|---|
| 230 | | |
|---|
| 231 | | //SELECT * FROM country |
|---|
| 232 | | $data['countries'] = $obj->country->getCountriesForSelect(); |
|---|
| 233 | | } |
|---|
| 234 | | //if we want to secure the registration with CAPTCHA let's generate it |
|---|
| 235 | | if ($obj->config->item('FAL_use_security_code_register')) |
|---|
| 236 | | { |
|---|
| 237 | | $action='_register'; |
|---|
| 238 | | $obj->freakauth_light->captcha_init($action); |
|---|
| 239 | | $data['captcha'] = $obj->config->item('FAL_security_code_image'); |
|---|
| 240 | | } |
|---|
| 241 | | |
|---|
| 242 | | //return the view |
|---|
| 243 | | return $obj->load->view($obj->config->item('FAL_register_view'), $data, true); |
|---|
| | 225 | $obj->load->library('FAL_front', 'fal_front'); |
|---|
| | 226 | |
|---|
| | 227 | return $obj->fal_front->register(); |
|---|