示例#1
0
function ewiki_aedit_antibot_checkbox($id, &$data, $action)
{
    if (!$GLOBALS["ewiki_no_bot"]) {
        include_once "plugins/lib/captcha.php";
        return captcha::form();
    }
}
echo T_('Confirm Password');
?>
:</label>
                        <input type='password' name='password_2' id='password_2' />
                    </div>

                    <br />
                    <div class="registerInformation">
                        <span><?php 
echo T_('* Required fields');
?>
</span>
                    </div>

                    <?php 
if (AmpConfig::get('captcha_public_reg')) {
    echo captcha::form("&rarr;&nbsp;");
    AmpError::display('captcha');
}
?>

                    <div class="registerButtons">
                        <input type="hidden" name="action" value="add_user" />
                        <input type='submit' name='submit_registration' id='submit_registration' value='<?php 
echo T_('Register User');
?>
' />
                    </div>
                </form>
<?php 
UI::show_footer();
            <td class="boxbottom boxright" colspan="2">
              <label><input type="text" size="2" name="rem_rep_days" value="' . $rem_rep_days . '" />' . $daysStr . '</label>&nbsp;
              <input type="text" size="2" name="rem_rep_hours" value="' . $rem_rep_hours . '" /><label>' . $hoursStr . '</label>&nbsp;
              <input type="text" size="2" name="rem_rep_minutes" value="' . $rem_rep_minutes . '" /><label>' . $minutStr . '</label>
            </td>
          </tr>
        </tbody>
      </table>' . ($useTabs ? '
    </div>
<!-- End tabscontent_pete -->' : '
    </fieldset>');
    }
    if (file_exists('includes/classes/captcha/captcha.php') && $login == '__public__' && !empty($ENABLE_CAPTCHA) && $ENABLE_CAPTCHA == 'Y') {
        if (function_exists('imagecreatetruecolor')) {
            include_once 'includes/classes/captcha/captcha.php';
            echo captcha::form();
        } else {
            etranslate('CAPTCHA Warning');
        }
    }
    echo '
    </div>
<!-- End tabscontent -->';
    echo '
      <table summary="">
        <tr>
          <td>
            <script type="text/javascript">
<!-- <![CDATA[
              document.writeln ( \'<input type="button" value="' . $saveStr . '" onclick="validate_and_submit()" />\' )
//]]> -->