sammo를 쓰는 일부 파일을 getRootDB()를 이용하도록 수정

메시지 DB 형태 변경.

메시지를 전송하는 별도의 함수 sendMessage(), sendRawMessage() 생성

j_msgsubmit.php 전면 수정

가능한 메일함을 구해오는 getMailboxList() 함수 추가

CheckBlock를 getBlockLevel로 변경하고, 내부 구현 수정
This commit is contained in:
2018-01-29 02:14:41 +09:00
parent 6d30e40cd3
commit b7923e04a4
10 changed files with 201 additions and 240 deletions
+14 -4
View File
@@ -432,14 +432,24 @@ $game_schema = "
$message_schema = "
CREATE TABLE `message` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`address` INT(11) NOT NULL,
`type` ENUM('send','receive') NOT NULL,
`mailbox` INT(11) NOT NULL COMMENT '9999 == public, >= 9000 national',
`type` ENUM('private','national','public') NOT NULL,
`is_sender` BIT(1) NOT NULL,
`src` INT(11) NOT NULL,
`dest` INT(11) NOT NULL,
`time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
`src_nation_id` INT(11) NULL DEFAULT NULL,
`src_name` VARCHAR(15) NOT NULL,
`src_nation` VARCHAR(15) NULL DEFAULT NULL,
`src_color` VARCHAR(15) NULL DEFAULT NULL,
`src_icon` VARCHAR(15) NULL DEFAULT NULL,
`dest_nation_id` INT(11) NULL DEFAULT NULL,
`dest_name` VARCHAR(15) NULL DEFAULT NULL,
`dest_nation` VARCHAR(15) NULL DEFAULT NULL,
`dest_color` VARCHAR(15) NULL DEFAULT NULL,
`message` TEXT NOT NULL,
PRIMARY KEY (`id`),
INDEX `by_owner` (`address`, `time`),
INDEX `by_owner` (`mailbox`, `time`),
INDEX `by_dest` (`dest`, `time`),
INDEX `by_full` (`src`, `dest`, `time`)
)