aboutsummaryrefslogtreecommitdiff
path: root/conf.php
diff options
context:
space:
mode:
authorCamil Staps2016-07-27 23:52:00 +0200
committerCamil Staps2016-07-27 23:52:00 +0200
commit7f877370163648460f6ffd8abb3ee9caa774441c (patch)
treea41d3d8dbf310ffdbc484cf0a3992126845e9d8e /conf.php
parentChangelog cleanup (diff)
Moved private information to conf.private.php
Diffstat (limited to 'conf.php')
-rw-r--r--conf.php17
1 files changed, 2 insertions, 15 deletions
diff --git a/conf.php b/conf.php
index 82f79fb..837016c 100644
--- a/conf.php
+++ b/conf.php
@@ -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);