revokeToken.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * ownCloud
  4. *
  5. * Original:
  6. * @author Frank Karlitschek
  7. * @copyright 2010 Frank Karlitschek karlitschek@kde.org
  8. *
  9. * Adapted:
  10. * @author Michiel de Jong, 2012
  11. *
  12. * This library is free software; you can redistribute it and/or
  13. * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
  14. * License as published by the Free Software Foundation; either
  15. * version 3 of the License, or any later version.
  16. *
  17. * This library is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
  21. *
  22. * You should have received a copy of the GNU Affero General Public
  23. * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  24. *
  25. */
  26. // Do not load FS ...
  27. $RUNTIME_NOSETUPFS = true;
  28. OCP\App::checkAppEnabled('remoteStorage');
  29. require_once('remoteStorage/lib_remoteStorage.php');
  30. ini_set('default_charset', 'UTF-8');
  31. #ini_set('error_reporting', '');
  32. @ob_clean();
  33. echo OC_remoteStorage::deleteToken(file_get_contents("php://input"));