| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- /*
- *
- * Application Name: PHP Custom Content Uploader
- * Module Name: config.php
- *
- * Copyright (c) 2020 DBMXPCA Technologies. All rights reserved.
- * https://www.dbmxpca.com/
- *
- */
- // 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: Path to the user content directory. Must be writeable by the script. Do not include trailing slash.
- // Default: "/u"
- // Default Example: "https://ugc.dbmxpca.com/u/13940/3198590318.png"
- define("USER_CONTENT_DIR", $_SERVER['DOCUMENT_ROOT'] . "/u");
- // 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);
|