특별회원에 운영자 메시지 변경 기능 추가
This commit is contained in:
@@ -9,6 +9,10 @@ $query = "select userlevel from general where user_id='$_SESSION[p_id]'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
$query = "select msg from game where no='1'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$admin = MYDB_fetch_array($result);
|
||||
|
||||
if($me[userlevel] < 4) {
|
||||
echo "
|
||||
<html>
|
||||
@@ -41,6 +45,9 @@ if($me[userlevel] < 4) {
|
||||
</table>
|
||||
<form name=form1 method=post action=_admin3_submit.php>
|
||||
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
|
||||
<tr><td width=110 align=right>운영자메세지</td>
|
||||
<td colspan=3><input type=textarea size=90 style=color:white;background-color:black; name=notice value='<?=$admin[msg];?>'><input type=submit name=btn value=변경></td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=80 align=center rowspan=5>회원선택<br><br><font color=orange>무장</font><br><font color=skyblue>지장</font></td>
|
||||
<td width=105 rowspan=5>
|
||||
|
||||
@@ -16,6 +16,12 @@ if($me[userlevel] < 4) {
|
||||
}
|
||||
|
||||
switch($btn) {
|
||||
case "변경":
|
||||
|
||||
$msg = addslashes(SQ2DQ($msg));
|
||||
$query = "update game set msg='$notice' where no='1'";
|
||||
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
break;
|
||||
case "메세지 전달":
|
||||
$date = date('Y-m-d H:i:s');
|
||||
for($i=0; $i < sizeof($genlist); $i++) {
|
||||
|
||||
Reference in New Issue
Block a user