forked from vergnet/site-accueil-insa
start ignoring files
This commit is contained in:
parent
35327875be
commit
95a0b7dbcb
4 changed files with 0 additions and 19 deletions
|
@ -1,4 +0,0 @@
|
|||
AuthName "Vous ne passerez pas (sauf si vous passez)"
|
||||
AuthType Basic
|
||||
AuthUserFile "/home_clubs/accueil_insa/public_html/admin/.htpasswd"
|
||||
Require valid-user
|
|
@ -1 +0,0 @@
|
|||
on_est_les_admine:$apr1$sl6wtfnm$kglXQc9t3n0DnNO0dbM./1
|
|
@ -1,14 +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