From 7afa36a2b8b9df2d276b843ee0a3a31bb899ab96 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 7 Apr 2018 16:27:58 +0900 Subject: [PATCH] =?UTF-8?q?StringUtil=EC=97=90=20splitString,=20padString?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/a_history.php | 2 +- hwe/b_currentCity.php | 8 ++-- hwe/func.php | 12 +++-- hwe/func_command.php | 8 ++-- hwe/func_time_event.php | 12 ++--- hwe/func_tournament.php | 8 +++- src/sammo/StringUtil.php | 98 +++++++++++++++++++++++++--------------- 7 files changed, 92 insertions(+), 56 deletions(-) diff --git a/hwe/a_history.php b/hwe/a_history.php index dbe5c1ca..b33b364f 100644 --- a/hwe/a_history.php +++ b/hwe/a_history.php @@ -85,7 +85,7 @@ $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"" $histCount = MYDB_num_rows($result); for($i=0; $i < $histCount; $i++) { $history = MYDB_fetch_array($result); - $value = "".$history['year'].StringUtil::Fill2($history['month'], 2, "0"); + $value = "".$history['year'].StringUtil::padStringAlignRight($history['month'], 2, "0"); if($history['year'] == $year && $history['month'] == $month) { echo " "; diff --git a/hwe/b_currentCity.php b/hwe/b_currentCity.php index 8c58bdbe..49ff2f66 100644 --- a/hwe/b_currentCity.php +++ b/hwe/b_currentCity.php @@ -53,7 +53,7 @@ if($me['level'] == 0) { echo "