Example #1
0
            return $string;
        }
        for ($i = $current; $i < $current + $config['news_per_page']; $i++) {
            if (isset($news[$i])) {
                ?>
					<table id="news">
						<tr class="yellow">
							<td class="zheadline"><?php 
                echo getClock($news[$i]['date'], true) . ' by <a href="characterprofile.php?name=' . $news[$i]['name'] . '">' . $news[$i]['name'] . '</a> - <b>' . TransformToBBCode($news[$i]['title']) . '</b>';
                ?>
</td>
						</tr>
						<tr>
							<td>
								<p><?php 
                echo TransformToBBCode(nl2br($news[$i]['text']));
                ?>
</p>
							</td>
						</tr>
					</table>
					<?php 
            }
        }
        echo '<select name="newspage" onchange="location = this.options[this.selectedIndex].value;">';
        for ($i = 0; $i < $page_amount; $i++) {
            if ($i == $page) {
                echo '<option value="index.php?page=' . $i . '" selected>Page ' . $i . '</option>';
            } else {
                echo '<option value="index.php?page=' . $i . '">Page ' . $i . '</option>';
            }
Example #2
0
                                }
                                ?>
						<br>
						Vocation: <?php 
                                echo vocation_id_to_name($post_data['vocation']);
                                ?>
<br>
						Level: <?php 
                                echo $post_data['level'];
                                ?>
<br><br></span>
						</td>

								<td valign="top">
									<p><?php 
                                echo nl2br(TransformToBBCode($post['text']));
                                ?>
</p>
								</td>
							</tr>
							<tr <?php 
                                border_class($bordercolor);
                                ?>
 height="30px">
								<td valign="top">
									<span style="font-size:75%;"><?php 
                                echo getClock($post['created'], true);
                                ?>
</span>
								</td>
								<td  align="right">