コード例 #1
0
ファイル: console.php プロジェクト: prophetnite/iplogger
<?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";
コード例 #2
0
	<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";
コード例 #3
0
}
?>
				</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";
コード例 #4
0
                                			<tr>
                                				<th style="width: 13%;">Size:</th>
                                				<td style="width: 20%;">&nbsp;</td>
                                				<th style="width: 13%;">Time Remaining:</th>
                                				<td style="width: 20%;" >&nbsp;</td>
                                				<th style="width: 13%;">PID:</th>
                                				<td style="width: 20%;">&nbsp;</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 |&nbsp;
                    			<a href="http://www.cyberleo.net/cyberleo/Projects/">cyberLeo Projects</a>&nbsp;|&nbsp;modified &amp; extended by crestAT |&nbsp;
                    			<a href="https://github.com/crestAT/nas4free-downloady">nas4free-downloady</a>
                    		</div>
                        </td>
                    </tr>
                </table>
            </div>
            </center>