diff options
Diffstat (limited to 'inc/functions.inc.php')
-rw-r--r-- | inc/functions.inc.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/inc/functions.inc.php b/inc/functions.inc.php index 04e58e3..39f1cd0 100644 --- a/inc/functions.inc.php +++ b/inc/functions.inc.php | |||
@@ -2,6 +2,12 @@ | |||
2 | 2 | ||
3 | # global functions | 3 | # global functions |
4 | 4 | ||
5 | function GET($index) { | ||
6 | if (isset($_GET[$index])) | ||
7 | return $_GET[$index]; | ||
8 | return null; | ||
9 | } | ||
10 | |||
5 | function validate_get($value, $type) { | 11 | function validate_get($value, $type) { |
6 | switch($type) { | 12 | switch($type) { |
7 | case 'host': | 13 | case 'host': |