added more to the board generating functions.
This commit is contained in:
parent
6d0db89540
commit
31cb49b874
|
@ -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>';
|
||||
|
|
|
@ -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);
|
||||
?>
|
Loading…
Reference in New Issue