vgaGet
The PHP function vgaGet is a wrapper for getting PHP global variables. You call vgaGet in order
to receive global variables set without conflicting with the framework. You can also provide
a default value to return in the case that the global variable isn't found or isn't set.
string $key - name of variable
mixed $default - default variable for variable
RETURN VALUE
mixed - value for variable
function vgaGet($key,$default='') {
return isset($GLOBALS['appdata'][$key])
? $GLOBALS['appdata'][$key]
: $default;
}