refacto sdocs & add config.php
refacto sdocs & add config.php to hide mdp & gitignore for no commit mdp
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
# Fichiers de configuration locaux
|
||||||
|
www/config.php
|
||||||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@@ -1,10 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/json');
|
||||||
|
|
||||||
$host = '172.22.0.3';
|
require_once __DIR__ . '/config.php';
|
||||||
$dbname = 'OpenPlanetsMaps';
|
|
||||||
$username = 'root';
|
|
||||||
$password = 'admin123';
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$options = [PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8", PDO::ATTR_EMULATE_PREPARES => false];
|
$options = [PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8", PDO::ATTR_EMULATE_PREPARES => false];
|
||||||
Reference in New Issue
Block a user