Old 02-18-2004, 06:38 AM   #1
laShan
Member
ioFTPD Foundation User
 
Join Date: Feb 2004
Posts: 46
Default ioReserve

This script makes it possible for users to reserve releases to make sure they can finish leeching stuff they want before it's wiped.

The script consists of three parts; ioReserve.tcl, ioReserve.itcl and
CheckReservations.itcl. ioReserve.tcl is for use with a bot, ioReserve.itcl is to enable site commands, and CheckReservations.itcl is to make sure stuff isn't wiped if there are any reservations.

This script does not currently work together with any automatic clean up scripts or utilities. It works with manual wipe only.

Get the script here

-- laShan
laShan is offline   Reply With Quote
Old 02-18-2004, 09:30 AM   #2
laShan
Member
ioFTPD Foundation User
 
Join Date: Feb 2004
Posts: 46
Default Release 2

I've been making some changes for r2 of ioReserve, but I'm waiting a bit with releasing it to see if there's any input. New in r2 so far is:

* irAllowed limits number of reservations to set amount
* Possible for siteops (or who ever you chose basically) to see, and change, all users reservations
laShan is offline   Reply With Quote
Old 02-18-2004, 02:12 PM   #3
scull
Senior Member
ioFTPD Scripter
 
Join Date: May 2003
Posts: 159
Default

Hi ..

How does your script save the "reservations" in "irPath"? .. files with "ioReserve.release.name-group" names or ?

Could be useful info to other scripts ..

//Scull
scull is offline   Reply With Quote
Old 02-19-2004, 02:53 AM   #4
laShan
Member
ioFTPD Foundation User
 
Join Date: Feb 2004
Posts: 46
Default

The most obvious way to find out would be to test, hehe It saves the files as ioReserve.<user>
laShan is offline   Reply With Quote
Old 02-19-2004, 08:11 AM   #5
laShan
Member
ioFTPD Foundation User
 
Join Date: Feb 2004
Posts: 46
Default Release 2 Now Available

Release 2 of ioReserve is now available for download. Changes in this release are:

* Added a variable to limit amount of allowed reservations
* Made it possible to allow admins (or whoever you want actually) to see, and change all users' reservations

The new administration system is obviously the big news and I will most likely continue to improve that. I'm happy for any [positive ] feedback and suggestions.
laShan is offline   Reply With Quote
Old 02-21-2004, 01:08 AM   #6
ChipMunk666
Senior Member
ioFTPD Foundation User
 
Join Date: Jun 2003
Posts: 220
Default

I will check it mate
thx a bunch
ChipMunk666 is offline   Reply With Quote
Old 02-21-2004, 01:50 PM   #7
laShan
Member
ioFTPD Foundation User
 
Join Date: Feb 2004
Posts: 46
Default

ioReserve is now supported by WarChive
laShan is offline   Reply With Quote
Old 03-02-2004, 06:12 AM   #8
ds-
Junior Member
 
Join Date: Nov 2003
Posts: 12
Default

2laShan
dzbot say:
Quote:
[11:49] Tcl error [reserve_add]: syntax error in expression "[llength $reserve($whfile)] => $irMax": extra tokens at end of expression
pleas help... the site command 'site reserve' get error too :/ >

site reserve my_test_dir
550 Command failed.

but other ioreserve commands is good

site reservations
200-You don't have any reserved releases.
200 Command successful.

site allreservations
200-Checking reservations...
200-
200-Done checking reservations!
200 Command successful.

.thx.
ds- is offline   Reply With Quote
Old 03-02-2004, 07:45 AM   #9
zuge
Junior Member
 
Join Date: Sep 2003
Posts: 2
Default

Code:
if {[llength $reserve($whfile)] => $irMax} {

should be:

if {[llength $reserve($whfile)] >= $irMax} {
zuge is offline   Reply With Quote
Old 03-04-2004, 07:04 AM   #10
laShan
Member
ioFTPD Foundation User
 
Join Date: Feb 2004
Posts: 46
Default Release 3

Ooops Typos can do a lot of harm

ioReserve R3 available for download, which fixes this problem.

However, that only explains why it doesn't work with the bot, not the site command (no typo there). ds-, are all your settings correct? And does the dir where the reservations are saved exist?
laShan is offline   Reply With Quote
Old 03-04-2004, 08:26 AM   #11
biboun
Member
FlashFXP Registered User
ioFTPD Registered User
 
Join Date: Mar 2003
Posts: 87
Default hum

Works fine but must create ioreserve.user myself. normal ?

If the file doesnt exist, the script crash.

--------------------------- ErrorInfo ----------------------------
can't read "reserve(user)": no such variable
while executing
"llength $reserve($whfile)"
(procedure "reserve_add" line 12)
invoked from within
"reserve_add "
invoked from within
"if {[string tolower [lindex $args 0]] == "reserve"} { reserve_add }"
(file "..\scripts\ioReserve\ioReserve.itcl" line 173)
--------------------------------------------------

& Must add a variable in proc load_reserve

proc load_reserve {whfile} {
global reserve irPath exstresrv args
......
biboun is offline   Reply With Quote
Old 03-04-2004, 09:07 AM   #12
laShan
Member
ioFTPD Foundation User
 
Join Date: Feb 2004
Posts: 46
Default

Oh, how nice! I fix a bug and create another. Such is life! Release 4 coming in just a few minutes.
laShan is offline   Reply With Quote
Old 03-04-2004, 09:18 AM   #13
laShan
Member
ioFTPD Foundation User
 
Join Date: Feb 2004
Posts: 46
Default Release 4

Sorry for the inconvenience, silly me! Anyways, here's an updated version of the script, this time hopefully bug free.

Changelog:
R4 - * Fixed a bug that would occur if a users file didn't exist.
laShan is offline   Reply With Quote
Old 03-04-2004, 09:47 AM   #14
cerces
Junior Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Jan 2003
Posts: 9
Default

could you add a check for "site wipe -r %f"-like flashfxp commands ? (-r is used for gl wipe)
that would be nice
anyway, thx for this cool little script :d
cerces is offline   Reply With Quote
Old 03-04-2004, 10:28 AM   #15
laShan
Member
ioFTPD Foundation User
 
Join Date: Feb 2004
Posts: 46
Default

Sure, I'll add that in the next update of the script, but I won't release a new version just to add that. It's not that hard to just duplicate that wipe command and make a new one without the -r switch.

Nice to hear you like the script
laShan is offline   Reply With Quote
Reply

Tags
checkreservations.itcl, ioreserve.itcl, ioreserve.tcl, script, stuff

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 Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:07 AM.

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