Skip to content

Commit

Permalink
v6.56.2
Browse files Browse the repository at this point in the history
  • Loading branch information
satopian committed Nov 30, 2024
1 parent e9c3c88 commit 618dac0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions potiboard5/potiboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// POTI-board EVO
// バージョン :
const POTI_VER = 'v6.56.1';
const POTI_VER = 'v6.56.2';
const POTI_LOT = 'lot.20241130';

/*
Expand Down Expand Up @@ -2317,6 +2317,8 @@ function editform(){
error(MSG028);
}

$dat['time'] = h($time);

$dat['usename'] = USE_NAME ? ' *' : '';
$dat['usesub'] = USE_SUB ? ' *' : '';
$dat['usecom'] = USE_COM ? ' *' :'';
Expand Down Expand Up @@ -2377,6 +2379,7 @@ function rewrite(){
$sub = (string)filter_input(INPUT_POST, 'sub');
$fcolor = (string)filter_input(INPUT_POST, 'fcolor');
$no = (string)filter_input(INPUT_POST, 'no',FILTER_VALIDATE_INT);
$edittime = (string)filter_input(INPUT_POST, 'edittime',FILTER_VALIDATE_INT);
$pwd = (string)newstring(filter_input(INPUT_POST, 'pwd'));
$admin = (string)filter_input(INPUT_POST, 'admin');

Expand Down Expand Up @@ -2420,7 +2423,7 @@ function rewrite(){
continue;
}
list($eno,$edate,$ename,,$esub,$ecom,$eurl,$ehost,$epwd,$ext,$w,$h,$time,$chk,$ptime,$efcolor,$pchext,$thumbnail,$tool,$logver,) = explode(",", rtrim($value).',,,,,,,');
if($eno == $no && check_password($pwd, $epwd, $admin)){
if((!$edittime || $edittime == $time) && $eno == $no && check_password($pwd, $epwd, $admin)){
$date=DO_NOT_CHANGE_POSTS_TIME ? $edate : $date;
if(!$name) $name = $ename;
if(!$sub) $sub = $esub;
Expand Down
1 change: 1 addition & 0 deletions potiboard5/templates/mono_en/mono_other.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
value="{{$catalog_pageno}}">@endif
@if(!$catalog_pageno)<input type="hidden" name="catalog_pageno" value="0">@endif
<input type="hidden" name="no" value="{{$rewrite}}">
<input type="hidden" name="edittime" value="{{$time}}">
<input type="hidden" name="pwd" value="{{$pwd}}">
@endif
@if($admin)
Expand Down

0 comments on commit 618dac0

Please sign in to comment.