From 1848af9f098379c29bcd0a105623a7dcb698ba55 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 20 Jan 2018 06:00:17 +0900 Subject: [PATCH] =?UTF-8?q?log=20=ED=8C=8C=EC=9D=BC=EC=9D=B4=20=EC=97=86?= =?UTF-8?q?=EC=9D=84=20=EB=95=8C=EB=8A=94=20=EB=B9=88=20=ED=85=8D=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=EB=A5=BC=20=EB=A6=AC=ED=84=B4=ED=95=98=EB=8F=84?= =?UTF-8?q?=EB=A1=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- twe/func.php | 23 ++++++++++++++++++++++- twe/join.php | 18 +++++++++--------- twe/join_post.php | 5 +++-- twe/stylesheet.php | 8 +++++++- 4 files changed, 41 insertions(+), 13 deletions(-) diff --git a/twe/func.php b/twe/func.php index 61e693d6..9b04ec0f 100644 --- a/twe/func.php +++ b/twe/func.php @@ -3000,6 +3000,9 @@ function pushHistory($connect, $history) { } function TrickLog($count, $skin) { + if(!file_exists("logs/_tricklog.txt")){ + return ''; + } $fp = @fopen("logs/_tricklog.txt", "r"); @fseek($fp, -$count*150, SEEK_END); $file = @fread($fp, $count*150); @@ -3011,6 +3014,9 @@ function TrickLog($count, $skin) { } function AllLog($count, $skin) { + if(!file_exists("logs/_alllog.txt")){ + return ''; + } $fp = @fopen("logs/_alllog.txt", "r"); @fseek($fp, -$count*300, SEEK_END); $file = @fread($fp, $count*300); @@ -3024,6 +3030,9 @@ function AllLog($count, $skin) { } function AuctionLog($count, $skin) { + if(!file_exists("logs/_auctionlog.txt")){ + return ''; + } $fp = @fopen("logs/_auctionlog.txt", "r"); @fseek($fp, -$count*300, SEEK_END); $file = @fread($fp, $count*300); @@ -3035,8 +3044,11 @@ function AuctionLog($count, $skin) { } function History($count, $skin) { + if(!file_exists("logs/_history.txt")){ + return ''; + } $fp = @fopen("logs/_history.txt", "r"); - @fseek($fp, -$count*300, SEEK_END); + @fseek($fp, -300*$count, SEEK_END); // $file = @fread($fp, $count*300); @fclose($fp); $log = explode("\r\n",$file); @@ -3048,6 +3060,9 @@ function History($count, $skin) { } function MyLog($no, $count, $skin) { + if(!file_exists("logs/gen{$no}.txt")){ + return ''; + } $fp = @fopen("logs/gen{$no}.txt", "r"); @fseek($fp, -$count*300, SEEK_END); $file = @fread($fp, $count*300); @@ -3061,6 +3076,9 @@ function MyLog($no, $count, $skin) { } function MyBatRes($no, $count, $skin) { + if(!file_exists("logs/batres{$no}.txt")){ + return ''; + } $fp = @fopen("logs/batres{$no}.txt", "r"); @fseek($fp, -$count*300, SEEK_END); $file = @fread($fp, $count*300); @@ -3074,6 +3092,9 @@ function MyBatRes($no, $count, $skin) { } function MyBatLog($no, $count, $skin) { + if(!file_exists("logs/batlog{$no}.txt")){ + return ''; + } $fp = @fopen("logs/batlog{$no}.txt", "r"); @fseek($fp, -$count*300, SEEK_END); $file = @fread($fp, $count*300); diff --git a/twe/join.php b/twe/join.php index 656e3d06..37adb282 100644 --- a/twe/join.php +++ b/twe/join.php @@ -50,7 +50,7 @@ if(!$token) { 장수생성 - +