예제 #1
0
파일: LogIp.php 프로젝트: DBezemer/server
 public static function get()
 {
     if (self::$_ip === null) {
         try {
             self::$_ip = (string) infraRequestUtils::getRemoteAddress();
         } catch (Exception $ex) {
             self::$_ip = '';
         }
     }
     return self::$_ip;
 }
예제 #2
0
 public function __toString()
 {
     if (self::$_ip === null) {
         self::$_ip = (string) infraRequestUtils::getRemoteAddress();
     }
     return self::$_ip;
 }