示例#1
0
 function __construct()
 {
     $this->online = $this->online == 'Y';
     $this->away = $this->away == 'Y';
     $this->realname = htmlentities($this->realname, ENT_COMPAT, "UTF-8");
     $this->swhois = htmlentities($this->swhois, ENT_COMPAT, "UTF-8");
     $this->away_msg = htmlentities($this->away_msg, ENT_COMPAT, "UTF-8");
     $this->client_html = $this->client ? Magirc::irc2html($this->client) : null;
     $this->client = htmlentities($this->client, ENT_COMPAT, "UTF-8");
     $this->quit_msg = htmlentities($this->quit_msg, ENT_COMPAT, "UTF-8");
     $this->service = $this->service == 'Y';
     $this->bot = $this->hasMode(Protocol::bot_mode);
     if (filter_var($this->hostname, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) {
         $this->ipv6 = true;
     }
     if (!empty($this->vhost)) {
         $this->hostname = $this->vhost;
     } elseif (Protocol::host_cloaking && !empty($this->hostname_cloaked)) {
         $this->hostname = $this->hostname_cloaked;
     }
     if (!Protocol::oper_hidden_mode || !$this->hasMode(Protocol::oper_hidden_mode)) {
         $this->helper = $this->hasMode(Protocol::helper_mode);
     }
     // Get the server country if user country is local
     if ($this->country_code == 'local' && $this->server_country_code) {
         $this->country = $this->server_country;
         $this->country_code = $this->server_country_code;
     }
 }
 function __construct()
 {
     $this->DT_RowId = $this->channel;
     $this->topic_html = $this->topic ? Magirc::irc2html($this->topic) : null;
     $this->topic = htmlentities($this->topic, ENT_COMPAT, "UTF-8");
 }
示例#3
0
 function __construct()
 {
     $this->online = $this->online == 'Y';
     $this->motd_html = $this->motd ? Magirc::irc2html($this->motd) : null;
     $this->motd = htmlentities($this->motd, ENT_COMPAT, "UTF-8");
 }