Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public static function isValid() { |
||
17 | if (isset($_SESSION['captcha'])) { |
||
18 | $captcha = strtolower(Input::post('captcha')); |
||
19 | $sessionCaptcha = strtolower(filter_var($_SESSION['captcha'])); |
||
20 | unset($_SESSION['captcha']); |
||
21 | return ($captcha == $sessionCaptcha); |
||
22 | } |
||
23 | return false; |
||
24 | } |
||
25 | |||
27 |