title: Yahoo import is not working in openinviter
body: <p>I am new to <code>openinvitor</code>. I have downloaded PHPizabi 1.9.6. <a href="http://openinviter.com/download.php" rel="nofollow">From Here</a> in that I am running example_list.php file using this i am able to get contacts from gmail but i am not able to get contacts from <code>YAHOO</code>. I am getting error <code>"Login failed. Please check the email and password you have provided and try again later !".</code></p>
  
  <p>When I am login from <a href="https://login.yahoo.com/" rel="nofollow">Yahoo</a> getting login successfully, but not through this plugin.</p>
  
  <p>Can anyone please help me on this?</p>
  
  <p>code for yahoo.plg.php</p>
  
  <pre><code>&lt;?php
  $_pluginInfo=array(
      'name'=&gt;'Yahoo!',
      'version'=&gt;'1.5.5',
      'description'=&gt;"Get the contacts from a Yahoo! account",
      'base_version'=&gt;'1.8.0',
      'type'=&gt;'email',
      'check_url'=&gt;'http://mail.yahoo.com',
      'requirement'=&gt;'email',
      'allowed_domains'=&gt;array('/(yahoo)/i','/(ymail)/i','/(rocketmail)/i'),
      'imported_details'=&gt;array('first_name','email_1'),
      );
  /**
   * Yahoo! Plugin
   * 
   * Imports user's contacts from Yahoo!'s AddressBook
   * 
   * @author OpenInviter
   * @version 1.3.8
   */
  class yahoo extends openinviter_base
      {
      private $login_ok=false;
      public $showContacts=true;
      protected $timeout=30;
      public $debug_array=array(
                'initial_get'=&gt;'util.Event.addListener',
                'login_post'=&gt;'window.location.replace',
                'print_page'=&gt;'field[allc]',
                'contacts_file'=&gt;'"'
                );
  
      /**
       * Login function
       * 
       * Makes all the necessary requests to authenticate
       * the current user to the server.
       * 
       * @param string $user The current user.
       * @param string $pass The password for the current user.
       * @return bool TRUE if the current user was authenticated successfully, FALSE otherwise.
       */
      public function login($user,$pass)
          {
          $this-&gt;resetDebugger();
          $this-&gt;service='yahoo';
          $this-&gt;service_user='snehalkinekar8@yahoo.com'; //$user;
          $this-&gt;service_password='Gajanan@123'; //$pass;
          if (!$this-&gt;init()) return false;
  
          $res=$this-&gt;get("https://login.yahoo.com/config/mail?.intl=us&amp;rl=1");
          if ($this-&gt;checkResponse('initial_get',$res))
              $this-&gt;updateDebugBuffer('initial_get',"https://login.yahoo.com/config/mail?.intl=us&amp;rl=1",'GET');
          else 
          {
              $this-&gt;updateDebugBuffer('initial_get',"https://login.yahoo.com/config/mail?.intl=us&amp;rl=1",'GET',false);
              $this-&gt;debugRequest();
              $this-&gt;stopPlugin();    
              return false;
          }
  
          $post_elements=$this-&gt;getHiddenElements($res);$post_elements["save"]="Sign+In";$post_elements['login']=$user;$post_elements['passwd']=$pass;        
          $res=$this-&gt;post("https://login.yahoo.com/config/login?",$post_elements,true);      
          if ($this-&gt;checkResponse('login_post',$res))
              $this-&gt;updateDebugBuffer('login_post',"https://login.yahoo.com/config/login?",'POST',true,$post_elements);
          else 
              {
              $this-&gt;updateDebugBuffer('login_post',"https://login.yahoo.com/config/login?",'POST',false,$post_elements);
              $this-&gt;debugRequest();
              $this-&gt;stopPlugin();    
              return false;
              }       
          $this-&gt;login_ok=$this-&gt;login_ok="http://address.mail.yahoo.com/?_src=&amp;VPC=print";
          return true;
          }
  
      /**
       * Get the current user's contacts
       * 
       * Makes all the necesarry requests to import
       * the current user's contacts
       * 
       * @return mixed The array if contacts if importing was successful, FALSE otherwise.
       */ 
      public function getMyContacts()
          {
          if (!$this-&gt;login_ok)
              {
              $this-&gt;debugRequest();
              $this-&gt;stopPlugin();
              return false;
              }
          else
              $url=$this-&gt;login_ok;
          $contacts=array();      
          $res=$this-&gt;get($url,true);
          if ($this-&gt;checkResponse("print_page",$res))        
              $this-&gt;updateDebugBuffer('print_page',"{$url}",'GET');
          else 
              {
              $this-&gt;updateDebugBuffer('print_page',"{$url}",'GET',false);
              $this-&gt;debugRequest();
              $this-&gt;stopPlugin();    
              return false;
              }
  
          $post_elements=array('VPC'=&gt;'print',
                               'field[allc]'=&gt;1,
                               'field[catid]'=&gt;0,
                               'field[style]'=&gt;'detailed',
                               'submit[action_display]'=&gt;'Display for Printing'
                              );
          $res=$this-&gt;post("http://address.mail.yahoo.com/?_src=&amp;VPC=print",$post_elements);
          $emailA=array();$bulk=array();
          $res=str_replace(array('  ','   ',PHP_EOL,"\n","\r\n"),array('','','','',''),$res);
          preg_match_all("#\&lt;tr class\=\"phead\"\&gt;\&lt;td colspan\=\"2\"\&gt;(.+)\&lt;\/tr\&gt;(.+)\&lt;div class\=\"first\"\&gt;\&lt;\/div\&gt;\&lt;div\&gt;\&lt;\/div\&gt;(.+)\&lt;\/div\&gt;#U",$res,$bulk);
          if (!empty($bulk))
              {
              foreach($bulk[1] as $key=&gt;$bulkName)
                  {
                  $nameFormated=trim(strip_tags($bulkName));
                  if (preg_match('/\&amp;nbsp\;\-\&amp;nbsp\;/',$nameFormated)) 
                      {
                      $emailA=explode('&amp;nbsp;-&amp;nbsp;',$nameFormated);
                      if (!empty($emailA[1])) $contacts[$emailA[1].'@yahoo.com']=array('first_name'=&gt;$emailA[0],'email_1'=&gt;$emailA[1].'@yahoo.com');
                      }
                  elseif (!empty($bulk[3][$key])) { $email=strip_tags(trim($bulk[3][$key])); $contacts[$email]=array('first_name'=&gt;$nameFormated,'email_1'=&gt;$email); }
                  }
              }           
          foreach ($contacts as $email=&gt;$name) if (!$this-&gt;isEmail($email)) unset($contacts[$email]);
          return $this-&gt;returnContacts($contacts);
          }
  
      /**
       * Terminate session
       * 
       * Terminates the current user's session,
       * debugs the request and reset's the internal 
       * debudder.
       * 
       * @return bool TRUE if the session was terminated successfully, FALSE otherwise.
       */ 
      public function logout()
          {
          if (!$this-&gt;checkSession()) return false;
          $res=$this-&gt;get("http://login.yahoo.com/config/login?logout=1&amp;.done=http://address.yahoo.com&amp;.src=ab&amp;.intl=us");        
          $this-&gt;debugRequest();
          $this-&gt;resetDebugger();
          $this-&gt;stopPlugin();
          return true;
          }
  
      }
  ?&gt;
  </code></pre>