    public static function isActive()
    {
        switch (SMART_URL) {
            case true:
                if (Options::v('multilang_enable') === 'on') {
                    $langs = Session::val('lang');
                    if ($langs != '') {
                        $lang = Session::val('lang');
                    } else {
                        $lang = '';
                    }
                } else {
                    $lang = '';
                }

                break;

            default:
                if (Options::v('multilang_enable') === 'on') {
                    $langs = Session::val('lang');
                    if ($langs != '') {
                        $lang = Session::val('lang');
                    } else {
                        $lang = isset($_GET['lang']) ? $_GET['lang'] : '';
                    }
                } else {
                    $lang = '';
                }
                break;
        }

        return $lang;
    }
The software constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component.