Add Gitignore & Create Config.php
For The Always DATA version, i have to hide mdp beacause this is not a server only in tailscale tunnel. So Config.php in gitignore is a file who i have to create in always data site to store mdp for beat security falls
This commit is contained in:
+5
-4
@@ -1,10 +1,11 @@
|
||||
<?php
|
||||
header('Content-Type: application/json');
|
||||
|
||||
$host = '172.22.0.3';
|
||||
$dbname = 'OpenPlanetsMaps';
|
||||
$username = 'root';
|
||||
$password = 'admin123';
|
||||
$config = require_once __DIR__ . '/config.php';
|
||||
$host = $config['host'];
|
||||
$dbname = $config['dbname'];
|
||||
$username = $config['username'];
|
||||
$password = $config['password'];
|
||||
|
||||
try {
|
||||
$options = [PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8", PDO::ATTR_EMULATE_PREPARES => false];
|
||||
|
||||
Reference in New Issue
Block a user