diff options
author | Sam Tuke <sam@donttravelempty.com> | 2012-04-26 18:45:17 +0100 |
---|---|---|
committer | Sam Tuke <sam@donttravelempty.com> | 2012-04-26 18:45:17 +0100 |
commit | 18a024e251cbcdaafb0ef2893cd5cf8544b03f4d (patch) | |
tree | 9633209305aec012458c1a60e372b39f5e1230d8 /apps/files_versions/ajax/rollbackVersion.php | |
parent | c693ee2adb1b8b251d7905791eeca0946c31c68b (diff) | |
download | nextcloud-server-18a024e251cbcdaafb0ef2893cd5cf8544b03f4d.tar.gz nextcloud-server-18a024e251cbcdaafb0ef2893cd5cf8544b03f4d.zip |
started implementing ajax file rollback
Diffstat (limited to 'apps/files_versions/ajax/rollbackVersion.php')
-rw-r--r-- | apps/files_versions/ajax/rollbackVersion.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/apps/files_versions/ajax/rollbackVersion.php b/apps/files_versions/ajax/rollbackVersion.php new file mode 100644 index 00000000000..660411973a2 --- /dev/null +++ b/apps/files_versions/ajax/rollbackVersion.php @@ -0,0 +1,26 @@ +<?php + +require_once('../../../lib/base.php'); +OC_JSON::checkAppEnabled('files_versions'); +require_once('../versions.php'); + +$userDirectory = "/".OC_User::getUser()."/files"; + +$source = $_GET['source']; + +$source = strip_tags( $source ); + +echo "\n\n$source\n\n"; + +$revision = strtotime( $source ); + +echo "\n\n$revision\n\n"; + +if( OCA_Versions\Storage::isversioned( $source ) ) { + + + #\OCA_Versions\Storage::rollback( $source, $revision ); + +} + +?>
\ No newline at end of file |