wp-content/plugins/contact-form-7-multi-step-module/cf7msm.php
/**
 *  Get a variable from cookies or if not enabled, from session.
 */
Get a variable from cookies or if not enabled, from session.
Get a variable from cookies or if not enabled from session .
function cf7msm_get( $var_name, $default = '' )
{
    $ret = $default;
    if ( empty($_COOKIE['cf7msm_check']) ) {
        $ret = ( isset( $_SESSION[$var_name] ) ? $_SESSION[$var_name] : $default );
    } else {
        $ret = ( isset( $_COOKIE[$var_name] ) ? $_COOKIE[$var_name] : $default );
        if ( get_magic_quotes_gpc() || function_exists( 'wp_magic_quotes' ) ) {
            $ret = stripslashes( $ret );
        }
        $ret = json_decode( $ret, true );
    }
    return $ret;
}
function cf7msm_get ( $ var_name , $ default = '' ) { $ ret = $ default ; if ( empty ( $ _COOKIE [ 'cf7msm_check' ] ) ) { $ ret = ( isset ( $ _SESSION [ $ var_name ] ) ? $ _SESSION [ $ var_name ] : $ default ) ; } else { $ ret = ( isset ( $ _COOKIE [ $ var_name ] ) ? $ _COOKIE [ $ var_name ] : $ default ) ; if ( get_magic_quotes_gpc ( ) || function_exists ( 'wp_magic_quotes' ) ) { $ ret = stripslashes ( $ ret ) ; } $ ret = json_decode ( $ ret , true ) ; } return $ ret ; }
Get a variable from cookies or if not enabled, from session.
Get a variable from cookies or if not enabled from session .