Skip to content

Commit

Permalink
v0.95.3 レス画面の記事タイトルがリンク付きになっていたのを修正。
Browse files Browse the repository at this point in the history
  • Loading branch information
satopian committed Oct 17, 2023
1 parent 73725e3 commit 44387b5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 4 additions & 4 deletions petitnote/index.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
//Petit Note (c)さとぴあ @satopian 2021-2023
//1スレッド1ログファイル形式のスレッド式画像掲示板
$petit_ver='v0.95.2';
$petit_ver='v0.95.3';
$petit_lot='lot.20231015';
$lang = ($http_langs = isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : '')
? explode( ',', $http_langs )[0] : '';
Expand Down Expand Up @@ -2135,8 +2135,8 @@ function search(){
if(!is_file(LOG_DIR."{$resno}.log")){
continue;
}
$cp=fopen("log/{$resno}.log","r");
while($line=fgets($cp)){
$rp=fopen("log/{$resno}.log","r");
while($line=fgets($rp)){

list($no,$sub,$name,$verified,$com,$url,$imgfile,$w,$h,$thumbnail,$painttime,$log_md5,$tool,$pchext,$time,$first_posted_time,$host,$userid,$hash,$oya)=explode("\t",$line);

Expand Down Expand Up @@ -2184,7 +2184,7 @@ function search(){

}
}
fclose($cp);
fclose($rp);
if($j>=5000){break;}//1掲示板あたりの最大行数
++$j;
}
Expand Down
8 changes: 7 additions & 1 deletion petitnote/template/basic/parts/threads_loop.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
krsort($ress);
}?>
<!-- タイトル -->
<h2 class="article_title"><a href="./?resno=<?= h($ress[0]['no'])?>">[<?= h($ress[0]['no'])?>] <?= h($ress[0]['sub'])?></a></h2>
<h2 class="article_title">
<?php if($resmode):?>
[<?= h($ress[0]['no'])?>] <?= h($ress[0]['sub'])?>
<?php else:?>
<a href="./?resno=<?= h($ress[0]['no'])?>">[<?= h($ress[0]['no'])?>] <?= h($ress[0]['sub'])?></a>
<?php endif;?>
</h2>
<?php
$findimage=false;
$countres=count($ress);
Expand Down

0 comments on commit 44387b5

Please sign in to comment.