/** * WPSDWordPress. */ function WPSDWordPress() { parent::WPSDStats(); $form = new WPSDAdminConfigForm(); $this->un = trim($form->getWpsdUn()); $this->pw = trim($form->getWpsdPw()); if ('' != $this->un && '' != $this->pw) { if ($this->isOutdated()) { if ($this->login()) { $this->xml = $this->get_data(); } $this->set(); } else { $this->set_cached(); } } }
/** * wpsd_get_login_postdata function. * * @access public * @return void */ function wpsd_get_login_postdata() { $form = new WPSDAdminConfigForm(); $un = trim($form->getWpsdUn()); $pw = trim($form->getWpsdPw()); $blogId = get_option('wpsd_blog_id'); return "log={$un}&pwd={$pw}&testcookie=1&wp-submit=Log In&redirect_to=wp-admin/index.php?page=stats&blog={$blogId}"; }