コード例 #1
0
ファイル: shell.php プロジェクト: jochenJa/remote-logs
<?php

var_dump(date('H:i:s', time()));
require_once 'runtime.php';
var_dump(date('H:i:s', time()));
session_start();
var_dump(date('H:i:s', time()));
SH::log('trying to fetch new lines ..');
var_dump(date('H:i:s', time()));
echo SH::flush();
var_dump(date('H:i:s', time()));
exit;
コード例 #2
0
ファイル: script.php プロジェクト: jochenJa/remote-logs
<?php

var_dump(date('H:i:s', time()));
require_once 'runtime.php';
session_start();
SH::load();
__('prepare script execution ...');
sleep(1);
__('done');
__('Execute script ...');
sleep(4);
__('done');
__('Execute script ...');
sleep(4);
__('done');
SH::finish();
var_dump(date('H:i:s', time()));
コード例 #3
0
ファイル: index.php プロジェクト: jochenJa/remote-logs
<?php

include 'runtime.php';
session_start();
SH::reset();
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>shell ?</title>
    <link rel="stylesheet" href="shell.css">
</head>
<body>
<div id="shell"></div>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.js"></script>
<script type="text/javascript" src="shell.js"></script>
<script type="text/javascript">
    jQuery('document').ready(function ($) {
        shell.init($('#shell'), 'PHP CONSOLE');
        shell.execute('script.php');
    });
</script>
</body>
</html>
コード例 #4
0
ファイル: runtime.php プロジェクト: jochenJa/remote-logs
 public static function reset()
 {
     $_SESSION[self::LOGS] = self::$runtime = new Runtime(array(), Runtime::PROGRESS);
 }