当前位置: 首页>>代码示例>>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;未经允许,请勿转载。