prepare($req_string);
$req->execute(array($newKey));
}
function printError($str) {
echo '
' . $str . '
';
}
function printSuccess($str) {
echo '' . $str . '
';
}
function isInstalled($bdd) {
$req = $bdd->prepare("SHOW TABLES LIKE 'admin'");
$req->execute();
if(!$req->fetch())
return false;
return true;
}
function hashPass($pass) {
return password_hash($pass, PASSWORD_DEFAULT);
}
function passEqual($pass, $hash) {
return password_verify($pass, $hash);
}
?>