public function getPath($secure, $subdir, $absolute = true)
{
if ($subdir && substr($subdir, -1) != '/') {
$subdir .= '/';
}
$relativePath = 'file/repository/' . $subdir;
if ($secure) {
$relativePath = 'file/secure/' . $subdir;
}
$path = $relativePath;
if ($absolute) {
$path = ipFile($path);
}
return $path;
}