2024-03-06 08:33:44 +01:00
|
|
|
<form action="index.php" method="POST">
|
|
|
|
<div>
|
|
|
|
<input type="submit" name="home" value="home" accesskey="h">
|
|
|
|
<input type="submit" name="save" value="save" accesskey="s">
|
2024-09-30 10:08:36 +02:00
|
|
|
<input type="submit" name="preview" value="preview" accesskey="p" formtarget="_blank">
|
2024-03-12 12:12:13 +01:00
|
|
|
<input type="submit" name="links" value="links" accesskey="l">
|
2024-03-12 14:09:49 +01:00
|
|
|
<input type="submit" name="stats" value="stats" accesskey="i">
|
|
|
|
<input type="submit" name="delete" value="delete" accesskey="d">
|
2024-03-15 15:11:51 +01:00
|
|
|
<input hidden name="lastchanged" value="<? echo $lastchanged; ?>">
|
2024-03-12 14:09:49 +01:00
|
|
|
<?php
|
|
|
|
if (isset($_POST['stats']))
|
|
|
|
{
|
|
|
|
echo '<div>
|
2024-10-01 11:07:01 +02:00
|
|
|
<span class="grey">' . $lines . ' lines |</span>
|
|
|
|
<span class="grey">' . $words . ' words |</span>
|
|
|
|
<span class="grey">' . $chars . ' chars</span>
|
2024-03-12 14:09:49 +01:00
|
|
|
</div>';
|
|
|
|
}
|
|
|
|
else if (isset($_POST['links']))
|
2024-03-12 12:12:13 +01:00
|
|
|
{
|
|
|
|
echo linksdiv($content);
|
|
|
|
}?>
|
|
|
|
<div><input autocomplete="off" class="title" name="title" value="<? echo $title; ?>"></div>
|
2024-03-06 08:33:44 +01:00
|
|
|
</div>
|
|
|
|
<div class="editor">
|
|
|
|
<textarea rows="<? echo $rows; ?>" autofocus name="content" spellcheck="false"><? echo $content; ?></textarea>
|
|
|
|
</div>
|
|
|
|
<input hidden name="previoustitle" value="<? echo $title; ?>">
|
|
|
|
</form>
|