getAccessRequestName($act, $vm_action); if($name != null) { $parts = explode("-", $name); array_shift($parts); $name = implode($parts); $new_entry = array($name, "mod=vm&act=$act&vm_action=$vm_action", "vm"); if(count($_SESSION['shn_breadcrumb']) < 3) { array_push($_SESSION['shn_breadcrumb'], $new_entry); } else { array_shift($_SESSION['shn_breadcrumb']); array_push($_SESSION['shn_breadcrumb'], $new_entry); } } } /** * Loads the global database object. * @access public * @return void */ function shn_vm_load_db() { //only load the DAO if it has not yet been loaded if(!defined('VM_DAO_LOADED')) { error_reporting(E_ALL ^ E_NOTICE); global $global; $db = $global['db']; global $dao; $dao = new DAO($db); define('VM_DAO_LOADED', true); } } shn_vm_load_db(); shn_vm_update_breadcrumbs(); /** * Default VM function, calls the appropriate controller's controlHandler() function * @access public * @return void */ function shn_vm_default() { if($_GET['act'] == 'project' && $_SESSION['logged_in']) { $controller = new ProjectController(); $controller->controlHandler($_REQUEST); } else { $controller = new VolunteerController(); if(!$_SESSION['logged_in'] && !in_array($_GET['vm_action'], array('help', 'display_add', 'process_add', 'display_portal'))) { /* * If the user is not logged in and is not processing his own volunteer * registration or requesting the help or home pages, display the portal */ $v = new VolunteerView(); $v->displayPortal(); } else { $controller->controlHandler($_REQUEST); } } } /** * Display additional elements in the HTML head */ function shn_vm_html_head() { global $global; require_once($global['approot'].'inc/lib_xhtml.inc'); shn_display_xhtml_head(array( "1" => '', "2" => '', "3" => '' )); } ?>
Fatal error: Uncaught Error: Undefined constant "TEST_DB_HOST" in /home/norfaiz/public_html/bintara.net/vms/mod/vm/test/RunTest.php:36 Stack trace: #0 {main} thrown in /home/norfaiz/public_html/bintara.net/vms/mod/vm/test/RunTest.php on line 36