Yeah, probably. Your webpage PHP scripts are irrelevant. OpenTibia gameworlds have a 'status' port that is kind of similar to ICMP Ping, that reply info such as players online and uptime to a simple request packet. There are various ways to fix this in your source code, if you search.
The simplest is this:
status.cpp
find and change sprintf(buffer, "%d", g_game.getPlayersOnline()); to sprintf(buffer, "%d", Connection::connectionCount);
find and change output->put<uint32_t>(g_game.getPlayersOnline()); to output->put<uint32_t>(Connection::connectionCount);
make clean
./configure --enable-server-diag
make
also, next time, put this in the 'Support' forum.