id}"; } return "/paste.php?id={$paste->id}"; } function urlForMember(User $member_name) : string { if (PP_MOD_REWRITE) { return '/user/' . urlencode($member_name); } return '/user.php?name=' . urlencode($member_name); } 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 .= '