class GetMacAddr { var $return_array = array(); // 返回带有MAC地址的字串数组 var $mac_addr; function GetMacAddr($os_type) { switch (strtolower($os_type)) { case "linux": $this -> forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
GetMacAddr { var $return_array = array(); // 返回带有MAC地址的字串数组 var $mac_addr; function GetMacAddr($os_type) { switch (strtolower($os_type)) { case "linux": $this -> forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
var $return_array = array(); // 返回带有MAC地址的字串数组 var $mac_addr; function GetMacAddr($os_type) { switch (strtolower($os_type)) { case "linux": $this -> forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$return_array = array(); // 返回带有MAC地址的字串数组 var $mac_addr; function GetMacAddr($os_type) { switch (strtolower($os_type)) { case "linux": $this -> forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
= array(); // 返回带有MAC地址的字串数组 var $mac_addr; function GetMacAddr($os_type) { switch (strtolower($os_type)) { case "linux": $this -> forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
array(); // 返回带有MAC地址的字串数组 var $mac_addr; function GetMacAddr($os_type) { switch (strtolower($os_type)) { case "linux": $this -> forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
(); // 返回带有MAC地址的字串数组 var $mac_addr; function GetMacAddr($os_type) { switch (strtolower($os_type)) { case "linux": $this -> forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
// 返回带有MAC地址的字串数组 var $mac_addr; function GetMacAddr($os_type) { switch (strtolower($os_type)) { case "linux": $this -> forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
var $mac_addr; function GetMacAddr($os_type) { switch (strtolower($os_type)) { case "linux": $this -> forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$mac_addr; function GetMacAddr($os_type) { switch (strtolower($os_type)) { case "linux": $this -> forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
; function GetMacAddr($os_type) { switch (strtolower($os_type)) { case "linux": $this -> forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
function GetMacAddr($os_type) { switch (strtolower($os_type)) { case "linux": $this -> forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
GetMacAddr($os_type) { switch (strtolower($os_type)) { case "linux": $this -> forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$os_type) { switch (strtolower($os_type)) { case "linux": $this -> forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
) { switch (strtolower($os_type)) { case "linux": $this -> forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
switch (strtolower($os_type)) { case "linux": $this -> forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
(strtolower($os_type)) { case "linux": $this -> forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
strtolower($os_type)) { case "linux": $this -> forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
($os_type)) { case "linux": $this -> forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$os_type)) { case "linux": $this -> forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
)) { case "linux": $this -> forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
case "linux": $this -> forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
"linux": $this -> forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
: $this -> forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$this -> forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
-> forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
break; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
; case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
case "solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
"solaris": break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
: break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
break; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
; case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
case "unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
"unix": break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
: break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
break; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
; case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
case "aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
"aix": break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
: break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
break; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
; default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
default: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
: $this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$this -> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
-> forWindows(); break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
break; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
; } $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
} $temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$temp_array = array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
= array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
array(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
(); foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
foreach ($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
($this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$this -> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
-> return_array as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
as $value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$value) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
) { if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
if ( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
( preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
"/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
. "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
"[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
. "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
"[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
. "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
"[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
. "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
"[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
. "[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
"[0-9a-f][0-9a-f]/i", $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
, $value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$value, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
, $temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$temp_array)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
)) { $this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$this -> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
-> mac_addr = $temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$temp_array[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
[0]; break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
break; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
; } } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
} } unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
} unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
unset($temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$temp_array); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
); return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
return $this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$this -> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
-> mac_addr; } function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
} function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
function forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
forWindows() { @exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
@exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
exec("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
("ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
"ipconfig /all", $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
, $this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$this -> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
-> return_array); if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
if ($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
($this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$this -> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
-> return_array) return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
return $this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$this -> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
-> return_array; else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
else { $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
{ $ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$ipconfig = $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
= $_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$_SERVER["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
["WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
"WINDIR"] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
] . "system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
"system32ipconfig.exe"; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
; if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
if (is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
(is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
is_file($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
($ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$ipconfig)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
)) @exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
@exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
exec($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
($ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$ipconfig . " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
. " /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
" /all", $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
, $this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$this -> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
-> return_array); else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
else @exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
@exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
exec($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
($_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$_SERVER["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
["WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
"WINDIR"] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
] . "systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
"systemipconfig.exe /all", $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
, $this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$this -> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
-> return_array); return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
return $this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$this -> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
-> return_array; } } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
} } function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
} function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
function forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
forLinux() { @exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
@exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
exec("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
("ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
"ifconfig -a", $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
, $this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$this -> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
-> return_array); return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
return $this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$this -> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
-> return_array; } } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
} } // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
} // 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
// 方法使用$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
$mac = new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
= new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
new GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
GetMacAddr(PHP_OS);echo $mac -> mac_addr; ?>
echo $mac -> mac_addr; ?>
$mac -> mac_addr; ?>
-> mac_addr; ?>
?>
上一篇 php中mysqli_errno和mysqli_error的区别
下一篇 PHP开发高可用高安全APP后端服务
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号