PHP Classes

File: templates/terminal/index.php

Recommend this page to a friend!
  Classes of Andoitz Jordan Marmolejo   PHP Query Terminal   templates/terminal/index.php   Download  
File: templates/terminal/index.php
Role: Auxiliary script
Content type: text/plain
Description: Main template script
Class: PHP Query Terminal
Run command classes from an interactive console
Author: By
Last change: Update of templates/terminal/index.php
Date: 4 months 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>