public static function nonInputVar($varname, $default = null)
    {
        return (isset($_GET[$varname]) || isset($_POST[$varname]) || isset($_COOKIE[$varname]))
            ? $default
            : (isset($GLOBALS[$varname]) ? $GLOBALS[$varname] : $default);
    }
public static function nonInputVar($varname, $default = null)
    {
        return (isset($_GET[$varname]) || isset($_POST[$varname]) || isset($_COOKIE[$varname]))
            ? $default
            : (isset($GLOBALS[$varname]) ? $GLOBALS[$varname] : $default);
    }
public static function nonInputVar ( $ varname , $ default = null ) { return ( isset ( $ _GET [ $ varname ] ) || isset ( $ _POST [ $ varname ] ) || isset ( $ _COOKIE [ $ varname ] ) ) ? $ default : ( isset ( $ GLOBALS [ $ varname ] ) ? $ GLOBALS [ $ varname ] : $ default ) ; }
Checks to see if a value has been set by the script and not by GET,
POST, or cookie input. The value being checked MUST be in the global
scope.

@param string $varname  The variable name to check.
@param mixed $default   Default value if the variable isn't present
or was specified by the user. Defaults to null.

@return mixed  $default if the var is in user input or not present,
the variable value otherwise.
Checks to see if a value has been set by the script and not by GET POST or cookie input . The value being checked MUST be in the global scope .