} if (strpos($redirectUriPlain, 'hash=') === false) { $redirectUriPlain .= (strpos($redirectUriPlain, '?') === false ? '?' : '&') . 'hash=' . $hash; } } $redirectUri = urlencode($redirectUriPlain); $action = __paramInit('string', null, 'action'); $registration = new registration(); $registration->listenerAction($action); $action = $registration->getNextAction(); if ($requestedRole == "empl") { $registration->role = registration::ROLE_EMPLOYER; } if (__paramInit('string', null, 'action') != 'registration' || $registration->error['captcha'] && __paramInit('string', null, 'action') == 'registration') { unset($_SESSION['reg_captcha_num']); $registration->setFieldInfo('captchanum', uniqid('', true)); $captcha = new captcha($registration->captchanum); $captcha->setNumber(); } else { $registration->setFieldInfo('captchanum', $_SESSION['reg_captcha_num']); $captcha = new captcha($registration->captchanum); } unset($_SESSION['login_generated']); // Пользовательское сообщение (Alert) $alert_message = ''; if ($_user_action == 'add_project') { $alert_message = 'Зарегистрируйтесь или авторизуйтесь как Работодатель, чтобы опубликовать проект.'; $registration->role = registration::ROLE_EMPLOYER; } elseif ($_user_action == 'add_vacancy') { $alert_message = 'Зарегистрируйтесь или авторизуйтесь как Работодатель, чтобы разместить вакансию.'; $registration->role = registration::ROLE_EMPLOYER;