本文整理匯總了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