| Server IP : 3.96.16.70 / Your IP : 216.73.216.15 Web Server : Apache System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/metrics.elancointeractives.com/elanco-metrics/app/controller/ |
Upload File : |
<?php
require($cfg[ 'server_path' ] . '/check_login.php');
// Required CSS and JS
$required_css = array('dashboard');
$required_js = array('dashboard' => 1);
// Chnage default meta details
$pagedata['title'] = "Elanco - Admin";
$pagedata['description'] = "Elanco - Admin";
$pagedata['og:title'] = "Elanco - Admin";
$pagedata['og:description'] = "Elanco - Admin";
/*
$query = $db->prepare("SELECT count(*) FROM mg_metrics WHERE start_timestamp != 0");
$query->execute();
$mg_totalGamesStarted = $query->fetchColumn();
$query = $db->prepare("SELECT count(*) FROM mg_metrics WHERE start_timestamp != 0 AND matches = 6");
$query->execute();
$mg_totalGamesFinished = $query->fetchColumn();
$query = $db->prepare("SELECT AVG(attempts) FROM mg_metrics WHERE start_timestamp != 0 AND matches = 6");
$query->execute();
$mg_averageAttempts = $query->fetchColumn();
$query = $db->prepare("SELECT count(*) FROM mg_metrics WHERE start_timestamp != 0 AND matches = 6 AND attempts > 10");
$query->execute();
$mg_attemptsOver10 = $query->fetchColumn();
$query = $db->prepare("SELECT count(*) FROM mg_metrics WHERE start_timestamp != 0 AND matches = 6 AND attempts <= 10");
$query->execute();
$mg_attemptsUnder10 = $query->fetchColumn();
*/
// Load the view
require ($cfg['server_path'].'/view/v-dashboard.php');
?>