galilette |
2004-02-09 10:25 |
四、配置不同功能的script
ioFTPD就象是大厨手中的食物原料,必须加上姜、桂皮、辣椒等各种辅料才能炮制出完美的菜肴来。script(脚本程序)就是这些佳肴的辅料,可以实现你想要的种不同的功能。
script有两大类:zipscipt和Sitebot / IRC ,前者用于文件检查、统计等,后者主要用于irc annouces. 我没有研究过ircbot,只能介绍一下zipscipt. ioFTPD网站推荐的配置方案A为:ioFTPD + ioBanana + ioA; 方案B为:ioFTPD+ioZS 或 projectZS 或 SioFTPD + dZSbot + ioA
(一) script简介
1、ioBanana 作者Mouton, 现作者为Harm.
网址: [URL=http://ioBanana.abuserz.com[/url],可免费下载有限制的版本。]http://ioBanana.abuserz.com,可免费下载有限制的版本。
ioBanana是一个All-in-One的ioFTPD script, 包括各种Site命令,!irc_commands, zipscript 及 trial/quota 功能。
Quote:SITE 命令有: rules, ginfo, gstats, pretime, new, cid, resetstats, roulette, dice, open, close, approve, listapproved, version, rotatelog, rescan, totals, age, undupe, nfo, uptime,还包括一些修改ioFTPD和ioA原始命令的site命令如: nuke, unnuke, pre, wipe, user (uinfo mod.)
IRC 命令: !speed, !who, !bw, !uploaders, !leechers, !idlers, !statsup, !statsdn, !bnc, !approve, !listapproved, !undupe, !rules, !sections, !search, !requests, !trials, !passed, !quota, !quotas, !sitenew, !pretime, !gstats, !free, !affils, !uptime, !silent, !restart
Zipscript: ZIP (file_id.diz) 和 SFV 检查支持, 可生成.bad & .missing, Race时IRC announces (new racer, 1st file received, halfway, complete, etc.), 自定义文件输出及目录标签(dirtag), 自动进行续传文件的crc32检查, 强制nfo/sfv或sample目录先上传, 慢速racer 踢站/惩罚, 不完整文件及race符号链接.
其他特征: 每日统计,每日记录更新, 文件或目录的重传检查(Dupechecker) , 上传时nfo文件中IMDB和IMDB URL检查, IP/Ident bans, #download/upload 人数限制, 若release太老,则禁止上传, 传输记录(仅上传), IRC自动宣告前10最多上传者,还包括ioBMonitor, 用于实时监控用户活动(不推荐用,因为有更好用的ioGUI)。
2、ioA 作者:WarC 网址:http://warc.mine.nu 前段作者将源代码弄丢了。现在的版本是ioA 0.81. 几个推荐方案中都有ioA, 足见其功能。SITE WIPE, SITE PRE, SITE REQUEST, SITE NUKE, newdate。
3、ioZS 作者: 网址:http://www.iozs.com./ 特征: - 预编译为可执行文件 - 用.ini文件配置 - 检查各种类型的 releases: .ZIPs, .RARs, .MP3 - .ZIP 特征如.nfo标签及.zip文件内无用文件(如nfo)的清除 - 自动提取zip文件中的.nfo和file_id.diz文件 - SFV 清理 (去掉无用注释) - MP3 IDtag 读取 & 建立.M3U 文件 - 根据日期(Year)、类型(Genre)及歌手(Artist)来对MP3 排序 - 用户及组 race 统计 - 上一级目录未完成标签建立 - 可选多种用户上传统计目录标签
4、ioGUI 一个好用的windows界面ioFTPD配置、管理及监控程序。
另外还有其他各种功能的script,可去http://www.ioftpd.com/board/forumdisplay.php?s=&forumid=11查找自己需要的功能并进行配置。
(二) script配置 我们用推荐的方案A,只需加入ioA和ioB(anana)就可以,如果您想要窗口界面,请再加一个ioGUI即可。
所有的script可分目录放在/scripts目录下,这样看起来比较整齐。配置没有想象的难,只要参照各脚本的安装说明一步步进行,很容易就完成了……
1、ioA配置 ①将包解开放在/scripts/ioa目录下。 ②首先配置ioa.cfg文件,用notepad打开. 主要是设置一些文件路径、虚拟文件目录这些东西。
Quote:# # For ioA 0.8.1+ # ################################################################ # Debugmode or not # Highly recommended if having problems if contacting me(WarC)
debug=1 //是否要看debug结果,1为要,0为不要
#Disable ioA logfile. Default yes DisableLoG=1 //是否要记录ioA的运行结果
################################################################ #Where is user/group/users located # //你的ioftpd的目录,建议用全部替换,后面还有好多…… ioFTPD_User_Path=d:\ioFTPD\users ioFTPD_User_File=d:\ioFTPD\etc\UserIdTable ioFTPD_Group_File=d:\ioFTPD\etc\GroupIdTable
################################################################ # Path to logfiles. If syslog and Errlog is to be used then put # this to same path as ioFTPD stores logs. Otherwise anywhere. #
Path_For_Log_Files=d:\ioFTPD\logs
################################################################ # Use Buffer off or not. This is default as off # NOTE!!! If using SSL do NOT turn this on it will # corrupt your userfiles # Use_Buffer_Off=0
################################################################ # PRE part # # Format group: "<group>|<pretype>|</path/to/predir>|<userid>|<groupid>|<ufo>" # # <group> Name of group allowed to pre # <pretype> What area can a group pre in. Can be multiple by putting space inbetween # <path to predir> Virtual path to where pre is stored # <userid> If "touch" is on sets this userid as owner on files and dirs. NOTE
USERID # <groupid> If "touch" is on sets this groupid as owner on files and dirs. NOTE
GROUPID # <ufo> This can be any text. can be used for displaying something specific on
PRE. # Added since it was a request. If no use just put anything. # # Following will allow pre from any dir underneath # Pre_Group_Data=myGroup|iSO Mp3|/_pre/mygroup/*|0|0|hubba # # Following will allow pre from EXACLY that dir # Pre_Group_Data=myGroup|iSO Mp3|/_pre/mygroup|0|0|hubba # # # # Format area: "<releasetype>|<description>|<destination>|<VFS
path>|<sectionnumber>|<symlink>" # # <pretype> Name of the area # <description> Some funky text that describes # <destination> Physical path where pre will be placed. NOOOO "/", it should be "\" as
every other path in windows # <vfs path> Virtual path of above directory # <sectionnumber> When giving credits on pre correct section should get the creds # <symlink> Physical path where the symlink should be. Only works for dated. # If no link is wanted put NULL. That tells ioA to not create a symlink on
newdate # # Possible datethings used on paths: # %Y = Year in long form(2003) # %y = Year in short form(03) # %M = Month # %W = Week # %D = Day #
Pre_Group_Data=group1|iSO mp3|/_pre/group1/*|0|0|hubba Pre_Group_Data=group2|mp3|/_pre/group2/*|0|0|hubba // =组|pre-release类型|Pre-数据的路径,不要忘了*号|用户ID|组ID|你想要的一些信息
Area=iSO|Some ISO Shit|d:\ioftpd\site\iso|/ISO|0|NULL Area=mp3|Some MP3 shit|d:\ioftpd\site\mp3\%M%D|/MP3/%M%D|0|d:\ioFTPD\site\today-mp3 // =release类型|描述|目标路径|虚拟目录|section号码|目录链接 // 在目标路径里如果写 d:\ioftpd\site\mp3\%M%D ,则会在事件激活时(ioftpd.ini里schedule里设置)自动在MP3目录下生成/月日/这样的目录,如1125.写成%M.%D.%Y则生成11.25.2003这样的目录。
#Option to give credits to the dude that pre or uploaders or none. //是否给上传者或pre相应的credit
Give_Credits_to_Pre_Dude=1 Give_Credits_to_Uploaders=0 Touch_Times_on_PRE=1 Touch_Owner_on_PRE=1 Use_Execute_on_Pre=0 Execute_on_Pre_Path=d:\ioFTPD\scripts\imdb.exe
################################################################ # Log formats. Use as needed. # NOTE these are the ones used by dZsbot.tcl by b0unty. If more is needed # look in manual where all variables are stated. # Log_New_Date="%vfs" "%area" "%desc" "%phys" Log_PRE="%vfs/%release" "%user" "%group" "%files" "%mb" "%type" "%desc" Log_Give="%user" "%group" "%mb" "%target" Log_Take="%user" "%group" "%mb" "%target" Log_Wipe="%vfs/%release" "%user" "%group" "%dirs" "%files" "%mb" Log_Invite="%user" "%group" "%ircnick" Log_Request="%user" "%group" "%request" Log_Reqfilled="%user" "%group" "%request" Log_Reqdel="%user" "%group" "%request" Log_Nuke="%vfs" "%user@%group" "%nukee@%nukeegroup" "%multi %size" "%reason" Log_UnNuke="%vfs" "%user@%group" "%nukee@%nukeegroup" "%multi %size" "%reason"
//ioa 生成记录文件的格式。
################################################################ # Files not counted on a nuke, unnuke, wipe, pre. # .* special with files starting with . # example: # File_Filter=.* .log .message .nfo .sfv # File_Filter=.* .nfo .m3u .sfv
//这些文件不计算在nuke, unnuke, wipe, pre内。也就是这些文件不nuke, unnuke, wipe, pre. ############################################################## # Rescanall header # example: RescanAll_Header=[SERVER]-[%oof%n OK]-[SERVER] # Possible variabels: # %m = missing # %n = Total # %o = OK # %s = size # %% = percentage #
RescanAll_Complete_Header=[SERVER]-[%sM %oF - COMPLETE]-[SERVER] RescanAll_InComplete_Header=[SERVER]-[%o of %nF - INCOMPLETE]-[SERVER] //[server]写成你的server名字 # Create a tag for rescanall. # 0 = None, 1 = Directory, 2 = File RescanAll_Create_Tag=1 //生成一个目录,2为生成文件。
RescanAll_Unique_Word=[SERVER] RescanAll_Unique_Word_Inc=incomplete
# 0 = No, 1 = Yes RescanAll_Create_Missing=1 //在rescanall后创建.missing文件,0为不创建
############################################################## # Site search paths and vfs # # Syntax for this file is 3 different lines: # Search_Path= = Where to search # Search_Exclude= = Where not to search # Search_Exclude_Show= = Do not display dirs containing this # # Search_Path=<physical path>|<VFS path>|<level to be searched> # Search_Exclude=<physical path> # Search_Exclude_Show=<word that is not allowed in dirname> # # example: # Search_Path=d:\ioftpd\site\iso|/iso|0 # This will search only in iso. No subdirs # # Search_Path=d:\ioftpd\site\MP3|/MP3|1 # This will search MP3 dir and one dir down. Usually a dated dir # # NOTE!! do NOT add a searchpath and then exlude it as well # //设置搜索文件目录,可以用site search命令搜索全站文件。后面的数字3表示目录下搜索3层子目录 Search_Path=d:\ioftpd\site|/|3 Search_Path=e:\archive|/archive|3 Search_Exclude_Path=d:\ioftpd\site\_pre //不被搜索的目录 Search_Exclude_Show=COMPLETE Search_Exclude_Show=INCOMPLETE Search_Minimum_Chars=3
# Experimental but gives how old a dir is. Search_Show_Dir_Age=1 //结果是否显示上传的时间
# .* special with files starting with . #Note this is ONLY used in search. Not in pre, wipe, nuke Search_File_Filter=.*
# Is it possible to search on filenames as well? Search_Include_Files=1 # This is special. Some loves it some hates it. # 0 = no * is needed when searching(like glftpd). # 1 = like ioA original and best :) # Main difference is that its possible to specify more precise what to search for Search_ioA_Mode=1 //建议这里设为0, 不要通配符就能搜索文件了。
############################################## # NEWDATE PART # newdate uses the ares specified above in presection # and creates dates accordning to parameters there. # NOTE its not needed to have pregroup setup. Only area.
############################################## # Message part # Path to dir in which msg-files will be created. # This is when using MSG. NOT the header/footers Messages_Path=d:\ioFTPD\scripts\ioA\msg //显示的信息部分,注意目录要写对,不然找不到文件呀……
############################################## # Requestsystem # # Where to store requests RequestFile=d:\ioFTPD\site\requests\.ioFTPD.message //这部分是request系统,可以使用site request命令。 //存放request信息的文件,后面的不要改,只注意目录。
# Splitter in requestfile. RequestField= -> //用“->”分开用户名与request之间的部分。
# Requestline is the syntax how it looks in requestfile # It requires to specify width of text with new cookiestuff # # Line MUST be in order: ## user request # # How cookies work can be read in manual search for cookie # How cookies work can be read in manual search for cookie # How cookies work can be read in manual search for cookie #
# *NOTE* from 0.7.9 version you can use %request instead. it will not cut the text then but # do NOT place anything after the cookie then.
RequestLine= [%##] [%-10user] -> %-35request //-10表示用户名留10个字符的空,右对齐。-35表示request部分留35个字符,右对齐。可设为60左右。
# 最多可request 10个文件.
RequestMax=10
# 每个用户最多可request几个文件
Request_Max_User=3
# Create a tag for request and what syntax. %r is required # 0 = None, 1 = Directory, 2 = File Request_Add_Tag=1 Request_Header=[REQ]-%request //创建目录或文件,或不创建, tag的形式为[REQ]-%request
# Should a dir be created in requestdir on filled # 0 = None, 1 = Directory, 2 = File Request_Add_Tag_Filled=1 Request_Filled_Header=[FiLLED]-%request //request fill后是否创建文件、或目录
#Send message to user that requested on filled? Request_Send_Message_On_Filled=1 //fill后是否发送消息给requester.
############################################## # Nuke/UnNuke # Nuke_Splitter= Nuke_Header=[Nuked]-%r Nuke_Group_Flag=G //需G权限(组管理)的用户才可nuke Nuke_Empty_Dir_Amount=25 Nuke_Message_File=.ioFTPD.message Nuke_Create_MessageFile=1 UnNuke_Create_MessageFile=1
# Create a tag for nuke and what syntax. # 0 = None, 1 = Directory, 2 = File Nuke_Tag_Create=2 Nuke_Tag=NUKED %multi x by %user for %reason //NUKE部分,可使用site nuke //是否创建目录或文件标签
Nuke_Using_SnypeTEST_Trial_Script=1 SnypeTEST_Trial_Script_Path=d:\ioFTPD\scripts\ioTrial.exe
############################################## # Size. Paths exluded to search into # Size_Exclude_Path=d:\ioFTPD\site\_pre
############################################## # Where to store datafile for weekly allotment # Weekly_Data_File=d:\ioFTPD\scripts\ioA\ioa.weekly.dat
############################################# # VFS place wipe can NOT be exectuted in. # Example below makes it impossible to wipe from root # Note that this checks FROM where it is possible to wipe. # Not WHAT to wipe. This is by design(ohh I love it). # If NOT wanting to have such check put a - there or remove line # No_Wipe=/
############################################## # Transfer module # Section that is hidden from display. Example is pre # No_Transfer_Section=PRE
############################################## # Should resetuser also set credits to 0? # ResetUser_Also_Include_Credits=1
############################################## # EXPERIMENTAL # Use localtime instead of standard UTC time. # Not recommended but some wanted it Use_Locale_Time_Instead_of_UTC=0
############################################## # ioA logging of commands # This is if you want to log what users do. # Can then be searched with site cmdlog in same # way as syslog and errlog. # NOTE This does not turn off logging to ioFTPD.log
//是否将以下动作记录入文件中。
ioA_Take=1 ioA_Give=1 ioA_Rescanall=1 ioA_Rescan=1 ioA_Invite=1 ioA_Message=1 ioA_Nuke=1 ioA_UnNuke=1 ioA_OneLiner=1 ioA_Pre=1 ioA_Request=1 ioA_Reqfilled=1 ioA_Reqdel=1 ioA_Search=1 ioA_Size=1 ioA_Wipe=1 ioA_Syslog=1 ioA_Errlog=1 ioA_ioAVer=1 ioA_NewDate=1 ioA_Sfv=1 ioA_Nukes=1 ioA_UnNukes=1 ioA_Cmdlog=1 ioA_Weekly=1 ioA_WeeklySet=1 ioA_Transfer=1 ioA_ResetStats=1 ioA_ResetUser=1
③按安装手册,将以下部分添加到ioftpd.ini相应的部分中,以便让iofptd调用ioA.
Quote: 以下部分加入到[scripts] nuke = EXEC ..\ioA\ioA.exe nuke unnuke = EXEC ..\ioA\ioA.exe unnuke nukes = EXEC ..\ioA\ioA.exe nukes unnukes = EXEC ..\ioA\ioA.exe unnukes request = EXEC ..\ioA\ioA.exe request reqfilled = EXEC ..\ioA\ioA.exe reqfilled reqdel = EXEC ..\ioA\ioA.exe reqdel pre = EXEC ..\ioA\ioA.exe pre invite = EXEC ..\ioA\ioA.exe invite newdate = EXEC ..\ioA\ioA.exe newdate ioaver = EXEC ..\ioA\ioA.exe ioaver msg = EXEC ..\ioA\ioA.exe msg wipe = EXEC ..\ioA\ioA.exe wipe give = EXEC ..\ioA\ioA.exe give take = EXEC ..\ioA\ioA.exe take search = EXEC ..\ioA\ioA.exe search rescan = EXEC ..\ioA\ioA.exe rescan rescanall = EXEC ..\ioA\ioA.exe rescanall onel = EXEC ..\ioA\ioA.exe onel sfv = EXEC ..\ioA\ioA.exe sfv size = EXEC ..\ioA\ioA.exe size syslog = EXEC ..\ioA\ioA.exe syslog errlog = EXEC ..\ioA\ioA.exe errlog cmdlog = EXEC ..\ioA\ioA.exe cmdlog weekly = EXEC ..\ioA\ioA.exe weekly transfer = EXEC ..\ioA\ioA.exe transfer resetstats = EXEC ..\ioA\ioA.exe resetstats resetuser = EXEC ..\ioA\ioA.exe resetuser
以下部分加入[events]: OnFtpLogIn = EXEC ..\ioA\ioA.exe logon
4. 以下权限加入 ioFTPD.ini[Ftp-SITE-Permissions]区
invite = * ioaver = 1M sfv = 1M msg = * newdate = 1M nuke = 1M nukes = * unnuke = 1M unnukes = * request = * reqfilled = * pre = 1G wipe = 1MV take = 1MV give = 1MV search = * rescan = 1MV rescanall = 1MV onel = * size = 1 syslog = 1 errlog = 1 cmdlog = 1 weekly = 1MV transfer = * resetstats = 1M resetuser = 1M
2、ioB(anana)的配置(以ioB1.8d为例) ①将包解开放在/scripts/目录下 ②用notepad打开iobanana.ini,进行编辑
Quote: ########### # general # //全局变量 ########### # # Only enable debug when it's needed! # sitebot parameter is the ftp username of your sitebot # site_timezone and dst (Daylight Saving Time) are used only for pretimes adjustments
io_path=D:\ioFTPD //路径,请用ctrl+H全部替换成你的ioftpd的安装目录 io_exec=D:\ioFTPD\system\ioFTPD.exe debug=0 //是否回显debug信息,如果想看哪里出问题,最好设成1,弄
好后再改回来。 sitebot=sitebot //用于irc的,如果有,你写你的名称 site_timezone=-5 //时区,中国的话为+8吧? dst=1 //类似于夏时制的时间设置 textfiles=D:\ioFTPD\text\ioBanana //显示的文本信息,实际上是\iobanana-text,别弄错了……
######### # alert # //登陆多少用户后,开始记录警告 ######### # # max users before warning is logged
max_users=30
######### ## ban ## //Ban IP地址,也可以在..\etc\host.rules里面设置。 ######### # # 1 rule per line # you can put as many line as you want # if ANY line is matched, the command won't be executed # # Syntax: # ^ means start with # $ means ends with # # Eg: ^127. means starts with 127.; will match 127.*.*.* # 127 means contains 127; will match 127.*.*.* and *.127.*.* and *.*.127.* and
*.*.*.127 # .1$ means ends with .1; will match *.*.*.1 # ^127.0.0.1$ # means IS 127.0.0.1; will match 127.0.0.1 only # !!! Same applies to ident matching !!!
ip=^80.230.140.66$ ident=^RPG$ ip_ident=^RPG$@^80.230. #ip=^127.0.0.1$
######## # imdb # ######## # # showNFO: Display the info fetched from imdb on upload (ftp) # logNFO: Log the imdb info in ioftpd.log for the bot to announce # saveNFO: Save the imdb info in a file # filename: Filename to save imdb info into (same dir as uploaded .nfo) # sitename: Will appear in the imdb message, at the bottom
//在上传电影文件时,会自动从nfo里面提取imdb的网址,并连接。 showNFO=1 //是否显示从imdb获取的影片信息 logNFO=1 //是否在log文件里记录NFO saveNFO=1 //是否在上传目录下保存nfo filename=imdb.nfo //保存的文件名 sitename=SiteName //会显示在imdb 信息下部,
########## # latest # //记录和显示最新上传的文件数目,作为链接放在指定目录下 ########## # # latests is the number of links to keep # hidedirs ARE case-sensitive # skipdirs are NOT case-sensitive # showparent setting will display the parent dir in latest dir tag: "[Latest]-parent_dir-
latest_dir..."
latests=3 //链接文件的最大数目 maxwidth=40 //链接文件的最大长度,可设置65左右 linkdir=[Latest]-[%] //目录名形式,%代表relase的名称 linkpath=D:\ioftpd\site\ //将latest的链接放在这个目录下 excluded_dirs_latest=/!ioftpd /pre /requests/___speedtests___ //这些目录下上传的文件不被链接为lastest. skipdirs=cd1 cd2 cd3 cd4 cd5 disc1 disc2 disc3 dvd1 dvd2 dvd3 sample samples vobsub vobsubs
subtitle subtitles subs subpack codec covers //release下的这种形式的子目录不被链接为lastest showparent=1 //是否将上一级目录记录入目录中,写成[Latest]-parent_dir-
latest_dir...这种形式,一般不要的好……
latests_pre=3 //这是pre部分的最新上传文件链接 maxwidth_pre=40 linkdir_pre=[LatestPre]-[%] linkpath_pre=D:\ioftpd\site\ showparent_pre=1
########### # pretime # ########### //这一部分需要mysql数据库支持,如果没有的话,将下面的选项都设为0。 # # NOTE: mysql db needed... disable (put the 3 first flags to 0) if you don't have one! # ## Table needed: ## # CREATE TABLE pretimes ( # name varchar(255) NOT NULL default '', # type varchar(9) NOT NULL default '', # timestamp int(11) NOT NULL default Ɔ', # UNIQUE KEY name (name) # ); ## (or similar) # # - check_pretime_on_mkd will log in ioftpd.log the rls pretime if avail. when someone
creates a dir # - fill_pretime_on_mkd will save in the db the rls name and timestamp when someone creates
a dir # ... use one or the other... not both! # - fill_pretime_on_pre will save in the db each pre'd release # # table needs 'name', 'type' and 'timestamp' (UNIX timestamp as INT, NOT mysql timestamp
format) fields # # be sure to set the correct timezone of your database so that the returned times are GMT #
# Flags to enable or disable pretimes checks check_pretime_on_mkd=1 //如果没有mysql,将这3个设为0! fill_pretime_on_mkd=0 fill_pretime_on_pre=1 ## Disable those 3 if you don't have a mysql db... (0=disabled)
db_ip=localhost db_port=3366 db_user=pretimes_user db_password=patate db_name=pretimes table_name=pretimes pretime_timezone=-5
############ # deny_dir # ############ # # deny_dir_pre=<applicable dir>|<allow dir creation?>|<log attempts?>|<#mins after pre> # Examples: # deny_dir_pre=/svcd|0|1|5 => deny dir creation and log for bot announce if 5 mins
after pre in /svcd section # deny_dir_pre=/games|1|1|30 => allow dir creation and log for bot announce if 30 mins
after pre in /games section # # !Note: make sure you don't have anything defined here if you don't have a pretimes db
deny_dir_pre=/PS2|1|1|120 //如果没有mysql,要将这些目录留空 deny_dir_pre=/mp3/####|0|1|480
################ # transfer log # ################ //所有上传的文件将被记录在.log文件里,自己配置目录 # # logs only uploads
transferlog=D:\ioftpd\logs\transfer.log
########### # sitenew # ########### //用site new命令可以看到新上传的内容 # # release_width is the max width of the release shown... release bigger than that will be
truncated with ... # strip_dirs is NOT case-sensitive # any subdirs of excluded_dirs_sitenew won't show in site new
ioftpd_log=D:\ioftpd\logs\ioFTPD.log //这是ioftpd的log文件,应该
在..\logs\ioftpd.log下面 release_width=40 //这是显示的宽度,写成65左右吧 strip_dirs=cd1 cd2 cd3 cd4 cd5 disc1 disc2 disc3 dvd1 dvd2 dvd3 sample samples vobsub
vobsubs subtitle subtitles subs subpack codec covers //这里是说,子目录的东西不
显示在site new里,但现在这里好象有些问题……我配置的还是要显示出来,比较烦! excluded_dirs_sitenew=/!ioftpd /pre /requests/___speedtests___ //这些目录下上传的东西不在site new里显示出来。比如你不想让人看见的私有目录的内容
########### # limiter # //同时上传、下载最大数据限制。-1为无限制 ########### # # defines max concurrent downloads and uploads users can do; use -1 for unlimited # u can exclude groups, users and flags; use white-space as delimiter for multiple entries # !!! don't comment lines; just leave the exclude_xxx param empty if not wanted !!!
exclude_groups=SiTEOPS Nukers //这些组不限制,用空格隔开 exclude_users=Mouton sitebot //这些用户不限制,用空格隔开 exclude_flags=1M //具有这些标识的用户不受限制。1为管理员,M为Master dl_max=1 //最大同时下载的用户,看你的site容量了…… ul_max=3 //最大同时上传的用户,看你的site容量了……
########## # dirlog # ########## # # will contain a list of all the dirs currently on your site
dir_log=D:\ioftpd\logs\current_dirs.log //是否将你site上的目录记录入此文件
########## # closed # ########## # # list of users that can still login even if site is closed (case sensitive)
masters=Mouton Jimbo //即使site关闭了,这些用户也可以登陆
################# # race symlinks # ################# # # race symlinks creates a symlink (in your ftp root for example) for ongoing races # race symlinks are created on sfv uploaded and deleted when the rls is complete or the
release is deleted # race_dirs are dirs in which races are done; race_dirs are case-sensitive!
create_race_symlink=1 //是否创建racer的上传目录链接 race_symlink_dir=D:\ioftpd\site\ //放置在哪个目录下,自己看着办…… maxwidth_race=40 //目录链接的长度 race_linkdir=[Race]-[%] //目录链接的形式 race_dirs=/apps/ /svcd/ /games/ /mp3/ //这些上传目录下的上传内容将race symlink,当然是换成你的虚拟文件系统了……
############# # zipscript # //这个就是进行上传文件检查的…… ############# # # parent_stats displays global stats for multiple CDs races in the parent dir (if a .nfo is
present there) parent_stats=0 //是否在nfo文件的上级目录下显示多个CD上传的综合统计,0为否
# Enable or disable racestats calculations after each file (unnecessary and time
consuming!) always_compute_racestats=1 //是否在每个文件上传后都计算上传统计,1为是,但没必要,且费时间!
# min_halfway = minimum number of files in release to announce halfway min_halfway=3 //如果一个release的文件数达到这个最小值,则在上传一半后会显示信息。
# Define which %rank? cookies you want to have available in your bot's .skin USTATS-B and
GSTATS-B (%rank1, %rank2, etc.) # One line per stat (max 5); check SITE RANK usage for sections syntax # Only define the stats you will use or loose precious CPU cycles!! racestats_rank1=wkup sections "!1 *" racestats_rank2=monthup sections "!1 *"
# Enable or disable 0-byte files checking; only enable if u get many 0-byte files on your
site! cleanse_0bytes_files=0 //是否要将site里的0字节全部自动删除?0为否
# for mp3 sorting, leave empty to disable //这是mp3文件在上传时按Genre, Year, Artist自动排序的……自行设置排序目录 mp3_genre_path=D:\ioftpd\site\mp3\Sorted\Genre\ mp3_year_path=D:\ioftpd\site\mp3\Sorted\Year\ mp3_artist_path=D:\ioftpd\site\mp3\Sorted\Artist\ mp3_artist_sort_alpha=1 excluded_dirs_sortmp3=/!ioftpd /pre /requests/___speedtests___
# sort movies by genre, rating and/or year; leave empty to disable //这是movie文件在上传
时按Genre, Year, rating自动排序的……自行设置排序目录 movie_year_path=D:\ioftpd\site\movies\Sorted\Year\ movie_genre_path=D:\ioftpd\site\movies\Sorted\Genre\ movie_rating_path=D:\ioftpd\site\movies\Sorted\Rating\ # add_rating will prefix each symlink with "[rating]-" inside Year and Genre dirs movie_sort_add_rating=1 //是否要自动加入rating值 excluded_dirs_sortmovie=/!ioftpd /pre /requests/___speedtests___
# Extract file_id.diz and/or nfo files from zips; enable (1) or disable (0) extract_diz_zip=1 //上传完成后自动从zip文件里自动释放diz文件 extract_nfo_zip=1 //上传完成后自动从zip文件里自动释放nfo文件
# Log (for irc announce) url found in .nfo files inside uploaded .zip log_url_zipped_nfo=1 //是否记录zip文件里的nfo文件。
# List of all the allowed and banned nfo files that can be extracted from .zip files nfo_allow_list=D:\ioftpd\scripts\ZR-Accepted.cfg //依据此文件内的文件,决定是否
将zip文件里的nfo文件自动释放出来 nfo_ban_list=D:\ioftpd\scripts\ZR-Banned.cfg //若zip文件包里有此文件内的文
件,则该nfo文件不会释放在目录下。
# Create incomplete symlinks in parent dir ? //是否在上级目录下创建未完成上传的链接 # For all 2_level_incomplete dirs, symlinks will be created in parent's parent folder
(probably your section dir) instead of inside the release folder parent_incomplete=1 parent_incomplete_dirs=/0days/ /mp3/ //上传到这些目录下的文件要创建未完
成上传的链接 2_level_incomplete=cd1 cd2 cd3 cd4 cd5 disc1 disc2 disc3 dvd1 dvd2 dvd3 vobsub vobsubs
subtitle subtitles subs subpack codec //这些子目录下的文件未完成的话,会在上一级目录下,而不是在release目录下创建未完成上传的链接。
# Force a nfo or a sfv to be sent before anything else in specific dirs; nfo in parent dir
is ok force_nfo_first=1 //强迫nfo文件最先上传,否则上传失败,建议设为0 force_sfv_first=1 //强迫sfv文件最先上传,否则上传失败,建议设为0 force_dirs=/apps/ /svcd/ /games/ /mp3/ /divx/ //这些目录下的上传执行以上规则 # Files uploaded in any dir specified in excluded_dirs_force won't be checked (not case-sensitive) excluded_dirs_force=covers //这些目录下的上传文件不执行以上规则
# force_sample_first = 1 means you won't be able to create any dir listed in
force_sample_check if there is no sample subdir # Be sure you only enable that in your movies dirs! force_sample_first=1 //上传电影时,强迫sample目录最先上传 force_sample_check=cd1 cd2 cd3 cd4 cd5 disc1 disc2 disc3 dvd1 dvd2 dvd3 vobsub vobsubs
subtitle subtitles subs subpack codec covers //如果release目录下有这些文件,则一定要先上传sample目录 force_dirs_sample=/svcd/ /divx/ //site目录下的这些目录执行以上规则
# All files uploaded in those dirs, and all subdirs, will be automatically deleted on upload autodelete=/requests/___speedtests___/dropbox //这些目录下所有上传的文件在完成后自动删除
# Excluded dirs (includes subdirs): those dirs won't be processed by the zipscript (sfv,
zip, mp3, etc.) excluded_dirs_zs=/!ioftpd /pre /requests/___speedtests___ //这些目录下上传的文件不执行sfv, zip, mp3等的检查。
# Execute a command when release is complete; available variables: %DIR% %DIRNAME% %SFV% %
FIRSTFILE% # Leave empty to disable # Example 1: on_release_complete=md %DIR%\Extracted | start D:\ioFTPD\scripts\HideRun.exe
D:\ioFTPD\scripts\unrar.exe x -y %FIRSTFILE% %DIR%\Extracted # Example 2: on_release_complete=md D:\ioFTPD\site\Extracted\%DIRNAME% | start
D:\ioFTPD\scripts\HideRun.exe D:\ioFTPD\scripts\unrar.exe x %FIRSTFILE%
D:\ioFTPD\site\Extracted\%DIRNAME% # Note: The command execution will freeze the ftp session of the last file uploader until
the command execution is done, unless you use "start HideRun.exe" or something similar... on_release_complete=
############## # rotate log # //自动更新log文件 ############## # # frequence=<daily|weekly|monthly> # weekly rotations are done on sundays; monthly rotations are done the 1st of each month # archive_dir is the dir where the old logs will be placed; will be created if doesn't
exist # no log will be rotated before they reach min_log_size (MB)
frequence=weekly //每周更新一次,可设为每日、周、月等 min_log_size=5 //文件达到5M时会自动更新,重新开始 archive_dir=D:\ioftpd\logs\archive\ //该目录执行此规则 rotate_log=D:\ioftpd\logs\Error.log //以下文件自动更新 rotate_log=D:\ioftpd\logs\ioFTPD.log rotate_log=D:\ioftpd\logs\transfer.log
############# # dupecheck # //上传文件的重复性检查 ############# # # dupecheck_dirs enables dir duplicate check; doesn't allow dir creation if another # folder with same name already exists on site (dir_log is used) # dupecheck_files enables file duplicate check; doesn't allow file upload if another # file with same name was uploaded previously (transferlog is used) # excluded_dirs_dupe won't be checked for duplicates # # all banned_dir won't be allowed (MKD won't be allowed); use regular expressions; 1 line
per banned dir //如果site里已经上传了某个release,则再上传此release的目录或文件时,不被允许。不能建立目录,不能写文件。如果是文件重复,会显示何时传过该文件
dupecheck_dirs=0 //是否检查目录,此处为否,建议设为1 dupecheck_files=1 //是否dupechek文件 excluded_dirs_dupe=/!ioftpd /pre /requests/___speedtests___ //这些目录下的上传文件不执行上述规则
banned_dir=.*[^\.][Cc]omplete.* //符合这引起规则的文件目录不能上传 banned_dir=.*[Cc]omplete[^\.].* banned_dir=.*[0-9\.]+%.*
show_xdupe=1
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 covers //以上这些目录不执行dupecheck规则 min_sitedupe_chars=4 //在site dupe时文件的最少字符。
############# # slowraces # //Race龟速用户约束规则 ############# # # slow_races: 1 to enable, 0 to disable # # will kick users off site (all connections) if upload speed less than # 'slow_races_min_speed' kBps (kick announced in site chan) # # will punish the last user to upload a file in a race if it was uploaded # at a speed less than 'slow_races_min_speed' kBps # the user will loose 'slow_races_punish' MB (announced in site chan) # slow_races_punish=0 to disable punish on race end # # applies only to releases with at least 'slow_races_min_files' # not in any dirs in 'excluded_dirs_slowraces'
slow_races=0 //是否执行此规则,此处为否 slow_races_min_speed=150 //若执行,限制的最小上传速度 slow_races_kick_during_race=1 //若执行,满足上述条件则被踢 slow_races_punish=500 //若被执行,要罚500M的credit slow_races_min_files=1 slow_races_exclude_flags=1M //有1或M权限的用户不计算在此规则内 excluded_dirs_slowraces=/!ioftpd /pre /requests/___speedtests___ //这些目录不计算在此规则内
########### # log_nfo # ########### //是否记录nfo文件,用于irc. # # Needs to be enabled to allow !getnfo [#] on IRC
log_nfo=1 nfo_log=D:\ioftpd\logs\nfos.log excluded_dirs_nfolog=/!ioftpd /pre /requests/___speedtests___
############ # transfer # //在site之间转移Credit,用于irc
############ # # To allow credits transfer over sites # # syntax: transfer_site=sitename|ip|port|username|password # You can use an hostname for the IP field. # Make sure that all those users can login from this IP. # # Enable debug (top of this file) if you have problems to see more info when the command is
executed.
transfer_site=testSite1|test.no-ip.org|9999|sitebot|pwd123
########## # spider # ########## //用于irc,不知是做什么的…… # # syntax: spider_site=ip|port|username|password
spider_site=127.0.0.1|9999|sitebot|pwd123 spider_paths=/mp3 /0days
③按安装手册将调用iobanana的命令加入到相应的ioftpd.ini的区域中。这里就不罗嗦了。但要注意的是,在5.2.x版本后,要加入EXEC命令(之前的版本不需要,ioA也是如此)。如写成: rescan = EXEC ..\scripts\ioBanana.exe rescan totals = EXEC ..\scripts\ioBanana.exe totals
而不能写成 rescan = ..\scripts\ioBanana.exe rescan totals = ..\scripts\ioBanana.exe totals |
|