-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.php
More file actions
66 lines (47 loc) · 1.78 KB
/
bootstrap.php
File metadata and controls
66 lines (47 loc) · 1.78 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<? /* EzSQL
***********************************************************************/
error_reporting(E_ALL ^ E_NOTICE);
// Include ezSQL core
include_once "dashboard/assets/ezsql/ez_sql_core.php";
// Include ezSQL database specific component
include_once "dashboard/assets/ezsql/ez_sql_mysql.php";
// Initialise database object and establish a connection
// at the same time - db_user / db_password / db_name / db_host
$db = new ezSQL_mysql('dev','KVdevftp2012','chartmob','dev1.kleurvision.com');
/* PostMark
***********************************************************************/
// Include PostMark Function
include_once "dashboard/assets/php/postmark.php";
// Include PHP Form Class Builder
include_once "dashboard/assets/PFBC/Form.php";
/* Constant Variables
***********************************************************************/
// Site Root Folder Path
$root = '/Users/dev/Sites/pocketfuel/dashboard/';
define ('ROOT', $root );
// Site URL
$url = 'http://dev1.kleurvision.com/pocketfuel';
define ('URL', $url );
session_start();
if($_SESSION){
$user = $_SESSION['user'];
define ('USER', $user);
$userID = $_SESSION['ID'];
define('USERID', $userID);
}
/* SALTED PASSWORD
*********************************************************************/
// These constants may be changed without breaking existing hashes.
define("PBKDF2_HASH_ALGORITHM", "sha256");
define("PBKDF2_ITERATIONS", 1000);
define("PBKDF2_SALT_BYTES", 24);
define("PBKDF2_HASH_BYTES", 24);
define("HASH_SECTIONS", 4);
define("HASH_ALGORITHM_INDEX", 0);
define("HASH_ITERATION_INDEX", 1);
define("HASH_SALT_INDEX", 2);
define("HASH_PBKDF2_INDEX", 3);
include_once "dashboard/assets/php/functions.php";
/* Include Language */
// include_once "dashboard/l18n.php";
?>