add version, fix .del in index
This commit is contained in:
parent
1baf2f76c9
commit
0ba895aad6
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -60,4 +64,4 @@
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</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>
|
<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 . ' ' . $words . ' ' . $chars . ' ' . $title . '.md</div>';
|
<?php echo '' . $lines . ' ' . $words . ' ' . $chars . ' ' . $title . '.md ' . date('Y-m-d H.i.s', $lastchanged); ?>
|
||||||
echo linksdiv($content);
|
</div>
|
||||||
?>
|
<?php echo linksdiv($content); ?>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue