From e54b722bf5a40156bbd687a3e2175aa2d051ca55 Mon Sep 17 00:00:00 2001 From: Josh North Date: Tue, 24 Feb 2015 15:38:55 -0500 Subject: [PATCH] fixed config --- config.inc.php.example | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/config.inc.php.example b/config.inc.php.example index 9eac69e..bbd6cce 100755 --- a/config.inc.php.example +++ b/config.inc.php.example @@ -10,7 +10,7 @@ $db = new PDO('mysql:host=localhost;dbname=YOUR_DATABASE;charset=utf8', 'Y $yaptc_adminmsg = ''; // Message will display on all pages! $yaptc_allowadvancedpunch = 'yes'; // Should we allow users to make manual punch entries? set to yes or no $yaptc_min_password = '8'; // Minimum password length - +$yaptc_language = 'en'; // Language @@ -18,12 +18,13 @@ $yaptc_min_password = '8'; // Minimum password length //********** NO NEED TO EDIT PAST HERE **********// $yaptc_db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); // Advanced PDO handling $yaptc_db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); // Advanced PDO handling -$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); // Advanced PDO handling -$db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); // Advanced PDO handling +$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); // Advanced PDO handling +$db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); // Advanced PDO handling $_SESSION['yaptc_dir'] = $yaptc_dirpath; // Put absolute directory path in session $_SESSION['yaptc_url'] = $yaptc_webpath; // Put absolute url path in session $yaptc_inc = $yaptc_dirpath . 'includes/'; // Concatenate an includes directory path $yaptc_incweb = $yaptc_webpath . 'includes/'; // Concatenate an includes url path $yaptc_lib = $yaptc_dirpath . 'lib/'; // Concatenate a lib directory path $yaptc_libweb = $yaptc_webpath . 'lib/'; // Concatenate a lib url path +$yaptc_lang = $yaptc_dirpath . 'lang/' . $yaptc_language . 'lang.php'; // Concatenate a language url path ?>