PDA

View Full Version : ioINI


Grendel
04-13-2005, 04:20 PM
ioINI v2.0 totally re-worked version !

Usage: SITE INI <section> <item> <value>

<section> The ioFTPD.ini section-name.
<item> The item-name.
<value> The item-value.

Note: Changes existing values in ioFTPD.ini directly or
add a new <item> to <section> with <value>.

Examples:

SITE INI Any Ports 55000-56000
SITE INI Any Global_Outbound_Bandwidth 5000
SITE INI FTP_Service User_Limit 50
SITE INI FTP_Service Port 21
SITE INI FTP_Custom_Commands newcmd EXEC ..\\scripts\\xxx.exe
SITE INI FTP_SITE_Permissions newcmd M

...you can also create various useful aliases with the example below (see codebox)....

like:

SITE INI FTPPORT 5555
SITE INI FTPPASV 51000-52000

and so on...

Installation:

1) copy the "ioINI"-Dir from ZIP-file to ..\Scripts\
2) configure path to ioFTPD.ini in ioINI.ini
3) add the lines below to your ioFTPD.ini

[FTP_Custom_Commands]

ini = EXEC ..\scripts\ioINI\ioINI.exe

#### here are some sample aliases for ini-cmd ;-) ###

ftphost = @ini Any Host
ftppasv = @ini Any Ports
ftprandom = @ini Any Random
ftpglobalin = @ini Any Global_Inbound_Bandwidth
ftpglobalout = @ini Any Global_Outbound_Bandwidth
ftpclientin = @ini Any Client_Inbound_Bandwidth
ftpclientout = @ini Any Client_Outbound_Bandwidth
ftpport = @ini FTP_Service Port
ftpuserlimit = @ini FTP_Service User_Limit
ftpidletimeout = @ini Ftp Idle_Time

[FTP_SITE_Permissions]

ini = M

ftphost = M
ftppasv = M
ftprandom = M
ftpglobalin = M
ftpglobalout = M
ftpclientin = M
ftpclientout = M
ftpport = M
ftpuserlimit = M
ftpidletimeout = M

4) rehash the config
5) if you use ioHELP-script, just copy "ini.site" to your "iohelp\site" path



known limitations:

1) Cannot automatically rehash config. After SITE INI command a manual "config rehash" must done.
2) Doesn't support duplicate item-entries per design (program uses windows-internal standard-"ini"-procs)


have fun :)

neoxed
04-13-2005, 04:57 PM
You could have just used the SITE CONFIG command...

Grendel
04-13-2005, 05:22 PM
...that's absolutelly correct Neoxed,
of cause you can do it with some SITE CONFIG commands too,
but I think this here is much easier and more flexible.

mr_F_2
04-13-2005, 05:31 PM
personally i see no use for a script duplicate of an implicit io function

inside
04-13-2005, 05:45 PM
it St a b0n script because that will use to me to limit the band-width of the users

Grendel
04-13-2005, 05:50 PM
Originally posted by mr_F
personally i see no use for a script duplicate of an implicit io function


I'm not duplicating...


1) "SITE CONFIG" standard method
=========================


site config show FTP_Service
### [FTP_Service]
000:
001: Type = FTP
002: Device_Name = Any
003: Port = 9999
004: Description = My FTP Service
005: User_Limit = 50
006: Allowed_Users = *
007: Messages = ..\text\ftp
...
...

site config replace FTP_Service 5 User_Limit = 100

site config show FTP_Service
### [FTP_Service]
000:
001: Type = FTP
002: Device_Name = Any
003: Port = 9999
004: Description = My FTP Service
005: User_Limit = 100
006: Allowed_Users = *
007: Messages = ..\text\ftp
...
...

site config save

ready


2) "SITE INI" method
===============


site ini FTP_Service User_Limit 100



..and ready




let the people decide themselves...
;)

mr_F_2
04-20-2005, 02:02 PM
i'm sold
testing it out now
:)

... hmm, stil have to site rehash after

Grendel
04-21-2005, 11:55 PM
...then add

ini=@config rehash

after the

ini=EXEC ..\scripts\ioINI\ioINI.bat

line, if you wanna do it automatically...


:D

Grendel
07-18-2005, 03:52 PM
...then add

ini=@config rehash

after the

ini=EXEC ..\scripts\ioINI\ioINI.bat

line, if you wanna do it automatically...


:D


an automatically REHASH after the command is not working...don't know why... :confused:
sorry guys, you have to REHASH manually.....shouldn't be a big problem :D

mr_F
12-24-2005, 03:34 PM
download for this is broken in the scripts section

Grendel
12-24-2005, 06:33 PM
download for this is broken in the scripts section

thanks for info, mr_F
you're right... :(

I can't download it myself from scripts-section too...

I don't know why, but I CAN download it perfectly inside my own customer portal. :confused: Very strange....
The file seems to be correct on the server and is not corrupted in any way,
so - I guess - it's a problem with scripts-download-section in this case.

Maybe an admin can have a look on this problem ? Thanks...

Grendel
12-24-2005, 09:00 PM
I added ioINI v2.0 in scripts-download now...
It's a totally re-worked version as single .exe-file (with ini)
read new readme.txt file for further infos.

new syntax is now...

ini = EXEC ..\scripts\ioINI\ioINI.exe


If someone wishes a delete-option for ini-items /ini-section,
please tell me... ;)
have fun...

------------------------

btw.... can someone tell me
why error 500-Invalid argument:
comes when I try to auto-rehash ???

ini = EXEC ..\scripts\ioINI\ioINI.exe
ini = @config rehash

Grendel
12-25-2005, 05:15 PM
I deleted the old broken v1.0 in download section, no need to keep it any longer alive...