start ignoring files

This commit is contained in:
Baptiste 2022-06-19 20:13:20 +02:00
parent 35327875be
commit 95a0b7dbcb
4 changed files with 0 additions and 19 deletions

View file

@ -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

View file

@ -1 +0,0 @@
on_est_les_admine:$apr1$sl6wtfnm$kglXQc9t3n0DnNO0dbM./1

View file

View file

@ -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());
?>