Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Call Of Duty: PHP Rules Checker 1.5
#21

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.

[Image: kavove-zrnka-lajna.jpg]
Coffee phreak!
Reply
#22

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 :)
Reply
#23

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

[Image: b_350_20_D5D9EB_264BC0_110E0E_000000.png]
Reply
#24

$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).

[Image: kavove-zrnka-lajna.jpg]
Coffee phreak!
Reply
#25

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.

[Image: b_350_20_D5D9EB_264BC0_110E0E_000000.png]
Reply
#26

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"

[Image: b_350_20_D5D9EB_264BC0_110E0E_000000.png]
Reply
#27

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

[Image: kavove-zrnka-lajna.jpg]
Coffee phreak!
Reply
#28

U R very fast. Thank you for modification Smile

but maybe too fast.

It's ot working Smile

[Image: b_350_20_D5D9EB_264BC0_110E0E_000000.png]
Reply
#29

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

[Image: kavove-zrnka-lajna.jpg]
Coffee phreak!
Reply
#30

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...

Představ si kus švýcarského sýra, který je plný děr.
Čím víc sýra, tím víc děr.
Každá díra zabírá místo, kde by mohl být sýr. Takže čím víc děr, tím míň sýru. Čím víc sýru, tím víc děr a tím míň sýru.
ZÁVĚR: ČÍM VÍC SÝRU, TÍM MÍŇ SÝRU.
Reply




Users browsing this thread: 1 Guest(s)