diff --git a/hwe/a_vote.php b/hwe/a_vote.php index 70b6b17a..67a5f0db 100644 --- a/hwe/a_vote.php +++ b/hwe/a_vote.php @@ -6,6 +6,7 @@ include "func.php"; $db = DB::db(); $connect=$db->get(); +$session = Session::requireGameLogin()->setReadOnly(); increaseRefresh("설문조사", 1); diff --git a/hwe/commandlist.php b/hwe/commandlist.php index 63e12d51..c53dd9b2 100644 --- a/hwe/commandlist.php +++ b/hwe/commandlist.php @@ -65,6 +65,7 @@ function myclock() { myCommandList(); function myCommandList() { + $session = Session::Instance(); global $_basecolor, $_basecolor2, $_basecolor3; global $images; diff --git a/hwe/css/main.css b/hwe/css/main.css index 07cdf780..d0fa7365 100644 --- a/hwe/css/main.css +++ b/hwe/css/main.css @@ -29,6 +29,30 @@ color:white; display:block; } +.commandButton { + float:left; + width:111px; + height:30px; + font-weight:bold; + font-size:13px; + margin:0; + display:block; +} + +.commandButton:disabled::before{ + content:'【' +} + +.commandButton:disabled::after{ + content:'】' +} + +.commandButton:disabled{ + background-color:transparent !important; + color:gray !important; + border-color:transparent !important; +} + .toolbarButton2 { float:left; background-color:#225500; diff --git a/hwe/func.php b/hwe/func.php index 0f392244..08af199e 100644 --- a/hwe/func.php +++ b/hwe/func.php @@ -77,6 +77,7 @@ function GetImageURL($imgsvr) { } function checkLimit($con, $conlimit) { + $session = Session::Instance(); if($session->userGrade>=4){ return 0; } @@ -116,6 +117,7 @@ function getRandGenName() { function cityInfo() { + $session = Session::Instance(); global $_basecolor, $_basecolor2, $images; $db = DB::db(); @@ -145,7 +147,7 @@ function cityInfo() { $tradeStr = $city['trade'] . "%"; } - if($nation['color'] == "" ) { $nation['color'] = "000000"; } + if($nation['color'] == "" ) { $nation['color'] = "#000000"; } echo "
| 【 ".CityConst::$regionMap[$city['region']]." | ".CityConst::$levelMap[$city['level']]." 】 {$city['name']} | |||||||||||||||||||||||||||||||||||||
| ";
@@ -230,6 +232,7 @@ function cityInfo() {
}
function myNationInfo() {
+ $session = Session::Instance();
global $_basecolor, $_basecolor2, $images;
$db = DB::db();
@@ -408,6 +411,7 @@ function commandGroup($typename, $type=0) {
}
function commandTable() {
+ $session = Session::Instance();
$db = DB::db();
$connect=$db->get();
@@ -645,6 +649,7 @@ function commandTable() {
}
function CoreCommandTable() {
+ $session = Session::Instance();
$db = DB::db();
$connect=$db->get();
@@ -744,6 +749,7 @@ function CoreCommandTable() {
function myInfo() {
$db = DB::db();
$connect=$db->get();
+ $session = Session::Instance();
$query = "select no from general where owner='{$session->userID}'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
@@ -824,7 +830,7 @@ function generalInfo($no) {
$remaining = substr($general['turntime'], 14, 2) - date('i');
if($remaining < 0) { $remaining = 60 + $remaining; }
- if($nation['color'] == "") { $nation['color'] = "000000"; }
+ if($nation['color'] == "") { $nation['color'] = "#000000"; }
if($general['age'] < 60) { $general['age'] = "{$general['age']} 세"; }
elseif($general['age'] < 80) { $general['age'] = "{$general['age']} 세"; }
@@ -932,6 +938,7 @@ function generalInfo($no) {
}
function myInfo2() {
+ $session = Session::Instance();
$db = DB::db();
$connect=$db->get();
@@ -1097,6 +1104,7 @@ function onlineNation() {
}
function nationMsg() {
+ $session = Session::Instance();
$db = DB::db();
$connect=$db->get();
@@ -2380,6 +2388,7 @@ function getAdmin() {
function getMe() {
$db = DB::db();
$connect=$db->get();
+ $session = Session::Instance();
$query = "select * from general where owner='{$session->userID}'";
$result = MYDB_query($query, $connect) or Error("접속자가 많아 접속을 중단합니다. 잠시후 갱신해주세요. getMe : ".MYDB_error($connect),""); diff --git a/hwe/func_command.php b/hwe/func_command.php index 73652a64..b55bb486 100644 --- a/hwe/func_command.php +++ b/hwe/func_command.php @@ -455,6 +455,7 @@ function getCoreTurn($nation, $level) { function processCommand($no) { + $session = Session::Instance(); $db = DB::db(); $connect=$db->get(); @@ -684,6 +685,7 @@ where nation='{$general['nation']}' function command_Single($turn, $command) { $db = DB::db(); $connect=$db->get(); + $session = Session::Instance(); $command = EncodeCommand(0, 0, 0, $command); @@ -702,6 +704,7 @@ function command_Single($turn, $command) { function command_Chief($turn, $command) { $db = DB::db(); $connect=$db->get(); + $session = Session::Instance(); $command = EncodeCommand(0, 0, 0, $command); diff --git a/hwe/func_converter.php b/hwe/func_converter.php index d95559df..3c88b318 100644 --- a/hwe/func_converter.php +++ b/hwe/func_converter.php @@ -836,7 +836,7 @@ function ConvertLog($str, $type=1) { function newColor($color) { switch($color) { case "": - case "330000": + case "#330000": case "#FF0000": case "#800000": case "#A0522D": @@ -852,10 +852,10 @@ function newColor($color) { case "#7B68EE": case "#800080": case "#A9A9A9": - case "000000": + case "#000000": $color = "#FFFFFF"; break; default: - $color = "000000"; break; + $color = "#000000"; break; } return $color; } diff --git a/hwe/func_message.php b/hwe/func_message.php index ae1a2554..6fa7d5d9 100644 --- a/hwe/func_message.php +++ b/hwe/func_message.php @@ -280,6 +280,7 @@ function getMailboxList(){ function DecodeMsg($msg, $type, $who, $date, $bg, $num=0) { $db = DB::db(); $connect=$db->get(); + $session = Session::Instance(); //FIXME: 폐기 $query = "select no,nation,name,picture,level from general where owner='{$session->userID}'"; @@ -300,7 +301,7 @@ function DecodeMsg($msg, $type, $who, $date, $bg, $num=0) { if($sndr['nation'] == 0) { $sndrnation['name'] = '재야'; - $sndrnation['color'] = 'FFFFFF'; + $sndrnation['color'] = '#FFFFFF'; } else { $sndrnation = getNationStaticInfo($sndr['nation']); } @@ -327,7 +328,7 @@ function DecodeMsg($msg, $type, $who, $date, $bg, $num=0) { if($rcvr['nation'] == 0) { $rcvrnation['name'] = '재야'; - $rcvrnation['color'] = 'FFFFFF'; + $rcvrnation['color'] = '#FFFFFF'; } else { $rcvrnation = getNationStaticInfo($rcvr['nation']); } @@ -348,6 +349,7 @@ function moveMsg($table, $msgtype, $msgnum, $msg, $type, $who, $when, $column, $ function MsgDip($bg) { $db = DB::db(); $connect=$db->get(); + $session = Session::Instance(); $query = "select no,nation from general where owner='{$session->userID}'"; $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); diff --git a/hwe/func_template.php b/hwe/func_template.php index 88935d80..f75858f6 100644 --- a/hwe/func_template.php +++ b/hwe/func_template.php @@ -89,67 +89,38 @@ function allButton() { function commandButton() { global $_basecolor, $_basecolor2; - $generalID = Session::Instance()->generalID; + $session = Session::Instance(); + $generalID = $session->generalID; if($generalID === null){ return ''; } $db = DB::db(); - - $me = $db->queryFirstRow("select no,nation,level,belong from general where no=%i", $generalID); + $me = $db->queryFirstRow("select no,nation,level,belong from general where owner=%i", $session->userID); $nation = $db->queryFirstRow("select nation,color,secretlimit from nation where nation=%i",$me['nation']); - if($nation['color'] == "") { $nation['color'] = "000000"; } + if($nation['color'] == "") { $nation['color'] = "#000000"; } - $result = ''; - $result .= " -
|
|||||||||||||||||||||||||||||||||||||
|
- ;color:white;width:110;font-size:13px; value='실 행' onclick='refreshing(3,form2)'>;color:white;width:110;font-size:13px; value='갱 신' onclick='refreshing(0,0)'>;color:white;width:160;font-size:13px; value='로그아웃' onclick=location.replace('logout_process.php')> + ;color:white;width:110;font-size:13px; value='실 행' onclick='refreshing(this, 3,form2)'>;color:white;width:110;font-size:13px; value='갱 신' onclick='refreshing(this, 0,0)'>;color:white;width:160;font-size:13px; value='로그아웃' onclick=location.replace('logout_process.php')> |
|||||||||||||||||||||||||||||||||||||