Advertisement
Guest User

Untitled

a guest
May 22nd, 2017
840
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.23 KB | None | 0 0
  1. /* zsconfig.h - ZipScript-C config file
  2. *
  3. * Please do not change settings you dont understand!
  4. *
  5. */
  6.  
  7.  
  8. /* Basic settings
  9. */
  10.  
  11.  
  12. /* If you dont know what to write there, you should really be using jehsoms script
  13. */
  14.  
  15. #define site_root "/opt/glftpd/"
  16. #define log "/ftp-data/logs/glftpd.log"
  17. #define storage "/ftp-data/zipscript/"
  18. #define gl_userfiles "/ftp-data/users/"
  19.  
  20. /* On default, announcing is disabled everywhere, use zip/sfv paths to enable annouces and private paths to disable
  21. */
  22.  
  23. #define group_dirs "/site/TRASH/groups/"
  24. #define zip_dirs "/site/0DAY/ /site/0DAY-LATEST/"
  25. #define sfv_dirs "/site/APPZ/ /site/EBOOKS/ /site/HDTV/ /site/MP3/ /site/MP3-LATEST/ /site/PCGAMES/ /site/TV-720p/ /site/TV-ARCHIV/ /site/TV-DOKU/ /site/TV-SERIEN/ /site/XVID-ARCHIV/ /site/XVID-CINE/ /site/XVID-RETAIL/ /site/XXX/"
  26. #define nocheck_dirs "/site/TRASH/ /site/incoming/ /site/REQUESTS/"
  27.  
  28. /* These directories will contain symlinks to your audio releases
  29. */
  30.  
  31. #define audio_genre_path "/site/TRASH/groups/music.by.genre/"
  32. #define audio_artist_path "/site/TRASH/groups/music.by.artist/"
  33. #define audio_year_path "/site/TRASH/groups/music.by.year/"
  34.  
  35. /* It is a good idea to prevent crap from filling your hds - you can disable these restrictions in the advanced portion of config
  36. */
  37.  
  38. #define allowed_bitrates "64,96,112,128,160,192,224,256,320"
  39. #define allowed_years "1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016"
  40. #define banned_genres "Christian Rap"
  41.  
  42. /* Creates a zero-byte file for every non-existing file defined in sfv
  43. */
  44.  
  45. #define create_missing_files TRUE
  46.  
  47. /* Removes duplicate entries and comments from the sfv - some lame zipscripts seem to add duplicate entries :p
  48. */
  49.  
  50. #define sfv_dupecheck TRUE
  51.  
  52. /* Writes a plain sfv - removing all comments etc
  53. */
  54.  
  55. #define sfv_cleanup TRUE
  56.  
  57. /* Create m3u file on release complete for audio release
  58. */
  59.  
  60. #define create_m3u TRUE
  61.  
  62. /* Enable/disable norace announces (will be used instead of normal announces, if there is only one user in race)
  63. */
  64.  
  65. #define announce_norace TRUE
  66.  
  67. /* If minium is not reached - announcement will be disabled
  68. */
  69.  
  70. #define min_newleader_files 1
  71. #define min_update_files 1
  72. #define min_halfway_files 10
  73.  
  74. /* Limit number of users/groups to display in stats
  75. */
  76.  
  77. #define max_users_in_top 7
  78. #define max_groups_in_top 7
  79.  
  80. /* Exclude non sfv directories (ie group/request directory)
  81. */
  82.  
  83. #define exclude_non_sfv_dirs 1
  84.  
  85. /* Defines type of status bar
  86. * 0 = file
  87. * 1 = directory
  88. */
  89.  
  90. #define status_bar_type 1
  91.  
  92. /* Defines type of incomplete pointer
  93. * 0 = file
  94. * 1 = symbolic link
  95. */
  96.  
  97. #define incompleteislink 1
  98.  
  99. /* Defines how stats are written into log
  100. * 0 = complete msg only
  101. * 1 = n line mode (complete, pre_stats, user top, between stats, group top, post stats)
  102. */
  103.  
  104. #define zip_complete_type 0
  105. #define zip_norace_complete_type 0
  106. #define rar_complete_type 1
  107. #define rar_norace_complete_type 1
  108. #define audio_complete_type 1
  109. #define audio_norace_complete_type 1
  110. #define video_complete_type 1
  111. #define video_norace_complete_type 1
  112. #define other_complete_type 1
  113. #define other_norace_complete_type 1
  114.  
  115. /* NOTE: You may disable announces by typing DISABLED instead of cookie string (do not use DISABLED with message etc files!!!)
  116. */
  117.  
  118. /* Use for these is described above
  119. */
  120.  
  121. #define pre_stats "UserTop: "
  122. #define between_stats "GroupTop: "
  123. #define post_stats DISABLED
  124.  
  125. #define user_top "%n. %B%u%B/%-10g [%.1mM/%fF/%.1p%%/%.0sKB/s]"
  126. #define user_info "%B%u%B/%g [%.1mM/%fF/%.1p%%/%.0sKB/s]"
  127. #define group_top "%n. %B%g%B [%.1mM/%fF/%.1p%%/%.0sKB/s]"
  128. #define group_info "%B%g%B [%.1mM/%fF/%.1p%%/%.0sKB/s]"
  129. #define fastestfile "Fastest upload by %B%u%B/%g at %B%.0F%BKB/S."
  130. #define slowestfile "Slowest upload by %B%u%B/%g at %B%.0S%BKB/S."
  131.  
  132. /* Get list of competitors (all racers excluding current user) - stored in %R cookie
  133. */
  134.  
  135. #define get_competitor_list TRUE
  136. #define racersmsg "%B%u%B(%g)"
  137.  
  138.  
  139. /* Audio files - currently used only for mp3 (mpeg2 layer3), but mpeg1 & mpeg2.5 + layer1 & 2 can be added if needed
  140. */
  141.  
  142. #define audio_race "%B%U%B is racing [ %R ] on %r @ %B%.0S%BkB/s."
  143. #define audio_sfv "Got SFV for %r. Expecting %B%f%BF."
  144. #define audio_update "Got MP3 info for %r. Expecting %B%f%BF of %B%w%B from %B%Y%B."
  145. #define audio_halfway "%r is in halfway. Leading uploader is %C0. Leading group is %c0."
  146. #define audio_newleader "%C0 takes the lead in %r!"
  147. #define audio_complete "%r [ %B%.0m%BmB in %B%f%BF at %B%.0A%BkB/s - %d ] was completed by %B%u%B racer(s) from %B%g%B group(s). %l %L"
  148. #define audio_norace_halfway "%r is in halfway. Leading uploader is %C0. Leading group is %c0."
  149. #define audio_norace_complete "%r [ %B%.0m%BmB in %B%f%BF at %B%.0A%BkB/s - %d ] was completed by %B%u%B racer(s) from %B%g%B group(s). %l %L"
  150.  
  151. /* Video files - supports mpeg1/mpeg2 and various avi formats
  152. */
  153.  
  154. #define video_race "%B%U%B is racing [ %R ] on %r @ %B%.0S%BkB/s."
  155. #define video_sfv "Got SFV for %r. Expecting %B%f%BF."
  156. #define video_update "%B%U%B/%G was the first to upload file in %r. Expecting %B%.1e%BmB."
  157. #define video_halfway "%r is in halfway. Leading uploader is %C0. Leading group is %c0."
  158. #define video_newleader "%C0 takes the lead in %r!"
  159. #define video_complete "%r [ %B%.0m%BmB in %B%f%BF at %B%.0A%BkB/s - %d ] was completed by %B%u%B racer(s) from %B%g%B group(s). Compression method: m%B%Z%B. %l %L"
  160. #define video_norace_halfway "%r is in halfway. Leading uploader is %C0. Leading group is %c0."
  161. #define video_norace_complete "%r [ %B%.0m%BmB in %B%f%BF at %B%.0A%BkB/s - %d ] was completed by %B%u%B racer(s) from %B%g%B group(s). %l %L"
  162.  
  163. /* RAR - allows usage of compression mode cookie for rarred releases
  164. */
  165.  
  166. #define rar_race "%B%U%B is racing [ %R ] on %r @ %B%.0S%BkB/s."
  167. #define rar_sfv "Got SFV for %r. Expecting %B%f%BF."
  168. #define rar_update "%B%U%B/%G was the first to upload file in %r. Expecting %B%.1e%BmB."
  169. #define rar_halfway "%r is in halfway. Leading uploader is %C0. Leading group is %c0."
  170. #define rar_newleader "%C0 takes the lead in %r!"
  171. #define rar_complete "%r [ %B%.0m%BmB in %B%f%BF at %B%.0A%BkB/s - %d ] was completed by %B%u%B racer(s) from %B%g%B group(s). Compression method: m%B%Z%B. %l %L"
  172. #define rar_norace_halfway "%r is in halfway. Leading uploader is %C0. Leading group is %c0."
  173. #define rar_norace_complete "%r [ %B%.0m%BmB in %B%f%BF at %B%.0A%BkB/s - %d ] was completed by %B%u%B racer(s) from %B%g%B group(s). %l %L"
  174.  
  175. /* Rest of the stuff inside sfv
  176. */
  177.  
  178. #define other_race "%B%U%B is racing [ %R ] on %r @ %B%.0S%BkB/s."
  179. #define other_sfv "Got SFV for %r. Expecting %B%f%BF."
  180. #define other_update "%B%U%B/%G was the first to upload file in %r. Expecting %B%.1e%BmB."
  181. #define other_halfway "%r is in halfway. Leading uploader is %C0. Leading group is %c0."
  182. #define other_newleader "%C0 takes the lead in %r!"
  183. #define other_complete "%r [ %B%.0m%BmB in %B%f%BF at %B%.0A%BkB/s - %d ] was completed by %B%u%B racer(s) from %B%g%B group(s). %l %L"
  184. #define other_norace_halfway "%r is in halfway. Leading uploader is %C0. Leading group is %c0."
  185. #define other_norace_complete "%r [ %B%.0m%BmB in %B%f%BF at %B%.0A%BkB/s - %d ] was completed by %B%u%B racer(s) from %B%g%B group(s). %l %L"
  186.  
  187. /* Zipped files
  188. */
  189.  
  190. #define zip_race "%B%U%B is racing [ %R ] on %r @ %B%.0S%BkB/s."
  191. #define zip_update "Got DiZ for %r. Expecting %B%.1e%BmB in %B%f%BF"
  192. #define zip_halfway "%r is in halfway. Leading uploader is %C0. Leading group is %c0."
  193. #define zip_newleader "%C0 takes the lead in %r!"
  194. #define zip_complete "%r [ %B%.0m%BmB in %B%f%BF at %B%.0A%BkB/s - %d ] was completed by %B%u%B racer(s) from %B%g%B group(s). %l %L Lucky7: %T"
  195. #define zip_norace_halfway "%r is in halfway. Leading uploader is %C0. Leading group is %c0."
  196. #define zip_norace_complete "%r [ %B%.0m%BmB in %B%f%BF at %B%.0A%BkB/s - %d ] was completed by %B%u%B racer(s) from %B%g%B group(s). %l %L"
  197.  
  198.  
  199. /* Output of racestats binary
  200. */
  201.  
  202. #define stats_line "%r: %B%F%B of %B%f%B files uploaded by %B%u%B racer(s) from %B%g%B group(s). Leading uploader: %C0."
  203.  
  204. /* Output of postdel binary
  205. */
  206.  
  207. #define incompletemsg "%B%U%B/%G deletes file from %r. Release is now %Bincomplete%B!"
  208.  
  209. /* Output variables */
  210.  
  211. #define message_header ""
  212. #define message_user_header "\n U S E R T O P\n" \
  213. "+--------------------------------------------------------------------+\n"
  214. #define message_user_body "%3n %-34U %7.1mM %3fF %5.1p%% %5.0sKBs\n"
  215. #define message_user_footer "+--------------------------------------------------------------------+\n" \
  216. "%3u Total %36.1mM %3fF 100.0%% %5.0aKBs\n"
  217.  
  218. #define message_group_header "\n\n G R O U P T O P\n" \
  219. "+--------------------------------------------------------------------+\n"
  220. #define message_group_body "%3n %-34g %7.1mM %3fF %5.1p%% %5.0sKBs\n"
  221. #define message_group_footer "+--------------------------------------------------------------------+\n" \
  222. "%3g Total %36.1mM %3fF 100.0%% %5.0aKBs\n"
  223.  
  224. #define message_mp3 "\n\n I D 3 - T A G\n" \
  225. "+--------------------------------------------------------------------+\n" \
  226. " Artist: %x\n" \
  227. " Album : %W\n" \
  228. " Genre : %-34w Rate: %Xkbit/sec\n" \
  229. " Tracks: %-34f Year: %Y\n" \
  230. "+--------------------------------------------------------------------+\n"
  231. #define message_footer ""
  232.  
  233. #define video_completebar "[dS] - ( %.0mM %fF - COMPLETE ) - [dS]"
  234. #define audio_completebar "[dS] - ( %.0mM %fF - COMPLETE - %w %Y ) - [dS]"
  235. #define rar_completebar "[dS] - ( %.0mM %fF - COMPLETE ) - [dS]"
  236. #define other_completebar "[dS] - ( %.0mM %fF - COMPLETE ) - [dS]"
  237. #define zip_completebar "[dS] - ( %.0mM %fF - COMPLETE ) - [dS]"
  238. #define del_completebar "\\[dS] - \\( .*F - COMPLETE.*) - \\[dS]"
  239.  
  240.  
  241. #define zipscript_header ".----=== ZipScript-C ===--,d1'--=== (C) 2002 ===---.\n"
  242. #define zipscript_sfv_ok "| + SFV-file: oK! |\n"
  243. #define zipscript_any_ok "| + File: ok! |\n"
  244. #define zipscript_SFV_ok "| + CRC-Check: oK! |\n"
  245. #define zipscript_SFV_skip "| + CRC-Check: SKIPPED! |\n"
  246. #define zipscript_zip_ok "| + ZiP integrity: oK! |\n"
  247. #define realtime_mp3_info "+-=[ID3tag]=------------------------===------------+\n" \
  248. "| Title : %-39y |\n" \
  249. "| Artist : %-39x |\n" \
  250. "| Album : %-39W |\n" \
  251. "| Genre : %-39w |\n" \
  252. "| Year : %-39Y |\n"
  253. #define realtime_user_header "+-=[UserTop]=-------------------===----------------+\n"
  254. #define realtime_user_body "| %2n. %-17u %8.1mmB %2fF %7.0skB/s |\n"
  255. #define realtime_user_footer ""
  256. #define realtime_group_header "+-=[GroupTop]=--------------------===--------------+\n"
  257. #define realtime_group_body "| %2n. %-17g %8.1mmB %2fF %7.0skB/s |\n"
  258. #define realtime_group_footer ""
  259. #define zipscript_footer_unknown "`-[ - NO - SFV - ]------------------------[%2F/??]--'\n"
  260. #define zipscript_footer_ok "`-[%V]------------------------[%2F/%-2f]--'\n"
  261. #define zipscript_footer_error "| - %-46v |\n" \
  262. "`-----------------------------------========-------'\n"
  263. #define zipscript_footer_skip "`--------------------------------=====-------------'\n"
  264.  
  265.  
  266. #define sfv_comment "; sfv raped by zipscript-c on the mighty ,dS'\r\n" \
  267. "; \r\n"
  268.  
  269.  
  270.  
  271. /* Advanced settings
  272. */
  273.  
  274. /* SHM area to use (for glftpd)
  275. */
  276.  
  277. #define KEY 0x0000DEAD
  278.  
  279. /* Directories for cleanup to check for broken incomplete files
  280. * Use same % values as with date
  281. */
  282.  
  283. #define cleanupdirs "/site/MP3-LATEST/ /site/TV-720p/ /site/TV-DOKU/ /site/TV-SERIEN/ /site/XVID-ARCHIV/ /site/XVID-CINE/ /site/XVID-RETAIL/"
  284.  
  285. /* If file has suid bit set, program changes uid and gid to these (0 leaves option uncompiled)
  286. */
  287.  
  288. #define program_uid 10
  289. #define program_gid 200
  290.  
  291. /* SQL information
  292. */
  293.  
  294. #define sql_user "dServer"
  295. #define sql_pass "dServer"
  296. #define sql_host "212.146.42.251"
  297. #define sql_db "reldata"
  298.  
  299. /* These file types are allowed without any checks (types need to be also ignored)
  300. */
  301.  
  302. #define allowed_types "jpeg,png,bmp,jpg,bin,iso,cue,mp3,m3u,mpg,mpeg,avi,mkv,mp4,wma,wmv,doc,docx,txt,mov,vob,jar,rar,zip,7zip,bak,exe,tar,gz,cue,m3u"
  303.  
  304. /* These file types are ignored from sfv
  305. * NOTE: , at the beginning ignores all files without extensions
  306. */
  307.  
  308. #define ignored_types ",diz,jpg,cue,m3u,nfo,sfv"
  309.  
  310.  
  311. /* Disabling all of non-used functions is recomended, it leaves option uncompiled.
  312. */
  313.  
  314.  
  315. /* Audio related checks for quality/type
  316. */
  317.  
  318. #define audio_bitrate_check TRUE
  319. #define audio_year_check FALSE
  320. #define audio_genre_check FALSE
  321.  
  322. /* Audio related sym links
  323. */
  324.  
  325. #define audio_genre_sort TRUE
  326. #define audio_year_sort TRUE
  327. #define audio_artist_sort TRUE
  328.  
  329. /* Special modes
  330. */
  331.  
  332. #define debug_mode TRUE
  333. #define benchmark_mode TRUE
  334.  
  335. /* Force sfv to be uploaded first, before accepting any files
  336. */
  337.  
  338. #define force_sfv_first FALSE
  339.  
  340. /* Write .message file on complete
  341. */
  342.  
  343. #define write_complete_message TRUE
  344.  
  345. /* Enable/disable accept script (accept script is run, if file is ok)
  346. */
  347.  
  348. #define enable_accept_script FALSE
  349. #define accept_script "/bin/imdb_parse.sh"
  350.  
  351. /* Enable/disable nfo script (only run on .nfo files)
  352. */
  353.  
  354. #define enable_nfo_script TRUE
  355. #define nfo_script "/bin/psxc-imdb.sh"
  356.  
  357. /* Enable/disable complete script (complete script is run, if release is complete)
  358. */
  359.  
  360. #define enable_complete_script FALSE
  361. #define complete_script "/bin/nfo_copy.sh"
  362.  
  363. /* Get user day/week/month/allup position
  364. */
  365.  
  366. #define get_user_stats TRUE
  367.  
  368. #define show_user_info TRUE
  369. #define show_group_info TRUE
  370.  
  371. /* Copy files defined in includezip to zipped file
  372. */
  373.  
  374. #define copy_files_to_zip FALSE
  375. #define includezip "/bin/zipscript-awk/ds.nfo"
  376.  
  377. #define incomplete_cd_indicator "../../(incomplete)-(%0)-%1"
  378. #define incomplete_indicator "../(incomplete)-%0"
  379.  
  380. #define incomplete_nonfo_cd_indicator "../../(incomplete)-(no nfo)-(%0)-%1"
  381. #define incomplete_nonfo_indicator "../(incomplete)-(no nfo)-%0"
  382.  
  383. #define progressmeter "[%V] - %3.0p%% Complete - [dS]"
  384. #define del_progressmeter "\\[.*] - ...% Complete - \\[dS]"
  385.  
  386.  
  387.  
  388.  
  389.  
  390. /* Dark0n3 only settings
  391. */
  392.  
  393.  
  394. #define version "0.6.0"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement