added more to the board generating functions.

This commit is contained in:
hayden 2019-07-02 23:05:14 -05:00
parent 6d0db89540
commit 31cb49b874
2 changed files with 42 additions and 0 deletions

View File

@ -31,6 +31,34 @@ function display_board(array $settings) {
">
<h1><?php echo '/' . $settings['code'] . '/ - ' . $settings['title'];?></h1>
<p><?php echo $settings['splash'][array_rand($settings['splash'])]; ?></p>
<hr>
<form action="login.php" method="post" class="input-form">
<table>
<tr>
<td><b>title:</b></td>
<td>
<input name="title" type="text" required>
</td>
</tr>
<tr>
<td><b>message:</b></td>
<td>
<textarea name="message" cols="30" rows="6" wrap="soft" tabindex="4" maxlength="30:"></textarea>
</td>
</tr>
<tr>
<td><b>file:</b></td>
<td>
<input name="upload" type="file" required>
</td>
</tr>
</table>
<br>
<button type="submit">post</button>
</form>
<hr>
<b>(<a href="#">archive</a>) (<a href="#">catalog</a>)</b>
<hr>
<?php
echo '</div>';

14
mc/index.php Normal file
View File

@ -0,0 +1,14 @@
<?php
$path = $_SERVER['DOCUMENT_ROOT'];
require_once($path . '/core/board.php');
$settings = array(
'title' => 'minecraft',
'code' => 'mc',
'splash' => array(
'block by block'
)
);
display_board($settings);
?>