id = $mid; $res = mysql_query("SELECT * FROM comments WHERE `Id`='$mid'"); $row = mysql_fetch_array($res); $this->body = nl2br(trim(htmlentities(stripslashes($row['Body'])))); $this->author = strip_tags(stripslashes($row['Name'])); $this->date = strip_tags(stripslashes($row['Posted'])); $this->section = strip_tags(stripslashes($row['Section'])); $this->itemid = strip_tags(stripslashes($row['ItemId'])); $this->linecount = strip_tags(stripslashes($row['LineCount'])); $this->level = $level; $res = mysql_query("SELECT * FROM comments WHERE `ParentId`='$mid' AND `Visible`='1' ORDER BY `Posted` ASC"); while($row=mysql_fetch_array($res)) { $this->children[] = new Comment($row['Id'],$level+1); } } public function draw() { global $lang; echo("id}\">"); if($this->linecount == 1) { echo("
level)."px;\"> {$this->author} {$this->body} id}').style.display='block'; return false;\">Reply id}\">Permalink
id}\">
section}&i={$this->itemid}&pid={$this->id}\"> {$lang[37]}:
{$lang[38]}:
"); } else { echo("
level)."px;\"> {$this->author} - {$this->date} {$this->body}
id}').style.display='block'; return false;\">Reply id}\">Permalink
id}\">
section}&i={$this->itemid}&pid={$this->id}\"> {$lang[37]}:
{$lang[38]}:
"); } foreach($this->children as $child) { $child->draw(); } } } ?>