Ejemplo n.º 1
0
function status($msg)
{
    if (true) {
        console(trim($msg));
        return;
    }
    global $statusPadding;
    clearLine();
    echo $msg;
    echo "\r";
    $statusPadding = strlen($msg);
}
Ejemplo n.º 2
0
            }
            break;
        case 'etl2_run':
            runETL2();
            if (sizeof($_SESSION['segs']) > 0) {
                $msg[] = 'Processing ' . sizeof($_SESSION['segs']) . ' of ' . $_SESSION['segCount'];
                $debug = 'Running process';
                $flag = 1;
            } else {
                $msg[] = 'Response file converted to Json...';
                $debug = 'Process complete';
                $flag = 2;
            }
            break;
        case 'etl2_merge':
            $msg[] = 'Merging files now...';
            $debug = mergeETL2();
            break;
        case 'etl3':
            $msg[] = "Clearing the line...";
            $debug = clearLine();
            break;
        default:
            $msg[] = "Hmm...";
            $debug = "Unknown comand";
    }
    $e = array(implode('</br/>', $msg), $debug, $flag);
    echo json_encode($e);
} else {
    header('location:signin.php');
}