show game Server Status on website by ZtEaLmAx14th Jan 2005 9:23
|
---|
Summary This generates an html file and uploads it to your web server via FTP get the complete packade "Server status.rar (103586 bytes)" You find it under source Modify it to fit your nee Description This generates an html file and uploads it to your Code ` This code was downloaded from The Game Creators ` It is reproduced here with full permission ` http://www.thegamecreators.com ` *** (C) 2005 ZTEALMAX - Server Status *** ` http://www.thegamecreators.com rem Generate html for starting game server STARTUPSERVER: Print "Generate html for starting game server" status$="<img src="online.png"><B>ONLINE</B>" delete file "status.htm" open to write 1,"status.htm" write string 1,status$ close file 1 gosub accountinfo rem Generate html for shuting down game server SHUTDOWNSERVER: Print "Generate html for shuting down game server" status$="<img src="offline.png"><B>OFFLINE</B>" delete file "status.htm" open to write 1,"status.htm" write string 1,status$ close file 1 gosub accountinfo rem Reading your ftp account information accountinfo: print "Reading your ftp account information" open to read 1, "account.txt" read string 1, ftpurl$ read string 1, username$ read string 1, password$ read string 1, file$ gosub upload2ftp rem uploading status file upload2ftp: print "uploading status file" cls ftp connect ftpurl$,username$,password$ ftp put file file$ set cursor 30,30 end |