function print_log($message, $function = '', $type = 0, $is_exit = false)
{
    $log_type = '';
    if ($type == 0) {
        $log_type = '[ERROR]';
    } else {
        if ($type == 1) {
            $log_type = '[INFO]';
        }
    }
    echo $log_type . ' ' . ($type === 0 ? $function : '+') . ': ' . $message . br2();
    if ($is_exit) {
        do_exit();
    }
}
    	if ($pos !== false) 
    	{
    		$pos++;
    		$row['agent'] = trim(substr($row['agent'], $pos));
    }
    if($row['agent']=="") $row['agent']=substr($ab, 0, 20);
    */
    echo "\n";
    echo "<tr>\n";
    echo "<td>" . $row['id'] . "</td>\n";
    echo "<td>" . $row['datetime'] . "</td>\n";
    echo "<td>" . make_whois($row['ip']) . make_loc($row['ip']) . "</td>\n";
    echo "<td>" . br2(gethname($row['ip'])) . "</td>\n";
    echo "<td>" . br2($row['uri']) . "</td>\n";
    echo "<td>" . br1($row['agent']) . "</td>\n";
    echo "<td>" . br2($row['referer'], 30) . "</td>\n";
    echo "<td>" . $row['domain'] . "</td>\n";
    echo "<td>" . $row['filename'] . "</td>\n";
    echo "<td>" . $row['method'] . "</td>\n";
    echo "<td>" . $row['data'] . "</td>\n";
    echo "</tr>\n";
}
$time = microtime();
$time = explode(' ', $time);
$time = $time[1] + $time[0];
$finish = $time;
$total_time = round($finish - $start, 4);
mysqli_close($con);
?>

</tbody>