mirror of
https://github.com/nextcloud/server.git
synced 2026-02-19 02:38:40 -05:00
13 lines
No EOL
264 B
PHP
13 lines
No EOL
264 B
PHP
<?php
|
|
$RUNTIME_NOAPPS=true; //no need to load the apps
|
|
|
|
require_once '../../lib/base.php';
|
|
|
|
require_once 'lib_public.php';
|
|
|
|
$path=$_GET['path'];
|
|
$expire=(isset($_GET['expire']))?$_GET['expire']:0;
|
|
|
|
$link=new OC_PublicLink($path,$expire);
|
|
echo $link->getToken();
|
|
?>
|