forked from styp152/KeywordTracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.php
More file actions
30 lines (23 loc) · 719 Bytes
/
bootstrap.php
File metadata and controls
30 lines (23 loc) · 719 Bytes
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
<?php
/*
This script is licensed under Apache 2.0. View the license here:
http://www.apache.org/licenses/LICENSE-2.0.html
Copyright Reserved to g0g0l
Contact @ Skype : noc2spam
*/
/**
* configuration and autoloading
**/
function appLoad($class) {
include dirname(__FILE__).'/Classes/' . $class . '.php';
}
spl_autoload_register('appLoad');
function exception_handler(Exception $exception) {
echo "<b>Uncaught exception with message:</b> " , $exception->getMessage(), "\n<br>";
echo '<b>Occurance: </b>'.$exception->getTraceAsString();
}
set_exception_handler('exception_handler');
define('DBHOST' , 'localhost');
define('DBNAME' , 'kwtracker');
define('DBUSER' , 'root');
define('DBPASS' , '');