@@ 511-522 (lines=12) @@ | ||
508 | * @param string $baseUrl |
|
509 | * @param string $extra the query string added to the base url |
|
510 | */ |
|
511 | function __appendQueryString($baseUrl, $extra) |
|
512 | { |
|
513 | $output = trim($baseUrl); |
|
514 | if(strpos($baseUrl, "?") !== false) |
|
515 | { |
|
516 | $output .= "&" . $extra; |
|
517 | }else |
|
518 | { |
|
519 | $output .= "?" . $extra; |
|
520 | } |
|
521 | return $output; |
|
522 | } |
|
523 | /** |
|
524 | * return the html |
|
525 | * |
@@ 265-280 (lines=16) @@ | ||
262 | * @param string $baseUrl |
|
263 | * @param string $extra the query string added to the base url |
|
264 | */ |
|
265 | function appendQueryString($baseUrl, $extra) |
|
266 | { |
|
267 | $output = $baseUrl; |
|
268 | if(!empty($extra)) |
|
269 | { |
|
270 | if(strpos($baseUrl, "?") !== false) |
|
271 | { |
|
272 | $output .= "&" . $extra; |
|
273 | }else |
|
274 | { |
|
275 | $output .= "?" . $extra; |
|
276 | } |
|
277 | } |
|
278 | ||
279 | return $output; |
|
280 | } |
|
281 | /** |
|
282 | * make the query strin from $_GET, but excluding those specified by $excluded |
|
283 | * |