first commit
This commit is contained in:
4
config/.htaccess
Normal file
4
config/.htaccess
Normal file
@ -0,0 +1,4 @@
|
||||
AuthName "pwd"
|
||||
AuthType Basic
|
||||
AuthUserFile /var/www/web712/html/config/.htpasswd
|
||||
require valid-user
|
1
config/.htpasswd
Normal file
1
config/.htpasswd
Normal file
@ -0,0 +1 @@
|
||||
admin:$1$mJMmTGPR$/db9TUBE9VIYJMUcNezBk0
|
15
config/datenbankanbindung.php
Normal file
15
config/datenbankanbindung.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
//--Funktion-Datenbankverbindung--------------------------------------------------------------------
|
||||
|
||||
function dbconnect() //--Prozedur - kein return-Wert
|
||||
{
|
||||
$db = @new mysqli( 'localhost', 'root', '', 'ams_stammdaten' );
|
||||
//$db = @new mysqli( 'localhost', 'lgadmin', '!S1ge1nA', 'leitgedanken' );
|
||||
$db->query("set sql_mode = 'ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'");
|
||||
$db->set_charset('utf8mb4');
|
||||
$db->query("SET NAMES 'utf8mb4'");
|
||||
return $db;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
?>
|
Reference in New Issue
Block a user