當前位置: 首頁>>代碼示例>>PHP>>正文


PHP functions::getIPDetails方法代碼示例

本文整理匯總了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"/>
開發者ID:shashankkulal,項目名稱:iisc-network-monitor,代碼行數:31,代碼來源:link_status.php

示例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 
開發者ID:shashankkulal,項目名稱:iisc-network-monitor,代碼行數:31,代碼來源:graphs.php


注:本文中的functions::getIPDetails方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。