Web downloader

EriX920

Respected
All talk and ideas will be posted here in this thread. Mostly talk from me and Oldfart.

-- The web downloader will allow administrators to add authIds to the system to access files
-- The admin section will allow for admins to add servers which the files are hosted at

SWKE - Server who knows everything
1. Browser -> Swke
2. Browser < Swke servers login page
3. Browser sends AuthID -> Swke
4. Browser <- Swke sends list of servers if Auth OK
5. Browser chooses file -> Swke (maybe check Ips for closest server)
7. Browser -> does redirect to Remote Content server
8. Browser <- Remote Content Server - serves file

Database layout -

File:
- Filename(String Char 100)
- Filesize (In Bytes? Integer BigInt 30)
- CServer IP

User:
- AuthID (String Char34)
- Access Flags (admin/client) (String)
- Authed (Boolean)

Banned:
- IP Address
- Attempts

CServers:
- Max bandwidth
- Download script URL
- ConCurrent download limit


Please don't post unless you have good suggestions!!
 
Hi Erix920,

It's good to see that your idea has produced some interest over at http://cs.rin.ru! ;)

cheers
OldFart
 
BTW: Where are those PHP/Apache/MySQL gurus when we need them ?

I was following up a few of the pointers that Da_FileServer gave us and I've found some things that I'd forgot (thank God for reference books - I even found my old ASP.NET book)! :rolleyes:

Code:
	if	( $validated ) {
		$filename = 'files/motd.bin';
		header( 'Content-Disposition: attachment; filename="motd.bin' );
		//$mimetype = 'application/octet-stream';
		//$mimetype = 'mime/type';
		//header('Content-Type: '.$mimetype );
		readfile_chunked( $filename );
	}
	else {
		header( "Location: http://fs.updates.net.au/" );		
		//echo 'oldFart says piss off.';
		exit;
	}

You can test it at http://www.yasamm.com ;) - I may go poke the link on the end of the fs.updates.net.au and see if that works! 8O
 
Back
Top