* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); }
+if (!defined('STATUSNET')) {
+ exit(1);
+}
require_once INSTALLDIR.'/plugins/OpenID/openid.php';
-require_once(INSTALLDIR.'/plugins/OpenID/User_openid_trustroot.php');
class OpenidtrustAction extends Action
{
*
* @return boolean false
*/
-
function isReadOnly($args)
{
return false;
*
* @return string title of the page
*/
-
function title()
{
+ // TRANS: Title for identity verification page.
return _m('OpenID Identity Verification');
}
$this->allowUrl = $_SESSION['openid_allow_url'];
$this->denyUrl = $_SESSION['openid_deny_url'];
if(empty($this->trust_root) || empty($this->allowUrl) || empty($this->denyUrl)){
+ // TRANS: Client error when visiting page directly.
$this->clientError(_m('This page should only be reached during OpenID processing, not directly.'));
return;
}
return true;
}
-
+
function handle($args)
{
parent::handle($args);
$user_openid_trustroot->created = DB_DataObject_Cast::dateTime();
if (!$user_openid_trustroot->insert()) {
$err = PEAR::getStaticProperty('DB_DataObject','lastError');
- common_debug('DB error ' . $err->code . ': ' . $err->message, __FILE__);
}
common_redirect($this->allowUrl, $code=302);
}else{
*
* @return void
*/
-
function showPageNotice()
{
- $this->element('p',null,sprintf(_m('%s has asked to verify your identity. Click Continue to verify your identity and login without creating a new password.'),$this->trust_root));
+ // TRANS: Page notice. %s is a trustroot name.
+ $this->element('p',null,sprintf(_m('%s has asked to verify your identity. Click Continue to verify your identity and login without creating a new password.'),$this->trust_root));
}
/**
*
* @return void
*/
-
function showContent()
{
$this->elementStart('form', array('method' => 'post',
'class' => 'form_settings',
'action' => common_local_url('openidtrust')));
$this->elementStart('fieldset');
- $this->submit('allow', _m('Continue'));
- $this->submit('deny', _m('Cancel'));
-
+ // TRANS: Button text to continue OpenID identity verification.
+ $this->submit('allow', _m('BUTTON','Continue'));
+ // TRANS: Button text to cancel OpenID identity verification.
+ $this->submit('deny', _m('BUTTON','Cancel'));
+
$this->elementEnd('fieldset');
$this->elementEnd('form');
}