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
Online Clients
Author Message
Leonidas
Master
**

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #1
Online Clients
Okay, I've made alot of posts right after another and im sorry for all the questions lol, this will be my last one for today.


I have a web page displaying my server's status. Showing online players, guilds, items, npc's, etc.

My problem is that when someone is connected to the status page, it counts that person as an "in-game player". So for example. 2 players are in-game, 2 people are viewing the status from a web page, it now says that there are 4 players online.

I'm using %CLIENTS% to get the online amount.

Is there a way to only show in-game players and not people viewing the webpage? Without using mysql, because I have no clue how to do any of that lol.
09-16-2015 09:49 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #2
RE: Online Clients
sphere can generate html pages in 2 ways
-using page generation + http server
-using page generation only

when you use page generation + http server, sphere will act as a simple HTTP server so if anyone open an http page it will be a new connection and this means +1 client online

to avoid this, you must enable only the webpage generation and use any other http server (ISS, apache, etc). This will make sphere only generate the html page and the rest will be handled by the HTTP server
09-17-2015 05:08 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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