<?php session_start(); include "config/class_lib.php"; if (!isset($_SESSION['user_uname'])) { header("location:login.php"); } $obj = new functions(); if (isset($_GET['ip'])) { $current_IP = $obj->getIPDetails($_GET['ip']); $cur_IPD = $obj->getLSDelay($_GET['ip']); $belowDelay = $obj->getChildAverage($_GET['ip']); } else { $current_IP = $obj->getIPDetails("10.16.25.1"); $cur_IPD = $obj->getLSDelay("10.16.25.1"); $belowDelay = $obj->getChildAverage("10.16.25.1"); } ?> <!DOCTYPE html> <html lang="en"> <head> <!-- META SECTION --> <title>Antares IISc</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="icon" href="favicon.ico" type="image/x-icon" /> <!-- END META SECTION --> <!-- CSS INCLUDE --> <link rel="stylesheet" type="text/css" id="theme" href="css/theme-default.css"/>
<?php session_start(); include "config/class_lib.php"; if (!isset($_SESSION['user_uname'])) { header("location:login.php"); } if (!isset($_POST['ip'])) { header("location:home.php"); } else { $ip = $_POST['ip']; } $obj = new functions(); $ipdetails = $obj->getIPDetails($ip); ?> <!DOCTYPE html> <html lang="en"> <head> <!-- META SECTION --> <title>Antares IISc</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="icon" href="favicon.ico" type="image/x-icon" /> <!-- END META SECTION --> <!-- CSS INCLUDE --> <link rel="stylesheet" type="text/css" id="theme" href="css/theme-default.css"/> <!-- EOF CSS INCLUDE --> <?php