id}"; } return "/paste.php?id={$paste->id}"; } function urlForMember(User $user) : string { if (PP_MOD_REWRITE) { return '/user/' . urlencode($user->username); } return '/user.php?name=' . urlencode($user->username); } function optionsForSelect(array $displays, array $values, string $currentSelection = null) : string { $size = count($displays); if (count($values) !== $size) { throw new Exception('Option names and option values must be the same count'); } $html = ''; for ($i = 0; $i < $size; $i++) { $html .= '