aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/functions.inc.php
diff options
context:
space:
mode:
authorKarol Nowacki2011-04-21 20:24:38 +0200
committerPim van den Berg2011-04-21 20:30:07 +0200
commit1bce11aec73bcd6f90fe8e72877b4061ae8d45af (patch)
tree082af880c39ee01a241c0467fec29c239ef0155b /inc/functions.inc.php
parentplugin/varnish: deduplicate rrd_format values (diff)
downloadapt-panopticon_cgp-1bce11aec73bcd6f90fe8e72877b4061ae8d45af.zip
apt-panopticon_cgp-1bce11aec73bcd6f90fe8e72877b4061ae8d45af.tar.gz
apt-panopticon_cgp-1bce11aec73bcd6f90fe8e72877b4061ae8d45af.tar.bz2
apt-panopticon_cgp-1bce11aec73bcd6f90fe8e72877b4061ae8d45af.tar.xz
resolve php notices
Including a lot of undefined $_GET values.
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 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
5function GET($index) {
6 if (isset($_GET[$index]))
7 return $_GET[$index];
8 return null;
9}
10
5function validate_get($value, $type) { 11function validate_get($value, $type) {
6 switch($type) { 12 switch($type) {
7 case 'host': 13 case 'host':