From 67e2f8342e7f7f638cff0eaecb7d6b46c57c2414 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 21 Jan 2018 18:26:15 +0900 Subject: [PATCH] =?UTF-8?q?\r\n=20=EB=A7=88=EC=A0=80=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- twe/func.php | 8 ++++---- twe/j_msgsubmit.php | 2 +- twe/login_process.php | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/twe/func.php b/twe/func.php index aa6d759e..a1b30d09 100644 --- a/twe/func.php +++ b/twe/func.php @@ -3268,7 +3268,7 @@ function PushMsg($type, $nation, $picture, $imgsvr, $from, $fromcolor, $to, $toc $fp = fopen("logs/{$file}", "a"); //로그 파일에 기록 $str = "{$type}|"._String::Fill($from,12," ")."|"._String::Fill($to,12," ")."|".$date."|".$msg."|".$fromcolor."|".$tocolor."|".$picture."|".$imgsvr; - fwrite($fp, "{$str}\r\n"); + fwrite($fp, "{$str}\n"); fclose($fp); } @@ -3604,7 +3604,7 @@ function increaseRefresh($connect, $type="", $cnt=1) { $online = onlinenum($connect); $fp = fopen("logs/_{$date2}_refresh.txt", "a"); $msg = _String::Fill2($date,20," ")._String::Fill2($_SESSION['p_id'],13," ")._String::Fill2($_SESSION['p_name'],13," ")._String::Fill2($_SESSION['p_ip'],16," ")._String::Fill2($type, 10, " ")." 동접자: {$online}"; - fwrite($fp, $msg."\r\n"); + fwrite($fp, $msg."\n"); fclose($fp); $proxy_headers = array( @@ -3631,7 +3631,7 @@ function increaseRefresh($connect, $type="", $cnt=1) { } if($str != "") { file_put_contents("logs/_{$date2}_ipcheck.txt", - sprintf("ID:%s//name:%s//REMOTE_ADDR:%s%s\r\n", + sprintf("ID:%s//name:%s//REMOTE_ADDR:%s%s\n", $_SESSION['p_id'],$_SESSION['p_name'],$_SERVER['REMOTE_ADDR'],$str), FILE_APPEND); } } @@ -3664,7 +3664,7 @@ function updateTraffic($connect) { $fp = fopen("logs/_traffic.txt", "a"); //일시|년|월|총갱신|접속자|최다갱신자 $msg = _String::Fill2($date,20," ")."|"._String::Fill2($game['year'],3," ")."|"._String::Fill2($game['month'],2," ")."|"._String::Fill2($game['refresh'],8," ")."|"._String::Fill2($online,5," ")."|"._String::Fill2($user['name']."(".$user['refresh'].")",20," "); - fwrite($fp, $msg."\r\n"); + fwrite($fp, $msg."\n"); fclose($fp); } diff --git a/twe/j_msgsubmit.php b/twe/j_msgsubmit.php index 417209b3..9a868ac4 100644 --- a/twe/j_msgsubmit.php +++ b/twe/j_msgsubmit.php @@ -159,7 +159,7 @@ if($genlist == 9999 && str_replace(" ", "", $msg) != "") { $fp = fopen("logs/_gen_msg.txt", "a"); //로그 파일에 기록 - fwrite($fp, _String::Fill($me['name'],12," ")." > "._String::Fill($you['name'],12," ")." | {$msg}\r\n"); + fwrite($fp, _String::Fill($me['name'],12," ")." > "._String::Fill($you['name'],12," ")." | {$msg}\n"); fclose($fp); } diff --git a/twe/login_process.php b/twe/login_process.php index 2bf5bf91..18fcc6ff 100644 --- a/twe/login_process.php +++ b/twe/login_process.php @@ -63,7 +63,7 @@ $date = date('Y_m_d H:i:s'); $date2 = substr($date, 0, 10); $fp = fopen("logs/_{$date2}_login.txt", "a"); $msg = _String::Fill2($date,20," ").tab2($id,13," ")._String::Fill2($me['name'],13," ")._String::Fill2($_SESSION['p_ip'],16," "); -fwrite($fp, $msg."\r\n"); +fwrite($fp, $msg."\n"); fclose($fp); header ("Location: index.php");