Thanks to trutek for this and the thestudent who added the hyperlinks.
Here are my versions to copy - had lots of probs with copying from the web page.
Also added hyperlinks and opening new tab on links.... much more convenient!
Have fun
Spants
getsnarflogs.php
<html>
<head>
<title>snarf logs</title>
<META HTTP-EQUIV="REFRESH" CONTENT="10">
</head>
<body bgcolor="black" text="white" alink="green" vlink="green" link="green">
<?php require('includes/navbar.php'); ?>
<br>
<br>
<?php
$cmd = "/www/pineapple/geturlsnarf.sh";
exec("$cmd 2>&1",$output);
foreach($output as $outputline) {
$snarfed = explode(" ", $outputline);
echo ("$snarfed[0]");
echo ("<a href=\"$snarfed[1]\" target=\"_blank\"> $snarfed[1]</a>");
echo ("<br>");
}
?>
</body>
</html>
geturlsnarf.sh
#!/bin/sh
tail /www/pineapple/logs/urlsnarf.log | awk {'print $1 $7'} | sed 's,http://, http://,'
navbar.php
<table border="0" width="100%" bgcolor="green"><tr width="100%">
<td>
<pre><a href="/pineapple/index.php"><font color="black"><b>Status</b></a> | <a href="/pineapple/config.php"><font color="black"><b>Configuration</b></a> | <a href="/pineapple/advanced.php"><font color="black"><b>Advanced</b></a> | <a href="/pineapple/usb.php"><font color="black"><b>USB</b></a> | <a href="/pineapple/jobs.php"><font color="black"><b>Jobs</b></a> | <a href="/pineapple/3g.php"><font color="black"><b>3G</b></a> | <a href="/pineapple/ssh.php"><font color="black"><b>SSH</b></a> | <a href="/pineapple/scripts.php"><font color="black"><b>Scripts</b></font></a> | <a href="/pineapple/logs.php"><font color="black"><b>Logs</b></a> | <a href="/pineapple/upgrade.php"><font color="black"><b>Upgrade</b></a> | <a href="/pineapple/resources.php"><font color="black"><b>Resources</b></a> | <a href="/pineapple/modules.php"><font color="black"><b>Modules</b></a> | <a href="displaysnarflogs.php"><font color="black"><b>URLSnarf Logs</b></a> | <a href="/pineapple/about.php"><font color="black"><b>About</b></a>
</pre></td></tr></table>