Exemple #1
0
 public function __construct($serverid)
 {
     if (!is_numeric($serverid)) {
         die("Bad serverid");
     }
     parent::__construct();
     $this->serverid = $serverid;
     $this->servername = $this->getServerName();
     $this->mypath = $this->basepath . "IRC/showserver.php?serverid={$serverid}";
 }
Exemple #2
0
 public function __construct($logid)
 {
     parent::__construct();
     $this->mypath = $this->basepath . "IRC/showlog.php";
     $this->logid = $logid;
     $sql = "SELECT * FROM irc_logs WHERE logid = ";
     $sql .= $this->quote($this->logid, 'integer');
     $q = $this->query($sql);
     $row = $q->fetchrow();
     $this->logData = array('name' => $row[1], 'source' => $row[2], 'timestamp' => $row[3]);
 }