X-Git-Url: https://jfr.im/git/uguu.git/blobdiff_plain/ec65f04185d936ab9a4a83b79ddeb24be47548c5..e6e4772a086f2deef486fe2897d6409fd8b5e8f5:/includes/config.template.php diff --git a/includes/config.template.php b/includes/config.template.php index f600e2e..6efcdc6 100644 --- a/includes/config.template.php +++ b/includes/config.template.php @@ -7,10 +7,19 @@ define("CONFIG_SUBUPLOAD_URL_ENABLED", "false"); define("CONFIG_SUBUPLOAD_URL", "http://a.uguu.se"); //Path to uploaded files define("CONFIG_FILES_PATH", "/path/to/uguu/public/files/"); +//Path to Uguu's files define("CONFIG_ROOT_PATH", "/path/to/uguu/"); -define("CONFIG_MAX_RETENTION_TIME", "60"); //Max retention time in minutes -define("CONFIG_MAX_RETENTION_TEXT", "1 hour"); //Max retention time as a text to be displayed -define("CONFIG_RANDOM_LENGTH", "12"); //Length of the random chain appended to the filename -define ("CONFIG_BLOCKED_EXTENSIONS", serialize(array("exe", "scr", "rar", "zip", "com", "vbs", "bat", "cmd", "html", "htm", "msi", "php", "php5"))); -//https://wiki.gentoo.org/wiki/Handbook to set this string correctly +//Max retention time in minutes +define("CONFIG_MAX_RETENTION_TIME", "60"); +//Max retention time as a text to be displayed +define("CONFIG_MAX_RETENTION_TEXT", "1 hour"); +//Length of the random chain appended to the filename +define("CONFIG_RANDOM_LENGTH", "12"); +//Operate on a BLACKLIST or a WHITELIST when blocking file extensions +define("CONFIG_EXTENSION_BLOCKING_MODE", "BLACKLIST"); +//This is the list of blocked extensions in BLACKLIST mode (default mode), you can remove extensions or add to this list as you like +define("CONFIG_BLOCKED_EXTENSIONS", serialize(array("exe", "scr", "rar", "zip", "com", "vbs", "bat", "cmd", "html", "htm", "msi", "php", "php5"))); +//This is the list of allowed extensions in WHITELIST mode, you can remove extensions or add to this list as you like +define("CONFIG_ALLOWED_EXTENSIONS", serialize(array("txt", "pdf"))); +//https://wiki.gentoo.org/wiki/Handbook to set this string correctly, or just ignore it define("VERYLO_NG_STRING_THATDOESNTREALLYD_O_ANYTHING", "ok");