Show
Ignore:
Timestamp:
09/02/10 16:29:03 (21 months ago)
Author:
gnum
Message:

Fixes #105, also fixed one css bug

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/actions/join_educourse.php

    r83 r159  
    2020                $_SESSION['join_email'] = $email; 
    2121                $_SESSION['join_blog'] = $blog; 
     22 
     23        //Captcha stuff 
     24                if (is_plugin_enabled('captcha')) { 
     25                        if (!isloggedin()) { 
     26                $captcha_token = get_input('captcha_token'); 
     27                $captcha_input = get_input('captcha_input'); 
     28 
     29                if (!(($captcha_token) && (captcha_verify_captcha($captcha_input, $captcha_token)))) { 
     30                    register_error(elgg_echo("captcha:captchafail")); 
     31                                forward('pg/edufeedr/join/' . $guid); 
     32                } 
     33                        } 
     34                } 
    2235 
    2336                // Make sure all required data is provided