| 
		
 | 
	| 
		
 | 
	
		
		
			| Re: FTPUploader Plugin [message #387826 is a reply to message #387823] | 
			Mon, 25 May 2009 09:01    | 
		 
		
			
				
				
				  | 
					
						  
						reborn
						 Messages: 3231 Registered: September 2004  Location: uk - london
						
	Karma: 0
 
					 | 
					General (3 Stars)  | 
					 | 
		 
		 
	 | 
 
	
		I've not tested to see if it works, but if it does, good job man. That's really kick-ass! 
 
//Ninja edit 
 
Just looked at the code, that's pretty clever, you're writing to the html page every 2 minutes with updates, then triggering the batch file to upload. Pretty clever... Nice one mate!   
 
//Ninja edit 2 
 
Oh yeah.. You're supposed to offer a direct link to the download and some screen shots.
		
		
 
  
		[Updated on: Mon, 25 May 2009 09:07] Report message to a moderator  
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 | 
	
		
		
			| Re: FTPUploader Plugin [message #387838 is a reply to message #387823] | 
			Mon, 25 May 2009 10:58    | 
		 
		
			
				
				
				  | 
					
						  
						jnz
						 Messages: 3396 Registered: July 2006  Location: 30th century
						
	Karma: 0
 
					 | 
					General (3 Stars)  | 
					 | 
		 
		 
	 | 
 
	
		Link with Wininet.lib 
 
 
 
DWORD __stdcall Upload(void *)
{
	printf("Start upload...\n");
	HINTERNET intern = InternetOpen("YaRR", INTERNET_OPEN_TYPE_DIRECT, 0, 0, 0);
	if(!intern)
	{
		printf("Unable to open an internet - %d\n", GetLastError());
		return 0;
	}
	HINTERNET intern2 = InternetConnect(intern, "ftp.host.com", 21, "username", "password", INTERNET_SERVICE_FTP, 0, 0);
	if(!intern2)
	{
		printf("Unable to open a connection - %d\n", GetLastError());
		InternetCloseHandle(intern);
		return 0;
	}
	if(FtpPutFile(intern2, "myfile.html", "myfile.html", FTP_TRANSFER_TYPE_BINARY, 0))
	{
		printf("Upload complete\n");
	}
	else
	{
		printf("Upload failed - %d\n", GetLastError());
	}
	InternetCloseHandle(intern);
	return 0;
}
 
 
 
CreateThread(0, 0, Upload, 0, 0, 0); //start
  
		
		
		
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	
		
		
			| Re: FTPUploader Plugin [message #388080 is a reply to message #387823] | 
			Wed, 27 May 2009 02:27    | 
		 
		
			| 
				
	 | 
 
	
		Well witte LGSL doesnt actually work for WOL servers it might only work for gamespy but since most ppl do use WOL its quite handy.  
Im working on getting all players in game on it as well, another thing about this is its simple html rather than all that from LGSL
		
		
  FT-Owners - Sladewill,Snazy2007,Willdy 
http://FT-Gaming.com for more info...
		
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 | 
	
		
		
			| Re: FTPUploader Plugin [message #388238 is a reply to message #387823] | 
			Thu, 28 May 2009 01:15    | 
		 
		
			
				
				
				  | 
					
						  
						reborn
						 Messages: 3231 Registered: September 2004  Location: uk - london
						
	Karma: 0
 
					 | 
					General (3 Stars)  | 
					 | 
		 
		 
	 | 
 
	
		It's a nice update, very cool. You might want to try and look at the settings loader in the plug-in example source code. It would allow you to make the hostname, port, user name, password etc etc all configurable variables for people to set in an .ini file.
		
		
 
  
		
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 |