nextcloud/apps/files_publiclink/ajax/makelink.php

14 lines
230 B
PHP
Raw Normal View History

<?php
$RUNTIME_NOAPPS=true; //no need to load the apps
require_once '../../../lib/base.php';
require_once '../lib_public.php';
$path=$_GET['path'];
2011-08-08 15:19:22 +04:00
$expire=0;
$link=new OC_PublicLink($path,$expire);
echo $link->getToken();
2011-08-08 15:19:22 +04:00
?>