Go Back   FlashFXP Forums > > > >

Suggestions Got a new idea or addition which would benefit IOFTPD? Post it here!

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-08-2003, 11:25 AM   #1
bounty
Senior Member
ioFTPD Scripter
 
Join Date: Aug 2002
Posts: 529
Lightbulb stats source code

hi darkone

it would be really cool if you can share also the source code for stats

like that we can have an external stats exe to use with dzsbot

big thx & have fun
bounty
bounty is offline   Reply With Quote
Old 05-08-2003, 11:44 AM   #2
ProlyX
Member
 
Join Date: Nov 2002
Posts: 39
Default

yea yea that would be very nice
ProlyX is offline   Reply With Quote
Old 05-08-2003, 12:50 PM   #3
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Stats function that ioftpd has, relies on several APIs. Stats function is something as simple as:


if (! FindFirstUser(Search, &UserFile, &Buffer))
{
do
{
// binary search like algorith that inserts user into array (something i call, quick insert)
// remove last item from array, if size == max_size
} while (! FindNextUser(&UserFile, &Buffer));
}

for (i=0;i<arraysize;i++)
{
MessageFile_ShowCached(Cache, UserFileArray[i], DT_USERFILE);
}

=> To make sense of it, you would need ~10k lines of sources.
darkone is offline   Reply With Quote
Old 05-08-2003, 12:52 PM   #4
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

I might be able to write something simplified.. though, WarC already has his own APIs that could be used to create something similar.
darkone is offline   Reply With Quote
Old 05-08-2003, 04:32 PM   #5
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
Default

Eeh isnt it already revealed in Message.h from sitewho.cpp?? I mean the MAX_SECTIONs is all there... It should be simple enough to write something..
FTPServerTools is offline   Reply With Quote
Old 05-08-2003, 05:09 PM   #6
bounty
Senior Member
ioFTPD Scripter
 
Join Date: Aug 2002
Posts: 529
Talking

nice ... but it's chinese for me

so i hope some c++ coders will write a little exe for us now

very big thx

bounty
bounty is offline   Reply With Quote
Old 05-09-2003, 03:52 AM   #7
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
Default

Oki will do but I have a few other io thingies to make also so you'll have to wait....
FTPServerTools is offline   Reply With Quote
Reply

Tags
code, exe, external, source, stats

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Cookies darkone Suggestions 6 01-22-2003 09:06 AM


All times are GMT -5. The time now is 11:48 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)