minor things

This commit is contained in:
tomash 2006-06-16 13:35:40 +00:00
parent 28488467ee
commit 300a884f87
3 changed files with 3 additions and 2 deletions

View file

@ -137,6 +137,7 @@ class Prefs{
*/
function loadGroupPref($sessid, $group, $key)
{
// if sessid is would be used here fix Transport::cronCallMethod !
$subjid = $this->gb->getSubjId($group);
if(PEAR::isError($subjid)) return $subjid;
if(is_null($subjid)){

View file

@ -73,6 +73,7 @@ class Validator{
*/
function Validator($format, $gunid)
{
$format = strtolower($format);
$this->format = $format;
$this->gunid = $gunid;
$formats = array(

View file

@ -79,13 +79,12 @@ if(preg_match("|^[0-9a-fA-F]{16}$|", $_REQUEST['token'])){
$tc = $gb->bsCheckToken($token, 'put');
if(PEAR::isError($tc)){ http_error(500, $ex->getMessage()); }
if(!$tc){ http_error(403, "Token not valid."); }
if(!$tc){ http_error(403, "put.php: Token not valid ($token)."); }
#var_dump($tc); exit;
header("Content-type: text/plain");
#var_dump($_SERVER); var_dump($_REQUEST); exit;
#$destfile = $_SERVER['PATH_TRANSLATED'];
$destfile = "{$config['accessDir']}/{$token}";
/* PUT data comes in on the input stream */