]> jfr.im git - uguu.git/blobdiff - static/php/includes/settings.inc.php
unused code
[uguu.git] / static / php / includes / settings.inc.php
index 31782fb35907633368bc5e045e16934f65689f56..fb09d6cbda91e2c7b959214a13555b83d8d86435 100644 (file)
@@ -26,7 +26,10 @@ define('UGUU_DB_USER', 'NULL');
 define('UGUU_DB_PASS', 'NULL');
 
 /** Log IP of uploads */
-define('LOG_IP', 'no');
+define('LOG_IP', 'false');
+
+/** Dont upload a file already in the DB */
+define('ANTI_DUPE', 'false');
 
 /*
  * File system location where to store uploaded files
@@ -38,7 +41,7 @@ define('UGUU_FILES_ROOT', '/path/to/file/');
 /*
  * Maximum number of iterations while generating a new filename
  *
- * Pomf uses an algorithm to generate random filenames. Sometimes a file may
+ * Uguu uses an algorithm to generate random filenames. Sometimes a file may
  * exist under a randomly generated filename, so we count tries and keep trying.
  * If this value is exceeded, we give up trying to generate a new filename.
  *
@@ -59,7 +62,7 @@ define('UGUU_FILES_LENGTH', 8);
  *
  * @param string UGUU_URL URI with trailing delimiter
  */
-define('UGUU_URL', 'https://url.to.subdomain.where.files.will.be.served.com');
+define('UGUU_URL', 'https://url.to.subdomain.where.files.will.be.served.com/');
 
 /*
  * URI for filename generation
@@ -70,11 +73,7 @@ define('ID_CHARSET', 'abcdefghijklmnopqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ');
 
 /*
  * Filtered mime types
- * @param string[] $FILTER_MIME allowed/blocked mime types
  */
-//$FILTER_MIME = array("application/octet-stream", "application/msword", "text/html", "application/x-dosexec", "application/zip", "application/java", "application/java-archive", "application/pdf", "application/x-executable");
-//$FILTER_EXT = array("exe", "scr", "com", "vbs", "bat", "cmd", "htm", "html", "zip", "jar", "msi", "apk", "pdf");
-
 define('CONFIG_BLOCKED_EXTENSIONS', serialize(['exe', 'scr', 'com', 'vbs', 'bat', 'cmd', 'htm', 'html', 'jar', 'msi', 'apk', 'phtml', 'svg']));
 define('CONFIG_BLOCKED_MIME', serialize(['application/msword', 'text/html', 'application/x-dosexec', 'application/java', 'application/java-archive', 'application/x-executable', 'application/x-mach-binary', 'image/svg+xml']));
 
@@ -87,7 +86,7 @@ $FILTER_MODE = false;
 /**
  * Double dot file extensions.
  *
- * Pomf keeps the last file extension for the uploaded file. In other words, an
+ * Uguu keeps the last file extension for the uploaded file. In other words, an
  * uploaded file with `.tar.gz` extension will be given a random filename which
  * ends in `.gz` unless configured here to ignore discards for `.tar.gz`.
  *