log 파일이 없을 때는 빈 텍스트를 리턴하도록

This commit is contained in:
2018-01-20 06:00:17 +09:00
parent 3e629c5c54
commit 1848af9f09
4 changed files with 41 additions and 13 deletions
+7 -1
View File
@@ -8,7 +8,11 @@ $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""
$admin = MYDB_fetch_array($result);
$tmp_id = util::array_get($_SESSION['p_id'],0);
$tmp_id = util::array_get($_SESSION['p_id'],0);
//xxx:와 이게 뭐지
//TODO:p_id 관련 스킨 세팅 확인
$query = "select no,skin,con from general where user_id='$tmp_id'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
@@ -78,6 +82,8 @@ if($me['skin'] == 0) {
$bg0 = "background-color:#ff88c4;"; $bg1 = "background-color:#cc66ff;"; $bg2 = "background-color:#f5a2ff;";
}
header("Content-type: text/css");
?>
body { color:<?=$color;?>; background-color:<?=$backcolor;?>; border-width:1; border-color:gray; <?=$back;?> }