View file clikus/config/click-club.class.php

File size: 776B
<?php

class click_club{

function captcha_text($length){
$symbols=symbols;
for ($i=0;$i<$length;$i++) @$text.=$symbols[mt_rand(0,strlen($symbols)-1)];
return $text;
}

function is_login($text){
global $_EREG;


If (!ereg("^[".$_EREG['login']."]{".min_login.",".lenght_login."}$",$text)) return false;
return true;
}

function is_password($text){
global $_EREG;


If (!ereg("^[".$_EREG['password']."]{".min_login.",".lenght_login."}$",$text)) return false;
return true;
}

function is_mail($text){

$len=strlen($text);
If ($len<min_mail || $len>lenght_mail || !preg_match("/^[-0-9a-z_.]+(\@){1}[-0-9a-z_.]+\.[a-z]{2,5}$/i",$text)) return false;
return true;
}


}

$click_club=new click_club;
//make for clikus.ru
//Admin icq 915317
?>