From 3393995db8c3f191f064d2f0729b1af5fb889ee6 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 1 Aug 2016 08:04:48 +0200 Subject: Easier accessor/mutator in Model; refreshing braintree statuses --- conf.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'conf.php') diff --git a/conf.php b/conf.php index 9085b1e..4754a6d 100644 --- a/conf.php +++ b/conf.php @@ -33,6 +33,8 @@ ini_set('display_errors', 0); set_include_path(dirname(__FILE__) . PATH_SEPARATOR . get_include_path()); +require_once('conf.private.php'); + spl_autoload_register(function ($pClass) { $path = dirname(__FILE__) . "/classes/$pClass.php"; if (file_exists($path)) { @@ -40,11 +42,11 @@ spl_autoload_register(function ($pClass) { } }); -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); + $_pdo->setAttribute(PDO::ATTR_ORACLE_NULLS, PDO::NULL_NATURAL); + $_pdo->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false); } catch (PDOException $e) { die("Down until PDO error fixed."); } -- cgit v1.2.3