} if (strlen($b) > 13 || !isset($b)) { $b = "?"; } if (strlen($c) > 13 || !isset($c)) { $c = "?"; } header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); if (file_exists("./images/All/" . $a . ".png")) { $image = "All/" . $a . ".png"; } elseif (file_exists("./images/AllToday/" . $b . ".png")) { $image = "AllToday/" . $b . ".png"; } elseif (file_exists("./images/UniqueToday/" . $c . ".png")) { $image = "UniqueToday/" . $c . ".png"; } else { $image = "counter.png"; } header("Content-type: image/png" . chr(10) . chr(10)); $image = ImageCreateFromPNG("./images/" . $image); $color1 = ImageColorAllocate($image, $manlix['colors'][111], $manlix['colors'][111], $manlix['colors'][111]); $color2 = ImageColorAllocate($image, $manlix['colors'][222], $manlix['colors'][222], $manlix['colors'][222]); $color3 = ImageColorAllocate($image, $manlix['colors'][322], $manlix['colors'][333], $manlix['colors'][333]); ImageString($image, 1, 2, 2, addSpace(manlix_normal_numeric("{$a}")), $color1); ImageString($image, 1, 2, 13, addSpace(manlix_normal_numeric("{$b}")), $color2); ImageString($image, 1, 2, 21, addSpace(manlix_normal_numeric("{$c}")), $color3); ImagePNG($image); }
function addWeeks($max) { global $LANG_TXT_WEEKS, $LANG_TXT_DAYS; echo '<center>'; addText($LANG_TXT_WEEKS); addSpace(5); $idx = 0; $from = strtotime('last monday', time()); for ($i = 0; $i < $max; $i++) { addLink('from', gmdate("m/d", $from), 3); $idx += 1; if ($idx == 10) { echo '<br>'; $idx = 0; } $from = strtotime('last monday', $from); } echo '</center>'; echo '<center>'; addText($LANG_TXT_DAYS . ":"); addSpace(5); $from = strtotime('last monday', time()); $idx = 0; for ($i = 0; $i < 7; $i++) { addLink('fromday', gmdate("d", $from), 3); $idx += 1; if ($idx == 10) { echo '<br>'; $idx = 0; } $from = strtotime('tomorrow', $from); } echo '</center>'; }
addSpace(5); addLink('', $_GET['dashboard'], true, $LANG_TEXT_BACK_TO_DASHBOARD); addLink('type', 'line2', true, $LANG_TXT_AVERAGE_BY_PLAN); addLink('type', 'linehour', true, $LANG_TXT_AVEGARE_BY_HOUR); } if ($_GET['type'] == 'lineSonda') { echo '<div id="item1"></div>'; $chart1 = new Highchart(); $chart1 = GraphSonda($chart1, "item1", $_GET['idplan'], $_GET['iditem'], $_GET['from'], $_GET['avg'], $_GET['tag']); renderChart($chart1, "item1"); addFromLink(); addAverageLink(); addTagLink('None'); addQoE(true); addFilterLink(array('None', 'P5', 'P95', 'Peak Hour', 'Off Peak Hour', '> 0', '< 1.5x', '< 2.0x', '< 3.0x')); addSpace(5); addLink('type', 'line2', true, $LANG_TEXT_BACK_TO_AVERAGE_BY_PLAN); //if ($_GET['dashboard'] == 'Video' || $_GET['dashboard'] == 'Ping' || $_GET['dashboard'] == 'File' || $_GET['dashboard'] == 'YouTube') addLink('type','group',false,'Group of Similar Test for Plan ' . $_GET['plan']); } } else { resetParameter('from'); addTagLink('None', true, $_GET['tag']); addFilterLink(array('None', 'P5', 'P95', '> 0', '< 1.5x', '< 2.0x', '< 3.0x')); Dashboard($_GET['dashboard'], $_GET['plan'], $_GET['tag'], $_POST['move']); } echo '<br><small>'; if ($_SESSION['cacheFull']) { echo '<center>' . $LANG_TXT_DATA_FROM_CACHE . '</center>'; } elseif ($_SESSION['cachePartial']) { echo '<center>' . $LANG_TXT_SOME_DATA_FROM_CACHE . '</center>'; } else {