Пример #1
0
<?php

/**
 * [Weizan System] Copyright (c) 2014 012WZ.COM
 * Weizan is NOT a free software, it under the license terms, visited http://www.012wz.com/ for more details.
 */
defined('IN_IA') or exit('Access Denied');
error_reporting(0);
load()->classs('captcha');
session_start();
$captcha = new Captcha();
$captcha->build(150, 40);
$hash = md5(strtolower($captcha->phrase) . $_W['config']['setting']['authkey']);
isetcookie('__code', $hash);
$_SESSION['__code'] = $hash;
$captcha->output();
Пример #2
0
 public function index()
 {
     $captcha = new Captcha();
     $captcha->output();
 }
Пример #3
0
 public static function showImgDesc($word, $tip = '', $width = 160, $height = 90, $fontSize = 30)
 {
     $captcha = new Captcha($width, $height, 5, 1, $fontSize);
     $captcha->createRes();
     $captcha->bgColor();
     $captcha->writeDes($word);
     $captcha->CreateTip($tip);
     $captcha->bgBorder();
     $captcha->output();
 }
Пример #4
0
<?php

require '../../../libraries/captcha.php';
$captcha = new Captcha();
$captcha->generate();
$captcha->output(70, 25);