Author Topic: ZitroStats Help!  (Read 2642 times)

0 Members and 1 Guest are viewing this topic.

hunterz

  • Guest
ZitroStats Help!
« on: June 03, 2007, 11:12:07 pm »
How can I protect the files reset.php and update.php, making that only me [administrator] have the power to execute them?  :-X
« Last Edit: June 04, 2007, 02:49:27 pm by hunterz »

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Zitrost... resert.php & update.php permission
« Reply #1 on: June 03, 2007, 11:24:19 pm »
put a .htpasswd in the directory that specifies permissions on those and requires a login for them?

Offline ramirez

  • Retired Soldat Developer
  • Camper
  • ******
  • Posts: 394
    • Soldat Central
Re: Zitrost... resert.php & update.php permission
« Reply #2 on: June 04, 2007, 11:17:50 am »
If you have a static IP and use Apache as a webserver you can create a .htaccess that only allows your IP to execute those scripts, that's what I did. I think there's an example .htaccess that comes with the zitro-stats.

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: Zitrost... resert.php & update.php permission
« Reply #3 on: June 04, 2007, 11:32:45 am »
Does any of you know how to do it with IIS. Yes, I know it's ****, but it came with windows and i'm using it.
urraka

hunterz

  • Guest
Re: Zitrost... resert.php & update.php permission
« Reply #4 on: June 04, 2007, 12:25:24 pm »
- I don't Know very well how to configure the .htacess, but if anyone could help me, I would like a script that could execute automatic the update.php and that have a protection for the reset.php and update.php, I want to thanks for who can help me because I don't have the knowlogide to create.

- I installed correctly the ZitroStats and I executed the update.php, but I have a question, in the part of the script that is doing the calculation, I see that stop in " complete KillLog-07-05-26.txt            77 left " . is that right or is there a problem? Another question... I will have always to do the update of every log of the server counting with those that have already been calculated ... or the script detects the modified logs automaticly and only calculate leaving by the side the old ones?

- All the pages are with there dates, the index with a geral statistics, the player's page with the players and them details, clans's page with all the clans detected, history too, but the weapon's page wasn't updated and its still with the message "No weapons listed here", Someone knows to answer me why?

- reset.php cleans only the players or cleans too the clans and tagsclans added by me?
« Last Edit: June 04, 2007, 12:54:19 pm by hunterz »

Offline oLaf

  • Major(1)
  • Posts: 7
    • Zitro-Stats
Re: ZitroStats Help!
« Reply #5 on: June 04, 2007, 03:50:57 pm »
Hi.

- I installed correctly the ZitroStats and I executed the update.php, but I have a question, in the part of the script that is doing the calculation, I see that stop in " complete KillLog-07-05-26.txt            77 left " . is that right or is there a problem?

There is a problem! The script seems to be interupted after a while. This is also the reason for your incomplete data. You can sp;ve this problem with updating each file on its own. First clean everything with reset.php. Afterwards run simply http://.../update.php?limit=1 untill all files are parsed.


Another question... I will have always to do the update of every log of the server counting with those that have already been calculated ... or the script detects the modified logs automaticly and only calculate leaving by the side the old ones?

It updates only modified files.


- I don't Know very well how to configure the .htacess, but if anyone could help me, I would like a script that could execute automatic the update.php and that have a protection for the reset.php and update.php, I want to thanks for who can help me because I don't have the knowlogide to create.

When you use Apache web server just google for ".htaccess and .htpasswd" to get some nice how-to's. For automatic updating use a cron job or something else.


- reset.php cleans only the players or cleans too the clans and tagsclans added by me?

reset.php cleans only loged data. None of your configurations will get lost.


I hope this helps you.

hunterz

  • Guest
Re: ZitroStats Help!
« Reply #6 on: June 04, 2007, 05:46:57 pm »
How can I keep the Player's page showing by kills and not for points at standart?



What's wrong in my Cron Job?

*/10 * * * * /public_html/conteudo/ranking_servers/pwupdate.php?user=123&login=xxx
« Last Edit: June 05, 2007, 08:26:42 pm by hunterz »

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: ZitroStats Help!
« Reply #7 on: June 05, 2007, 11:06:12 pm »
take the slash off of it, before public_html

hunterz

  • Guest
Re: ZitroStats Help!
« Reply #8 on: June 05, 2007, 11:38:07 pm »
Can u explain better about this "Take the slash off it" ? I could'nt understand ;P

and... How can I keep the Player's page showing by kills and not for points at standart?

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: ZitroStats Help!
« Reply #9 on: June 06, 2007, 12:50:18 am »
Can u explain better about this "Take the slash off it" ? I could'nt understand ;P

As far as i understood:
*/10 * * * * public_html/conteudo/ranking_servers/pwupdate.php?user=123&login=xxx

PD: I have no idea about what this is.

Date Posted: 06/06/2007 - 02:47:21
and... How can I keep the Player's page showing by kills and not for points at standart?

Only for you, or for anyone who visits the stats? Also, is your intention to modify rank so it goes according kills order instead of points?
urraka