Small Script for New Webstats!
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Small Script for New Webstats!

Started by BlazeXxX, 03 January, 2004, 13:42:50

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BlazeXxX

Hi guys,
I am working on a New Webstats for one of your favourite Robocop! I am basically needing this to carry on with developing webstats:

I want a small script that writes anydata , like ban or connecting user's ip into WEBSTATS directory. Since PtokaX builtin webserver reads Webstats dir only, i am needing the script to write to the webstats dir as well as script dir..

So lets say we got Bans.txt in /scripts/txt/ directory. When it writes to the txt directory, i want it to write to the webstats dir as well at the same time..

Can someone make me any script that does smilar function?

A Simple Kickcounter, or a Ban log or a connecting user's ip or nick.. or anything basically..

If someone can do it, i can gladly provide good webstats in PHP and other language for those big script packages out here..

Thx in advanced to those brainy peepz ;)

WooshMan

Hi BlazeXxX,

I have been working on a similar thing in cgi for Channelbot.

I have modified channelbot to write to the webstats folder at the same time as it writes to it's own file although 80% works so far.

I do think though that a seperate small script (if small is the right word) would be a better option as it can then be used by any hub / webmaster regardless of bot used.

I know that the following files for my cgi script would be needed:

RegisteredUsers.dat
PermBan.dat
tempban.lst
online.lst

Although there may be more that could be used for hub/webstats.

I hope you don't think I am treading on your toes BlazeXxX, because no compitition is intended.

If someone is willing to write a script, I will be most greatful as lua is out of my league at the moment.

Once completed, the cgi (multihub version) will be released for use by others.

Thanks in advance

WooshMan
landofkaraoke.ath.cx
//www.landofkaraoke.ath.cx
WooshMan

Creator of
originaltimebot.lua
www hubstats

Thanks to Plop, Kepp and NightLitch

BlazeXxX

Thats great to hear ;) nope not at all ! I am happy that there is going to be a good future for ptokax and lua :)

Maybe i cud see ur ideas and pick it up from there... It will be possible in future to make things much easier for the hub owners to modify in those webstats..

Please give me if u have any sample file of how to write to the Webstats dir.. But i heard that the new Ptokax have blocked access to other dir than /scripts? or is it wrong?

plop

by using ../ you can step back a directory or just use absolute paths.
when i was starting on my webstats the hub was running on another computer then the webserver, even that worked fine by me.
just i'm using apache with a lua mod and a.i. builds the webstats.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

BlazeXxX

Cool plop  :D  Will give it a try ;)

Event_Horizon

hmmm. sounds not bad...

is it also possible to use that script without knowlege of cgi, cause i don't know cgi.

I would like to show hubstats on my site but i just know some HTML..... if it's possible to modify or create one 4 both would be nice...

THX ahead
Greez ????_H???z??
??????????????????

??/v\\ \'?\' ?@?? ???? is Secured by RoboCop? Created by Optimus?

BlazeXxX

It will be purely basic to use event horizon :) I am working on PHP version and all u gotta do is just run the webserver :)

I will post how to guide wen its all working.

WooshMan

Ok that is well and good, but we are loosing the thread a little.

Could someone please write a standalone lua which will create files for use with webstats?

There are several hub bots that will create the files with the needed information, but can someone please write a slandalone one?

Sorry to sound pushy or impatient, but that was the request to start off with.

How we get the information from the files once they are there is a different matter really, but a script to make the files in the first place will be a 95% step forwards.

Like I said, sorry to sound pushy, no offence intended.

WooshMan
WooshMan

Creator of
originaltimebot.lua
www hubstats

Thanks to Plop, Kepp and NightLitch

BlazeXxX

I was abt to say that lool :) If someone gives me a standalone script that writes any kind of data to a .txt file in webstats dir, it will be much appriciatable.

We can den start developing from there, which is much faster.

So cud someone write a standalone bot that writes any sort of data in a txt file in webstats dir at the same time while its writing in scripts/ dir for the hub to use?

So two identical txt files written at same time but in two locations.

One = /webstats/
Second = /scripts/

Thanks to the fast request completing person (plop) !

plop

QuoteOriginally posted by BlazeXxX
I was abt to say that lool :) If someone gives me a standalone script that writes any kind of data to a .txt file in webstats dir, it will be much appriciatable.

We can den start developing from there, which is much faster.

So cud someone write a standalone bot that writes any sort of data in a txt file in webstats dir at the same time while its writing in scripts/ dir for the hub to use?

So two identical txt files written at same time but in two locations.

One = /webstats/
Second = /scripts/

Thanks to the fast request completing person (plop) !
1 place 2 save 2 is more then enough.
the more places you save 2 the more likely it's gone be complex or hard 2 use.
wooshman pm-ed me about this and i invited him over 2 my hub so i'll invite you 2. lol
then we can see what can be stripped from a.i. and what has 2 be changed, should be the easyest and the fastest as i have most of it allready.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

Event_Horizon

THX doods.... :D

BlazeXxX I hope U R right ;)

Kepp up your good Work
Greez ????_H???z??
??????????????????

??/v\\ \'?\' ?@?? ???? is Secured by RoboCop? Created by Optimus?

BlazeXxX

Yup sure plop.
thx Event Horizon

WooshMan

Great minds think alike... "I was about to say that"......lol

Thanks plop for your invite.. I will be there....

Woosh :-)
landofkaraoke.ath.cx
WooshMan

Creator of
originaltimebot.lua
www hubstats

Thanks to Plop, Kepp and NightLitch

SMF spam blocked by CleanTalk