ua() public static method

Returns the user agent string of the current visitor
public static ua ( ) : string
return string
コード例 #1
0
ファイル: s.php プロジェクト: kgchoy/main-portfolio-website
 /**
  * Generates a fingerprint from the user agent string
  * 
  * @return string
  */
 public static function fingerprint()
 {
     if (!r::cli()) {
         return sha1(Visitor::ua() . (ip2long($_SERVER['REMOTE_ADDR']) & ip2long('255.255.0.0')));
     } else {
         return '';
     }
 }