Jump to content

[Tool][Realease 1.0] ZupaStats


Zupa

Recommended Posts

Release 1.0 Zupastats. 

 

What is it?

 

A webapp that you can host on your php capable environment to display stats about kills, deatch and server rankings.

 

Technology?

 

Front-End: AngularJS

Back-End: PHP + PRedis

 

PHP 5.5 Required

 

Demo:

 

http://37.187.135.190/uk431/ZupaStats/#/

 

 

Download:

 

on 24 feb 2015

 

gTdQo1u.png

 

http://www.mediafire.com/download/xm59fk069cxzru7/ZupaStats1.0.rar

 

Instructions:

 

PHP 5.5 Required

 

 

Unzip the folder in your apache enviremont ( xampp htdocs) for example. ( More info about this later).

 

Go to the server/config.php and fill in your server data.

$myRedisPass = "redispass";
$myRedisPort = 6379;
$myRedisHost = '127.0.0.1'; // If php and redis are on the same server, this suffices

ALSO ADD YOUR SERVERS IN THIS FILE

 

 

         If next line doesnt apply for you, go to the Continue line

 

IF PHP and REDIS are on different servers ( you need to open the redis Port on that server AND bind your public ip in redis config !)

 

Example  redis.conf: ( Restart redis to activate this).

bind 127.0.0.1 38.17.135.190

Continue here:

 

Now browse to your website in a browser.  ( localhost or externally).

 

The server list takes the picture with same name as your server map. So put a picture called altis.png in image folder if u want to show that picture for an altis server.

 

Your servre needs PHP 5.5 

 

Screenshots:

 

25gM0dv.png

 

MZkAkBY.jpg

 

n0zCsE0.png

 

w92tHrQ.png

Link to comment
Share on other sites

I tried using the Fastpoint Redis manager and there was an issue with that. I was told it was because my database was 0. It wouldn't connect properly. I just uploaded this stats package to my webserver and it's not reading from my database. I wonder if the issue is because of my database being number 0? I can connect to my database with Redis desktop manager from my home computer.

Link to comment
Share on other sites

I tried using the Fastpoint Redis manager and there was an issue with that. I was told it was because my database was 0. It wouldn't connect properly. I just uploaded this stats package to my webserver and it's not reading from my database. I wonder if the issue is because of my database being number 0? I can connect to my database with Redis desktop manager from my home computer.

 

Your redis and my php files are on the same box? 

 

I don't see a problem with the DB 0 tbh. 

 

What do u get like in detail when u load it?

 

 

If u trust me, we can have a look on teamviewer together

Link to comment
Share on other sites

Your redis and my php files are on the same box? 

 

I don't see a problem with the DB 0 tbh. 

 

What do u get like in detail when u load it?

 

No, they are not on the same box. I have web hosting through Host Gator and my server/redis database are hosted at Vert Hosting. I've got other tools running on my webserver that connect to my A2 servers just fine, so I know the webserver allows the connection to the remote databases. 

 

Here's the URL to the stats. They are empty and I've confirmed the IP, port, etc matches that used in the Redis desktop tool: http://killinzedz.net/ZupaStats/#/stats

Link to comment
Share on other sites

Your redis and my php files are on the same box? 

 

I don't see a problem with the DB 0 tbh. 

 

What do u get like in detail when u load it?

 

 

If u trust me, we can have a look on teamviewer together

 

Do u run PHP 5.5 ?

 

http://killinzedz.net/ZupaStats/server/getNoLogDeathLogs.php?date=1423693348112

 

that isn't giving anything back, it just gives an internal error

Link to comment
Share on other sites

I see the latest version is 5.6.5. If Host Gator will update my PHP install, will your tool run under that version? Will an old version really stop all data from being displayed?

 

Just 5.5 or higher, or the php will not answer to thefront end site.

Link to comment
Share on other sites

Looks like it's PHP 5.4.37.

 

Try this:

 

Change the top of the deathNoLog.php file in server folder to

<?php
header('Access-Control-Allow-Origin: *');
ini_set('memory_limit', '-1');

/**
 * Created by PhpStorm.
 * User: jwindmolders
 * Date: 9/12/2014
 * Time: 11:06
 */
error_reporting(0);
ini_set('display_errors',0);
Link to comment
Share on other sites

I tried using the Fastpoint Redis manager and there was an issue with that. I was told it was because my database was 0. It wouldn't connect properly. I just uploaded this stats package to my webserver and it's not reading from my database. I wonder if the issue is because of my database being number 0? I can connect to my database with Redis desktop manager from my home computer.

 

He means his database instance was 0, we were doing an empty() check on a variable, the variable had a value of 0 so was throwing a false positive on that, Not looked at this however it may be a similar issue?

Link to comment
Share on other sites

He means his database instance was 0, we were doing an empty() check on a variable, the variable had a value of 0 so was throwing a false positive on that, Not looked at this however it may be a similar issue?

 

nop, shouldn't do a thing on this, 

Link to comment
Share on other sites

 

Try this:

 

Change the top of the deathNoLog.php file in server folder to

<?php
header('Access-Control-Allow-Origin: *');
ini_set('memory_limit', '-1');

/**
 * Created by PhpStorm.
 * User: jwindmolders
 * Date: 9/12/2014
 * Time: 11:06
 */
error_reporting(0);
ini_set('display_errors',0);

 

 

 

Or change it to this, to get more error logs

<?php
header('Access-Control-Allow-Origin: *');
ini_set('memory_limit', '-1');

error_reporting(-1);
ini_set('display_errors', 'On');

 

Ok, made those changes and still nothing. Where would these error logs be?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...