コード例 #1
0
                }
                if(e.ctrlKey && code.toString() == 67) {
                    e.preventDefault();
                    manda(String.fromCharCode(3), true);
                    return false;
                }
                if(e.ctrlKey && code.toString() == 68) {
                    e.preventDefault();
                    manda(String.fromCharCode(4), true);
                    return false;
                }
                if(e.ctrlKey && code.toString() == 90) {
                    e.preventDefault();
                    manda(String.fromCharCode(26), true);
                    return false;
                }
        });
        $(".stdin").val("").focus();

        $("body").click(function(){
            $(".stdin").focus();
        })
    </script>
  </body>  
</html>
  <?php 
/**
 * All the output is made by this simple method.
 */
Terminal::run('root', 'kaaaa');
コード例 #2
0
ファイル: example.php プロジェクト: w3prodigy/scrapyard
<?php

/**
 *
 * PHP Multi-Processing Usage Example
 * This code reads in a file, splits it up, and then let's the Multi-Process Class handle the chunks of data.
 * @uses multi-processing.class.php to create PHP processes.
 * @uses pointer.php to execute tasks.
 * @author Jay Fortner, 2007
 * 
**/
$MT = new Terminal();
$MT->cmd = 'php /home/jayfortner/webroot/dev/tasking/pointer.php';
$MT->totalSockets = 15;
ini_set("memory_limit", "128M");
$file = 'http://www.website.com/file.txt';
$handle = fopen($file, "r");
$contents = '';
while (!feof($handle)) {
    $contents .= fread($handle, 8192);
}
$replace = array("\r\n", "\r", "\n");
$contents = str_replace($replace, ',', $contents);
$content = explode(',', $contents);
$MT->input = $content;
fclose($handle);
$MT->run();
exit;
コード例 #3
0
ファイル: index.php プロジェクト: anonymframework/xwiterm
                }
                if(e.ctrlKey && code.toString() == 67) {
                    e.preventDefault();
                    manda(String.fromCharCode(3), true);
                    return false;
                }
                if(e.ctrlKey && code.toString() == 68) {
                    e.preventDefault();
                    manda(String.fromCharCode(4), true);
                    return false;
                }
                if(e.ctrlKey && code.toString() == 90) {
                    e.preventDefault();
                    manda(String.fromCharCode(26), true);
                    return false;
                }
        });
        $(".stdin").val("").focus();

        $("body").click(function(){
            $(".stdin").focus();
        })
    </script>
</html>
<?php 
/**
 * All the output is made by this simple method.
 */
Terminal::run($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']);