Beispiel #1
0
// Tell the error system which errors to die on
v6_error_fatal(E_ALL ^ E_NOTICE);
// will die on` any error except E_NOTICE
v6_error_fatal(E_ALL);
// will die on any error
/**********************************************************************************************************
 * misc
 *********************************************************************************************************/
include_once __IPINGA_CODE_PATH . DS . 'ajax_responses.php';
include_once __IPINGA_CODE_PATH . DS . 'functions.php';
// comment this line out if you are not using jqueryui
// include_once __IPINGA_CODE_PATH . DS . 'jqueryui_functions.php';
// the global suitcase
$registry = new v6_registry();
// 12/28/2014 -
v6_cookie::initialize();
/**********************************************************************************************************
 * configure databases.  Comment out what you don't need
 *********************************************************************************************************/
// mysql
$registry->db = new PDO('mysql:host=' . $vern_config['mysql']['host'] . ';dbname=' . $vern_config['mysql']['database'], $vern_config['mysql']['user'], $vern_config['mysql']['password']);
$registry->db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
// mongo
// $registry->MongoConn = new Mongo('mongodb://'.$vern_config['mongo']['user'].':'.$vern_config['mongo']['password'].'@'.$vern_config['mongo']['host'].':'.$vern_config['mongo']['port'].'/'.$vern_config['mongo']['database'] );
// $registry->MongoDB = $registry->MongoConn->selectDB($vern_config['mongo']['database']);
// load any programmer appcode functions, etc
include_once __WEBSITE_ROOT_PATH . DS . 'includes' . DS . 'appcode.php';
/**********************************************************************************************************
 * load the router and launch the controller
 *********************************************************************************************************/
try {