Commit a47365aa authored by Lucas Saliés Brum's avatar Lucas Saliés Brum 🖐🏻

Autocommit por GitLab.sh: alterações: add 'index.php'

parent 7f955ded
......@@ -5,12 +5,21 @@ if (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) &&
strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest' ||
isset($_SERVER['HTTP_USER_AGENT']) &&
preg_match('/^(curl|wget)/i', $_SERVER['HTTP_USER_AGENT'])) {
$tamanho = ( isset($_POST['tamanho']) ) ? (int)$_POST['tamanho'] : 10;
$maiusculas = ( isset($_POST['maiusculas']) ) ? $_POST['maiusculas'] : true;
$minusculas = ( isset($_POST['minusculas']) ) ? $_POST['minusculas'] : true;
$numeros = ( isset($_POST['numeros']) ) ? $_POST['numeros'] : true;
$simbolos = ( isset($_POST['simbolos']) ) ? $_POST['simbolos'] : true;
if (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {
$tamanho = (isset($_POST['tamanho'])) ? (int)$_POST['tamanho'] : 10;
$maiusculas = ( isset($_POST['maiusculas']) ) ? $_POST['maiusculas'] : false;
$minusculas = ( isset($_POST['minusculas']) ) ? $_POST['minusculas'] : false;
$numeros = ( isset($_POST['numeros']) ) ? $_POST['numeros'] : false;
$simbolos = ( isset($_POST['simbolos']) ) ? $_POST['simbolos'] : false;
} else {
$tamanho = 6;
$maiusculas = true;
$minusculas = true;
$numeros = true;
$simbolos = true;
}
$ma = "ABCDEFGHIJKLMNOPQRSTUVYXWZ"; // $ma contem as letras maiúsculas
$mi = "abcdefghijklmnopqrstuvyxwz"; // $mi contem as letras minusculas
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment