config.php 901 B

123456789101112131415161718192021222324252627282930
  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");