switch (strtolower(array_key_exists('src', $scriptProperties) ? $scriptProperties['src'] : 'either')) {
	case 'get':     $source = $_GET; break;
	case 'post':    $source = $_POST; break;
	case 'request': $source = $_REQUEST; break;
	default:        $source = array_merge($_GET, $_POST);
}

return array_key_exists($scriptProperties['param'], $source) ? $source[$scriptProperties['param']] : NULL;