Compare commits
2 Commits
bf1c9cc9d9
...
d96285fe50
Author | SHA1 | Date |
---|---|---|
quenousimporte | d96285fe50 | |
quenousimporte | c753e16390 |
1
home.php
1
home.php
|
@ -1,6 +1,5 @@
|
|||
<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,10 +109,7 @@
|
|||
$content = file_get_contents($dir . '/' . $title);
|
||||
}
|
||||
|
||||
$lines = substr_count($content, "\r\n") + 1;
|
||||
$words = $lines + substr_count($content, " ");
|
||||
$rows = max(20, $lines) * 2;
|
||||
$length = strlen($content);
|
||||
$rows = max(20, substr_count($content, "\r\n")) * 2;
|
||||
|
||||
require('note.php');
|
||||
|
||||
|
@ -140,8 +137,6 @@
|
|||
}
|
||||
echo '<br>';
|
||||
}
|
||||
|
||||
echo '<span class="grey">' . $title . ' - ' . $now . ' - ' . $length . 'c - ' . $words . 'w - ' . $lines . 'l </span>';
|
||||
}
|
||||
else if ($nextpage == 'home')
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue