=0;$i--){ for ($j=0;$j<=3;$j++){ for ($k=1;$k<=10;$k++){ if(mt_rand(0,7)<1){ echo $Color[mt_rand(0,1)]; }else{ echo $Color[substr($_Num[$seccode[$j]], $i * 10 + $k, 1)]; } } } } exit; } function code_random($length) { PHP_VERSION < '4.2.0' && mt_srand((double)microtime() * 1000000); $hash = ''; $chars = 'abcdefhkmnpqrstuvwxyz123456789'; $max = strlen($chars) - 1; for($i = 0; $i < $length; $i++) { $hash .= $chars[mt_rand(0, $max)]; } return $hash; } ?>