?><form method="post" action="<?php echo basename($_SERVER["PHP_SELF"]); ?>"><div>
<input type="hidden" name="form_submited" value="true" />
<input type="hidden" name="action" value="<?php echo $action; ?>" />
<?php if ($action=="edit") { ?><input type="hidden" name="entry_uniqid" value="<?php echo $entry_uniqid; ?>" /><input type="hidden" name="time" value="<?php echo $time; ?>" /><?php } ?>
<table border="0" cellpadding="3" cellspacing="0">
<tr>
<td><b><?php echo $name_marking; ?></b></td>
<td><input type="text" name="name" value="<?php if (isset($name)) echo htmlspecialchars(stripslashes($name)); else echo ""; ?>" size="40" maxlength="<?php echo $name_maxlength; ?>" /></td>
</tr>
<tr>
<td><b><?php echo $email_marking; ?></b></td>
<td><input type="text" name="email" value="<?php if (isset($email)) echo htmlspecialchars(stripslashes($email)); else echo ""; ?>" size="40" maxlength="<?php echo $email_maxlength; ?>" /> <span><?php echo $optional_marking; ?></span></td>
</tr>
<tr>
<td><b><?php echo $hp_marking; ?></b></td>
<td><input type="text" name="hp" value="<?php if (isset($hp)) echo htmlspecialchars(stripslashes($hp)); else echo ""; ?>" size="40" maxlength="<?php echo $hp_maxlength; ?>" /> <span><?php echo $optional_marking; ?></span></td>
</tr>
<tr>
<td><b><?php echo $place_marking; ?></b></td>
<td><input type="text" name="place" value="<?php if (isset($place)) echo htmlspecialchars(stripslashes($place)); else echo ""; ?>" size="40" maxlength="<?php echo $place_maxlength; ?>" /> <span><?php echo $optional_marking; ?></span></td>
</tr>
<tr>
<td colspan="2"><br />
<textarea name="text" cols="70" rows="5"><?php if (isset($text)) echo htmlspecialchars(stripslashes($text)); else echo ""; ?></textarea></td>
</tr>
<?php if ($action=="edit") {
?><tr>
<td colspan="2"><b><?php echo $comment_marking; ?></b><br />
<textarea name="comment" cols="70" rows="5"><?php if (isset($comment) && substr($comment,0,3)!="xxx") echo htmlspecialchars(stripslashes($comment)); ?></textarea></td>
</tr>
<?php } ?>
<tr>
<td colspan="2"><br /><input type="submit" name="entry" value="<?php echo $submit_button; ?>" /> <input type="submit" name="preview" value="<?php echo $preview_button; ?>" /></td>
<td> </td>
</tr>
</table>
</div></form>
<?php if ($bbcode==true) { ?><p ><br /><?php echo $bbcode_exp; ?></p><?php }
break;
case "login form":
?>
<form action="<?php echo basename($_SERVER["PHP_SELF"]); ?>" method="post">
<p><b><?php echo $password_marking; ?></b><br /><input type="password" name="login_password" /> <input type="submit" value="<?php echo $log_in_marking; ?>" /></p>
</form>
<?php
break;
case "login failed":
?><p class="caution"><?php echo $password_wrong_marking; ?></p><?php
break;
case "delete ask if sure":
?><p class="caution"><?php echo $delete_entry_marking; ?></p><p><?php echo str_replace("[name]",htmlspecialchars(stripslashes(urldecode($_POST['delete_name']))),$delete_entry_conf_marking); ?></p>
<form method="post" action="<?php echo basename($_SERVER["PHP_SELF"]); ?>"><p><input type="hidden" name="entry_uniqid_del_ok" value="<?php echo $_POST['entry_uniqid']; ?>" /><input type="submit" name="del_entry_ok" value="<?php echo $delete_conf_button; ?>" /></p><?php
break;
case "no authorization":
?><p class="caution"><?php echo $no_authorisation_marking; ?></p><p>[ <a href="<?php echo basename($_SERVER["PHP_SELF"]); ?>?action=login"><?php echo $log_in_marking; ?></a> ]</p><?php
break;
}
################################################################################
// End of HTML
// Here you could include a footer --> include("footer.html");
################################################################################
?><p " style="text-align: right;"><a href="<?php echo basename($_SERVER["PHP_SELF"]); ?>?action=login">Admin login</a> </body>
</html>