SphereCommunity
WEB STATUS - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Expired/Outdated Versions (/Forum-Expired-Outdated-Versions)
+--- Forum: Sphere 51a Help (/Forum-Sphere-51a-Help)
+--- Thread: WEB STATUS (/Thread-WEB-STATUS)



WEB STATUS - x77x - 11-11-2016 01:37 AM

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.



RE: WEB STATUS - Kanibal - 11-11-2016 02:02 AM

(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 Smile
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