GithubHelp home page GithubHelp logo

tyger07 / bf4-server-stats Goto Github PK

View Code? Open in Web Editor NEW
21.0 21.0 13.0 19.08 MB

BF4 Server Stats Web Page using XpKiller's Procon Stats Logging plugin.

License: GNU General Public License v3.0

PHP 100.00%
battlefield-4 bf4 bf4-server-stats php procon server-stats stats-page webpage xpkiller-procon

bf4-server-stats's People

Contributors

jonathanspw avatar pwk avatar tyger07 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bf4-server-stats's Issues

index page code is cumbersome

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.

Split Live stats and Top players

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.

Search Chat by Time, Time Range, and by Player

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 :)

Rank

Rank image is missing for people with 110+ ranks on the stats image.

database time versus web server time mismatch can cause issues

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.

Migration of forum topic

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

Es werden Keine Spieler Daten im BF4-Server-Stats angezeigt

Expected Behavior:

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

Actual Behavior:

Steps Performed to Reproduce this Behavior:

PHP Notice: Undefined index: weaponkills

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

Problems with the unfair BAN

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.

Stats MBL2010
Dialog with the BF4DB
Stats Bred1982

Clan Page

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?

BF4 Stats is Down

The BF4Stats link at the bottom of the player stats page serves no purpose since BF4stats.com shut down.

Leaderboard isnt pulling "Top Players"

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?

caching should be disabled for small server sizes

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.

Possible SQL Injection

Is there any reason the soldierName couldn't be malicious and used for SQL injectikon?

Showing deleted server as if it is still there and online with conecred clients

Expected Behavior:

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.

Actual Behavior:

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/

Steps Performed to Reproduce this Behavior:

delete one of your servers hosted and add it again with a new server port.

Phantom kill is not shown

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?

Nginx support

Is it possible to have Nginx support for the signature generation? Can't seem to get it to work.

Request: Listing Stats per Weapon

Expected Behavior:

Hello, is it possible to implement a Function to request the listing of Weaponstats, a Leadingboard for each listed Weapon?

Actual Behavior:

No option to get a List for special Weapon

Steps Performed to Reproduce this Behavior:

No Option given.

Broken breadcrum link

broken index text above the breadcrumb image. only the tiny word "index" is clickable.

image

spelling ( Titak Headshots: )

unbenannt
ok i am German and my English is horror but i think that is an spelling error ?
Titak Headshots: better is Total Headshots:

Lots of CREATE TABLE IF NOT EXISTS queries

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.

Live Scoreboard is broken on new Ubuntu 16.04 install

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 .

Actual Behavior: Player data is missing on Live Scoreboard

Steps Performed to Reproduce this Behavior:

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.

XSS Attacks

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

pchart Images are Sometimes Broken

Expected Behavior:

Images which use the pchart API (map stats image, server info images, server banner image) appear correctly.

Actual Behavior:

With newer versions of PHP (how new? PHP 7 and up?), the official pchart doesn't work. Images return code 500 errors.

Proposed Solution:

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.