add version, fix .del in index
This commit is contained in:
parent
1baf2f76c9
commit
0ba895aad6
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
error_reporting(E_ALL);
|
||||
date_default_timezone_set('Europe/Paris');
|
||||
require 'settings.php';
|
||||
|
||||
function cleanstring($string)
|
||||
|
|
|
@ -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>
|
8
note.php
8
note.php
|
@ -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 . ' ' . $words . ' ' . $chars . ' ' . $title . '.md</div>';
|
||||
echo linksdiv($content);
|
||||
?>
|
||||
<div class="grey">
|
||||
<?php echo '' . $lines . ' ' . $words . ' ' . $chars . ' ' . $title . '.md ' . date('Y-m-d H.i.s', $lastchanged); ?>
|
||||
</div>
|
||||
<?php echo linksdiv($content); ?>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue