2011-04-16 14:35:21 +04:00
|
|
|
<?php
|
|
|
|
$RUNTIME_NOAPPS=true; //no need to load the apps
|
|
|
|
|
2011-06-02 04:45:35 +04:00
|
|
|
require_once '../../../lib/base.php';
|
2011-04-16 14:35:21 +04:00
|
|
|
|
2011-06-02 04:45:35 +04:00
|
|
|
require_once '../lib_public.php';
|
2011-04-16 14:35:21 +04:00
|
|
|
|
|
|
|
$path=$_GET['path'];
|
|
|
|
$expire=(isset($_GET['expire']))?$_GET['expire']:0;
|
2011-06-02 04:45:35 +04:00
|
|
|
if($expire!==0){
|
|
|
|
|
|
|
|
$expire=strtotime($expire);
|
|
|
|
}
|
|
|
|
// echo $expire;
|
|
|
|
// die();
|
2011-04-16 14:35:21 +04:00
|
|
|
|
|
|
|
$link=new OC_PublicLink($path,$expire);
|
|
|
|
echo $link->getToken();
|
|
|
|
?>
|