<?php ini_set('display_errors', 'on'); error_reporting(1); log_display(); function log_display() { echo ' <table class="table table-striped pull-left"> <thead> <th></th> <th>Date</th> <th>Time</th> <th>IP</th> <th class="align-right">Tor Request</th> <th></th> </thead> <tbody> '; $myfile = fopen("./logs/visitors.log", "r") or die("Unable to open file!"); $i = 0; while (!feof($myfile)) { echo " <tr>\n <td class='align-center'>\n \n </td>"; $i++; $linex = fgets($myfile); list($date_post, $time_post, $ip_post, $tor_req) = split("\t", $linex); if ($tor_req == 1) { $message = "<font color='red'>{$tor_req} - DETECTED</font>"; } else { $message = "false - real ip";
<tr> <td class="tabcont"> <form action="extensions_dnsmasq_log.php" method="post" name="iform" id="iform"> <input name="clear" type="submit" class="formbtn" value="<?php echo gettext("Clear"); ?> " /> <input name="download" type="submit" class="formbtn" value="<?php echo gettext("Download"); ?> " /> <input name="refresh" type="submit" class="formbtn" value="<?php echo gettext("Refresh"); ?> " /> <br /><br /> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <?php log_display($loginfo); ?> </table> <?php include "formend.inc"; ?> </form> </td> </tr> </table> <?php include "fend.inc";
} ?> </select> <input name="clear" type="submit" class="formbtn" value="<?php echo gettext("Clear"); ?> " /> <input name="download" type="submit" class="formbtn" value="<?php echo gettext("Download"); ?> " /> <input name="refresh" type="submit" class="formbtn" value="<?php echo gettext("Refresh"); ?> " /> <br /><br /> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <?php log_display($loginfo[$log]); ?> </table> <?php include "formend.inc"; ?> </form> </td> </tr> </table> <?php include "fend.inc";
<tr> <th style="width: 13%;">Size:</th> <td style="width: 20%;"> </td> <th style="width: 13%;">Time Remaining:</th> <td style="width: 20%;" > </td> <th style="width: 13%;">PID:</th> <td style="width: 20%;"> </td> </tr> <tr> <td colspan="6"><div class="log"><pre></pre></div></td> </tr> </table> </td> </tr> <br /><?php log_display($html_header[0]); ?> </table> </td> </tr> <tr> <td class="background"><br /> <div style="width: 100%; text-align: center;" class="small">Downloady - PHP Download Manager - By CyberLeo | <a href="http://www.cyberleo.net/cyberleo/Projects/">cyberLeo Projects</a> | modified & extended by crestAT | <a href="https://github.com/crestAT/nas4free-downloady">nas4free-downloady</a> </div> </td> </tr> </table> </div> </center>