File: class/command.php

Recommend this page to a friend!
  Classes of Andoitz Jordan Marmolejo   JavaScript Query Terminal   class/command.php   Download  
File: class/command.php
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: JavaScript Query Terminal
Online console to run server commands using AJAX
Author: By
Last change: Update of class/command.php
Date: 2 years ago
Size: 793 bytes
 

Contents

Class file image Download
<?php /* web command developement user login */ class Command{ public static $info = "This command have no information."; public $data; public $root; public $header = array("code" => "200"); protected $folder = "commands/"; public function __construct(){ $this->root = "/home/".$_SESSION["user"]["username"]."/"; $this->header["prompt"] = "PHPQuery:~$ / "; $_SESSION["user"]["prompt"] = $this->header["prompt"]; } static public function help(){ return "This command have no information."; } protected function syntaxError($params,$n){ $message = false; if(count($params)!=$n){ $message = 'Error de sintaxis: Utilice el comando help para obtener más información del comando'; $message = "\n [[ib;#FFF;]".$message."]"; } return utf8_encode($message); } } ?>