All pastes #747152 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-10-23 20:07 UTC
rendered paste body
#The PREVENT UPLOAD Part:
#This script also be rewrite.
#You can specify if a sfv is allowed to be uploaded when only certain dir are presents.
#You can specify if a sfv is prevent, what dir can be mkdir.

#SFV deny upload
sfv.restrict.upload=true
sfv.restrict.upload.exempt=^sample$ ^cover?$ ^sub?$

#SFV deny MKD (if exists)
sfv.restrict.mkd=true
sfv.restrict.mkd.exempt=^sample$ ^cover?$ ^sub?$ ^subs$ ^proof$ ^PROOF$ ^COVERS$ ^covers$ ^covers$

#The PROTECT AFFILS part:
#This script a easy protection for all your affils. The script check your perms.conf
#When found a line : pre  /PRE/GROUP/*     =GROUP =siteop for example
#For this line, dirname like XXXX-GROUP can only be created by GROUP users and siteop users for all sections.
#So, if you have group affils that not pre in the entire site, you must protect your groups with regexp.
#Its a first realisation, maybe more customisable later.

#restrict affil files other than affils
mkdir.restrict.affils=true