1 && $path_prefix[strlen($path_prefix)-1]!='/') $path_prefix .= '/'; } $public_prefix = ''; if (!is_null(@$cfg['hostname_public'])) { if ($path_prefix == '') $path_prefix = '/'; $public_prefix = '//'.$cfg['hostname_public'] . $path_prefix; } $auth_prefix = ''; if (!is_null(@$cfg['hostname_auth'])) { if ($path_prefix == '') $path_prefix = '/'; $auth_prefix = '//'.$cfg['hostname_auth'] . $path_prefix; } // Router for access to attachments based on key instead of login // $router[] = new Route('//attachment.massmail.uvt.nl//', // ['module' => 'Public', 'presenter' => 'Attachment']); $router[] = new Route($public_prefix.'public//', ['module' => 'Pub', 'presenter' => 'Attachment']); // Router for CLI $router[] = new CliRouter(['action' => 'Cli:default']); // routes hieronder configureren voor //massmail(-dev).uvt.nl? // Regular routes (logged in users) $router[] = new Route($auth_prefix.'me', 'Privacy:report'); $router[] = new Route($auth_prefix.'admin/[/][/]', ['module' => 'Admin']); $router[] = new Route($auth_prefix.'wizard/[/][/]', ['module' => 'Wizard']); $router[] = new Route($auth_prefix.'[/][/]', ['module' => 'User']); $router[] = new Route($auth_prefix.'addresslist/download/[]/', ['module' => 'User', 'presenter'=>'Addresslist', 'action'=>'download']); return $router; } }