| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <?php
- /*
- *
- * Application Name: PHP Custom Content Uploader
- * Module Name: config.php
- *
- * Copyright (c) 2020 DBMXPCA Technologies. All rights reserved.
- * https://www.dbmxpca.com/
- *
- */
- // Description: Fully Qualified Domain Name (FQDN), with no trailing slash. Do not include the protocol (i.e.: HTTP or HTTPS).
- // Default Example: "ugc.example.com"
- define("FQDN", "ugc2.dbmxpca.com");
- // Description: HTTP protocol to use. Use "http" for plain-text HTTP or "https" for HTTP Secure protocol.
- // Default Example: "ugc.example.com"
- define("HTTP_PROTOCOL", "https");
- // Description: The public URL path to the UCD. For example, by default this is "/u" (short for "/users"). This value is appended to the FQDN to determine the final image path. For example, with the default configuration, an image path could be: "https://ugc.example.com/u/13940/3198590318.png". Otherwise if you set the setting to something like "/users" then an image path could be "https://ugc.example.com/users/13940/3198590318.png". Without any URL-Rewrite or mod_rewrite modules, this would usually correspond to the setting "USER_CONTENT_DIR" found below.
- // Default: "/u"
- define("PUBLIC_USER_CONTENT_DIR", "/u");
- // Description: Full filesystem path to the root of the user content directory. Must be writeable by the script. Do not include trailing slash.
- // Default: $_SERVER['DOCUMENT_ROOT'] . "/u"
- // Default Example: "https://ugc.dbmxpca.com/u/13940/3198590318.png"
- define("USER_CONTENT_DIR", $_SERVER['DOCUMENT_ROOT'] . "/u");
- // Description: Allowed MIME types.
- // Default: array('image/png', 'image/jpeg', 'image/gif', 'video/webm');
- $allowed_mime_types = array('image/png', 'image/jpeg', 'image/gif', 'video/webm');
- // Description: Full path, including name of the user's JSON.
- // Default: "/u"
- // Default Example: "https://ugc.dbmxpca.com/u/13940/3198590318.png"
- define("USERS_JSON", $_SERVER['DOCUMENT_ROOT'] . "/users.json");
- // Description: If true, API keys are case-sensitive: requests will only succeed if requesting with the API key with correct case (i.e.: "PaSSword123" != "password123").
- // Default: false
- // Default Example: "https://ugc.dbmxpca.com/u/13940/3198590318.png"
- define("FORCE_CASE_SENSITIVE_API_KEYS", false);
- // define("FORCE_CASE_SENSITIVE_API_KEYS", true);
- // Description: If true, errors will be returned enclosed with <pre></pre> tags.
- // Default: true
- define("ENCLOSE_ERRORS_WITH_PRE_TAG", true);
- // define("ENCLOSE_ERRORS_WITH_PRE_TAG", false);
- // Description: If true, errors will be detailed. Otherwise, errors will be vague for security reasons. This can be enabled for debugging or troubleshooting purposes.
- // Default: true
- define("DETAILED_ERRORS", true);
- // define("DETAILED_ERRORS", false);
- // Description: Random length of a default random string. Currently unused.
- // Default: 10
- define("RANDOM_STRING_DEFAULT_LENGTH", 10);
|