|
@@ -21,6 +21,8 @@ if ($search) {
|
|
|
$lines = array_filter($lines, fn($line) => stripos($line, $search) !== false);
|
|
$lines = array_filter($lines, fn($line) => stripos($line, $search) !== false);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+$lines = array_reverse($lines);
|
|
|
|
|
+
|
|
|
function printLog(string $_log){
|
|
function printLog(string $_log){
|
|
|
if (stripos($_log, 'error') !== false) {
|
|
if (stripos($_log, 'error') !== false) {
|
|
|
echo '<div class="error">' . $_log . '</div>';
|
|
echo '<div class="error">' . $_log . '</div>';
|
|
@@ -28,6 +30,8 @@ function printLog(string $_log){
|
|
|
echo '<div class="warning">' . $_log . '</div>';
|
|
echo '<div class="warning">' . $_log . '</div>';
|
|
|
} elseif (stripos($_log, 'notice') !== false) {
|
|
} elseif (stripos($_log, 'notice') !== false) {
|
|
|
echo '<div class="notice">' . $_log . '</div>';
|
|
echo '<div class="notice">' . $_log . '</div>';
|
|
|
|
|
+ } else {
|
|
|
|
|
+ echo '<div>' . $_log . '</div>';
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -46,7 +50,6 @@ function printLog(string $_log){
|
|
|
pre { background: #fff; padding: 10px; border: 1px solid #ccc; overflow-x: auto; }
|
|
pre { background: #fff; padding: 10px; border: 1px solid #ccc; overflow-x: auto; }
|
|
|
</style>
|
|
</style>
|
|
|
<script>
|
|
<script>
|
|
|
-
|
|
|
|
|
setInterval(() => {
|
|
setInterval(() => {
|
|
|
location.reload();
|
|
location.reload();
|
|
|
}, 5000);
|
|
}, 5000);
|
|
@@ -60,15 +63,17 @@ function printLog(string $_log){
|
|
|
</form>
|
|
</form>
|
|
|
<hr>
|
|
<hr>
|
|
|
<pre>
|
|
<pre>
|
|
|
-<?php foreach (array_slice($lines, -50) as $line) {
|
|
|
|
|
- if(stripos($line, DOCUMENT_ROOT) !== false){
|
|
|
|
|
- printLog($line);
|
|
|
|
|
- } elseif(stripos($line, DOMAIN_CMS) !== false){
|
|
|
|
|
- printLog($line);
|
|
|
|
|
- } elseif(stripos($line, "/var/www/") === false AND stripos($line, "https://") === false){
|
|
|
|
|
- printLog($line);
|
|
|
|
|
- }
|
|
|
|
|
-} ?>
|
|
|
|
|
|
|
+<?php
|
|
|
|
|
+ foreach (array_slice($lines, 0, 100) as $line) {
|
|
|
|
|
+ if(stripos($line, DOCUMENT_ROOT) !== false){
|
|
|
|
|
+ printLog($line);
|
|
|
|
|
+ } elseif(stripos($line, DOMAIN_CMS) !== false){
|
|
|
|
|
+ printLog($line);
|
|
|
|
|
+ } elseif(stripos($line, "/var/www/") == false AND stripos($line, "https://") == false){
|
|
|
|
|
+ printLog($line);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+?>
|
|
|
</pre>
|
|
</pre>
|
|
|
</body>
|
|
</body>
|
|
|
</html>
|
|
</html>
|