TimeUtil 리팩토링

This commit is contained in:
2018-09-16 04:14:22 +09:00
parent 0e9de6e1bb
commit eece42480a
32 changed files with 165 additions and 156 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ if($num == -1 && $title != "" && $msg != "") {
if($num >= 20) { $num = 0; }
$msg = $title."|".$msg;
$msg = addslashes(SQ2DQ($msg));
$date = date('Y-m-d H:i:s');
$date = TimeUtil::now();
$query = "update nation set coreboard{$num}='$msg',coreboard{$num}_who='{$me['no']}',coreboard{$num}_when='$date' where nation='{$me['nation']}'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$query = "update nation set coreindex='$num' where nation='{$me['nation']}'";