Cross user access
parent
5b165331df
commit
7b86f75955
@ -1,20 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
// TODO:
|
|
||||||
// * this thing needs to support HEAD and GET requests.
|
|
||||||
//
|
|
||||||
// * the url shall look like: http://whatever/owncloud/index.php/apps/office/ajax/genesis.php/1234
|
|
||||||
// 1234 is the session id here; a database table maps that to a file in storage
|
|
||||||
//
|
|
||||||
// * GET requests have to support ranges
|
|
||||||
// curl --user admin:admin -r 500-1000 -i http://whatever/owncloud/index.php/apps/office/ajax/genesis.php/1234
|
|
||||||
|
|
||||||
namespace OCA\Office;
|
|
||||||
|
|
||||||
\OCP\User::checkLoggedIn();
|
|
||||||
|
|
||||||
$session = Session::getSession(@$_SERVER['QUERY_STRING']);
|
|
||||||
|
|
||||||
$filename = isset($session['genesis_url']) ? $session['genesis_url'] : '';
|
|
||||||
$download = new Download($filename);
|
|
||||||
$download->sendResponse();
|
|
Loading…
Reference in New Issue