Update networktool.php

This commit is contained in:
Namhyeon Go 2018-04-11 01:27:55 +09:00 committed by GitHub
parent 9f499c8384
commit 3b6b1985fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,16 +1,23 @@
<?php
/**
* @file gnuboard.php
* @date 2018-04-11
* @author Go Namhyeon <gnh1201@gmail.com>
* @brief Network Helper
*/
if(!function_exists("get_network_event")) {
function get_network_event() {
return array(
"time" => date("Y-m-d H:i:s"),
"server" => $this->getServerAddr(),
"hostname" => $this->getHostname(),
"client" => $this->getClientAddr(),
"agent" => getenv('HTTP_USER_AGENT'),
"referrer" => getenv('HTTP_REFERER'),
"query" => getenv('QUERY_STRING'),
"server" => get_network_client_addr(),
"hostname" => get_network_hostname,
"client" => get_network_client_addr,
"agent" => getenv("HTTP_USER_AGENT"),
"referrer" => getenv("HTTP_REFERER"),
"query" => getenv("QUERY_STRING"),
"self" => $_SERVER['PHP_SELF'],
"method" => $_SERVER['REQUEST_METHOD']
"method" => $_SERVER['REQUEST_METHOD'],
);
}
}