Plugin Directory

Changeset 362867


Ignore:
Timestamp:
03/21/2011 01:26:08 PM (15 years ago)
Author:
uosiu
Message:

Screen shoot repaired

Location:
secure-captcha/trunk
Files:
1 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • secure-captcha/trunk/admin.php

    r362800 r362867  
    2121    $siteID = get_option('secure_captcha_siteID');
    2222    $key = get_option('secure_captcha_key');
     23    $hideLink = get_option('secure_captcha_hideLink');
    2324    $forms_string = get_option('secure_captcha_forms');
    2425        if ($forms_string == null) $forms_string = 'register,lost_password,comment';
     
    2930        $key = $_POST['secure_captcha_key'];
    3031        $forms = $_POST['secure_captcha_forms'];
     32        $hideLink = $_POST['secure_captcha_hideLink'];
     33        if ($hideLink == null) $hideLink = 'yes';
     34
    3135                $forms_string = implode(",", $forms);
    3236        update_option('secure_captcha_siteID', $siteID);
    3337        update_option('secure_captcha_key', $key);
    3438        update_option('secure_captcha_forms', $forms_string);
     39        update_option('secure_captcha_hideLink', $hideLink);
    3540
    3641?>
     
    6974</tr>
    7075
     76<tr>
     77<th><?php _e("Show link to the SecureCAPTCHA.net under the CAPTCHA image. ", 'secure_captcha'); ?></th>
     78<td><input type="checkbox" name="secure_captcha_hideLink" value="no" <?php if ($hideLink != 'yes') echo 'checked="true"'; ?>></td>
     79</tr>
     80
    7181</table>
    7282
  • secure-captcha/trunk/handwrittenCaptcha.php

    r362800 r362867  
    3535    $this->proxyServer = $proxyServer;
    3636    $this->proxyPort = $proxyPort;
     37    $this->tid = '';
    3738    }
    3839
     
    8081
    8182    $questionURL = '/captcha/generateResponse?auth=' . urlencode($this->siteID) . '&hash=' . urlencode($hash);
     83    if ($this->tid != '') {
     84        $questionURL = $questionURL . '&tid=' . urlencode($this->tid);
     85    }
    8286    $responseText = $this->download($questionURL, $result);
    8387    if ($responseText == null) {
  • secure-captcha/trunk/readme.txt

    r362837 r362867  
    4141== Screenshots ==
    4242
    43 1. ss-1.png
     431. screenshot-1.png
    4444
    4545== Changelog ==
  • secure-captcha/trunk/secure_captcha.php

    r362800 r362867  
    5151    $siteID = get_option('secure_captcha_siteID');
    5252    $key = get_option('secure_captcha_key');
    53     return new CaptchaService($siteID, $key);
     53    $hideLink = get_option('secure_captcha_hideLink');
     54
     55    $ret = new CaptchaService($siteID, $key);
     56    //echo 'x'.$hideLink;
     57        if ($hideLink == 'yes') $ret->tid = 'wp';
     58    return $ret;
    5459}
    5560
    5661// prints captcha html fragment
    5762function secure_captcha_print_fragment() {
    58     if (is_admin()) {
     63    if (current_user_can('administrator')) {
    5964        return;
    6065    }
     
    7075    echo $fragment;
    7176    echo '<label>' . __('Rewrite letters from the image above (lower Latin letters only): ', 'secure_captcha') . '<br />';
    72     echo '<input name="secure_captcha_answer" type="text" class="input"></label>';
     77    echo '<input name="secure_captcha_answer" type="text" class="input" tabindex="89"></label>';
    7378    echo '<input name="secure_captcha_hash" type="hidden" value="' . htmlspecialchars($hash) . '">';
    7479    echo '<input name="secure_captcha_timestamp" type="hidden" value="' . htmlspecialchars($timestamp) . '">';
     
    7782// @returns true when code is correct
    7883function secure_captcha_validate_code() {
    79     if (is_admin()) {
     84    if (current_user_can('administrator')) {
    8085        return true;
    8186    }
Note: See TracChangeset for help on using the changeset viewer.