lib/ezutils/classes/ezsys.php
public static function isShellExecution()
    {
        $sapiType = php_sapi_name();

        if ( $sapiType == 'cli' )
            return true;

        // For CGI we have to check, if the script has been executed over shell.
        // Currently it looks like the HTTP_HOST variable is the most reasonable to check.
        if ( substr( $sapiType, 0, 3 ) == 'cgi' )
        {
            if ( !self::serverVariable( 'HTTP_HOST', true ) )
                return true;
            else
                return false;
        }
        return false;
    }
public static function isShellExecution()
    {
        $sapiType = php_sapi_name();

        if ( $sapiType == 'cli' )
            return true;

        // For CGI we have to check, if the script has been executed over shell.
        // Currently it looks like the HTTP_HOST variable is the most reasonable to check.
        if ( substr( $sapiType, 0, 3 ) == 'cgi' )
        {
            if ( !self::serverVariable( 'HTTP_HOST', true ) )
                return true;
            else
                return false;
        }
        return false;
    }
public static function isShellExecution ( ) { $ sapiType = php_sapi_name ( ) ; if ( $ sapiType == 'cli' ) return true ; // For CGI we have to check, if the script has been executed over shell. // Currently it looks like the HTTP_HOST variable is the most reasonable to check. if ( substr ( $ sapiType , 0 , 3 ) == 'cgi' ) { if ( ! self :: serverVariable ( 'HTTP_HOST' , true ) ) return true ; else return false ; } return false ; }
Determines if the current process has been started from the web or the shell

@return bool
Determines if the current process has been started from the web or the shell