Skip to content

Commit

Permalink
Merge pull request #43 from crayse1/patch-1
Browse files Browse the repository at this point in the history
Added change to the ajax.php file
  • Loading branch information
Alanaktion committed Sep 2, 2016
2 parents 0f23152 + b35cc82 commit 83612e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ajax.php
Expand Up @@ -89,6 +89,9 @@
} elseif(is_file($user['home'] . "/server.log")) {
// 1.6 and earlier
echo mclogparse2(file_backread($user['home'] . '/server.log', 64));
} elseif(is_file($user['home'] . "/proxy.log.0")) {
// BungeeCord
echo mclogparse2(file_backread($user['home'] . '/proxy.log.0', 64));
} else {
echo "No log file found.";
}
Expand All @@ -101,6 +104,8 @@
$file = $user['home'] . '/logs/latest.log';
} elseif(is_file($user['home'] . '/server.log')) {
$file = $user['home'] . '/server.log';
} elseif(is_file($user['home'] . '/proxy.log.0')) {
$file = $user['home'] . '/proxy.log.0';
} else {
exit(json_encode(array('error' => 1, 'msg' => 'No log file found.')));
}
Expand Down

0 comments on commit 83612e4

Please sign in to comment.