Compare commits

..

No commits in common. "db79263647c6470e8f601afd75a2f4df3452ecb6" and "2869dc78531250a9a232df10612d3809957f42a4" have entirely different histories.

2 changed files with 0 additions and 15 deletions

View file

View file

@ -1,15 +0,0 @@
<?php
function read_password()
{
$real_path = __DIR__.DIRECTORY_SEPARATOR.".htpassdb";
$file = fopen($real_path, "r") or die("Unable to open DB password file!");;
$password = fgets($file);
fclose($file);
return trim($password);
}
$host = "127.0.0.1";
$db = new PDO('mysql:host='.$host.';dbname=accueil_insa','root', read_password());
?>