Beispiel #1
0
//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 = '';
$userTable = '';
 * @abstract Event dates required some additional handling beyond the Calendar control; this additional page to facilitates the automatic updating of the date field when point selections are modified.
 * 
 * @uses Connections/crsolutions.php, includes/clsControlPanel.inc.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 . 'includes/clsControlPanel.inc.php';
require_once iEMS_PATH . 'iEMSLoader.php';
$Loader = new iEMSLoader(false);
//arg: bool(true|false) enables/disables logging to iemslog.txt
//to watch log live, from command-line: tail logpath/logfilename -f
$oControlPanel = new controlPanel();
$mdrUser = new User();
//session_start();
if (empty($_SESSION['UserObject'])) {
    //echo "INDEX: In UserObject empty...<br>\n";
    $mdrUser->Login($username, $password);
    $_SESSION['UserObject'] = $mdrUser;
} else {
    //echo "INDEX: In UserObject NOT empty...<br>\n";
    $mdrUser = $_SESSION['UserObject'];
}
if (empty($_POST['evtPoints'])) {
    print '<div style="padding-top: 18px; padding-bottom: 18px;">There are no points selected.</div>';
} else {
    print $oControlPanel->eventDateSelectBuilder($_POST['evtPoints'], $mdrUser, 'js');
}
Beispiel #3
0
    define('DEBUG', FALSE);
}
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'])) {
Beispiel #4
0
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(false);
//arg: bool(true|false) enables/disables logging to iemslog.txt
//to watch log live, from command-line: tail logpath/logfilename -f
$Prefs = new Preferences();
if (!isset($_SESSION)) {
    session_start();
}
$oControlPanel = new controlPanel();
$mdrUser = new User();
$mdrUser = $_SESSION['UserObject'];
$connection = $mdrUser->sqlConnection();
//passing the return from the connection doc into a generic name
$master_connection = $mdrUser->sqlMasterConnection();
//passing the return from the connection doc into a generic name
//echo "mdrUser->id()='" . $mdrUser->id() . "'<br>\n";
$whereString = '';
$tally = 0;
$defaultChartType = 'individual';
$message = '';
//$mdrUser->preDebugger($_POST);
$process = isset($_REQUEST['process']) ? $process = $_REQUEST['process'] : '';
$count = isset($_POST['hidden']) ? count($_POST['hidden']) : 0;
$action = isset($_GET['action']) ? $_GET['action'] : '';