<?php

include_once '../functions.php';
include_once '../db_connect.php';
if (isset($_POST["message_id"])) {
    echo json_encode(getBoardMessageReplies($mysqli, convert_uudecode($_POST["message_id"])));
} else {
    echo json_encode("Missing POST Variables");
}
Exemplo n.º 2
0
		<ul>
			<?php 
function isMemberCached($id, $members)
{
    foreach ($members as $member) {
        if ($member["id"] == $id) {
            return $member;
        }
    }
    return false;
}
foreach ($messages as $i => $message) {
    $image = $message["author"]["image"];
    $encodedId = convert_uuencode($message["id"]);
    $name = $message["author"]["firstName"] . " " . $message["author"]["lastName"];
    $replies = getBoardMessageReplies($mysqli, $message["id"]);
    ?>
				<li id="message_<?php 
    echo $i;
    ?>
" class="message" onclick="toggleReplyVisibility('#board_reply_form_<?php 
    echo $i;
    ?>
', '#reply_note_<?php 
    echo $i;
    ?>
');">
					<h3><?php 
    echo $message["title"];
    ?>
</h3>