summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/ajax/rollbackVersion.php
blob: 3faaafe935daf2a9d82134e48cbff20e7baee59f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

require_once('../../../lib/base.php');
OCP\JSON::checkAppEnabled('files_versions');
require_once('../versions.php');

$userDirectory = "/".OCP\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 );
	
}

?>