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 03-02-2004, 02:04 PM   #1
Styx
Junior Member
 
Join Date: Jan 2004
Posts: 12
Default site stats ...

site stats allup limit "=ADMIN =USER"

this works perfectly for sure, but could you add the != trigger ?
for exemple :

site stats allup limit "!=ADMIN"

so that the group ADMIN doesn't appear in the stats .....

thx for answer ...
Styx is offline   Reply With Quote
Old 03-02-2004, 04:10 PM   #2
Zer0Racer
Senior Member
ioFTPD Scripter
 
Join Date: Oct 2002
Posts: 703
Default

site stats allup limit "!=ADMIN =USER"
Zer0Racer is offline   Reply With Quote
Old 03-02-2004, 04:27 PM   #3
Styx
Junior Member
 
Join Date: Jan 2004
Posts: 12
Default

?????? hum !!! it was just an example ... i don't understand why you replied that !!! are you sure you understood my question ???
Styx is offline   Reply With Quote
Old 03-03-2004, 09:14 AM   #4
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

He did reply to your question.
The right syntax is "!=groupname *" or "!-username *"

If you don't put * or some way to match the users you want to show, !* is appended.

So "!=ADMIN" really means "!=ADMIN !*" which matches nobody.

The exact same way as if u put STOR = MN in your ioFTPD.ini permissions, only M and N users will be allowed, nobody else...
Mouton is offline   Reply With Quote
Old 03-03-2004, 11:02 AM   #5
Styx
Junior Member
 
Join Date: Jan 2004
Posts: 12
Default

ho sorry thx for the answer
Styx is offline   Reply With Quote
Old 03-03-2004, 11:29 AM   #6
Styx
Junior Member
 
Join Date: Jan 2004
Posts: 12
Default

thats works in ioftpd, but i have a problem using this in my eggdrop, for example :


ftp::Quote $conn SITE stats ALLUP limit =ADMIN

this works perfectly, but it seems ftp.tcl doesn't like :

ftp::Quote $conn SITE stats ALLUP limit "=ADMIN =USER"

so have you any idea for me ? another way to user the limit argument without "..." when we want to use multiple parameters .... for example :


ftp::Quote $conn SITE stats ALLUP limit =ADMIN =USER

==> i think this form should correct my problem but its has not been implemented yet , so can you think you can help me ?
Styx is offline   Reply With Quote
Old 03-03-2004, 11:49 AM   #7
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

you need to use double-quotes " " around values if there's a space in there.
and ioB won't accept quotes there i'd guess.
I think i remember changing ftp.tcl to accept quotes...
try this (add the bold block that isn't there in yours):

proc ::ftp::Quote {s args} {
upvar ::ftp::ftp$s ftp

if {[string last "\{" $args] != -1} {
set args [string range $args [expr [string last "{" $args]+1] [expr [string first "}" $args]-1]]
}


if { ![info exists ftp(State)] } {
DisplayMsg $s "Not connected!" error
return 0
}

...
Mouton is offline   Reply With Quote
Old 03-03-2004, 11:50 AM   #8
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

Use: ftp::Quote $conn SITE STATS ALLUP limit \"=ADMIN =USER\"
You have to use \" in a tcl string to output ".
Harm is offline   Reply With Quote
Old 03-03-2004, 06:55 PM   #9
Styx
Junior Member
 
Join Date: Jan 2004
Posts: 12
Default

grrr i don't know why i didn't think about that !!! thx for answer it works perfecty, but i needed to add spaces like this in order to make it work :

ftp::Quote $conn SITE stats ALLUP limit \" !=ADMIN !=SITEOP * \"]


thx again !!!!
Styx is offline   Reply With Quote
Reply

Tags
=admin, allup, limit, site, 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
GuildFTPd command set (import) Jesper Custom Commands 4 07-29-2011 12:41 AM


All times are GMT -5. The time now is 05:29 PM.

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