config.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. /*
  3. *
  4. * Application Name: PHP Custom Content Uploader
  5. * Module Name: config.php
  6. *
  7. * Copyright (c) 2020 DBMXPCA Technologies. All rights reserved.
  8. * https://www.dbmxpca.com/
  9. *
  10. */
  11. // Description: Allowed MIME types.
  12. // Default: array('image/png', 'image/jpeg', 'image/gif', 'video/webm');
  13. $allowed_mime_types = array('image/png', 'image/jpeg', 'image/gif', 'video/webm');
  14. // Description: Full path, including name of the user's JSON.
  15. // Default: "/u"
  16. // Default Example: "https://ugc.dbmxpca.com/u/13940/3198590318.png"
  17. define("USERS_JSON", $_SERVER['DOCUMENT_ROOT'] . "/users.json");
  18. // Description: Path to the user content directory. Must be writeable by the script. Do not include trailing slash.
  19. // Default: "/u"
  20. // Default Example: "https://ugc.dbmxpca.com/u/13940/3198590318.png"
  21. define("USER_CONTENT_DIR", $_SERVER['DOCUMENT_ROOT'] . "/u");
  22. // 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").
  23. // Default: false
  24. // Default Example: "https://ugc.dbmxpca.com/u/13940/3198590318.png"
  25. define("FORCE_CASE_SENSITIVE_API_KEYS", false);
  26. // define("FORCE_CASE_SENSITIVE_API_KEYS", true);
  27. // Description: If true, errors will be returned enclosed with <pre></pre> tags.
  28. // Default: true
  29. define("ENCLOSE_ERRORS_WITH_PRE_TAG", true);
  30. // define("ENCLOSE_ERRORS_WITH_PRE_TAG", false);
  31. // Description: If true, errors will be detailed. Otherwise, errors will be vague for security reasons. This can be enabled for debugging or troubleshooting purposes.
  32. // Default: true
  33. define("DETAILED_ERRORS", true);
  34. // define("DETAILED_ERRORS", false);