本文整理汇总了PHP中Random::gerandoSenha方法的典型用法代码示例。如果您正苦于以下问题:PHP Random::gerandoSenha方法的具体用法?PHP Random::gerandoSenha怎么用?PHP Random::gerandoSenha使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Random
的用法示例。
在下文中一共展示了Random::gerandoSenha方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Random
$statusCaracteresEspeciais = false;
}
$objRandom = new Random();
$senha = $objRandom->gerandoSenha($tamanho, $statusLetrasMinusculas, $statusLetrasMaiusculas, $statusNumeros, $statusCaracteresEspeciais);
$objScan = new Scan();
$result = $objScan->scanpassword($senha);
$objMountPeriod = new Period();
$period = $objMountPeriod->mountPeriod($result['product']);
$objDao = new Dao();
$objDao->executeQuery('INSERT INTO tbl_counting (forca_senha, auxiliado) VALUES (' . $period['level'] . ', 0)');
require 'view/viewResult.php';
} else {
if (isset($_POST['powerkey'])) {
$tamanho = 20;
$statusNumeros = $statusLetrasMinusculas = $statusLetrasMaiusculas = $statusCaracteresEspeciais = true;
$objRandom = new Random();
$senha = $objRandom->gerandoSenha($tamanho, $statusLetrasMinusculas, $statusLetrasMaiusculas, $statusNumeros, $statusCaracteresEspeciais);
$objScan = new Scan();
$result = $objScan->scanpassword($senha);
$objMountPeriod = new Period();
$period = $objMountPeriod->mountPeriod($result['product']);
$objDao = new Dao();
$objDao->executeQuery('INSERT INTO tbl_counting (forca_senha, auxiliado) VALUES (' . $period['level'] . ', 1)');
require 'view/viewResult.php';
} else {
$objDao = new Dao();
$retornoconsulta = $objDao->executeConsult('SELECT count(*) FROM tbl_counting');
$total = mysqli_fetch_array($retornoconsulta);
require 'view/viewIndex.php';
}
}