. */ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } require_once INSTALLDIR . '/plugins/Facebook/FacebookPlugin.php'; class FBConnectLoginAction extends Action { function handle($args) { parent::handle($args); if (common_is_real_login()) { $this->clientError(_m('Already logged in.')); } $this->showPage(); } function getInstructions() { return _m('Login with your Facebook Account'); } function showPageNotice() { $instr = $this->getInstructions(); $output = common_markup_to_html($instr); $this->elementStart('div', 'instructions'); $this->raw($output); $this->elementEnd('div'); } function title() { return _m('Facebook Login'); } function showContent() { $this->elementStart('fieldset'); $this->element('fb:login-button', array('onlogin' => 'goto_login()', 'length' => 'long')); $this->elementEnd('fieldset'); } function showLocalNav() { $nav = new LoginGroupNav($this); $nav->show(); } }