Go Back   FlashFXP Forums > > > >

Harm's scripts ioBanana, Readd script, ioVote

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-29-2004, 06:40 PM   #1
Timpa
Junior Member
 
Join Date: May 2004
Posts: 20
Default pretime - type?!?

Im useing ioBanana v20 to add new dirs in my mysql db.
Everything works realy good exept "type".
Its always empty. What is type? is it the same as selection?
It would be nice if i could get it to work.
The table looks like the one in iobanana.ini exept the default part...

type varchar(9) NOT NULL default 'Unknown',

What could be wrong?
Timpa is offline   Reply With Quote
Old 10-29-2004, 08:07 PM   #2
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default

In ioBanana's pretime, "type" is the section name (APPS and so on). The "type" is only filled in the pretime DB when the directory is pre'd, not when a user creates the directory.

fill_pretime_on_mkd <- Leaves "type" blank.
fill_pretime_on_pre <- Fills "type".
neoxed is offline   Reply With Quote
Old 10-30-2004, 04:08 AM   #3
Timpa
Junior Member
 
Join Date: May 2004
Posts: 20
Default

Ok, i see.
I am sorry if this is a lame question but, what is the difference between Pre a dir and Make a dir.

Regards,
And thanks for the moast powerful and flexible FTPD known.
Timpa is offline   Reply With Quote
Old 10-30-2004, 04:35 AM   #4
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

On pre (SITE PRE), the user who issues the command indicates the type. On MKD, you don't.
You can still guess the type using the section's name but remember that this function was designed to store pretimes (when the SITE PRE command was used) and not when the dir was created (MKD). The ability to store MKD times was added for small databases.
Harm is offline   Reply With Quote
Old 10-30-2004, 05:32 AM   #5
Timpa
Junior Member
 
Join Date: May 2004
Posts: 20
Default

Quote:
Originally posted by Harm
On pre (SITE PRE), the user who issues the command indicates the type. On MKD, you don't.
You can still guess the type using the section's name but remember that this function was designed to store pretimes (when the SITE PRE command was used) and not when the dir was created (MKD). The ability to store MKD times was added for small databases.
You wrote: You can still guess the type using the section's name
Can you give me a hint how to do that? Can i via the script(ioBanana v20) guess the selectiontype?
Do i need to hex-edit the exe file?

And one more question,
Can I make ioBanana to NOT register releases uploaded in the Request selection?
Timpa is offline   Reply With Quote
Old 10-30-2004, 06:14 AM   #6
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

Quote:
Originally posted by Timpa
Can you give me a hint how to do that? Can i via the script(ioBanana v20) guess the selectiontype?
You can't. I said that to explain why the type isn't filled on MKD when it is on SITE PRE and what could have been done.
Quote:
Do i need to hex-edit the exe file?
Even that way you can't.

Quote:
And one more question,
Can I make ioBanana to NOT register releases uploaded in the Request selection? [/B]
Not sure. zipscript excluded dirs won't be added, maybe dupecheck excluded ones too. Give it a try, I don't have the source code of v20 to check at the moment.
Harm is offline   Reply With Quote
Old 11-04-2004, 02:58 PM   #7
Timpa
Junior Member
 
Join Date: May 2004
Posts: 20
Default

Quote:
Originally posted by Harm
You can't. I said that to explain why the type isn't filled on MKD when it is on SITE PRE and what could have been done.

Even that way you can't.


Not sure. zipscript excluded dirs won't be added, maybe dupecheck excluded ones too. Give it a try, I don't have the source code of v20 to check at the moment.
Iv added this:
excluded_dirs_zs=/REQUESTS

And this:
excluded_dirs_sitedupe=/!ioftpd /pre cd1 cd2 cd3 cd4 cd5 disc1 disc2 disc3 dvd1 dvd2 dvd3 sample samples vobsub vobsubs subtitle subtitles subs subpack codec cover covers

But it still adds releases with names like DVD1 and all the dirs in Requests into the database.

Regards, Timpa...
Timpa is offline   Reply With Quote
Old 11-05-2004, 03:21 AM   #8
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default

Neither of those exclude options have anything do with pre time checks.

Hint: excluded_dirs_zs excluded_dirs_sitedupe
neoxed is offline   Reply With Quote
Reply

Tags
default, exept, table, type, work

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 11:40 AM.

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