Gazelle/sections/ajax/password_validate.php
2013-06-04 08:00:34 +00:00

19 lines
273 B
PHP

<?php
$Password = db_string($_POST['password']);
$IsGoodPassword = false;
$DB->query("
SELECT Password
FROM bad_passwords
WHERE Password='$Password'");
if ($DB->record_count() == 0) {
$IsGoodPassword = true;
}
echo ($IsGoodPassword ? 'true' : 'false');
exit();
?>