]> 4ch.mooo.com Git - test.git/commitdiff
modified: yotsubanome.php
authorsparky4 <sparky4@4ch.irc.su>
Wed, 23 Feb 2011 00:55:02 +0000 (18:55 -0600)
committersparky4 <sparky4@4ch.irc.su>
Wed, 23 Feb 2011 00:55:02 +0000 (18:55 -0600)
.gitignore [changed mode: 0644->0755]
data/css/null.css [changed mode: 0644->0755]
data/icon/kagami.gif [changed mode: 0644->0755]
data/icon/kent_banner.gif [changed mode: 0644->0755]
data/stylesheets.csv_daty [changed mode: 0644->0755]
env.php [changed mode: 0644->0755]
futaba2pio.phps [changed mode: 0644->0755]
x.php [changed mode: 0644->0755]
yotsubanome.php

old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
diff --git a/env.php b/env.php
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
diff --git a/x.php b/x.php
old mode 100644 (file)
new mode 100755 (executable)
index 61de8ee5709ffc179a5831a8e26076eb53cb95fc..1fced50de62077267e755932cbf5f39601febc09 100755 (executable)
@@ -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');