Jump to content




Apache Web-Server Browser [GUI] [BIG PROJECT]


  • You cannot reply to this topic
17 replies to this topic

#1 djblocksaway

    Epic Coderz

  • New Members
  • 397 posts
  • LocationAustralia

Posted 23 July 2012 - 06:22 AM

---[]***THE UPDATE IS HERE***[]---

[WE BELIEVE THAT THIS HAS NEVER BEEN DONE BEFORE AND A LOT OF HARD WORK HAS GONE INTO THIS]

Hey,

Me and 1lann have been working on a huge project.
the idea of the project is for it to list files from an apache web server and be able to browse easily and download and some other things :)/>
-------------------------------------------------------------
The Project is out of beta stages and is ready for the public It Is not yet Finished But The Early Versions Have Been Checked Multiple Times For Bugs.
If You Find A Bug Please Tell Us

----------------------------------------------------
On first use you will be greeted with a welcome screen and it will ask you to put in an address.this address must be to an apache webserver or you will probably get an error.
if you look on the internet you can probably find an example apache server!

[FOR THIS PROGRAM TO WORK AN APACHE WEB-SERVER ADDRESS IS NEEDED]

Links
Paste-Bin Link: http://pastebin.com/NLP9WCqW

Demo/Trial Apache Server [ NOT 24/7 ]
demoapache.ddns.me


Features
Fully Functional GUI
Download Support
File/Directory Listing
Scrolling Support
Reported Working On Apache Versions 2.1 - 2.2
Server List [Bookmark Servers/Address'es]
Previous Button [Connect To The Last Address You Connected To!]
And Much More!

IMPORTANT:

An Apache Server Will Look Something Like This And If It Doesn't Then The Address WILL NOT WORK With The Apache Browser!
---------
Note:
There Is Still A lot Of Work To Be Done And A lot Of Bugs To Fix!

Spoiler


Change-Log

1.0
First Release

1.1
Fixed Some Bugs [Error With Files/Directorys That Have Spaces]
Removed "Press Q To Exit" Text
Added A Cancel Button In The Actions Menu
Made A Help Screen
Fixed Some Other Small Bugs

1.2
Added An Exit Button To The Welcome Screen!
Added A Server List/Bookmark List
Fixed MANY Bugs
Updated The Welcome Screen
Added Text [If Address Is Invalid It Will Tell You!]
Updated Scrolling Support!
Updated File Listing Order! [Alphabetical]


TO-DO
Add A Check For Updates Button To Welcome Screen

Screen-Shots [Out-Dated!]

Spoiler


Spoiler


Spoiler

Some Notes/Credits!

Spoiler
© djblocksaway all rights reserved

#2 Noodle

  • Members
  • 989 posts
  • LocationSometime.

Posted 23 July 2012 - 10:08 AM

GLHF
Why is this needed?
Another thing, Are you actually connecting to the site? I'm just curious how you would draw EVERY site.

#3 djblocksaway

    Epic Coderz

  • New Members
  • 397 posts
  • LocationAustralia

Posted 23 July 2012 - 11:12 AM

noodles. yes it does actully connect to a site. and it doesnt connect to any site.
it will only connect to apache web servers (google it)

#4 Jan

  • Members
  • 141 posts
  • Locationthe Netherlands

Posted 23 July 2012 - 01:58 PM

Hello, that looks like a nice project :)/>
But you do the parsing of the HTML page by yourselves?
You can also use an xml parser:
function parseargs(s)
  local arg = {}
  string.gsub(s, "(%w+)=(["'])(.-)%2", function (w, _, a)
    arg[w] = a
  end)
  return arg
end
   
function collect(s)
  local stack = {}
  local top = {}
  table.insert(stack, top)
  local ni,c,label,xarg, empty
  local i, j = 1, 1
  while true do
    ni,j,c,label,xarg, empty = string.find(s, "<(%/?)([%w:]+)(.-)(%/?)>", i)
    if not ni then break end
    local text = string.sub(s, i, ni-1)
    if not string.find(text, "^%s*$") then
	  table.insert(top, text)
    end
    if empty == "/" then  -- empty element tag
	  table.insert(top, {label=label, xarg=parseargs(xarg), empty=1})
    elseif c == "" then   -- start tag
	  top = {label=label, xarg=parseargs(xarg)}
	  table.insert(stack, top)   -- new level
    else  -- end tag
	  local toclose = table.remove(stack)  -- remove top
	  top = stack[#stack]
	  if #stack < 1 then
	    error("nothing to close with "..label)
	  end
	  if toclose.label ~= label then
	    error("trying to close "..toclose.label.." with "..label)
	  end
	  table.insert(top, toclose)
    end
    i = j+1
  end
  local text = string.sub(s, i)
  if not string.find(text, "^%s*$") then
    table.insert(stack[#stack], text)
  end
  if #stack > 1 then
    error("unclosed "..stack[#stack].label)
  end
  return stack[1]
end
Source: http://lua-users.org/wiki/LuaXml
I used it to parse xml-bibles in my Bible Reader program, i am pretty sure it should work for html as well.

EDIT: Something went wrong with the code-posting, fixed it

#5 1lann

  • Members
  • 516 posts
  • LocationSeattle

Posted 23 July 2012 - 04:17 PM

View PostJan, on 23 July 2012 - 01:58 PM, said:

Hello, that looks like a nice project :)/>
But you do the parsing of the HTML page by yourselves?
You can also use an xml parser:
--CODE--
Source: http://lua-users.org/wiki/LuaXml
I used it to parse xml-bibles in my Bible Reader program, i am pretty sure it should work for html as well.

EDIT: Something went wrong with the code-posting, fixed it

Yes I wrote the parsing by myself
Spoiler

Thanks for the XML Parser, however I don't think I'll need it :-/

#6 djblocksaway

    Epic Coderz

  • New Members
  • 397 posts
  • LocationAustralia

Posted 24 July 2012 - 03:11 PM

added a demo server for people to test. not always on :)/>

#7 djblocksaway

    Epic Coderz

  • New Members
  • 397 posts
  • LocationAustralia

Posted 26 July 2012 - 08:03 AM

update coming soon =D

#8 Noodle

  • Members
  • 989 posts
  • LocationSometime.

Posted 26 July 2012 - 09:02 PM

Cool. Its looking good!
Will you be allowed to make custom pages for this or is it strictly Apache only (online)?

#9 djblocksaway

    Epic Coderz

  • New Members
  • 397 posts
  • LocationAustralia

Posted 26 July 2012 - 09:46 PM

View PostNoodle, on 26 July 2012 - 09:02 PM, said:

Cool. Its looking good!
Will you be allowed to make custom pages for this or is it strictly Apache only (online)?
thanks for the feedback.
but can you please give more detail about the custom page thing :)/>
thanks

#10 Noodle

  • Members
  • 989 posts
  • LocationSometime.

Posted 26 July 2012 - 11:04 PM

Hmm.. What about wamp? Like, as long as this can get to the Apache site it should work right?

#11 djblocksaway

    Epic Coderz

  • New Members
  • 397 posts
  • LocationAustralia

Posted 26 July 2012 - 11:31 PM

yes. i use xampp but you can use wamp and apache monitor etc just as long as it can reach an apache server itll work

#12 rex41043

  • Members
  • 88 posts

Posted 27 July 2012 - 12:54 AM

Nice work so far :)/>, but this has been done just not in the way you are EG
My "Inet" (working on name) uses a webserver to: download programs, run code with out downloading it has a nice GUI AND it is simple to use :D/>

But yours is doing good :(/> and i can't wait to c it when its done :D/>

#13 Noodle

  • Members
  • 989 posts
  • LocationSometime.

Posted 27 July 2012 - 01:49 AM

This seems great because I could setup the computer files on my wamp dir (I'll find a way) and people will be able to access all the files, aswell as change them and seriously encourage hackers :)/>
I'll find a way to make this work 100% where you can make an anti-virus also..

#14 djblocksaway

    Epic Coderz

  • New Members
  • 397 posts
  • LocationAustralia

Posted 27 July 2012 - 04:56 AM

View Postrex41043, on 27 July 2012 - 12:54 AM, said:

Nice work so far :D/>, but this has been done just not in the way you are EG
My "Inet" (working on name) uses a webserver to: download programs, run code with out downloading it has a nice GUI AND it is simple to use :(/>

But yours is doing good :)/> and i can't wait to c it when its done :D/>
rex when i say i believe this has not been done before i am saying that as in no one has done it with a GUI.

View PostNoodle, on 27 July 2012 - 01:49 AM, said:

This seems great because I could setup the computer files on my wamp dir (I'll find a way) and people will be able to access all the files, aswell as change them and seriously encourage hackers :)/>
I'll find a way to make this work 100% where you can make an anti-virus also..
yea this is very useful for servers. i use xampp and it seems to work perfect but wamp should work just as good =)

#15 rex41043

  • Members
  • 88 posts

Posted 27 July 2012 - 06:44 AM

View Postdjblocksaway, on 27 July 2012 - 04:56 AM, said:

View Postrex41043, on 27 July 2012 - 12:54 AM, said:

Nice work so far :D/>, but this has been done just not in the way you are EG
My "Inet" (working on name) uses a webserver to: download programs, run code with out downloading it has a nice GUI AND it is simple to use :)/>

But yours is doing good :)/> and i can't wait to c it when its done :(/>
rex when i say i believe this has not been done before i am saying that as in no one has done it with a GUI.

View PostNoodle, on 27 July 2012 - 01:49 AM, said:

This seems great because I could setup the computer files on my wamp dir (I'll find a way) and people will be able to access all the files, aswell as change them and seriously encourage hackers :)/>
I'll find a way to make this work 100% where you can make an anti-virus also..
yea this is very useful for servers. i use xampp and it seems to work perfect but wamp should work just as good =)
you dident read my text fully did you :D/> let me quote it for you "run code with out downloading it has a nice GUI AND it is simple to use :)/>"

#16 djblocksaway

    Epic Coderz

  • New Members
  • 397 posts
  • LocationAustralia

Posted 28 July 2012 - 02:23 AM

View Postrex41043, on 27 July 2012 - 06:44 AM, said:

View Postdjblocksaway, on 27 July 2012 - 04:56 AM, said:

View Postrex41043, on 27 July 2012 - 12:54 AM, said:

Nice work so far :(/>, but this has been done just not in the way you are EG
My "Inet" (working on name) uses a webserver to: download programs, run code with out downloading it has a nice GUI AND it is simple to use :)/>

But yours is doing good :)/> and i can't wait to c it when its done :)/>
rex when i say i believe this has not been done before i am saying that as in no one has done it with a GUI.

View PostNoodle, on 27 July 2012 - 01:49 AM, said:

This seems great because I could setup the computer files on my wamp dir (I'll find a way) and people will be able to access all the files, aswell as change them and seriously encourage hackers :)/>
I'll find a way to make this work 100% where you can make an anti-virus also..
yea this is very useful for servers. i use xampp and it seems to work perfect but wamp should work just as good =)
you dident read my text fully did you :D/> let me quote it for you "run code with out downloading it has a nice GUI AND it is simple to use :)/>"
oh sorry for my misunderstanding :D/>

#17 djblocksaway

    Epic Coderz

  • New Members
  • 397 posts
  • LocationAustralia

Posted 30 July 2012 - 08:38 AM

UPDATE COMING SOON! VERY SOON!

#18 djblocksaway

    Epic Coderz

  • New Members
  • 397 posts
  • LocationAustralia

Posted 30 July 2012 - 09:46 AM

THE UPDATE IS HERE!!!!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users