Вообщем решил попробовать написать генератор себе, вроде всё правильно на выдаёт ошибку, короч помогите ошибку найти
Цитата:
$count_pass = c("edit1")->text;
if(c("checkbox1")->checked)
{
$end_big = 'QWERTYUIOPASDFGHJKLZXCVBNM';
}
if(c("checkbox2")->checked)
{
$end_small = 'qwertyuiopasdfghjklzxcvbnm';
}
if(c("checkbox3")->checked)
{
$end_symbols = '!@=-/.,?><}{[]_+';
}
if(c("checkbox4")->checked)
{
$end_numbers = '1234567890';
}
$all = $end_big.$end_small.$symbols.$end_numbers;
$counts = iconv_strlen($end_big) + iconv_strlen($end_small) + iconv_strlen($end_symbols) + iconv_strlen($end_numbers);
for($x = 0; $x<$count_pass;$x++)
{
$pass .= $all[rand(0, $count)];
}
c("edit2")-> = $pass;
|