$container = array();
    $container['url'] = 'skeleton.php';
    $container['body'] = 'alliance_message_view.php';
    $container['alliance_id'] = $alliance_id;
    for ($j = 0; $j < $i; $j++) {
        $container['thread_index'] = $j;
        $container['thread_ids'] = $thread_ids;
        $container['thread_topics'] = $thread_topics;
        $container['thread_replies'] = $thread_replies;
        $container['alliance_eyes'] = $alliance_eyes;
        echo $threads[$j]['head'];
        print_link($container, stripslashes($thread_topics[$j]));
        echo $threads[$j]['tail'];
    }
    echo '</table></div><br>';
    $db2->free();
    $db->free();
}
if ($mbWrite || in_array($player->account_id, $HIDDEN_PLAYERS)) {
    echo '<h2>Create Thread</h2><br>';
    $container = array();
    $container['url'] = 'alliance_message_add_processing.php';
    $container['alliance_id'] = $alliance_id;
    $form = create_form($container, 'New Thread');
    echo $form['form'];
    echo '
	<table cellspacing="0" cellpadding="0" class="nobord nohpad">
		<tr>
			<td class="top">Topic:&nbsp;</td>
			<td class="mb"><input type="text" name="topic" size="30"></td>
			<td style="text-align:left;">For Alliance Eyes Only:<input id="InputFields" name="allEyesOnly" type="checkbox"></td>