From 3f2ef77227fe567490b5add9a96b71db2d6820e1 Mon Sep 17 00:00:00 2001 From: Arcturus Date: Wed, 30 Oct 2024 08:27:27 +0900 Subject: [PATCH] add editorconfig, fix syntax error only --- .editorconfig | 23 +++++++++++++++++++ AvocadoEdition_Light/bbs/new_delete.php | 4 ++-- .../bbs/write_update_file.php | 8 +++---- 3 files changed, 29 insertions(+), 6 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..aedf1e7 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,23 @@ +root = true + +[*] +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[**.js] +indent_style = space +indent_size = 2 + +[**.css] +indent_style = tab +indent_size = 2 + +[**.php] +indent_style = space +indent_size = 4 + +[**.html] +indent_style = tab +indent_size = 2 diff --git a/AvocadoEdition_Light/bbs/new_delete.php b/AvocadoEdition_Light/bbs/new_delete.php index 4a9c3fa..7191e78 100644 --- a/AvocadoEdition_Light/bbs/new_delete.php +++ b/AvocadoEdition_Light/bbs/new_delete.php @@ -128,7 +128,7 @@ for($i=0;$i$value) { } goto_url("new.php?sfl=$sfl&stx=$stx&page=$page"); -?> \ No newline at end of file +?> diff --git a/AvocadoEdition_Light/bbs/write_update_file.php b/AvocadoEdition_Light/bbs/write_update_file.php index 7cc6a86..c00208e 100644 --- a/AvocadoEdition_Light/bbs/write_update_file.php +++ b/AvocadoEdition_Light/bbs/write_update_file.php @@ -260,10 +260,10 @@ if ($w == '' || $w == 'r') { wr_last = '".G5_TIME_YMDHIS."', wr_ip = '{$_SERVER['REMOTE_ADDR']}', - ch_id = '$character['ch_id']', - ch_side = '$character['ch_side']', - ch_class = '$character['ch_class']', - ti_id = '$character['ch_title']', + ch_id = '{$character['ch_id']}', + ch_side = '{$character['ch_side']}', + ch_class = '{$character['ch_class']}', + ti_id = '{$character['ch_title']}', wr_width = '$wr_width', wr_height = '$wr_height', wr_url = '$wr_url',