There was an error while loading. Please reload this page.
1 parent 7c8acdb commit e4d3c1aCopy full SHA for e4d3c1a
1 file changed
modules/careers/CareersUI.php
@@ -154,7 +154,11 @@ private function careersPage()
154
break;
155
}
156
157
- if ($p == 'showAll')
+ if ($p == 'captcha')
158
+ {
159
+ $this->outputCareerPortalCaptcha();
160
+ }
161
+ else if ($p == 'showAll')
162
{
163
$template['Content'] = $template['Content - Search Results'];
164
@@ -1128,6 +1132,19 @@ private function careersPage()
1128
1132
1129
1133
1130
1134
1135
+ private function outputCareerPortalCaptcha()
1136
1137
+ $builder = new \Gregwar\Captcha\CaptchaBuilder();
1138
+ $builder->build();
1139
+
1140
+ $_SESSION['careerPortalCaptcha'] = $builder->getPhrase();
1141
1142
+ header('Content-type: image/jpeg');
1143
+ $builder->output();
1144
1145
+ die();
1146
1147
1131
1148
1149
private function _makeApplyValidator($template)
1150
0 commit comments