//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 = ''; $meterSummaries = ''; $messageString = ''; $ticker = ''; $defaultPresentation = 'individual'; $alternatePresentation = 'allInOne'; $selectedPresentation = $defaultPresentation; $dateSpan = 1; $selectedRange = ''; $repSelectedRange = ''; $dataString = '';
} define('APPLICATION', TRUE); define('GROK', TRUE); define('iEMS_PATH', ''); require_once iEMS_PATH . 'displayEventSummary.inc.php'; 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 . 'iEMSLoader.php'; $Loader = new iEMSLoader(); //arg: bool(true|false) enables/disables logging to iemslog.txt //to watch log live, from command-line: tail logpath/logfilename -f $mdrUser = new User(); $mdrUser = $_SESSION['UserObject']; $oControlPanel = new controlPanel(); $oInterface = new userInterface(); $connection = $mdrUser->sqlConnection(); //passing the return from the connection doc into a generic name //$mdrUser->preDebugger($_GET); //$mdrUser->preDebugger($_POST); $userID = $_REQUEST['userID']; $dateSpan = 1; $pointArray = explode(',', $_REQUEST['pointsToUse']); foreach ($pointArray as $pointID) { $selectedPoints[$pointID] = 'on'; } if (isset($_REQUEST['formUsed'])) { $formUsed = $_REQUEST['formUsed']; } if (isset($_REQUEST['action'])) { $action = $_REQUEST['action'];
<?php define('APPLICATION', TRUE); define('GROK', TRUE); define('iEMS_PATH', ''); require_once iEMS_PATH . 'displayEventSummary.inc.php'; require_once iEMS_PATH . 'Connections/crsolutions.php'; require_once iEMS_PATH . 'includes/clsInterface.inc.php'; require_once iEMS_PATH . 'iEMSLoader.php'; $Loader = new iEMSLoader(); //arg: bool(true|false) enables/disables logging to iemslog.txt //to watch log live, from command-line: tail logpath/logfilename -f $oInterface = new userInterface(); $mdrUser = new User(); $connection = $mdrUser->sqlConnection(); //passing the return from the local connection doc into a generic name$connection = $mdrUser->sqlConnection(); //passing the return from the local connection doc into a generic name if (empty($_SESSION['UserObject'])) { //echo "REFRESH: In UserObject empty...<br>\n"; $mdrUser->Login($_SESSION["iemsName"], $_SESSION["iemsPW"]); $_SESSION['UserObject'] = $mdrUser; } else { //echo "REFRESH: In UserObject NOT empty...<br>\n"; $mdrUser = $_SESSION['UserObject']; } $meterSummary = ''; $tabTipScript = ''; if (isset($_SESSION['viewEventSummary'])) { $meterSummary = viewEventSummary($_SESSION['iemsDID'], $_SESSION['evtSummaryDate'], false, true); } else { if ($_SESSION['formUsed'] == 'eventsForm') { if (isset($_SESSION['evtBaseDate'])) {
*/ //Sets flag which is checked by objects to limit them to being called from a page //with this flag set. Objects will not run without this flag. define('APPLICATION', TRUE); define('GROK', TRUE); define('iEMS_PATH', ''); require_once iEMS_PATH . 'displayEventSummary.inc.php'; 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 . 'iEMSLoader.php'; $Loader = new iEMSLoader(); //arg: bool(true|false) enables/disables logging to iemslog.txt //to watch log live, from command-line: tail logpath/logfilename -f $oControlPanel = new controlPanel(); $oInterface = new userInterface(); $mdrUser = new User(); $mdrUser = $_SESSION['UserObject']; $connection = $mdrUser->sqlConnection(); //passing the return from the local connection doc into a generic name $userID = $_SESSION['iemsID']; if ($_GET['pres'] == 'individual') { $points[$_GET['ID']] = 'on'; } else { $ids = explode(',', $_GET['ID']); foreach ($ids as $idSet) { $points[$idSet] = 'on'; } } $chartID = 'amline'; if ($_GET['pres'] == 'comparison') {