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
+3 -6
View File
@@ -19,7 +19,7 @@ function randF(){
return mt_rand() / mt_getrandmax();
}
/// $_SESSION['p_id'] 의 값을 받아옴
function getGeneralID(){
//TODO: 서버마다 p_id가 다를 수 있도록 조치
if(!isset($_SESSION['p_id'])){
@@ -67,11 +67,8 @@ function checkLimit($userlevel, $con, $conlimit) {
}
}
function CheckBlock($connect) {
$query = "select block from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
return $me['block'];
function getBlockLevel() {
return getDB()->queryFirstField('select block from general where user_id= %i', getGeneralID());
}
function getRandGenName() {