forked from vergnet/site-accueil-insa
Supprimer 'script/db.php'
This commit is contained in:
parent
4ddd814ec1
commit
00480b55e8
1 changed files with 0 additions and 15 deletions
|
@ -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());
|
|
||||||
?>
|
|
Loading…
Reference in a new issue