Ejemplo n.º 1
0
        case 'download':
            if (isset($_GET['f'])) {
                Viewer::downloadFile($_GET['f']);
            }
            die;
            break;
        case 'clear':
            Viewer::clearLog();
            die;
            break;
        case 'downloadzip':
            Viewer::downloadLogs();
            die;
            break;
        case 'backup':
            Viewer::compressLogs();
            die;
            break;
        case 'realtime':
            Viewer::realtime();
            flush();
            die;
            break;
        default:
            echo "no action available";
            Viewer::stopProgress();
            die;
            break;
    }
}
$files = Viewer::getFiles();