prepare($req_string); $req->execute(array($newKey)); } function printError($str) { echo ''; } function printSuccess($str) { echo ''; } 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); } ?>