Login   Register  
PHP Classes
elePHPant
Icontem

File: capcha.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of rche  >  PHP Comments  >  capcha.php  >  Download  
File: capcha.php
Role: Auxiliary script
Content type: text/plain
Description: this file is out generate capcha in class.capcha.php
Class: PHP Comments
Manage comments stored in a MySQL database
Author: By
Last change:
Date: 2 years ago
Size: 771 bytes
 

Contents

Class file image Download
<?php
/*
 *
 *    PHP script comments.
 *    Version: 1.0 (beta)
 *    Late: 06.11.2012
 *    Autor: Chernyshov Roman
 *    Site: http://rche.ru
 *    E-mail: houseprog@ya.ru
 *
 */

error_reporting(E_ERROR E_WARNING E_PARSE);
require_once(
'class.captcha.php');
session_start();
//session_name('captcha');
$captcha = new Image(); 
$captcha->AddHendler'imagetype', array( 'jpeg'100 ) );
$captcha->addImage'120''50' );
$captcha->addText1rand1718 ) );
//$captcha->addBorder();
$captcha->AddFilter'smooth'20  );
//$captcha->AddFilter( 'meanremoval' );
//$captcha->AddFilter( 'edgedetect'  );
//$captcha->AddFilter( 'brightness', rand( 0, 100 ) );
//$captcha->AddNoise( '200' );
$captcha->draw();
$_SESSION['captha_text'] = $captcha->getCaptchaText();