本文整理汇总了PHP中functions::getIPDetails方法的典型用法代码示例。如果您正苦于以下问题:PHP functions::getIPDetails方法的具体用法?PHP functions::getIPDetails怎么用?PHP functions::getIPDetails使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类functions
的用法示例。
在下文中一共展示了functions::getIPDetails方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
<?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"/>
示例2: header
<?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