Compare commits

..

No commits in common. "d96285fe50f9f4ec1342e8d7f64b2bb7cc12d080" and "bf1c9cc9d9f4242586ae5275b1953dc45a6be4c1" have entirely different histories.

2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,6 @@
<form action="index.php" method="GET">
<div>
<input type="submit" name="home" value="home" accesskey="h">
<input type="submit" name="open" value="open" accesskey="o">
<input type="submit" name="search" value="search" accesskey="s">
<input type="submit" name="tags" value="tags" accesskey="t">

View File

@ -109,7 +109,10 @@
$content = file_get_contents($dir . '/' . $title);
}
$rows = max(20, substr_count($content, "\r\n")) * 2;
$lines = substr_count($content, "\r\n") + 1;
$words = $lines + substr_count($content, " ");
$rows = max(20, $lines) * 2;
$length = strlen($content);
require('note.php');
@ -137,6 +140,8 @@
}
echo '<br>';
}
echo '<span class="grey">' . $title . ' - ' . $now . ' - ' . $length . 'c - ' . $words . 'w - ' . $lines . 'l </span>';
}
else if ($nextpage == 'home')
{