_Setting, _String, _Time 클래스 재 명명

- autoload로 변환
This commit is contained in:
2018-03-24 21:28:12 +09:00
parent a3f83d1e95
commit 002f9ba6cf
32 changed files with 109 additions and 360 deletions
+3 -3
View File
@@ -30,7 +30,7 @@ if($command == 46) {
$name = str_replace(" ", "", $name);
$name = str_replace(" ", "", $name);
if($name == "") { $name = "무명"; }
$name = _String::SubStrForWidth($name, 0, 12);
$name = StringUtil::SubStrForWidth($name, 0, 12);
$query = "update general set makenation='{$name}' where owner='{$_SESSION['userID']}'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
@@ -56,7 +56,7 @@ if($command == 46) {
$nationname = str_replace(" ", "", $nationname);
$nationname = str_replace(" ", "", $nationname);
if($nationname == "") { $nationname = "무명"; }
$nationname = _String::SubStrForWidth($nationname, 0, 12);
$nationname = StringUtil::SubStrForWidth($nationname, 0, 12);
$query = "update general set makenation='{$nationname}' where level>=5 and nation='{$me['nation']}'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
@@ -82,7 +82,7 @@ if($command == 46) {
$note = str_replace("|", "", $note);
$note = str_replace(" ", "", $note);
$note = str_replace(" ", "", $note);
$note = _String::SubStrForWidth($note, 0, 90);
$note = StringUtil::SubStrForWidth($note, 0, 90);
$query = "update diplomacy set reserved='{$note}' where me='{$me['nation']}' and you='$double'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");