get_value($Type.'_edits_'.$PostID); if(!is_array($Edits)) { $DB->query("SELECT ce.EditUser, um.Username, ce.EditTime, ce.Body FROM comments_edits AS ce JOIN users_main AS um ON um.ID=ce.EditUser WHERE Page = '".$Type."' AND PostID = ".$PostID." ORDER BY ce.EditTime DESC"); $Edits = $DB->to_array(); $Cache->cache_value($Type.'_edits_'.$PostID, $Edits, 0); } if($Depth != 0) { list($UserID, $Username, $Time, $Body) = $Edits[$Depth - 1]; } else { //Not an edit, have to get from the original switch($Type) { case 'forums' : //Get from normal forum stuffs $DB->query("SELECT fp.AuthorID, um.Username, fp.AddedTime, fp.Body FROM forums_posts AS fp JOIN users_main AS um ON um.ID=fp.AuthorID WHERE fp.ID = ".$PostID); list($UserID, $Username, $Time, $Body) = $DB->next_record(); break; case 'collages' : case 'requests' : case 'torrents' : $DB->query("SELECT c.AuthorID, um.Username, c.AddedTime, c.Body FROM ".$Type."_comments AS c JOIN users_main AS um ON um.ID=c.AuthorID WHERE c.ID = ".$PostID); list($UserID, $Username, $Time, $Body) = $DB->next_record(); break; } } ?> full_format($Body)?>

« Original Post 0) { ?> »