当前位置: 首页>>代码示例>>PHP>>正文


PHP Captcha::displayImage方法代码示例

本文整理汇总了PHP中Captcha::displayImage方法的典型用法代码示例。如果您正苦于以下问题:PHP Captcha::displayImage方法的具体用法?PHP Captcha::displayImage怎么用?PHP Captcha::displayImage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Captcha的用法示例。


在下文中一共展示了Captcha::displayImage方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Captcha

<?php

# www.ilch.de
# Author: T0P0LIN0
# thanks to uwe slick! http://www.deruwe.de/captcha.html - his thoughts
date_default_timezone_set('Europe/Berlin');
include 'captcha.php';
include 'settings.php';
$captcha = new Captcha();
$captcha->setUseRandomColors($useRandomColors);
$captcha->setImageWidth($imagewidth);
$captcha->setImageHeight($imageheight);
$captcha->setFontSize($fontsize);
$captcha->set_background_intensity($bgintensity);
$captcha->set_font_type($bgfonttype);
$captcha->setPassPhraselenght($passphraselenght);
$captcha->enable_scratches($scratches);
$captcha->set_scratches_amount($scratchamount);
$captcha->set_minmax_size($minsize, $maxsize);
$captcha->set_showgrid($addagrid);
$captcha->set_angle($angle);
$captcha->set_showcoloredlines($addhorizontallines);
$captcha->displayImage();
开发者ID:rjdesign,项目名称:Ilch-1.2,代码行数:23,代码来源:captchaimg.php

示例2: Captcha

<?php

/**
 * Captcha für www.ilch.de
 * @author T0P0LIN0
 * thanks to uwe slick! http://www.deruwe.de/captcha.html - his thoughts
 */
define('main', true);
include '../init.php';
include 'Captcha.php';
include 'settings.php';
$captcha = new Captcha();
$captcha->setUseRandomColors($useRandomColors);
$captcha->setImageWidth($imagewidth);
$captcha->setImageHeight($imageheight);
$captcha->setFontSize($fontsize);
$captcha->setBackgroundIntensity($bgintensity);
$captcha->setFontType($bgfonttype);
$captcha->setPassPhraselenght($passphraselenght);
$captcha->enableScratches($scratches);
$captcha->setScratchesAmount($scratchamount);
$captcha->setMinMaxSize($minsize, $maxsize);
$captcha->setShowgrid($addagrid);
$captcha->setAngle($angle);
$captcha->setShowColoredLines($addhorizontallines);
$captchaId = isset($_GET['id']) ? $_GET['id'] : 'alwaysWrong';
$captcha->displayImage($captchaId);
开发者ID:kveldscholten,项目名称:Ilch-1.1,代码行数:27,代码来源:captchaimg.php


注:本文中的Captcha::displayImage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。