Gazelle/sections/ajax/password_validate.php

19 lines
273 B
PHP
Raw Normal View History

2012-06-17 08:00:18 +00:00
<?php
2013-06-04 08:00:34 +00:00
$Password = db_string($_POST['password']);
2012-06-17 08:00:18 +00:00
$IsGoodPassword = false;
2013-06-04 08:00:34 +00:00
$DB->query("
SELECT Password
FROM bad_passwords
WHERE Password='$Password'");
2012-06-17 08:00:18 +00:00
if ($DB->record_count() == 0) {
$IsGoodPassword = true;
}
2013-06-04 08:00:34 +00:00
echo ($IsGoodPassword ? 'true' : 'false');
2012-06-17 08:00:18 +00:00
exit();
?>