Login   Register  
PHP Classes
elePHPant
Icontem

File: templates/terminal/index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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:
Date: 7 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>