From febe2be33c96cb7ab54add043b91b2dc91b1e655 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Tue, 22 Feb 2011 18:55:02 -0600 Subject: [PATCH] modified: yotsubanome.php --- .gitignore | 0 data/css/null.css | 0 data/icon/kagami.gif | Bin data/icon/kent_banner.gif | Bin data/stylesheets.csv_daty | 0 env.php | 0 futaba2pio.phps | 0 x.php | 0 yotsubanome.php | 8 ++++---- 9 files changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 .gitignore mode change 100644 => 100755 data/css/null.css mode change 100644 => 100755 data/icon/kagami.gif mode change 100644 => 100755 data/icon/kent_banner.gif mode change 100644 => 100755 data/stylesheets.csv_daty mode change 100644 => 100755 env.php mode change 100644 => 100755 futaba2pio.phps mode change 100644 => 100755 x.php diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/data/css/null.css b/data/css/null.css old mode 100644 new mode 100755 diff --git a/data/icon/kagami.gif b/data/icon/kagami.gif old mode 100644 new mode 100755 diff --git a/data/icon/kent_banner.gif b/data/icon/kent_banner.gif old mode 100644 new mode 100755 diff --git a/data/stylesheets.csv_daty b/data/stylesheets.csv_daty old mode 100644 new mode 100755 diff --git a/env.php b/env.php old mode 100644 new mode 100755 diff --git a/futaba2pio.phps b/futaba2pio.phps old mode 100644 new mode 100755 diff --git a/x.php b/x.php old mode 100644 new mode 100755 diff --git a/yotsubanome.php b/yotsubanome.php index 61de8ee..1fced50 100755 --- a/yotsubanome.php +++ b/yotsubanome.php @@ -126,8 +126,8 @@ function updatelog($resno=0,$page_num=-1,$single_page=false){ $page_end = ceil($threads_count / PAGE_DEF) - 1; // 頁面編號最後值 }else{ // 討論串分頁模式 (PHP動態輸出一頁份) $threads_count = $PIO->threadCount(); // 討論串個數 - //---- if($page_num < 0 || ($page_num * PAGE_DEF) >= $threads_count) error(_T('page_not_found')); // $page_num超過範圍 - if($threads_count) if($page_num < 0 || ($page_num * PAGE_DEF) >= $threads_count) error(_T('page_not_found')); // $page_num超過範圍 + if($page_num < 0 || ($page_num * PAGE_DEF) >= $threads_count) error(_T('page_not_found')); // $page_num超過範圍 + //if($threads_count) if($page_num < 0 || ($page_num * PAGE_DEF) >= $threads_count) error(_T('page_not_found')); // $page_num超過範圍 $page_start = $page_end = $page_num; // 設定靜態頁面編號 $threads = $PIO->fetchThreadList($page_num * PAGE_DEF, PAGE_DEF); // 取出分頁後的討論串首篇列表 $PMS->useModuleMethods('ThreadOrder', array($resno,$page_num,$single_page,&$threads)); // "ThreadOrder" Hook Point @@ -270,8 +270,8 @@ function updatelog($resno=0,$page_num=-1,$single_page=false){ foot($dat); // 存檔 / 輸出 - //---- if($single_page || ($page_num == -1 && !$resno)){ // 靜態快取頁面生成 - if($page_num = $threads == 0 || ($single_page || ($page_num == -1 && !$resno))){ // 靜態快取頁面生成 + if($single_page || ($page_num == -1 && !$resno)){ // 靜態快取頁面生成 + //if($page_num = $threads == 0 || ($single_page || ($page_num == -1 && !$resno))){ // 靜態快取頁面生成 if($page==0) $logfilename = PHP_SELF2; else $logfilename = $page.PHP_EXT; $fp = fopen($logfilename, 'w'); -- 2.39.2