digipi/var/www/html/syslog.php

29 wiersze
716 B
PHP
Executable File

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