Skip to content

Commit

Permalink
v1.57.2
Browse files Browse the repository at this point in the history
  • Loading branch information
satopian committed Nov 11, 2024
1 parent 490fda0 commit 0698d2c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 2 additions & 4 deletions petitnote/.htaccess
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<files ~ "(^config\.php$|\.(ini|log|dat|json|inc)$)">
Order allow,deny
Deny from all
Require all denied
</files>
<Files "manifest.json">
Order allow,deny
Allow from all
Require all granted
</Files>
10 changes: 6 additions & 4 deletions petitnote/index.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
//Petit Note (c)さとぴあ @satopian 2021-2024
//1スレッド1ログファイル形式のスレッド式画像掲示板
$petit_ver='v1.57.0';
$petit_lot='lot.20241109';
$petit_ver='v1.57.2';
$petit_lot='lot.20241111';
$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 @@ -1861,8 +1861,10 @@ function edit(){
}
}

$thumbnail=is_file(THUMB_DIR.$_time.'s.jpg') ? 'thumbnail': '';
$thumbnail=($thumbnail && is_file(THUMB_DIR.$_time.'s.webp')) ? 'thumbnail_webp': $thumbnail;
$thumbnail_webp = is_file(THUMB_DIR.$_time.'s.webp') ? 'thumbnail_webp' : '';
$thumbnail_jpg = is_file(THUMB_DIR.$_time.'s.jpg') ? 'thumbnail' : '';
$thumbnail = $thumbnail_webp ? $thumbnail_webp : $thumbnail_jpg;

$hide_thumbnail=($_imgfile && $hide_thumbnail) ? 'hide_' : '';
$thumbnail = $mark_sensitive_image ? $hide_thumbnail.$thumbnail : $thumbnail;

Expand Down
2 changes: 1 addition & 1 deletion petitnote/template/.htaccess
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Files ~ "\.(html?|ini|log|dat|json|inc)$">
deny from all
Require all denied
</Files>

0 comments on commit 0698d2c

Please sign in to comment.