aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/functions.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/functions.inc.php')
-rw-r--r--inc/functions.inc.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/inc/functions.inc.php b/inc/functions.inc.php
index 376b6e1..1c12c2f 100644
--- a/inc/functions.inc.php
+++ b/inc/functions.inc.php
@@ -1,8 +1,11 @@
1<?php 1<?php
2 2
3require_once 'conf/common.inc.php';
4
3# global functions 5# global functions
4 6
5function GET($index = NULL, $value = NULL) { 7function GET($index = NULL, $value = NULL) {
8 global $CONFIG;
6 # parse all values from $_GET when no index is given 9 # parse all values from $_GET when no index is given
7 if ($index === NULL) { 10 if ($index === NULL) {
8 $arr = array(); 11 $arr = array();
@@ -40,6 +43,9 @@ function GET($index = NULL, $value = NULL) {
40 } 43 }
41 break; 44 break;
42 case 'p': # plugin 45 case 'p': # plugin
46 if ((!in_array($value, $CONFIG['allowed'])) && (!in_array($value, $CONFIG['overview']))) {
47 return NULL;
48 }
43 case 'c': # category 49 case 'c': # category
44 case 't': # type 50 case 't': # type
45 if (!preg_match('/^\w+$/u', $value)) { 51 if (!preg_match('/^\w+$/u', $value)) {