! <? $glasn='aeiou'; $soglasn='bcdfghklmnprstvz'; $length=rand(5,8); for($i=1;$i<=$length; $i++) {$word.=($i % 2)? $soglasn[rand(0,strlen($soglasn)-1)]: $glasn[rand(0,strlen($glasn)-1)]; } echo $word, '.ru'; ?> //////////////////// /* : * 6 * * (>=) 3 , "lkj" "cvb" * - , - */ functionisGood ($pass) {$kbStrings = array('1234567890','qwertyuiop','asdfghjkl','zxcvbnm', '0987654321','poiuytrewq','lkjhgfdsa','mnbvcxz'); $isGood = false; if (strlen($pass) >= 6) { if (preg_match('/[a- z]/i',$pass) && preg_match('/[0-9]/',$pass)) { $count = strlen($pass) - 2; $isGood = true; } else { $isGood = false; break 2; } } } } } return $isGood; } ////////////////////////// : function gen_pass(){ $length=rand(3,6); $salt = "aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ0123456789"; $len = strlen($salt); $makepass = ''; for ($i = 0; $i < $length; $i++) $makepass .= $salt[mt_rand(0,$len - 1)]; return $makepass; }; ////////////////////////// email' : if(preg_match('|([a-z0-9_\.\-]{1,20})@([a-z0-9\.\-]{1,20})\.([a-z]{2,4})|is', $mail)) { echo ' '; } else{echo ' login@domain.com'} _____________ URL : if(preg_match("/^(http:\/\/{1})((\w+\.){1,})\w{2,}$/i", $url)) { echo 'URL '; } else{echo ' ULR site.com';} /////////////////////////// email <?php var $mail; // if (!preg_match('|([a-z0-9_\.\-]{1,20})@([a-z0-9\.\-]{1,20})\.([a-z]{2,4})|is', $mail)) {echo " ";} uin if(isset($_POST['icq']) and intval(trim($_POST['icq'])) >10000 && intval(trim($_POST['icq']) < 9999999999)) { echo '' } else {echo "icq ";} if(preg_replace('#\d{5,9}#','',$icq)){ }else{ } : if(!filter_var($mail, FILTER_VALIDATE_EMAIL)){ echo ''; }else{ echo ''; } ////////////////////// function generate_password($number) { $arr = array('a','b','c','d','e','f', 'g','h','i','j','k','l', 'm','n','o','p','r','s', 't','u','v','x','y','z', 'A','B','C','D','E','F', 'G','H','I','J','K','L', 'M','N','O','P','R','S', 'T','U','V','X','Y','Z', '1','2','3','4','5','6', '7','8','9','0'); $pass = ""; for($i = 0; $i < $number; $i++) { $index = rand(0, count($arr) - 1); $pass .= $arr[$index]; } //////////////////////// if (empty($_POST['pass']) { echo ' '; echo '<form action = "load.php" method="POST"> <input type="password" name="pass"> <input type="submit" value="ok"></form>'; } else { $fp=fopen(_.pass, 'r'); $pass=fread($fp,100); if ($_POST['pass']==$pass)
далее
перейти
в начало
В библиотеку

на главную



..
(c) xika.ru