diff options
author | Camil Staps | 2016-07-27 23:52:00 +0200 |
---|---|---|
committer | Camil Staps | 2016-07-27 23:52:00 +0200 |
commit | 7f877370163648460f6ffd8abb3ee9caa774441c (patch) | |
tree | a41d3d8dbf310ffdbc484cf0a3992126845e9d8e /conf.php | |
parent | Changelog cleanup (diff) |
Moved private information to conf.private.php
Diffstat (limited to 'conf.php')
-rw-r--r-- | conf.php | 17 |
1 files changed, 2 insertions, 15 deletions
@@ -31,21 +31,6 @@ session_start(); error_reporting(0); ini_set('display_errors', 0); -//------------------------------------------------------------------------------ -// Start editing below this line -//------------------------------------------------------------------------------ - -// Database settings (should be mysql) -$db_host = 'localhost'; -$db_name = 'my_database'; -$db_user = 'my_database_user'; -$db_pass = 'my_password'; -$db_port = '3306'; - -//------------------------------------------------------------------------------ -// Don't edit below this line -//------------------------------------------------------------------------------ - /** * Autoload a class if it isn't loaded yet * @@ -59,6 +44,8 @@ function __autoload($pClass) { set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__)); +require_once('./conf.private.php'); + try { $_pdo = new PDO("mysql:host=$db_host;port=$db_port;dbname=$db_name;charset=utf8", $db_user, $db_pass); $_pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); |