exit;
}
if ($argv[1] == "--all") {
    process_all_tables();
    exit;
}
if ($argv[1] == "--xtime") {
    process_xtable($argv[2]);
    exit;
}
if ($argv[1] == "--repair-tables") {
    repair_tables();
    exit;
}
if ($argv[1] == "--last-days") {
    last_days();
    exit;
}
function process_xtable($xtime)
{
    $table = date("Ymd", $xtime) . "_hour";
    events_tail("process_xtable:: Processing {$table}");
    _xprocess_table($table);
    $unix = new unix();
    $php = $unix->LOCATE_PHP5_BIN();
    $nohup = $unix->find_program("nohup");
    shell_exec("{$nohup} {$php} /usr/share/artica-postfix/exec.squid.stats.totals.php --xtime {$xtime} >/dev/null 2>&1 &");
}
function process_all_tables()
{
    if ($GLOBALS["VERBOSE"]) {
 * User: aravinth
 * Date: 10/7/15
 * Time: 12:03 AM
 */
?>
@extends('admin.adminLayout')

@section('content')

@include('notification.notify')

<!-- BEGIN OFFCANVAS RIGHT -->
<div id="content">

    <?php 
$view = last_days(10);
$device = device_count();
?>

    <!-- BEGIN BLANK SECTION -->
    <section>
        <div class="section-header">
            <ol class="breadcrumb">
                <li class="active">Dashboard</li>
            </ol>
        </div><!--end .section-header -->
        <div class="section-body">

            <div class="row">

                <div class="col-md-3 col-sm-6">