Ejemplo n.º 1
0
<?php

if (isset($_POST['command'])) {
    require_once 'class/console.class.php';
    $cmd = $_POST['command'];
    $console = new Console();
    echo $console->execute($cmd);
    exit;
}
?>
<!DOCTYPE html>
<html>
<head>
	<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
   <script type="text/javascript">
		
		var executing = false;
		$(document).ready( function(){
			
				var hist = new Array();
				var hpos = 0;
			
				$("#execute").click(function(){
						
						if( executing ) return;
						
						var command = $("#command").val();
						executeing  = true;
						
						
						$("#command").val( "" );
 /**
  */
 public static function update()
 {
     return Console::execute('php bin/composer.phar update');
 }
Ejemplo n.º 3
0
 protected function executeCommand($command)
 {
     $console = new Console();
     return $console->execute($command);
 }