rollbackVersion.php 452 B

1234567891011121314151617181920212223242526
  1. <?php
  2. require_once('../../../lib/base.php');
  3. OCP\JSON::checkAppEnabled('files_versions');
  4. require_once('../versions.php');
  5. $userDirectory = "/".OCP\USER::getUser()."/files";
  6. $source = $_GET['source'];
  7. $source = strip_tags( $source );
  8. echo "\n\n$source\n\n";
  9. $revision = strtotime( $source );
  10. echo "\n\n$revision\n\n";
  11. if( OCA_Versions\Storage::isversioned( $source ) ) {
  12. #\OCA_Versions\Storage::rollback( $source, $revision );
  13. }
  14. ?>