Re: [SLUG] Website Looks Like a Unix Shell

From: tony z (phcc_tonyz@yahoo.com)
Date: Sun Aug 17 2008 - 06:27:46 EDT


I'm not sure exactly what you mean, but it's funny you ask...
I just gave this same idea some thought last night...

I used to run a BBS and once the internet started to gain in popularity I made it available over the web via a Java-Telnet client embedded into the web-page.  Not something I'd want to do now-a-days.

If you are looking for that "shell look" through a web language such as HTML, JAVA, PHP, etc...   It would be rather easy to write an HTML FORM with a text field as the "command line" when the form is "submitted" a form value such as "cd downloads" could be interpreted by the form processor as :   

if (isset($_POST['command']){
if  ($_POST['command'] == 'cd downloads'){ echo '<meta http-equiv="Refresh" content="1; url=./downloads">'; }
elseif ($_POST['command'] == 'cd music'){  echo '<meta http-equiv="Refresh" content="1; url=./music">'; }
} else { echo 'Bad command or filename...'; }

**Now, just include the form in all pages**

That example is off the top of my head and far from complete...

Obviously you will need to understand HTML Forms and a language such as PHP to do this.  Good Luck.

--- On Sat, 8/16/08, Paul M Foster <paulf@quillandmouse.com> wrote:
From: Paul M Foster <paulf@quillandmouse.com>
Subject: [SLUG] Website Looks Like a Unix Shell
To: slug@nks.net
Date: Saturday, August 16, 2008, 11:37 PM

I went to a website one time, which looked like a Unix shell. I'd like
to go back there and look at how the guy did it, but I can't for the
life of me remember what site it was, and Google didn't help.

Anyone know the site?

Paul

-- 
Paul M. Foster
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 16:34:45 EDT