public function executePopup() { $statusManager = new StatusManager(); $acct_schema = $statusManager->getAcctSchema(); //if the user name contains spaces, replace %20 by a space $_GET['status'] = str_replace("%20", " ", $_GET['status']); //if the owner field exists in ACCT table, sort the db result by group if (array_key_exists(OWNER, $acct_schema)) { $result = $statusManager->getDetailedStat($_GET['status'], OWNER); } else { $result = $statusManager->getDetailedStat($_GET['status'], null); } $this->page->addVar('acct_schema', $acct_schema); $this->page->addVar('result', $result); }
U<?php require_once "_header.php"; ?> <br> <h3>Here are some stats about the Monroe 911 feed scraper system:</h3> <?php include_once "./tools/StatusManager.class.php"; // create a database tool to use to pull information from the database //$db = new Database(); $statusManager = new StatusManager(); // // System Stats // // get the total number of times the scraper has run $runCount = $statusManager->GetNumberOfRuns(); // get the total number of unique entrees in the database $uniqueIncidents = $statusManager->GetTotalUniqueIncidents(); // get the total number of event types logged into the system $totalEventTypes = $statusManager->GetTotalEventTypes(); // get the total number of status types logged into the system $totalStatusTypes = $statusManager->GetTotalStatusTypes(); // get the total number of API calls that have been made //$apicalls = $db->GetNumberOfAPICalls(); // get the number of unique api users today //$totalUniqueApiUsers = $db->GetTotalUniqueAPIUsers(); // get the number of unique api users today //$uniqueApiUsersToday = $db->GetUniqueAPIUsersToday(); // get the average querytime today
include_once PLUGIN_PATH_SHIPWORKSWORDPRESS . 'view/error.php'; } else { $date = htmlspecialchars($_POST['start']); $orders = new Orders($software, $date); include_once PLUGIN_PATH_SHIPWORKSWORDPRESS . 'view/orders.php'; } } else { $orders = new Orders($software); include_once PLUGIN_PATH_SHIPWORKSWORDPRESS . 'view/orders.php'; } } else { if ('updatestatus' == $action) { $order = htmlspecialchars($_POST['order']); $status = htmlspecialchars($_POST['status']); $comment = htmlspecialchars($_POST['comments']); $statusManager = new StatusManager($software, $date, $order, $status, $comment); if ($statusManager->getResult()) { include_once PLUGIN_PATH_SHIPWORKSWORDPRESS . 'view/statusSuccess.php'; } else { include_once PLUGIN_PATH_SHIPWORKSWORDPRESS . 'view/statusFail.php'; } } else { if ('updateshipment' == $action) { $order = htmlspecialchars($_POST['order']); $date = htmlspecialchars($_POST['shippingdate']); $carrier = htmlspecialchars($_POST['carrier']); $tracking = htmlspecialchars($_POST['tracking']); $trackingManager = new TrackingManager($software, $date, $carrier, $order, $tracking); if ($trackingManager->getResult()) { include_once PLUGIN_PATH_SHIPWORKSWORDPRESS . 'view/trackingSuccess.php'; } else {