Example #1
0
 public function __construct()
 {
     $this->timestamp = time();
     $this->ip = $_SERVER['REMOTE_ADDR'];
     if (\DF\Auth::isLoggedIn()) {
         $user = \DF\Auth::getLoggedInUser();
         $this->user = $user;
     }
 }
Example #2
0
 public function __construct()
 {
     $this->ip = self::getIp();
     $this->timestamp = time();
     if (\DF\Auth::isLoggedIn()) {
         $user = \DF\Auth::getLoggedInUser();
         $this->user = $user;
     }
 }