mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 04:39:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1411 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c459b1bf0d
commit
1b727a32a1
6 changed files with 141 additions and 17 deletions
|
|
@ -22,7 +22,7 @@
|
|||
$fp = fopen($file_name, "r");
|
||||
$buff = '';
|
||||
if($fp) {
|
||||
while(!feof($fp) || strlen($buff)<$filesize) {
|
||||
while(!feof($fp) && strlen($buff)<=$filesize) {
|
||||
$str = fgets($fp, 1024);
|
||||
$buff .= $str;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
$first_page = $cur_page-(int)($page_count/2);
|
||||
if($first_page<1) $first_page = 1;
|
||||
$last_page = $first_page+$page_count-1;
|
||||
$last_page = $total_page;
|
||||
if($last_page>$total_page) $last_page = $total_page;
|
||||
|
||||
$this->first_page = $first_page;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue