コード例 #1
0
    echo <<<EOM
<b>Could not include SQL library functions. Aborting</b>
</body>
</html>
EOM;
    exit;
}
$stats_num = array();
$date = strftime('%A, %e %B %Y, %T %Z');
$now = time();
if ($before == '') {
    $before = date($config[sql_date_format], $now + 86400);
}
$after = $after != '' ? "{$after}" : date($config[sql_date_format], $now - 604800);
$after_time = date2time($after);
$before_time = date2time($before);
$days[0] = $after;
$counter = $after_time + 86400;
$i = 1;
while ($counter < $before_time) {
    $days[$i++] = date($config[sql_date_format], $counter);
    $counter += 86400;
}
$days[$i] = $before;
$num_days = $i;
$column1 = $column1 != '' ? "{$column1}" : 'sessions';
$column2 = $column2 != '' ? "{$column2}" : 'usage';
$column3 = $column3 != '' ? "{$column3}" : 'download';
$column[1] = "{$column1}";
$column[2] = "{$column2}";
$column[3] = "{$column3}";
コード例 #2
0
ファイル: tools.php プロジェクト: GWXerxes/ulogd-viz
$orig_db2ip = $db2ip;
$time2date = custom_filter_input($_GET["time2date"], FILTER_VALIDATE_FLOAT);
$orig_time2date = $time2date;
$date2time = custom_filter_input($_GET["date2time"], FILTER_VALIDATE_STRING);
$orig_date2time = $date2time;
if (isset($ip2db)) {
    $ip2db = ip2db($ip2db);
}
if (isset($db2ip)) {
    $db2ip = db2ip($db2ip);
}
if (isset($time2date)) {
    $time2date = time2date($time2date);
}
if (isset($date2time)) {
    $date2time = date2time($date2time);
}
?>

<div class="row">
    <div class="col-lg-12">
        <h3>Tools</h3>
    </div>
</div>

<form action="tools.php" role="form" id="dashboard-generate" method="get" class="form-inline">

<div class="row">
    <div class="col-lg-12">
        <div class="panel-body">
            <div class="form-group">