Файл: demos/index.php
Строк: 301
<?php
/**************************************************************************************************
|
| http://alternanetworks.com
| ask@alternanetworks.com
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License
| Agreement available at http://envato.com/ and to be bound by it.
|
| Copyright (c) 2011 alternanetworks.com All rights reserved.
|
| http://codecanyon.net/user/AlternaNetworks
|**************************************************************************************************/
//error_reporting( E_ALL );
//ini_set( 'display_errors', '1' );
require_once ( "../captcha/load.php" );
$captcha = new myCaptcha( 'demo1' );
$captcha->font( 'KGSkinnyLatte.ttf' );
$captcha->fontSize( 60 );
$captcha->pattern( '0123456789' );
$captcha->lenght( 4 );
$captcha->dictionary( 'default.dictionary.php' );
$captcha->useDictionary( true );
$captcha->width( 250 );
$captcha->height( 80 );
$captcha->useBgWave( false );
$captcha->useFontWave( false );
$captcha->useBg( true );
$captcha->bg( 'bg03.jpg' );
$captcha->color( 'ffcc99' );
$captcha->bgColor( '000000' );
$captcha->base64( true );
$demo1 = $captcha->image();
$captcha = new myCaptcha( 'demo2' );
$captcha->font( 'KGSkinnyLatte.ttf' );
$captcha->fontSize( 60 );
$captcha->pattern( '0123456789' );
$captcha->lenght( 4 );
$captcha->dictionary( 'iliad-by-homer.dictionary.php' );
$captcha->useDictionary( false );
$captcha->width( 250 );
$captcha->height( 80 );
$captcha->useBgWave( false );
$captcha->useFontWave( false );
$captcha->useBg( true );
$captcha->bg( 'bg01.jpg' );
$captcha->color( '#222222' );
$captcha->bgColor( 'eaeaea' );
$captcha->base64( true );
$demo2 = $captcha->image();
$captcha = new myCaptcha( 'demo3' );
$captcha->font( 'daniel.ttf' );
$captcha->fontSize( 25 );
$captcha->lenght( 6 );
$captcha->dictionary( array(
'envato',
'codecanyon',
'themeforest',
'graphicriver',
'3docean',
'audiojungle',
'videohive',
'photodune' ) );
$captcha->useDictionary( true );
$captcha->width( 250 );
$captcha->height( 80 );
$captcha->useBgWave( false );
$captcha->useFontWave( false );
$captcha->useBg( true );
$captcha->bg( 'bg02.jpg' );
$captcha->color( '#FF00AE' );
$captcha->bgColor( 'eaeaea' );
$captcha->base64( true );
$demo3 = $captcha->image();
$captcha = new myCaptcha( 'demo4' );
$captcha->font( 'Aaargh.ttf' );
$captcha->fontSize( 50 );
$captcha->lenght( 6 );
$captcha->dictionary( '' );
$captcha->useDictionary( false );
$captcha->width( 250 );
$captcha->height( 80 );
$captcha->useBgWave( false );
$captcha->useFontWave( false );
$captcha->useBg( true );
$captcha->bg( 'bg04.jpg' );
$captcha->color( '#00aaff' );
$captcha->bgColor( 'eaeaea' );
$captcha->base64( true );
$demo4 = $captcha->image();
$captcha = new myCaptcha( 'demo5' );
$captcha->font( 'Harabara.ttf' );
$captcha->fontSize( 30 );
$captcha->lenght( 8 );
$captcha->dictionary( '' );
$captcha->useDictionary( false );
$captcha->width( 250 );
$captcha->height( 80 );
$captcha->useBgWave( false );
$captcha->useFontWave( false );
$captcha->useBg( true );
$captcha->bg( 'bg05.jpg' );
$captcha->color( '#FF2200' );
$captcha->bgColor( 'eaeaea' );
$captcha->base64( true );
$demo5 = $captcha->image();
$captcha = new myCaptcha( 'demo6' );
$captcha->font( 'Snickles.ttf' );
$captcha->fontSize( 50 );
$captcha->lenght( 6 );
$captcha->dictionary( 'default.dictionary.php' );
$captcha->useDictionary( true );
$captcha->width( 250 );
$captcha->height( 80 );
$captcha->useBgWave( false );
$captcha->useFontWave( false );
$captcha->useBg( true );
$captcha->bg( 'bg06.jpg' );
$captcha->color( '#cccccc' );
$captcha->bgColor( 'eaeaea' );
$captcha->base64( true );
$demo6 = $captcha->image();
$captcha = new myCaptcha( 'demo7' );
$captcha->font( 'junkos_typewriter.ttf' );
$captcha->fontSize( 50 );
$captcha->pattern( '0123456789' );
$captcha->lenght( 4 );
$captcha->dictionary( 'alice.dictionary.php' );
$captcha->useDictionary( true );
$captcha->width( 250 );
$captcha->height( 80 );
$captcha->useBgWave( true );
$captcha->useFontWave( false );
$captcha->useBg( true );
$captcha->bg( 'bg07.jpg' );
$captcha->color( '#FFA091' );
$captcha->bgColor( 'eaeaea' );
$captcha->base64( true );
$demo7 = $captcha->image();
$captcha = new myCaptcha( 'demo8' );
$captcha->font( 'KGSkinnyLatte.ttf' );
$captcha->fontSize( 50 );
$captcha->pattern( '0123456789' );
$captcha->lenght( 4 );
$captcha->dictionary( '' );
$captcha->useDictionary( false );
$captcha->width( 250 );
$captcha->height( 80 );
$captcha->useBgWave( true );
$captcha->useFontWave( true );
$captcha->useBg( true );
$captcha->bg( 'bg08.jpg' );
$captcha->color( '#222222' );
$captcha->bgColor( 'eaeaea' );
$captcha->base64( true );
$demo8 = $captcha->image();
$captcha = new myCaptcha( 'demo9' );
$captcha->font( 'journal.ttf' );
$captcha->fontSize( 50 );
$captcha->pattern( '01' );
$captcha->lenght( 8 );
$captcha->dictionary( 'default.dictionay.php' );
$captcha->useDictionary( false );
$captcha->width( 250 );
$captcha->height( 80 );
$captcha->useBgWave( true );
$captcha->useFontWave( false );
$captcha->useBg( true );
$captcha->bg( 'bg03.jpg' );
$captcha->color( '#222222' );
$captcha->bgColor( '0066CC' );
$captcha->base64( true );
$demo9 = $captcha->image();
$captcha = new myCaptcha( 'demo10' );
$captcha->font( 'Snickles.ttf' );
$captcha->fontSize( 50 );
$captcha->pattern( '0123456789' );
$captcha->lenght( 4 );
$captcha->dictionary( 'default.dictionary.php' );
$captcha->useDictionary( true );
$captcha->width( 250 );
$captcha->height( 250 );
$captcha->useBgWave( false );
$captcha->useFontWave( false );
$captcha->useBg( false );
$captcha->bg( 'bg00.jpg' );
$captcha->color( '#00AAFF' );
$captcha->bgColor( '#CDE6FF' );
$captcha->base64( true );
$demo10 = $captcha->image();
$demo10_qr = $captcha->qr( 'demo10', 100, true );
$captcha = new myCaptcha( 'demo11' );
$captcha->font( 'Harabara.ttf' );
$captcha->fontSize( 40 );
$captcha->pattern( '0123456789' );
$captcha->lenght( 4 );
$captcha->dictionary( 'quixote.dictionary.php' );
$captcha->useDictionary( true );
$captcha->width( 250 );
$captcha->height( 60 );
$captcha->useBgWave( true );
$captcha->useFontWave( true );
$captcha->fontWaveX( 20 );
$captcha->fontWaveY( 20 );
$captcha->useBg( true );
$captcha->bg( 'bg05.jpg' );
$captcha->color( '#eeeeee' );
$captcha->bgColor( '#CDE6FF' );
$captcha->base64( true );
$demo11 = $captcha->image();
$demo11_qr = $captcha->qr( 'demo11', 240, true );
$captcha = new myCaptcha( 'demo12' );
$captcha->font( 'KGSkinnyLatte.ttf' );
$captcha->fontSize( 30 );
$captcha->pattern( '0123456789' );
$captcha->lenght( 4 );
$captcha->dictionary( array(
'Alterna',
'Networks',
'Design',
'Code',
'Development',
'like.no.other' ) );
$captcha->useDictionary( true );
$captcha->width( 200 );
$captcha->height( 200 );
$captcha->useBgWave( false );
$captcha->useFontWave( true );
$captcha->fontWaveX( 10 );
$captcha->fontWaveY( 0 );
$captcha->fontAngle( false );
$captcha->useBg( true );
$captcha->bg( 'custom-bg.jpg' );
$captcha->color( '#ffffff' );
$captcha->bgColor( '#CDE6FF' );
$captcha->base64( true );
$demo12 = $captcha->image();
$demo12_qr = $captcha->qr( 'demo12', 120, true );
?>
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>
<!-- Basic Page Needs
================================================== -->
<meta charset="utf-8">
<title>myCaptcha | Powerful Human Verificator with Dictionary Maker</title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="stylesheets/base.css">
<link rel="stylesheet" href="stylesheets/skeleton.css">
<link rel="stylesheet" href="stylesheets/layout.css">
<link rel="stylesheet" href="stylesheets/app.css">
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="sixteen columns">
<h1 class="remove-bottom" style="margin-top: 40px">myCaptcha</h1>
<h5>Powerful Human Verificator with Dictionary Maker</h5>
<hr />
</div>
<div class="one-third column">
<h3>Demo 1</h3><strong>Challenge:</strong> <?php echo $captcha->challenge('demo1'); ?>
<p data-tip="Using Default Dictionary [44801 words]"><img src="<?php echo $demo1; ?>" /></p>
</div>
<div class="one-third column">
<h3>Demo 2</h3><strong>Challenge:</strong> <?php echo $captcha->challenge('demo2'); ?>
<p data-tip="Custom pattern: Only Numbers & 4 Chars Limit [0-9 Pattern]"><img src="<?php echo $demo2; ?>"/></p>
</div>
<div class="one-third column">
<h3>Demo 3</h3><strong>Challenge:</strong> <?php echo $captcha->challenge('demo3'); ?>
<p data-tip="Custom pattern: Using Array as Dictionary [You can use from DB too!]"><img src="<?php echo $demo3; ?>"/></p>
</div>
<div class="one-third column">
<h3>Demo 4</h3><strong>Challenge:</strong> <?php echo $captcha->challenge('demo4'); ?>
<p data-tip="Default pattern & Changing Font [a-zA-Z0-9]"><img src="<?php echo $demo4; ?>"/></p>
</div>
<div class="one-third column">
<h3>Demo 5</h3><strong>Challenge:</strong> <?php echo $captcha->challenge('demo5'); ?>
<p data-tip="Default pattern & Changing Font [a-zA-Z0-9]"><img src="<?php echo $demo5; ?>"/></p>
</div>
<div class="one-third column">
<h3>Demo 6</h3><strong>Challenge:</strong> <?php echo $captcha->challenge('demo6'); ?>
<p data-tip="Custom Dictionary: Iliad by Homer [Made from book W/Dictionary Maker!]"><img src="<?php echo $demo6; ?>"/></p>
</div>
<div class="one-third column">
<h3>Demo 7</h3><strong>Challenge:</strong> <?php echo $captcha->challenge('demo7'); ?>
<p data-tip="Custom Dictionary: Alice in Wonderland [Made from book W/Dictionary Maker!]"><img src="<?php echo $demo7; ?>"/></p>
</div>
<div class="one-third column">
<h3>Demo 8</h3><strong>Challenge:</strong> <?php echo $captcha->challenge('demo8'); ?>
<p data-tip="Using Font Wave"><img src="<?php echo $demo8; ?>"/></p>
</div>
<div class="one-third column">
<h3>Demo 9</h3><strong>Challenge:</strong> <?php echo $captcha->challenge('demo9'); ?>
<p data-tip="Custom Pattern [0-1]"><img src="<?php echo $demo9; ?>"/></p>
</div>
<div class="one-third column">
<h3>Demo 10</h3><strong>Challenge:</strong> <?php echo $captcha->challenge('demo10'); ?>
<p data-tip="Custom Dictionary, Solid color and QrCode"><img src="<?php echo $demo10; ?>"/><img src="<?php echo $demo10_qr; ?>"/></p>
</div>
<div class="one-third column">
<h3>Demo 11</h3><strong>Challenge:</strong> <?php echo $captcha->challenge('demo11'); ?>
<p data-tip="Custom Dictionary, Custom size, Font and Bg Wave, and QrCode"><img src="<?php echo $demo11; ?>"/><br /><img src="<?php echo $demo11_qr; ?>"/></p>
</div>
<div class="one-third column">
<h3>Demo 12</h3><strong>Challenge:</strong> <?php echo $captcha->challenge('demo12'); ?>
<p data-tip="Custom Dictionary (array),Custom bg, Color, FontWave, and QrCode"><img src="<?php echo $demo12; ?>"/><img src="<?php echo $demo12_qr; ?>"/></p>
</div>
<hr />
</div><!-- container -->
</body>
</html>