tinyib/inc/json.php

16 lines
279 B
PHP

<?php
function buildThreadsJSON() {
$output = '';
$threads = allThreads();
$pages = ceil(count($threads) / TINYIB_THREADSPERPAGE) - 1;
foreach ($threads as $thread) {
$replies = postsInThreadByID($thread['id']);
$output .= $thread['id'] . "\n";
}
return $output;
}