Call Of Duty: PHP Rules Checker 1.5

Utility ke hrám
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 » 25. 08. 2008 10:17

Script works perfectly. [no "php" at beginning]. Great work Ashus.
Image
User avatar
Ashus
Administrátor
Posts: 417
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 » 26. 08. 2008 23:30

Just edit your php.ini: short_open_tag="1" and you won't have to worry anymore.
For more info see http://www.php.net/ini.core
Image
Coffee phreak!
zygus2
Posts: 2
Joined: 07. 02. 2009 12:04

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

Postby zygus2 » 07. 02. 2009 12:13

Hi.
I try using your script but i have problem.

i go to http://127.0.0.1/cod2/rcon-rules.php
0 / pan / xx.xx.xx.196 / 45
1 / os / 89.2xx.226 / 32
2 / Punik Dan / 89.xx4.53 / 51
3 / Bios / 77.xx.133 / 46
5 / WioY / 90.1xx9.178 / 46
6 / :annib/ 83.xx133 / 48
7 / Ka6 / 78.xx2.205 / 51
8 / s / 79xx05.36 / 53
9 / S / 80.xx.193 / 59
10 / er / 87.1xx.253 / 97
11 / ik / 83.xx118 / 46
12 / oko1 / 87.2xx89 / 285
13 / M / 88.19xx48 / 43
!15 / uncill / 7xx150 / 48

Fatal error: Call to undefined function: file_put_contents() in c:\usr\apache\httpd\html\cod2\rcon-rules.php on line 246
rcon-rules.php:
$rules_log_file = './rcon-rules.log'; // path to a file containing kicked players; must be writeable
$rules_warned_cache_file = './warned-cache'; // path to a file containing warned players; must be writeable
$rules_iplog_interval = 5; // this is a number of minutes the log is updated in ; 0 = disable
$rules_iplog_file = './rcon-iplog.log'; // path to a file containing log of ip addresses; must be writeable
all files in the same folder.

Files in folder:
list-of-kicked.php
rcon-rules.php
rcon-rules.log
rcon-iplog.log
iplog.php
warned-cache
User avatar
Ashus
Administrátor
Posts: 417
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 » 07. 02. 2009 13:00

Function file_put_contents() is PHP 5 specific, it looks like you have PHP 4 on your hosting, ask your hosting provider for upgrade.
Image
Coffee phreak!
zygus2
Posts: 2
Joined: 07. 02. 2009 12:04

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

Postby zygus2 » 07. 02. 2009 13:15

ok i reinstall PHP to 5.0.5

but I have a message
:Sorry, localhost service only.
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 » 16. 05. 2009 00:40

Czesc Zygus, Hi Ashus

I'm sure U have wrong path at cfg file. Study my cfg, please:

Code: Select all

http://ashus.ashus.net/viewtopic.php?p=300#p300
:)
Image
User avatar
Ashus
Administrátor
Posts: 417
Joined: 07. 07. 2007 10:51
Location: Ostrava - Polanka nad Odrou
Contact:

Re: Call Of Duty: PHP Rules Checker 1.4c

Postby Ashus » 16. 05. 2009 00:42

Update your paths to your needs. I've just given some examples as default.
Image
Coffee phreak!
Moustache
Posts: 48
Joined: 09. 05. 2009 19:21

Re: Call Of Duty: PHP Rules Checker 1.4c

Postby Moustache » 16. 05. 2009 14:05

I have an idea (again ;)).

Is it possible to add it that the script can see which player is killing with what kind of weapon.
And if you don't want that ppl use that weapon they get kicked.

For exaple some one is using P90 or Grenade Launcher. He gets kicked.
Do you want to make it?
Do you think it is possible to make it?
Last edited by Moustache on 16. 05. 2009 14:12, edited 1 time in total.
User avatar
Ashus
Administrátor
Posts: 417
Joined: 07. 07. 2007 10:51
Location: Ostrava - Polanka nad Odrou
Contact:

Re: Call Of Duty: PHP Rules Checker 1.4c

Postby Ashus » 16. 05. 2009 14:10

Not via this script (impossible), you may want to disable the weapon using a mod. Delete all of them from the map, so the player doesn't need to get kicked. I'm using that in Kafemlynek mod; when sniper rifles are off, they are removed from the map and from hands of players carrying it (unless they spawned with snipers rifle and haven't had the chance to switch to another - still allowed - weapon).
Image
Coffee phreak!
rbjordy
Posts: 11
Joined: 21. 04. 2008 22:36

Re: Call Of Duty: PHP Rules Checker 1.4c

Postby rbjordy » 17. 05. 2009 18:46

Ashus,

I have a problem, I had this script working on my old dedicated server but I have a new Dedi running now and I'm unable to get it working.

When running the script I'm getting this:

Code: Select all

Failed loading /usr/local/ioncube/lin_x86/ioncube_loader_lin_5.2.so:  /usr/local/ioncube/lin_x86/ioncube_loader_lin_5.2.so: cannot open shared object file: No such file or directory
Failed loading /usr/local/Zend/lib/ZendExtensionManager.so:  /usr/local/Zend/lib/ZendExtensionManager.so: cannot open shared object file: No such file or directory
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/curl.so' - /usr/lib/php5/20060613+lfs/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/gmp.so' - /usr/lib/php5/20060613+lfs/gmp.so: cannot open shared object file: No such file or directory in Unknown on line 0
icecpp: can't open `/var/lib/mumble-server/Murmur.ice' for reading
PHP Fatal error:  Unable to start ice module in Unknown on line 0
Do you maybe have a quick fix or something? Or any idea how I can resolve the problem?

Thnx in advanced!

Who is online

Users browsing this forum: No registered users and 1 guest

cron