File: templates/terminal/index.php

Recommend this page to a friend!
  Classes of Andoitz Jordan Marmolejo   JavaScript Query Terminal   templates/terminal/index.php   Download  
File: templates/terminal/index.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 templates/terminal/index.php
Date: 2 years ago
Size: 631 bytes
 

Contents

Class file image Download
<html> <head> <script src="/templates/terminal/jquery-1.11.1.min.js" type="text/javascript"></script> <script src="/templates/terminal/phpquery.min.js" type="text/javascript"></script> <link href="/templates/terminal/phpquery.css" rel="stylesheet" type="text/css"> </head> <body> <div id="terminal"></div> <script> jQuery(function($,undefined) { $('#terminal').terminal(function(command,term){term.ajax(command<?php if(isset($_SESSION["user"]["token"])){ echo ",'".$_SESSION["user"]["token"]."'"; } else echo ",''"; ?>);},{ greetings: '', name:'phpquery', prompt:'PHPQuery:~$ / ' }); }); </script> </body> </html>