Fixed function call names for renamed functions.
This commit is contained in:
parent
674f08e210
commit
b5f2262b0a
2 changed files with 5 additions and 4 deletions
|
@ -24,7 +24,7 @@ echo"# storeWebstream: "; $r = $gb->storeWebstream(
|
||||||
$parid, 'test stream', $mdataFileLP, $sessid, $gunid, 'http://localhost/y');
|
$parid, 'test stream', $mdataFileLP, $sessid, $gunid, 'http://localhost/y');
|
||||||
if(PEAR::isError($r)){ echo "ERROR: ".$r->getMessage()." ".$r->getUserInfo()."\n"; exit(1); }
|
if(PEAR::isError($r)){ echo "ERROR: ".$r->getMessage()." ".$r->getUserInfo()."\n"; exit(1); }
|
||||||
echo ""; var_dump($r);
|
echo ""; var_dump($r);
|
||||||
#$id = $gb->_idFromGunid($gunid);
|
#$id = $gb->idFromGunid($gunid);
|
||||||
$id = $r;
|
$id = $r;
|
||||||
|
|
||||||
echo"# getMdata: "; $r = $gb->getMdata($id, $sessid);
|
echo"# getMdata: "; $r = $gb->getMdata($id, $sessid);
|
||||||
|
|
|
@ -69,7 +69,7 @@ if($dbc->isError($ac)){
|
||||||
http_error(500, "500 ".$ac->getMessage());
|
http_error(500, "500 ".$ac->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$lid = $locStor->_idFromGunid($gunid);
|
$lid = $locStor->idFromGunid($gunid);
|
||||||
if($dbc->isError($lid)){ http_error(500, $lid->getMessage()); }
|
if($dbc->isError($lid)){ http_error(500, $lid->getMessage()); }
|
||||||
if(($res = $locStor->_authorize('read', $lid, $sessid)) !== TRUE){
|
if(($res = $locStor->_authorize('read', $lid, $sessid)) !== TRUE){
|
||||||
http_error(403, "403 Access denied");
|
http_error(403, "403 Access denied");
|
||||||
|
@ -86,8 +86,9 @@ switch($ftype){
|
||||||
break;
|
break;
|
||||||
case"webstream":
|
case"webstream":
|
||||||
$url = $locStor->bsGetMetadataValue($lid, 'ls:url');
|
$url = $locStor->bsGetMetadataValue($lid, 'ls:url');
|
||||||
if(PEAR::isError($url)){ http_error(500, $url->getMessage()); }
|
if (empty($url)) {
|
||||||
$url = $url[0]['value'];
|
http_error(500, "Unable to get ls:url value");
|
||||||
|
}
|
||||||
$txt = "Location: $url";
|
$txt = "Location: $url";
|
||||||
header($txt);
|
header($txt);
|
||||||
// echo "$txt\n";
|
// echo "$txt\n";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue