diff --git a/index.php b/index.php index 216497a..4251a25 100644 --- a/index.php +++ b/index.php @@ -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 '
'; } - - echo '' . $title . ' - ' . $now . ' - ' . $length . 'c - ' . $words . 'w - ' . $lines . 'l '; } else if ($nextpage == 'home') {