_getInfo($name, $value, $attribs, $options);
$id = $disable = $escape = null;
extract($info); // name, id, value, attribs, options, listsep, disable, escape
$attribs['id'] = $id;
$obj = new AdminObj();
/** @var \Zend_Oauth_Token_Access $token */
$token = unserialize($value);
$tokenValid = $obj->checkAuthToken($token);
if ($tokenValid) {
$name = $token->getParam('screen_name');
$clearAuthUrl = AdminView::getClearAuthUrl();
$tpl = 'Access Granted to "%s" user
'
. 'Reset Credentials'
. $this->_getReloadTweetsBtn()
. '
Click here to reset the "Recent Tweets" application credentials. ' . 'Please note that tweets are being updated every 15 minutes.
'; $html = sprintf($tpl, htmlspecialchars($name), htmlspecialchars($clearAuthUrl)); } else { $authUrl = AdminView::getAuthUrl(); $tpl = 'Authenticate' . 'Click here to set the "Recent Tweets" application credentials. ' . 'Please note that tweets are being updated every 15 minutes.
'; $html = sprintf($tpl, htmlspecialchars($authUrl)); } $html = '