Skip to content

Commit

Permalink
gitignore and some conf file changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kutluhanazafli committed Jul 9, 2024
1 parent 285b786 commit 99c20fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.vscode
.idea
.config
config/config.ini*
11 changes: 7 additions & 4 deletions config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@

const DEV_MODE = true;

// Read database configuration from .ini file and store as array
$config = parse_ini_file(BASEDIR . '/config/config.ini.php');

// Database connection
$host = 'bzoighyemc4n1alzqpup-mysql.services.clever-cloud.com';
$dbname = 'bzoighyemc4n1alzqpup';
$username = 'uzwnv0ianiryk6xp';
$password = 'ZuIKwJqDz5gyR9C2uMvF';
$host = $config['host'];
$dbname = $config['dbname'];
$username = $config['username'];
$password = $config['password'];

try {
$db = new PDO("mysql:host=".$host.";dbname=".$dbname.";charset=utf8", $username, $password);
Expand Down

0 comments on commit 99c20fc

Please sign in to comment.