tyger07 / bf4-server-stats Goto Github PK
View Code? Open in Web Editor NEWBF4 Server Stats Web Page using XpKiller's Procon Stats Logging plugin.
License: GNU General Public License v3.0
BF4 Server Stats Web Page using XpKiller's Procon Stats Logging plugin.
License: GNU General Public License v3.0
The code should find all available servers in the database so users don't need to do this work. The user should be able to only need to enter database connection info and let the code find available servers.
MAP STATS does show the maps but not the uper parts any id?
Also county not working.
https://jhinta.com/BF4-Server-Stats/index.php?p=maps&sid=1
If a user has some logging features disabled in their procon plugin, some features of the stats page don't handle this issue well.
I would like to see the Top Players on a separate page instead of on the first page with the live stats to make the page shorter for mobile use and so on.
As a server owner, using the chat log is extremely helpful to mediate issues between players, as well as check for abusive chat. Presently it's difficult to navigate through the chat pages, and we would love to see an ability to search chat by time, by using a time range, or by player name. That would make things worlds easier. Thanks :)
first hi and thanks for the hard work you done !
for one reason the link don't work maybe the name is to long ?
here is the link from our clan stats page http://gwg-clan.eu/gwg-stats/
and the link from battlelog
http://battlelog.battlefield.com/bf4/servers/pc/?filtered=1&expand=0&useAdvanced=1&q==GwG=Conquest%20ONLY%20Hardcore%20Assorted%20Maps%20FF%20ON%2064%20+2%20com
Users could cause the code to execute additional code in sql queries by alterring the url query string.
Rank image is missing for people with 110+ ranks on the stats image.
If the database time is different than the web server time, some issues may be noticed. Most noticeable is that if you search for a recent message time (or click on a recent message time link) in the chat log to view only messages which occurred near that time, if that time appears to the web server as occurring in the future (because the web server is in a later time zone where the time is currently earlier than the database's time zone), it will not give you the content you were expecting to see.
I should consider using mysql> SELECT NOW();
in order to get the time from the database and do filtering based on that time.
Hey, since we couldn't get a backup of the forums so that another person can hold the web admin torch, colon and I created a new forum. It's domain is https://myrcon.net/
We're going to slowly bring the topics back into that forum for each plugin, going to take time since it has to be done manually.
Since I didn't have another way of letting you know thought I pass it off here.
If you want to remake yours under your name you can, I can edit the post with whatever snapshot we had of it at the time.
Sent from my OnePlus5T using FastHub
Hallo , Ich habe das Procon installiert , Spieler werden in der Datenbank gespeichert , aber sie werden nicht auf der HP angezeigt . Habe allei einstellungen gemacht .
Hier der Link http://dfc-funclan.de/bf4stats/index.php
Was könnte das sein ? oder können sie mir da weiter helfen
Hello, I installed the Procon, players are stored in the database, but they are not displayed on the HP. Alone I made attitudes.
Here is the link http://dfc-funclan.de/bf4stats/index.php
What could that be ? or can you help me further
When cached information is displayed and the user can tell that it needs to be updated for one reason or another, the user should have an option to click a button to refresh the cache.
not too sure how to fix it one is 0/64 people the other is the actual serve now but i would like to only have one serve listed with both servers combined into one again
It may be nice if the code checks https://github.com/tyger07/BF4-Server-Stats/releases.atom for an updated version and then notifies the user within the stats page that a code update has been released.
See also: https://www.w3schools.com/php/php_xml_simplexml_read.asp
Missing images for:
AR160
AWS
SR2
SR338
SW40
Click Join at top of the page and go to battle log and be able to join
Still no Join button but it is using HTTPS.
I can not seem to get signatures to work. Server banners are ok, Player profiles are fine just no sig.
Stock fresh install running XAMP on windows.
[18-Apr-2016 18:17:59 Australia/Sydney] PHP Notice: Undefined index: weaponkills in E:\wwwdata\stats\common\signature\signature.php on line 126
If there is only one server, global server stats should not be available.
Good afternoon!
Some time ago, when connecting to your favorite server, "! [EGL] HARDCORE TDM CLASSICS ALL WEAPONS" received a message: Game is disabled: you have been excluded by the administrator. Reason specified: [BF4DB] Multihack. Appeal at https://bf4db.com/player/ban/10046681 [perm] [BF4DB].
I've never used cheats. I turned to the bf4DB.com administration and received a confirmation that I did not have a ban. I am attaching a screenshot of the correspondence with advice to contact the Administrator of your site. My son MBL2010 has a similar problem.
I am attaching a screen with my statistics and with the statistics of my son on bf4DB.com.
Please help resolve the issue and let me and my son to continue playing on your server.
Hey, first i want to thank you for your creat work )
I have a question regarding the Stats Page:
I know the Procon Plugin does not provide Clan Tags, but i have inserted them manually in the database, Is it possible to Add a sortable Column in the Stats view Top Players for the Clan Tag?
The BF4Stats link at the bottom of the player stats page serves no purpose since BF4stats.com shut down.
Not sure whats up with my stats page but our leaderboard doesn't show top players, it does however show top 20 players this week. Is there a certain way i need to set the settings in procon to get this to work right?
When can we expect an update for the new Dragon’s Teeth maps? I hope you have not given up on this project. Your webpage add-on has been great to have on our website.
Thank you for your efforts.
Caching data has little performance benefit for small servers. It has more of a negative impact because small servers have small stats where small changes in stats has a more noticeable affect on the overall stats.
Caching data should be disabled by default for servers with stats smaller than some size.
Is there any reason the soldierName couldn't be malicious and used for SQL injectikon?
I was expecting I could set the server ID to 1 and it would continue using the stats from that server using the stats plugin.
Instead it created a new server ID wish I can not change.
I expected this to sync over or at the very least not show a server that is offline.
Now it is showing an extra server and the original one is also still showing as if it is still online, player count and everything is still showing.
https://vps.deadfriendsgaming.com/bf4stats/
delete one of your servers hosted and add it again with a new server port.
I want to see phantom kill counts in player detail of leaderboard but I couldn't find it. So could you add data of phantom?
Is it possible to have Nginx support for the signature generation? Can't seem to get it to work.
Hello, is it possible to implement a Function to request the listing of Weaponstats, a Leadingboard for each listed Weapon?
No option to get a List for special Weapon
No Option given.
Hi!
I want to understand why the score of the current week players is higher than the global score.
Keep the good work!
The weapon block probably should not appear if user has no weapon stats or at least not appear empty and provide some message about no weapon stats being available.
There are a lot of CREATE TABLE IF NOT EXISTS queries starting out various functionality. It would probably be faster to do a request to information_schema to see if the table exists first, and then create table if necessary.
Server info and Maps to load
Server and Maps pages just show spinning loading indicator and never loads the pages.
pull up the site and click the MAPS or SERVICE INFO tabs.
https://i.imgur.com/53C7707.png
I just decided to install fresh everything on a new host running Ubuntu 16.04 and move my DB over and install this software while I'm about it (been running the stats logger, but not with the spiffy web interface). Live Scoreboard doesn't work. Seems mysql has changed a little and now rejects one of the SELECT requests in live-scoreboard.php .
MYSQLD version 5.7.22-0ubuntu0.16.04.1
From a mysql command line connected to and using your DB...
This works: SELECT cp.Soldiername
, cp.Score
, cp.Kills
, cp.Deaths
, cp.TeamID
, cp.SquadID
, cp.CountryCode
, sub.PlayerID
FROM tbl_currentplayers
cp LEFT JOIN ( SELECT tpd.PlayerID
, tpd.SoldierName
FROM tbl_playerdata
tpd INNER JOIN tbl_server_player
tsp ON tsp.PlayerID
= tpd.PlayerID
INNER JOIN tbl_playerstats
tps ON tps.StatsID
= tsp.StatsID
WHERE tpd.GameID
= 1 AND tsp.ServerID
= 10) sub ON sub.SoldierName
= cp.SoldierName
WHERE cp.ServerID
= 10 AND cp.TeamID
= 1 GROUP BY cp.SoldierName
, sub.PlayerID ORDER BY Score DESC;
This fails: SELECT cp.Soldiername
, cp.Score
, cp.Kills
, cp.Deaths
, cp.TeamID
, cp.SquadID
, cp.CountryCode
, sub.PlayerID
FROM tbl_currentplayers
cp LEFT JOIN ( SELECT tpd.PlayerID
, tpd.SoldierName
FROM tbl_playerdata
tpd INNER JOIN tbl_server_player
tsp ON tsp.PlayerID
= tpd.PlayerID
INNER JOIN tbl_playerstats
tps ON tps.StatsID
= tsp.StatsID
WHERE tpd.GameID
= 1 AND tsp.ServerID
= 10) sub ON sub.SoldierName
= cp.SoldierName
WHERE cp.ServerID
= 10 AND cp.TeamID
= 1 GROUP BY cp.SoldierName
ORDER BY Score DESC;
The error is:
ERROR 1055 (42000): Expression #8 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sub.PlayerID' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
It's upset that sub.PlayerID is not in the GROUP BY. I'm not positive my solution of just sticking it in there will fix it correctly, but it seems to.
I changed common/home/scoreboard-live.php to modify the select which begins: "SELECT cp.Soldiername
, cp.Score
, cp.Kills
, cp.Deaths
, cp.TeamID
, cp.SquadID
, cp.CountryCode
, sub.PlayerID
..." to put ", sub.'PlayerID'" on the GROUP BY clause and it works.
This status page is vulnerable to xss attacks
few examples. they will only show up in firefox any other browser probably won't show if you're using chrome etc
1st
/stats/index.php?o=ASC_</script><script>prompt(993968)</script>&p=leaders&r=SoldierName&sid=15
2nd example
/stats/common/countries/countries.php?c=DE%2cRU%2cGB%2cFR%2cPL%2cSE%2cNL%2cTR%2cIT%2cES%2cFI%2cDK%2cAT%2cUA%2cBE%2cCZ%2cNO%2cCH%2cHU%2cIL'%22()%26%25<ScRiPt%20>prompt(902136)</ScRiPt>&gid=1&sid=15
Images which use the pchart API (map stats image, server info images, server banner image) appear correctly.
With newer versions of PHP (how new? PHP 7 and up?), the official pchart doesn't work. Images return code 500 errors.
Since pchart support has apparently ended, consider updating to and implementing an unofficial version of pchart designed to solve this issue. For example: https://github.com/bozhinov/pChart2.0-for-PHP7
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.