$Post) { list($PostID, $AuthorID, $AddedTime, $Body, $EditedUserID, $EditedTime, $EditedUsername) = array_values($Post); list($AuthorID, $Username, $PermissionID, $Paranoia, $Artist, $Donor, $Warned, $Avatar, $Enabled, $UserTitle) = array_values(Users::user_info($AuthorID)); $JsonComments[] = array( 'postId' => (int) $PostID, 'addedTime' => $AddedTime, 'bbBody' => $Body, 'body' => $Text->full_format($Body), 'editedUserId' => (int) $EditedUserID, 'editedTime' => $EditedTime, 'editedUsername' => $EditedUsername, 'userinfo' => array( 'authorId' => (int) $AuthorID, 'authorName' => $Username, 'artist' => $Artist == 1, 'donor' => $Donor == 1, 'warned' => ($Warned != '0000-00-00 00:00:00'), 'avatar' => $Avatar, 'enabled' => ($Enabled == 2 ? false : true), 'userTitle' => $UserTitle ) ); } json_die("success", array( 'page' => (int) $Page, 'pages' => ceil($NumComments / TORRENT_COMMENTS_PER_PAGE), 'comments' => $JsonComments ));