function mf_flash( $message = 'Return dashoard', $url = array('section' => 'mf_dashboard', 'action' => 'main', 'vars' => ''), $type = 'error') {
    if( is_array($url) ) {
      $url = $this->_get_url(  $url['section'] , $url['action'] , $url['vars'] );
    }

    printf(' <div class="wrap"><div id="message" class="%s below-h2"><p><a href="%s">%s</a></p></div> </div>', $type, $url, $message );

    //
    if(!WP_DEBUG){
      printf('<script type="text/javascript">
        function js_mf_redirect(){
           window.location = "%s";
        }
        setTimeout(js_mf_redirect,5000);
        </script>',$url);
    }

    die;
  }