File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?php
2- $ functions_ver =20250525 ;
2+ $ functions_ver =20250529 ;
33//編集モードログアウト
44function logout (): void {
55 session_sta ();
@@ -997,9 +997,14 @@ function set_form_display_time(): void {
997997 $ _SESSION ['form_display_time ' ] = time ();
998998}
999999//投稿間隔をチェック
1000- function check_submission_interval ($ min_interval =2 ): void {
1001- // デフォルトで最低2秒の間隔を設ける
1000+ function check_submission_interval (): void {
10021001 global $ en ;
1002+
1003+ $ mode = (int )filter_input_data ('POST ' , 'mode ' ,FILTER_VALIDATE_INT );
1004+ $ pictmp = (int )filter_input_data ('POST ' , 'pictmp ' ,FILTER_VALIDATE_INT );//お絵かきコメントなら2になる
1005+ // デフォルトで最低2秒の間隔を設ける
1006+ $ min_interval = ($ mode ==='regist ' && $ pictmp !==2 ) ? 3 : 2 ; // お絵かきコメント以外の投稿は3秒待機
1007+
10031008 session_sta ();
10041009 if (!isset ($ _SESSION ['form_display_time ' ])) {
10051010 error ($ en ?"The post has been rejected. " :'拒絶されました。 ' );
Original file line number Diff line number Diff line change 11<?php
22//Petit Note (c)さとぴあ @satopian 2021-2025
33//1スレッド1ログファイル形式のスレッド式画像掲示板
4- $ petit_ver ='v1.88.8 ' ;
5- $ petit_lot ='lot.20250528 ' ;
4+ $ petit_ver ='v1.88.9 ' ;
5+ $ petit_lot ='lot.20250529 ' ;
66
77$ lang = ($ http_langs = $ _SERVER ['HTTP_ACCEPT_LANGUAGE ' ] ?? '' )
88 ? explode ( ', ' , $ http_langs )[0 ] : '' ;
1818 die (__DIR__ .'/functions.php ' .($ en ? ' does not exist. ' :'がありません。 ' ));
1919}
2020require_once (__DIR__ .'/functions.php ' );
21- if (!isset ($ functions_ver )||$ functions_ver <20250525 ){
21+ if (!isset ($ functions_ver )||$ functions_ver <20250529 ){
2222 die ($ en ?'Please update functions.php to the latest version. ' :'functions.phpを最新版に更新してください。 ' );
2323}
2424
@@ -248,7 +248,7 @@ function post(): void {
248248 check_csrf_token ();
249249
250250 //投稿間隔をチェック
251- check_submission_interval (3 ); //3秒間隔で投稿を制限
251+ check_submission_interval ();
252252
253253 //POSTされた内容を取得
254254 $ userip =t (get_uip ());
You can’t perform that action at this time.
0 commit comments