<?php Error_Reporting(E_ALL & ~E_NOTICE);
$a = array ( 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'w', 'r', 't', 'y', 'u', 's', 'v', 'x', 'z', 'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', 'A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', 'Z', 'X', 'C', 'V', 'B', 'N', 'M', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0' );
if (count($_POST)>0): for ($n=0; $n<64; $n++) { $rl = $a[array_rand($a)]; } ini_set("SMTP", "localhost"); ini_set("smtp_port", "25"); if (mail($m, "Смена пароля", "Здравствуйте. Ваша ссылка для смены пароля:<br>http://www.likser.insolution.ru/index.php?$rl")) { print "ok"; } else { print "bad"; } endif;
|