public function message($message, $success = 0, $return = false)
    {
        $array = array(
            'success' => $success,
            'message' => $message
        );

        $url = $this->saveURL . $this->saveName;

        // Cross-domain redirect to callback url
        if ($this->redirect)
        {
            $this->redirectURL .= '&success=' . $success . '&message=' . $message;

            if ($success == 1)
            {
                $this->redirectURL .= '&url=' . $url;
            }

            $this->redirect();
        }
        else
        {
            echo "success =>" . $success;
            if ($success == 1)
            {
                $array['url'] = $url;
            }

            $this->message = $array = json_encode($array);

            if ($return)
            {
                return $array;
            }
            else
            {
                echo $array;
            }
        }
    }