The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
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



Post: #1
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
Find all posts by this user Like Post Quote this message in a reply
Kanibal
Master
**

Posts: 255
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0



Post: #2
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 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

Grandmaster Localhost Admin
(This post was last modified: 11-11-2016 02:18 AM by Kanibal.)
11-11-2016 02:02 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)