2012-04-26 17:45:17 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once('../../../lib/base.php');
|
2012-05-03 10:23:29 +00:00
|
|
|
OCP\JSON::checkAppEnabled('files_versions');
|
2012-04-26 17:45:17 +00:00
|
|
|
require_once('../versions.php');
|
|
|
|
|
2012-05-01 16:50:31 +00:00
|
|
|
$userDirectory = "/".OCP\USER::getUser()."/files";
|
2012-04-26 17:45:17 +00:00
|
|
|
|
|
|
|
$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 );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|