Call Of Duty: PHP Rules Checker 1.5

Utility ke hrám
User avatar
Ashus
Administrátor
Posts: 416
Joined: 07. 07. 2007 10:51
Location: Ostrava - Polanka nad Odrou
Contact:

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

Postby Ashus » 21. 08. 2008 09:48

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
Coffee phreak!
Guest

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

Postby Guest » 21. 08. 2008 10:15

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 :)
User avatar
JaReK
Posts: 32
Joined: 21. 08. 2008 10:11
Location: Sulechów Poland
Contact:

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

Postby JaReK » 21. 08. 2008 18:08

I will torment you more :)

There is my directory

Image

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

Code: Select all

$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: Select all

$filename = ' ./rc_fg/rcon-iplog.log';
list-of-kicked.php

Code: Select all

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

I used MS schedule with command

Code: Select all

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
User avatar
Ashus
Administrátor
Posts: 416
Joined: 07. 07. 2007 10:51
Location: Ostrava - Polanka nad Odrou
Contact:

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

Postby Ashus » 21. 08. 2008 20:12

$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
Coffee phreak!
User avatar
JaReK
Posts: 32
Joined: 21. 08. 2008 10:11
Location: Sulechów Poland
Contact:

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

Postby JaReK » 21. 08. 2008 20:27

Wooow. now it works :). Thank you Ashus :).

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.
<? instead of <?php

Thank you Ashus :)
Image
User avatar
JaReK
Posts: 32
Joined: 21. 08. 2008 10:11
Location: Sulechów Poland
Contact:

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

Postby JaReK » 23. 08. 2008 10:04

I have a new idea :)

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 :)"
Image
User avatar
Ashus
Administrátor
Posts: 416
Joined: 07. 07. 2007 10:51
Location: Ostrava - Polanka nad Odrou
Contact:

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

Postby Ashus » 23. 08. 2008 15:03

Okay, good idea. I'm testing the changed version right now, if there are no problems, I'd update it here.
Image
Coffee phreak!
User avatar
JaReK
Posts: 32
Joined: 21. 08. 2008 10:11
Location: Sulechów Poland
Contact:

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

Postby JaReK » 23. 08. 2008 17:01

U R very fast. Thank you for modification :)

but maybe too fast.

It's ot working :)
Image
User avatar
Ashus
Administrátor
Posts: 416
Joined: 07. 07. 2007 10:51
Location: Ostrava - Polanka nad Odrou
Contact:

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

Postby Ashus » 23. 08. 2008 20:04

Use the new file and change variables you changed before. I haven't tested it myself, but had Rohlik do it instead.
Image
Coffee phreak!
User avatar
rohlik
Posts: 30
Joined: 08. 07. 2007 18:05
Location: Česká republika
Contact:

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

Postby rohlik » 24. 08. 2008 18:05

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.

Who is online

Users browsing this forum: No registered users and 1 guest

cron