Ashus.ashus.net
Call Of Duty: PHP Rules Checker 1.5 - Printable Version

+- Ashus.ashus.net (https://ashus.ashus.net)
+-- Forum: My creations (https://ashus.ashus.net/forum-3.html)
+--- Forum: Game tools (https://ashus.ashus.net/forum-6.html)
+--- Thread: Call Of Duty: PHP Rules Checker 1.5 (/thread-23.html)

Pages: 1 2 3 4 5 6 7 8


Re: Call Of Duty 2/4: PHP Rules Checker 1.2 - Ashus - 21.8.2008

All the filenames excluding IncludeLast('http://gdeko.eu/pub/cod2/rc/rcon-rules.log',10); should be relative to php script and on local PC (eg. ./rc/warned-cache) in a read-write enabled directory. You obviously can't write to a file opened remotely by php http fopen.


Re: Call Of Duty 2/4: PHP Rules Checker 1.2 - Guest - 21.8.2008

I had this links at my local machine, but today's morning changed to www links.
At my local machine it weren't writing log files too.
I tried two servers with two catalogs at my computer.

thank you for you patience :)


Re: Call Of Duty 2/4: PHP Rules Checker 1.2 - JaReK - 21.8.2008

I will torment you more :)

There is my directory

[Image: 5b6448bccb953472.jpg]

C:\Downloads\srv\rc_moj\rc_fg\rcon-rules.php

Code:
$rules_log_file = ' ./rc_fg/rcon-rules.log';
$rules_warned_cache_file = ' ./rc_fg/warned-cache';
$rules_iplog_file = ' ./rc_fg/rcon-iplog.log';

iplog.php:

Code:
$filename = ' ./rc_fg/rcon-iplog.log';

list-of-kicked.php

Code:
IncludeLast(' ./rc_fg/rcon-rules.log',10);


I used MS schedule with command

Code:
E:\System\PHP\php.exe "C:\Downloads\srv\rc_moj\rc_fg\rcon-rules.php"

what now? The program is not logging at least :(


Re: Call Of Duty 2/4: PHP Rules Checker 1.2 - Ashus - 21.8.2008

$rules_log_file = ' ./rcon-rules.log';
etc...

IncludeLast(' ./rcon-rules.log',10);

./ means current directory to the one, that php file is in (base directory).


Re: Call Of Duty 2/4: PHP Rules Checker 1.2 - JaReK - 21.8.2008

Wooow. now it works Smile. Thank you Ashus Smile.

The two problems at two php scripts included at program arhive.
iplog.php and rcon-rules.php. There is no "php" at beginning of scripts.



Re: Call Of Duty 2/4: PHP Rules Checker 1.2 - JaReK - 23.8.2008

I have a new idea Smile

I'm thinking about possibility to add one more message, after kicking player.

f.e. "Player HisNick get kicked due to his high ping, or ping 105"

or "Player Unnamed Soldier get kicked due to ...unnamed Smile"


Re: Call Of Duty 2/4: PHP Rules Checker 1.2 - Ashus - 23.8.2008

Okay, good idea. I'm testing the changed version right now, if there are no problems, I'd update it here.


Re: Call Of Duty 2/4: PHP Rules Checker 1.3 - JaReK - 23.8.2008

U R very fast. Thank you for modification Smile

but maybe too fast.

It's ot working Smile


Re: Call Of Duty 2/4: PHP Rules Checker 1.3 - Ashus - 23.8.2008

Use the new file and change variables you changed before. I haven't tested it myself, but had Rohlik do it instead.


Re: Call Of Duty 2/4: PHP Rules Checker 1.3 - rohlik - 24.8.2008

Hoj,
Super script...
Ale treba v SD, kdyz mas nepovoleny nick, tak te to vyhodi, i kdyz jsi se prejmenoval.
V SD totiz se prejmenujes az pri zacatku noveho kola...