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 <?php
error_reporting(E_ALL); error_reporting(E_ALL);
date_default_timezone_set('Europe/Paris');
require 'settings.php'; require 'settings.php';
function cleanstring($string) function cleanstring($string)

View File

@ -39,6 +39,10 @@
foreach($_SESSION['index'] as $path) foreach($_SESSION['index'] as $path)
{ {
$name = basename($path); $name = basename($path);
if (str_ends_with($name, '.del'))
{
continue;
}
if ($filter) if ($filter)
{ {

View File

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