Compare commits
No commits in common. "d96285fe50f9f4ec1342e8d7f64b2bb7cc12d080" and "bf1c9cc9d9f4242586ae5275b1953dc45a6be4c1" have entirely different histories.
d96285fe50
...
bf1c9cc9d9
1
home.php
1
home.php
|
@ -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">
|
||||
|
|
|
@ -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')
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue