Skip to content

Commit

Permalink
v0.92.8
Browse files Browse the repository at this point in the history
  • Loading branch information
satopian committed Oct 1, 2023
1 parent 61176d6 commit fa229d8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions petitnote/index.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
//Petit Note (c)さとぴあ @satopian 2021-2023
//1スレッド1ログファイル形式のスレッド式画像掲示板
$petit_ver='v0.92.7';
$petit_lot='lot.20230930';
$petit_ver='v0.92.8';
$petit_lot='lot.20231001';
$lang = ($http_langs = isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : '')
? explode( ',', $http_langs )[0] : '';
$en= (stripos($lang,'ja')!==0);
Expand Down Expand Up @@ -2384,7 +2384,7 @@ function view(){
list($_no)=explode("\t",trim($_line));
$article_nos[]=$_no;
}
++$count_alllog;
++$count_alllog;//処理の後半で記事数のカウントとして使用
}
fclose($fp);

Expand Down Expand Up @@ -2589,7 +2589,7 @@ function res (){
$rr2[]=$r2;
}
}
if(($i>=3) && (3<=count($rr1)) && (3<=count($rr2)) ){
if((3<=count($rr1)) && (3<=count($rr2)) ){
$rr1 = array_slice($rr1,-3);
$rr2 = array_slice($rr2,0,3);
$view_other_works= array_merge($rr1,$rr2);
Expand All @@ -2601,7 +2601,6 @@ function res (){
}else{
$view_other_works= array_merge($rr1,$rr2);
$view_other_works= array_slice($view_other_works,0,6);

}
}
//禁止ホスト
Expand Down

0 comments on commit fa229d8

Please sign in to comment.