| Conditions | 5 |
| Paths | 5 |
| Total Lines | 23 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | public static function getUrlParameters($exception = null) |
||
| 8 | { |
||
| 9 | @$get = $_GET; |
||
| 10 | $inputhtml = ''; |
||
| 11 | |||
| 12 | if (! $get) { |
||
| 13 | return $inputhtml; |
||
| 14 | } |
||
| 15 | if (is_array($exception)) { |
||
| 16 | foreach ($exception as $e) { |
||
| 17 | unset($get[$e]); |
||
| 18 | } |
||
| 19 | } |
||
| 20 | |||
| 21 | $string_parameters = http_build_query($get); |
||
| 22 | foreach (explode('&', $string_parameters) as $s) { |
||
| 23 | $part = explode('=', $s); |
||
| 24 | $name = urldecode($part[0]); |
||
| 25 | $value = urldecode($part[1]); |
||
| 26 | $inputhtml .= "<input type='hidden' name='$name' value='$value'/>"; |
||
| 27 | } |
||
| 28 | |||
| 29 | return $inputhtml; |
||
| 30 | } |
||
| 45 | } |