EOF; return $return; } function pageFooter() { /* If the footer is removed from the page, please link to TinyIB somewhere on the site. */ return << - futaba + futallaby + tinyib - EOF; } function supportedFileTypes() { $types_allowed = array(); if (TINYIB_PIC) { array_push($types_allowed, "GIF", "JPG", "PNG"); } if (TINYIB_SWF) { array_push($types_allowed, "SWF"); } if (TINYIB_WEBM) { array_push($types_allowed, "WebM"); } $i = 0; $types_count = count($types_allowed); $types_formatted = ""; foreach ($types_allowed as $type) { if (++$i >= $types_count - 1) { $types_formatted .= $type . ($i == $types_count - 1 && $types_count > 1 ? " and " : ""); } else { $types_formatted .= $type . ", "; } } if ($types_formatted != "") { return "Supported file type" . ($types_count != 1 ? "s are " : " is ") . $types_formatted . "."; } return $types_formatted; } function buildPost($post, $res) { $return = ""; $threadid = ($post['parent'] == TINYIB_NEWTHREAD) ? $post['id'] : $post['parent']; $postlink = ($res == TINYIB_RESPAGE) ? ($threadid . '.html#' . $post['id']) : ('res/' . $threadid . '.html#' . $post['id']); if (!isset($post["omitted"])) { $post["omitted"] = 0; } if ($post["parent"] != TINYIB_NEWTHREAD) { $return .= << ¨ EOF; } elseif ($post["file"] != "") { $return .= <<File: ${post["file"]}–(${post["file_size_formatted"]}, ${post["image_width"]}x${post["image_height"]}, ${post["file_original"]})
${post[ EOF; } $return .= <<