| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public function __construct($user, $ip_addr, $forwarded_for = false) |
||
| 10 | { |
||
| 11 | parent::__construct($user); |
||
| 12 | $this->ip_addr = $ip_addr; |
||
| 13 | if($forwarded_for !== false) |
||
| 14 | { |
||
| 15 | $this->forwarded_for = 'Behind Proxy: '.$forwarded_for; |
||
| 16 | } |
||
| 17 | else |
||
| 18 | { |
||
| 19 | $this->forwarded_for = ''; |
||
| 20 | } |
||
| 21 | $this->addToAddress($user->mail, $user->displayName); |
||
| 22 | } |
||
| 23 | |||
| 50 |