refacto sdocs & add config.php

refacto sdocs & add config.php to hide mdp & gitignore for no commit mdp
This commit is contained in:
2026-05-17 16:46:54 +02:00
parent 465abedec2
commit 212d218291
10 changed files with 3 additions and 4 deletions
+2
View File
@@ -0,0 +1,2 @@
# Fichiers de configuration locaux
www/config.php
View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File
+1 -4
View File
@@ -1,10 +1,7 @@
<?php
header('Content-Type: application/json');
$host = '172.22.0.3';
$dbname = 'OpenPlanetsMaps';
$username = 'root';
$password = 'admin123';
require_once __DIR__ . '/config.php';
try {
$options = [PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8", PDO::ATTR_EMULATE_PREPARES => false];
View File
View File
View File
View File