TonQ
-
Posts
30 -
Joined
-
Last visited
Content Type
Profiles
Forums
Articles
Posts posted by TonQ
-
-
i don't understand why it's not working :o
I have no error on error on my /getNoLogDeathLogs.php :(
perhaps this come from my xampp apache version :
Apache Version Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3 :(
-
humm it's seems working but i have no information on my board :/ i will wait the next restart :)
Thx for your support and your awesome work ! i'll back later with the result ;)
-
<?php header('Access-Control-Allow-Origin: *'); ini_set('memory_limit', '-1'); error_reporting(-1); ini_set('display_errors', 'On'); $postdata = file_get_contents("php://input"); $request = json_decode($postdata); $db = $request -> db; require 'Predis/Autoloader.php'; require 'config.php'; Predis\Autoloader::register(); $client = new Predis\Client([ 'host' => $myRedisHost, 'password' => $myRedisPass, 'port' => $myRedisPort, 'database' => $db ]); $deathlogs = $client-> llen('deathlog-LOG'); $deathlogs2 = $client-> lrange('deathlog-LOG', 0, $deathlogs); $dl = []; foreach($deathlogs2 as $log){ $result = []; $exploded = explode(" ",$log,3); $result['time'] = $exploded[0] . " " . $exploded[1]; $exploded2 = explode("(",$exploded[2],2); $result['killername'] = trim($exploded2[0]); $exploded3 = explode(")",$exploded2[1],2); $result['killerpuid'] = trim($exploded3[0]); $exploded3[1] = str_replace(" killed ","",$exploded3[1]); $exploded4 = explode("(",$exploded3[1],2); $result['killedname'] = trim($exploded4[0]); $exploded5 = explode(")",$exploded4[1],2); $result['killedpuid'] = trim($exploded5[0]); $exploded5[1] = str_replace(" with weapon","",$exploded5[1]); $result['weapon'] = trim($exploded5[1]); array_push($dl,$result); } echo json_encode($dl);
getNoLogDeathLogs.php
Thx :)
-
-
<?php
header('Access-Control-Allow-Origin: *');ini_set('memory_limit', '-1');error_reporting(-1);ini_set('display_errors', 'On');$postdata = file_get_contents("php://input");$request = json_decode($postdata);$db = $request -> db; <- Line 11require 'Predis/Autoloader.php';require 'config.php';the db request :(
$db = $request -> db;
-
it's not my password don't worry, my password is more complicated :p
it's just for the exemple ;)
-
u edited the config correctly?
i think so my conf.php :
<?php$myRedisPass = "mypassword";$myRedisPort = 6379;$myRedisHost = '127.0.0.1';$serverlist = '[{"community":"Ozi-Lan","name": "Ozi-Lan Epoch Server", "dbi": "0", "map":"altis","descr": "EpochMod |Altis |Mission & Ai City |Extra loot | Safe Base| JSRS3"}]';/** Fill in the config correctly. If redis is on another ip change this aswell and see that redis accepts externall connections than.** To add servers look at the example. DBI = database nummer* NO COMMA behind the last server*/?>my redis conf in EPOCH :[Redis]IP = 127.0.0.1Port = 6379DB = 0Password = mypassword -
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');
Hello, i try to install you're awesome work :D but i have no data on my website and when i change getNoLogDeathLogs.php with this code i obtain :
Notice: Trying to get property of non-object in C:\xampp\htdocs\ozi-epoch\server\getNoLogDeathLogs.php on line 11
Any idea ?
My database is on the same server as my arma server on a xampp tools.
Thx !
-
ok !! thx for the answers !
-
Hello,
This script is simply awesome, but i have just one question :
How can i add the mission's title into the marker zone on the map plz ?
sorry for my english :'(
[Tool][Realease 1.0] ZupaStats
in Tools
Posted
I change the folder to do a identical install as the original the adress is : http://92.222.104.73/ZupaStats/#/
Thx for the help :)