add version, fix .del in index

This commit is contained in:
quenousimporte 2024-10-10 10:22:32 +02:00
parent 1baf2f76c9
commit 0ba895aad6
3 changed files with 10 additions and 5 deletions

View File

@ -1,5 +1,6 @@
<?php
error_reporting(E_ALL);
date_default_timezone_set('Europe/Paris');
require 'settings.php';
function cleanstring($string)

View File

@ -39,6 +39,10 @@
foreach($_SESSION['index'] as $path)
{
$name = basename($path);
if (str_ends_with($name, '.del'))
{
continue;
}
if ($filter)
{
@ -60,4 +64,4 @@
?>
</div>
</body>
</html>
</html>

View File

@ -103,10 +103,10 @@
<textarea rows="<?php echo $rows; ?>" autofocus name="content" spellcheck="false"><?php echo $content; ?></textarea>
</div>
<input hidden name="previoustitle" value="<?php echo $title; ?>">
<?php
echo '<div class="grey">' . $lines . '&nbsp;' . $words . '&nbsp;' . $chars . '&nbsp;' . $title . '.md</div>';
echo linksdiv($content);
?>
<div class="grey">
<?php echo '' . $lines . '&nbsp;' . $words . '&nbsp;' . $chars . '&nbsp;' . $title . '.md&nbsp;' . date('Y-m-d H.i.s', $lastchanged); ?>
</div>
<?php echo linksdiv($content); ?>
</form>
</div>