$showContainer = $value; break; case 'x': $ignoreFilesWithoutLicense = 1; break; case 'X': $excluding = $value; break; default: print "unknown option {$option}\n"; print $Usage; } } /** get upload id through uploadtree id */ if (is_numeric($item) && !is_numeric($upload)) { $upload = GetUploadID($item); } /** check if parameters are valid */ if (!is_numeric($upload) || !empty($item) && !is_numeric($item)) { print "Upload ID or Uploadtree ID is not digital number\n"; print $Usage; return 1; } account_check($user, $passwd); // check username/password $return_value = read_permission($upload, $user); // check if the user has the permission to read this upload if (empty($return_value)) { $text = _("The user '{$user}' has no permission to read the information of upload {$upload}\n"); echo $text; return 1;
$excluding = $value; break; default: print "unknown option {$option}\n"; print $Usage; } } if (!is_numeric($item) && !is_numeric($upload)) { print "At least provide uploadtree_id or upload_id.\n"; print $Usage; return 1; } /** check upload Id and uploadtree ID */ $upload_from_item = $uploadtree1stid = ""; if (is_numeric($item)) { $upload_from_item = GetUploadID($item); } else { if (empty($item) && is_numeric($upload)) { $uploadtree1stid = Get1stUploadtreeID($upload); if (empty($uploadtree1stid)) { print "Upload {$upload} does not exist.\n"; print $Usage; return 1; } else { $item = $uploadtree1stid; $upload_from_item = $upload; } } } // print "\$upload_from_item, \$item, \$upload, \$uploadtree1stid are: $upload_from_item, $item, $upload, $uploadtree1stid \n"; if (empty($upload_from_item)) {