forked from DavidMacDonald/Test-Site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
envConfig-sample.php
27 lines (21 loc) · 1008 Bytes
/
envConfig-sample.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
// Add your database connection details
$PDOConnection['dbName'] = '';
$PDOConnection['user'] = '';
$PDOConnection['pass'] = '';
$PDOConnection['opts'] = array(PDO::ATTR_PERSISTENT => true);
$PDOConnection['dbType'] = 'mysql';
define('DB_CONFIG', serialize($PDOConnection));
// class directories
$class_directories = array(
$_SERVER['DOCUMENT_ROOT'] . '/lib/php/',
$_SERVER['DOCUMENT_ROOT'] . '/lib/php/vendor/',
$_SERVER['DOCUMENT_ROOT'] . '/lib/php/vendor/gs_libs/');
// get the path to the includes directory
define('INC_PATH', $_SERVER['DOCUMENT_ROOT'] . '/lib/php/');
// get the path to the templates directory
$tPath = $_SERVER['DOCUMENT_ROOT'] . '/assets/templates/';
define('TEMPLATE_PATH', $tPath);
// get the default template tags
$templateDefaults = array('lang' => 'en', 'dir' => 'ltr', 'headerSheets' => '', 'headerScripts' => '', 'footerScripts' => '', 'analyticsID' => 'UA-XXXXX-X', 'meta_description' => '');
define('TEMPLATE_DEFAULTS', serialize($templateDefaults));