Skip to content

Commit

Permalink
コード整形。
Browse files Browse the repository at this point in the history
  • Loading branch information
satopian committed Nov 27, 2024
1 parent 4c85268 commit 6344d6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion petitnote/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ function post(){
//ユーザーデータから情報を取り出す
$userdata = file_get_contents(TEMP_DIR.$picfile.".dat");
list($uip,$uhost,,,$ucode,,$starttime,$postedtime,$uresto,$tool,$u_hide_animation) = explode("\t", rtrim($userdata)."\t\t\t");
if((!$ucode || ($ucode != $usercode)) && (!$uip || ($uip != $userip))){return error($en? 'Posting failed.':'投稿に失敗しました。');}
if((!$ucode || ($ucode != $usercode)) && (!$uip || ($uip != $userip))){
return error($en? 'Posting failed.':'投稿に失敗しました。');
}
$tool= is_paint_tool_name($tool);
$uresto=filter_var($uresto,FILTER_VALIDATE_INT);
$hide_animation= $hide_animation ? true : ($u_hide_animation==='true');
Expand Down

0 comments on commit 6344d6e

Please sign in to comment.