Compare commits

...

2 Commits

Author SHA1 Message Date
quenousimporte 4a3061fccd fix attempt when session is lost 2024-03-13 13:17:31 +01:00
quenousimporte cc1f09be6b change stats display 2024-03-13 13:17:08 +01:00
2 changed files with 4 additions and 4 deletions

View File

@ -156,7 +156,7 @@
echo '<div>';
if (!isset($_SESSION['index']) || isset($_GET['reindex']))
if (!isset($_SESSION['index']) || isset($_GET['reindex']) || empty($_SESSION['index']))
{
$files = glob($dir . '/*');
usort($files, function($a, $b)

View File

@ -10,9 +10,9 @@
if (isset($_POST['stats']))
{
echo '<div>
<span class="grey">' . $lines . ' lines</span>
<span class="grey">'. $words . ' words</span>
<span class="grey">' . $chars . ' chars</span>
<span class="grey">lines:' . $lines . '</span>
<span class="grey">words:'. $words . '</span>
<span class="grey">chars:' . $chars . '</span>
</div>';
}
else if (isset($_POST['links']))