Jump to content

Battlefield Admin Control Panel - BFACP


Message added by Prophet731,

Version 2.3.0 and 3.0 will only be offered as a SaaS solution. Please redirect all discussions regarding these versions to EZSCALE's discord channel. 

https://discord.com/channels/905179054527905823/1043276850694201375/1043276850694201375

Recommended Posts

Originally Posted by ColColonCleaner*:

 

what file or template would i edit to get rid of the metabans and istats buttons from the player view page ...

Maybe use a program like agent ransack on the install directory to find the name of that button, like the text inside it or something. Once you find it just remove the button display code. I don't know a quicker method.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by xloneshadowx*:

 

i had similar problems and added this line at the beginning of the file :- <_php error_reporting _>

it stops the error.

always backup files first !

add that line where? And im still missing my scoreboard
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by IceCold*:

 

I went back from version 2.0.3 to 2.0.0 rc2 and got this site is incorrectly displayed, anyone know how to fix?

2af704b63d.jpg

 

And does just in 2.0.0 version Admin table in Live scoreboard? Because in 2.0.0 i cant kick,move,ban from live scoreboard :sad:

d1f5aacb88.jpg

why did you change to lower version ?

you have probable screwed up the sql database, some how ?

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Hodor*:

 

2.0.0 rc2 i liked before, 2.0.0 also good but without "Admin Actions" in live scoreboard like 2.0.3 screen below:

b65906b5d9.jpg

 

also in the version starting from 2.0.1+ i cant find a player by "Search for player..." with nickname "sasaPK", the circle is stuck and does not show the result:

c714b11667.jpg

 

But in version 2.0.0 all good, but there is no "Admin Actions" in live scoreboard :sad:

fc1730b71e.jpg

 

but it finds two players and when I press on the last one I get an error

d7b65ce97e.jpg

d3dce41d97.jpg

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by IceCold*:

 

with the 500 error, take note of the file and

added this line at the beginning of the file :- <_php error_reporting _>

it stops the error. and sometimes allows script to continue

 

also , do you have more than 1 server on your AdKats [bFACP] ?

 

can you give me a link to your website ?

* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 weeks later...

Originally Posted by Prophet731*:

 

Sorry just now seeing this. Work makes me too tired to do anything at the end of the day. I've been thinking about fixing some of the problems in the latest dev version (adding exception handling and whatnot to different areas) but i'll be chipping at it slowly. As for your two errors. If you get an error like that on a players profile, that instantly tells me something is wrong with that players data in the database. It's either missing a value that i'm expecting to be there or maybe corrupted data somehow got in from the stats logger (usual culprit). It can be anything really but the most common problem is with the Game ID being set to zero (0) and no entry should have a zero (0) in it. I would check that and see if that solves the problem.

 

@IceCold

 

When you use that you prevent ANY errors from showing which if something doesn't work you will never know until that line is removed or commented out.

with the 500 error, take note of the file and

added this line at the beginning of the file :- <_php error_reporting _>

it stops the error. and sometimes allows script to continue

 

also , do you have more than 1 server on your AdKats [bFACP] ?

 

can you give me a link to your website ?

I will wait @Prophet731, he usually helped

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Timm*:

 

Hi.

 

 

I got this message when i try create new ban

 

 

500

Oops! Something went wrong.

A fatal error occured and application could not continue. Please report this incident to the site administrator and give them the following error message.

 

Trying to get property of non-object (View: /app/views/admin/adkats/bans/create.blade.php)

 

 

What is wrong?

 

Game server BF3. Only BF3 servers in Database. BFACP ver 203

 

Im trying v2.0.0-rc.1, and i not got that error, but on v2.0.0-rc.1 no live score board for BF3.

* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 months later...

Originally Posted by ty_ger07*:

 

Getting a thousand or so of these daily ...

 

PHP Parse error: syntax error, unexpected end of file in /home/www/app/Libraries/AntiCheat.php on line 135

 

This is calling github for weapons stats for adkats but it is part of the laravel package for bfacp ...

 

Here is the end of the script:

 

Code:

/**
     * Fetches the weapon damages from GitHub and caches it for 24 hours (1 day).
     *
     * @return mixed
     */
    private function fetchWeaponDamages()
    {
        $this->weapons = Cache::remember('acs.weapons', 60 * 24, function () {
            try {
                $request = $this->guzzle->get('https://raw.githubusercontent.com/AdKats/AdKats/master/adkatsblweaponstats.json');
            } catch (\Exception $e) {
                $request = $this->guzzle->get('http://api.gamerethos.net/adkats/fetch/weapons');
            }

            return json_decode($request->getBody(), true);
Syntax says expecting a "," or ")" but neither of those stop the error ...

I would guess that "line 135" (or line 120 according to ) should say:

 

Code:

$this->weapons = Cache::remember('acs.weapons', 60 * 24, function () ){
Displayed differently:

 

$this->weapons = Cache::remember('acs.weapons', 60 * 24, function () ){

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by xloneshadowx*:

 

Prophet why does the AdminCP alert me for an unread report when all the reports in the drop-down menu have been taken care of. It's actually getting really annoying alerting me all the time. Any Idea

 

-updated I went to the database under Adkats_Records_Main table and cleared all the report and admin codes that were there. that seemed to fix my issue for now

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Prophet731*:

 

Getting a thousand or so of these daily ...

 

PHP Parse error: syntax error, unexpected end of file in /home/www/app/Libraries/AntiCheat.php on line 135

 

This is calling github for weapons stats for adkats but it is part of the laravel package for bfacp ...

 

Here is the end of the script:

 

Code:

/**
     * Fetches the weapon damages from GitHub and caches it for 24 hours (1 day).
     *
     * @return mixed
     */
    private function fetchWeaponDamages()
    {
        $this->weapons = Cache::remember('acs.weapons', 60 * 24, function () {
            try {
                $request = $this->guzzle->get('https://raw.githubusercontent.com/AdKats/AdKats/master/adkatsblweaponstats.json');
            } catch (\Exception $e) {
                $request = $this->guzzle->get('http://api.gamerethos.net/adkats/fetch/weapons');
            }

            return json_decode($request->getBody(), true);
Syntax says expecting a "," or ")" but neither of those stop the error ...

I would guess that "line 135" (or line 120 according to ) should say:

 

Code:

$this->weapons = Cache::remember('acs.weapons', 60 * 24, function () ){
Displayed differently:
sixpax, which PHP version are you running is my first question. Secondly, did you make any modifications to the script.

 

Also sidenote, ty_ger is right, if its not posted in this thread I won't see it. Unfortunately life is taking priority for me and I can't focus on this like I want to. (Sucks). I do see the replies in this thread but I usually don't have time to respond that much or I forget.

 

Prophet why does the AdminCP alert me for an unread report when all the reports in the drop-down menu have been taken care of. It's actually getting really annoying alerting me all the time. Any Idea

 

-updated I went to the database under Adkats_Records_Main table and cleared all the report and admin codes that were there. that seemed to fix my issue for now

TBH I completely forgot how that system was even designed (pretty poorly I presume considering it was made when I was a novice in the language). Do you know which version you're running?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Prophet731*:

 

Hi.

 

 

I got this message when i try create new ban

 

 

500

Oops! Something went wrong.

A fatal error occured and application could not continue. Please report this incident to the site administrator and give them the following error message.

 

Trying to get property of non-object (View: /app/views/admin/adkats/bans/create.blade.php)

 

 

What is wrong?

 

Game server BF3. Only BF3 servers in Database. BFACP ver 203

 

Im trying v2.0.0-rc.1, and i not got that error, but on v2.0.0-rc.1 no live score board for BF3.

Sorry, I know this is a really late reply, I'm going to guess you never set your player id in your profile (web account). If you haven't that should fix it.

 

"Beginner" is enough to run BCP ?nitrado.png

It should be yes.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by sixpax12*:

 

sixpax, which PHP version are you running is my first question. Secondly, did you make any modifications to the script.

5.6 and no; never touched that script to the best of my knowledge.

 

I noticed this one: https://github.com/AdKats/BFACP/blob.AntiCheat.php

 

.. is 203 lines ... mine was chopped off at line 135. I replaced the one I had installed with the one at that link and now get a different error; but am going to redownload and extract the package I installed and see if that script inside that is any different.

 

Update: That worked ... no more errors. Thanks for all whom assisted.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Prophet731*:

 

5.6 and no; never touched that script to the best of my knowledge.

 

I noticed this one: https://github.com/AdKats/BFACP/blob.AntiCheat.php

 

.. is 203 lines ... mine was chopped off at line 135. I replaced the one I had installed with the one at that link and now get a different error; but am going to redownload and extract the package I installed and see if that script inside that is any different.

 

Update: That worked ... no more errors. Thanks for all whom assisted.

Ok cool, glad its solved then.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by tchum*:

 

Hi, i've just finished to instal BFACP and i have two problem.

The first one is the time zone of the chat is wrong, it show "in 2 hours" when somone post a fresh new message in the chat and idk who to fix it...

My second problem it's the live scoreboard, it's not working (infinite loading).

BFACP_bug.png

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Prophet731*:

 

Hi, i've just finished to instal BFACP and i have two problem.

The first one is the time zone of the chat is wrong, it show "in 2 hours" when somone post a fresh new message in the chat and idk who to fix it...

My second problem it's the live scoreboard, it's not working (infinite loading).

BFACP_bug.png

1) Make sure AdKats is set to push chat logger settings. This fixes the timezone issue as we use the UTC as a base.

 

2) Can you PM me a link to your install so I can look at the request that it's trying to do?

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Prophet731*:

 

General update from me.

 

Now that work and life has settled down for me somewhat, I'm going to get back into making this project compatible with php version 7.1.3. I'll be working on a complete rewrite to address multiple issues from the past 2 years of no updates. Please note this update will not be backwards compatible with older PHP versions as support for it has dropped.

 

If you want to follow any commit updates I do you can bookmark the repo here. https://g.gamerethos.net/adkats/BFACP/tree/v3.0

 

I'll try to keep things updated with it here in the thread as much as possible.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by xloneshadowx*:

 

General update from me.

 

Now that work and life has settled down for me somewhat, I'm going to get back into making this project compatible with php version 7.1.3. I'll be working on a complete rewrite to address multiple issues from the past 2 years of no updates. Please note this update will not be backwards compatible with older PHP versions as support for it has dropped.

 

If you want to follow any commit updates I do you can bookmark the repo here. https://g.gamerethos.net/adkats/BFACP/tree/v3.0

 

I'll try to keep things updated with it here in the thread as much as possible.

Would be nice to get some of the small issues fixed also I have the same problem with the time being off and I have adkats set too feed stat logger chat. My other issue is the report notification popup the permaban does not always work and could use a temp ban there if possible. if you need a server for testing just let me know or Col. he uses my servers as well
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by tchum*:

 

1) Make sure AdKats is set to push chat logger settings. This fixes the timezone issue as we use the UTC as a base.

 

2) Can you PM me a link to your install so I can look at the request that it's trying to do?

I fixed this problem, now the live scoreboard is working fine, it was just the RCON Password.

 

Very glad to hear that you will update BFACP !

By the way, do you take take advice of what could be changed/added ?

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Prophet731*:

 

Would be nice to get some of the small issues fixed also I have the same problem with the time being off and I have adkats set too feed stat logger chat. My other issue is the report notification popup the permaban does not always work and could use a temp ban there if possible. if you need a server for testing just let me know or Col. he uses my servers as well

Make sure the time difference is being set in the logger plugin. If it is and it's still not being correct, I think col had a setting which makes AdKats post the chat to the DB instead of the logger plugin. I would check for a setting like that.

 

I fixed this problem, now the live scoreboard is working fine, it was just the RCON Password.

 

Very glad to hear that you will update BFACP !

By the way, do you take take advice of what could be changed/added ?

As long as it's not too complicated, sure.
* Restored post. It could be that the author is no longer active.
Link to comment
  • 1 month later...
  • Administrators

Battlefield Admin Control Panel - BFACP

View File

Running on PHP Version 7

This does not work with any version of the BFACP do not try to run this application on that version. Use the latest stable PHP 5.6.

Circle CI Download Battlefield Admin Control PanelLatest Stable Version Total Downloads Latest Unstable Version License

Overview

The Battlefield Admin Control Panel (BFACP) is a web based admin tool designed to work exclusively with AdKats (v6+) and XpKillers Chat, GUID, Stats and Mapstats Logger (v1.0.0.3). The software is built with the Laravel PHP framework to speed up development time and make my job a lot easier.

FAQ

Requirements

  • MySQL Database (5.6+)
  • AdKats v6+
  • XpKillers Chat, GUID, Stats and Mapstats Logger v1.0.0.2+
  • PHP 5.5+
  • PHP Mcrypt
  • PHP PDO

Features

  • User, Role, and Permission system.
  • Live Scoreboard with chat.
  • Ban Management for AdKats.
  • Detailed player information with graph charts.
  • Server statistics page for each server showing population history, uptime history with data from UptimeRobot, and Mapstats.
  • Metabans support.
  • Report notifications with ability to change alert sounds.
  • Chatlog searching where you can search by multiple players and/or keywords and ability to only show from a certain date/time range.
  • Message of the Day
  • Quick DB Stats overview
  • and more!

Download the latest version. Once downloaded unzip it to a temporary folder on your computer. Next open the .env.php file located in the root folder in your favorite text editor. Scroll down to the database settings section and fill in your database connection information.

/**
* Database Settings
*/
'DB_HOST'        => 'localhost',
'DB_USER'        => 'root',
'DB_PASS'        => '',
'DB_NAME'        => 'mydatabase',

Next we need to create a encryption key. This is IMPORTANT! The default key provided is just a placeholder string and is insecure. I have provided a page where you can get a random 32 character string. I do NOT save these and they are random on each refresh. You can access this page here, scroll down to the CodeIgniter Encryption Keys. Once you have your key open up the file .env.php in the root folder and scroll down till you see the APP_KEY field. Replace the YourSecretKey!!! with the key that was generated. By default it will look like this.

/**
* Set your app key here
*/
'APP_KEY'        => 'YourSecretKey!!!'

Once completed upload the entire application to your webserver. Once uploaded you will need to modify some file and folder permissions. Change the files and folders permissions under app/storage recursively to 0777. This application was designed to run on a subdomain and not from a folder from the TLD. Make sure to create a subdomain and if possible have domain point to the public folder that's located under the root folder.

Now load up application in your web browser and it will begin the process of creating the tables. This process will take a few seconds to run on first load. When it completed you should see the dashboard.

Default login

Username: admin

Password: password

You can change the default username and password by clicking on Site Management > Users > Admin

Installing from the command line

This method is only for those who have shell access to their web server or VPS. This will download and extract the files to your current directory. Make sure it's an empty directory.

If you have git installed you can just run the following command to install it. You must have composer and php command line installed.

Composer Method (preferred)

composer create-project --prefer-dist --no-scripts --keep-vcs adkgamers/bfadmincp .

Git Method

git clone https://github.com/Prophet731/BFAdminCP.git .
composer install --no-scripts

This will clone and install the dependencies need for the BFACP to work. This will checkout the master branch which is the stable version. If you would like to run the develop version you will need to run git checkout develop before you issue the composer command.

To update it all you will need to do is run

git pull

and it will pull the latest version on the current branch (master or develop).

To make this an automated process you can create a cron job for it.

* * * * * cd /path/to/bfacp; git pull >/dev/null 2>&1

AdKats_Docs_Donate.jpg


 

The developer of the Battlefield Admin Control Panel (BFACP)

For BFACP support please post in the BFACP topic linked above.

Do not contact me via PM on the forums for help with procon. Please make a topic for it. Only PM's I will accept will revolve around any website issues.

spacer.png

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




  • Our picks

    • Game Server Hosting:

      We're happy to announce that EZRCON will branch out into the game server provider scene. This is a big step for us so please having patience if something doesn't go right in this area. Now, what makes us different compared to other providers? Well, we're going with the idea of having a scaleable server hosting and providing more control in how you set up your server. For example, in Minecraft, you have the ability to control how many CPU cores you wish your server to have access to, how much RAM you want to use, how much disk space you want to use. This type of control can't be offered in a single service package so you're able to configure a custom package the way you want it.

      You can see all the available games here. Currently, we have the following games available.

      Valheim (From $1.50 USD)


      Rust (From $3.20 USD)


      Minecraft (Basic) (From $4.00 USD)


      Call of Duty 4X (From $7.00 USD)


      OpenTTD (From $4.00 USD)


      Squad (From $9.00 USD)


      Insurgency: Sandstorm (From $6.40 USD)


      Changes to US-East:

      Starting in January 2022, we will be moving to a different provider that has better support, better infrastructure, and better connectivity. We've noticed that the connection/routes to this location are not ideal and it's been hard getting support to correct this. Our contract for our two servers ends in March/April respectively. If you currently have servers in this location you will be migrated over to the new provider. We'll have more details when the time comes closer to January. The new location for this change will be based out of Atlanta, GA. If you have any questions/concerns please open a ticket and we'll do our best to answer them.
      • 5 replies
    • Hello All,

      I wanted to give an update to how EZRCON is doing. As of today we have 56 active customers using the services offered. I'm glad its doing so well and it hasn't been 1 year yet. To those that have services with EZRCON, I hope the service is doing well and if not please let us know so that we can improve it where possible. We've done quite a few changes behind the scenes to improve the performance hopefully. 

      We'll be launching a new location for hosting procon layers in either Los Angeles, USA or Chicago, IL. Still being decided on where the placement should be but these two locations are not set in stone yet. We would like to get feedback on where we should have a new location for hosting the Procon Layers, which you can do by replying to this topic. A poll will be created where people can vote on which location they would like to see.

      We're also looking for some suggestions on what else you would like to see for hosting provider options. So please let us know your thoughts on this matter.
      • 4 replies
    • Added ability to disable the new API check for player country info


      Updated GeoIP database file


      Removed usage sending stats


      Added EZRCON ad banner



      If you are upgrading then you may need to add these two lines to your existing installation in the file procon.cfg. To enable these options just change False to True.

      procon.private.options.UseGeoIpFileOnly False
      procon.private.options.BlockRssFeedNews False



       
      • 2 replies
    • I wanted I let you know that I am starting to build out the foundation for the hosting services that I talked about here. The pricing model I was originally going for wasn't going to be suitable for how I want to build it. So instead I decided to offer each service as it's own product instead of a package deal. In the future, hopefully, I will be able to do this and offer discounts to those that choose it.

      Here is how the pricing is laid out for each service as well as information about each. This is as of 7/12/2020.

      Single MySQL database (up to 30 GB) is $10 USD per month.



      If you go over the 30 GB usage for the database then each additional gigabyte is charged at $0.10 USD each billing cycle. If you're under 30GB you don't need to worry about this.


      Databases are replicated across 3 zones (regions) for redundancy. One (1) on the east coast of the USA, One (1) in Frankfurt, and One (1) in Singapore. Depending on the demand, this would grow to more regions.


      Databases will also be backed up daily and retained for 7 days.




      Procon Layer will be $2 USD per month.


      Each layer will only allow one (1) game server connection. The reason behind this is for performance.


      Each layer will also come with all available plugins installed by default. This is to help facilitate faster deployments and get you up and running quickly.


      Each layer will automatically restart if Procon crashes. 


      Each layer will also automatically restart daily at midnight to make sure it stays in tip-top shape.


      Custom plugins can be installed by submitting a support ticket.




      Battlefield Admin Control Panel (BFACP) will be $5 USD per month


      As I am still working on building version 3 of the software, I will be installing the last version I did. Once I complete version 3 it will automatically be upgraded for you.





      All these services will be managed by me so you don't have to worry about the technical side of things to get up and going.

      If you would like to see how much it would cost for the services, I made a calculator that you can use. It can be found here https://ezrcon.com/calculator.html

       
      • 11 replies
    • I have pushed out a new minor release which updates the geodata pull (flags in the playerlisting). This should be way more accurate now. As always, please let me know if any problems show up.

       
      • 9 replies
×
×
  • Create New...

Important Information

Please review our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.