digipi/var/www/html/log.php

35 wiersze
724 B
PHP
Executable File

<html>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>DigiPi Packet Log</title>
<body style="position: relative; height: 100%; width: 100%; overflow: hidden;">
<font face="sans">
<?php
exec("/usr/bin/ttyd -p 7682 -t fontSize=20 -o -s SIGTERM tail -f /run/direwolf.log > /dev/null 2> /dev/null &" );
sleep(2);
?>
<p>
<br/>
Forwarding to
<script>
document.write('<a href="' + window.location.protocol + '//' + window.location.hostname + ':7682' + '">' + window.location.protocol + '//' + window.location.hostname + ':7682' + '</a>' );
window.location.href = window.location.protocol + '//' + window.location.hostname + ':7682'
</script>
<br>
</font>
</body>
</html>