Thread Rating:
		
			
				- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
 
 
	
		
			| 
					WEB STATUS
				 | 
		
			| Author | Message | 
		
	
	
		
	
		| x77x  Master
 
   
   Posts: 488
 Likes Given: 0
 Likes Received: 15 in 15 posts
 Joined: Mar 2012
 Reputation: -4
 
 
 
 ![]() 
 | 
			| WEB STATUS 
 
				any old timers remember how the 51a web status page worked? 
you set the setting in the sphere.ini
 
and it creates a folder with the webpage, but how do people view the webpage?
 
connect from the ip?  ftp upload program?
 
Code:
 //[WEBPAGE 1]// WEBPAGEUPDATE=x
 // Frequency in seconds between updates on a web page (if any)
 WEBPAGEUPDATE=2
 //LOCATION AND FILE NAME IN SPHERE DIRECTORY FOR ACTUAL PAGE DESIGN
 /WEBPAGESRC=C:\Sphere\Web\SphereSTATUSBASE.HTM
 // LOCATION OF FILE THAT IS WEB ACCESSABLE FOR PEOPLE TO SEE
 WEBPAGEDST=C:\Sphere\Web\Status.htm
 // WEBCLIENTLISTFORM=<html>
 // HTML tag which returns the where (the region) a client is located
 WEBCLIENTLISTFORM=<tr><td>%NAME%</td></tr>
 // WEBSERVERLISTFORM=<html>
 // HTML tag which returns the server IP address and status
 WEBSERVERLISTFORM=<tr><td>%URLLINK%</td><td>%STATUS%</td></tr>
 // The first server must be the local server.
Dragons of Time 2000-2020
 http://dragonsoftime.com
 |  | 
	| 11-11-2016 01:37 AM |  | 
	
	| ![[+]](images/collapse_collapsed.gif)  
 | 
	
		| Kanibal  Master
 
   
   Posts: 258
 Likes Given: 7
 Likes Received: 30 in 28 posts
 Joined: Jun 2012
 Reputation: 0
 
 
 
 ![]() 
 | 
			| RE: WEB STATUS 
 
				 (11-11-2016 01:37 AM)x77x Wrote:  any old timers remember how the 51a web status page worked?
 you set the setting in the sphere.ini
 
 and it creates a folder with the webpage, but how do people view the webpage?
 
 connect from the ip?  ftp upload program?
 
You can generate *.php or *.html pages like C:\WebServer\www\mysitename.com\status.php and use Apache, nginx etc. to show it    
Code:
 [WEBPAGE 1]WEBPAGEUPDATE=2
 WEBPAGESRC=C:\Sphere\Web\SphereSTATUSBASE.HTM
 WEBPAGEDST=C:\WebServer\www\mysitename.com\status.php
 WEBCLIENTLISTFORM=<tr><td>%NAME%</td></tr>
 WEBSERVERLISTFORM=<tr><td>%URLLINK%</td><td>%STATUS%</td></tr>
 
 [WEBPAGE 2]
 WEBPAGEUPDATE=2
 WEBPAGESRC=C:\Sphere\Web\sphere_players.txt
 ...
 
 [WEBPAGE 3]
 WEBPAGEUPDATE=2
 WEBPAGESRC=C:\Sphere\Web\sphere_status.txt
 ...
 
Or generate player list in *.txt and load it directly into MySQL
 
Code:
 mysql> LOAD DATA INFILE "players.txt" INTO TABLE my_db.my_table;
 
and then Apache, nginx, PHP...
 
Or like in old time...
 
Code:
 http://yourserverip:yourserverport/status.htm
 Grandmaster Localhost Admin
 
				
(This post was last modified: 11-11-2016 02:18 AM by Kanibal.)
 |  | 
	| 11-11-2016 02:02 AM |  | 
	
	| ![[+]](images/collapse_collapsed.gif)  
 | 
	 
	
	
		
	
	
		
 
 
	 
	
	
	
	
	
	
	
		
		
	
	
	
User(s) browsing this thread: 1 Guest(s)