require_once iEMS_PATH . 'Connections/crsolutions.php'; require_once iEMS_PATH . 'includes/clsInterface.inc.php'; require_once iEMS_PATH . 'includes/clsControlPanel.inc.php'; require_once iEMS_PATH . 'manageContacts.inc.php'; require_once iEMS_PATH . 'displayReports.inc.php'; require_once iEMS_PATH . 'displayEventSummary.inc.php'; require_once iEMS_PATH . 'displayStatistics.inc.php'; require_once iEMS_PATH . 'iEMSLoader.php'; $server = ' :: ' . strtoupper(php_uname('n')) . ' | ' . strtoupper(DSN); $server = null; //this is handy for turning logging on for a refresh or two //otherwise, go to iEMSLoader.php and turn it on there for long //sessions where logging is handy. //http://dev2.crsolutions.us/iEMS2.2/index.php?logged $logged = false; $Loader = new iEMSLoader($logged); if ($logged) { $log = new Logging(); } /** **************************************************************** *** Variable & Object Declaration *** **************************************************************** **/ $url = 'http://php.crsolutions.us/'; //$hostingServer = $_SERVER['HTTP_HOSTar']; $titleString = 'Welcome to iEMS PS1 v.2.2'; $oInterface = new userInterface(); $oControlPanel = new controlPanel(); $mdrUser = null; // at some point, stuff these into a little function 'cause reset buttons use these also $userString = ''; $logoutString = '';
<?php define('APPLICATION', TRUE); define('GROK', TRUE); define('iEMS_PATH', '../'); if (!defined('DSN')) { require_once iEMS_PATH . 'Connections/crsolutions.php'; } //doesn't pick up on dsn unless this is here -- remove this as soon as possible require_once iEMS_PATH . 'iEMSLoader.php'; $Loader = new iEMSLoader(false); $User = $_SESSION['UserObject']; $PointChannels = new PointChannels(); $PointChannels->Load($User->id(), $User->Domains(0)->id(), '', '', true); if (isset($_GET['logout'])) { session_destroy(); header('Location: ' . $_SERVER['PHP_SELF']); $username = ''; $password = ''; $_SESSION['UserObject'] = ''; $_SESSION['iemsName'] = ''; $_SESSION['iemsID'] = ''; $_SESSION['iemsDID'] = ''; } else { ?> <div style="background-color: #F1F1F1; padding: 10px; clear: both;"> <form method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?> "> <table cellpadding="3" cellspacing="0">