// Obtain the CPU information of the computer
Function OnlyU () {$ a =; $ B = array (); if (function_exists (exec) {if (mailto :! @ Exec (/all ", $ B) {return false ;}} elseif (function_exists (system) {ob_start (); if (mailto :! @ System (/all ") {return false;} else {} $ B = ob_get_contents (); ob_end_clean (); $ B = explode (" ", $ B ); // print_r ($ B); array_pop ($ B);} else {return false;} $ all = sizeof ($ B); for ($ I = 0; $ I <$ all; $ I ++) {if (strpos ($ B [$ I], "Description ")! = False) {if (strpos ($ B [$ I + 1], "Physical Address ")! = False) {$ c = explode (":", $ B [$ I + 1]); $ a = trim ($ c [1]); break ;}}// End for return empty ($ )? False: $ a;} // End function OnlyU // obtain the nic mac address function getMAC () {@ exec ("ipconfig/all", $ array ); for ($ Tmpa; $ Tmpa <count ($ array); $ Tmpa ++) {if (eregi ("Physical", $ array [$ Tmpa]) {$ mac = explode (":", $ array [$ Tmpa]); return $ mac [1] ;}}