upload.php 880 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /*
  3. *
  4. * Application Name: PHP Custom Content Uploader
  5. * Module Name: upload.php
  6. *
  7. * Copyright (c) 2020 DBMXPCA Technologies. All rights reserved.
  8. * https://www.dbmxpca.com/
  9. *
  10. */
  11. require_once($_SERVER['DOCUMENT_ROOT'] . "/core.php");
  12. /*
  13. *
  14. * This script is designed to be called with the following parameters:
  15. *
  16. * Parameter Description
  17. * -----------------------------------------------------------------
  18. * u Username, corresponding to the user's name in the "users.json" file. Value may not be empty. Case-sensitive.
  19. * k API Key, corresponding to the user's "key" value in the "users.json" file. Value may not be empty. Not case-sensitive by default but can be changed in "config.php".
  20. *
  21. */
  22. $err = null;
  23. if (CHECK_USER($err)){
  24. echo "ok";
  25. }
  26. else{
  27. DIE_ERR($err);
  28. }