Changeset 2631 for plugins/TaC/index.php
- Timestamp:
- 09/09/10 00:58:01 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/TaC/index.php
r2629 r2631 219 219 <html><head><title>TaC - '.__("Twitter Authentication Client").'</title></head> 220 220 <body> 221 <h2>'.html::escapeHTML($core->blog->name).' › TaC - '.__("Twitter Authentication Client").'</h2>'; 221 <h2>'.html::escapeHTML($core->blog->name).' › TaC - '.__("Twitter Authentication Client").'</h2> 222 <div class="two-cols"><div class="col">'; 222 223 223 224 if (!$core->error->flag() && $has_access) … … 229 230 230 231 echo ' 232 <fieldset><legend>'.__('Account information').'</legend> 231 233 <ul> 232 234 <li>'.sprintf(__('Your are connected as "%s"'),$user->screen_name).'</li> … … 243 245 form::hidden(array('action'),'sendtweet').' 244 246 </p> 245 </form>'; 247 </form> 248 </fieldset>'; 246 249 } 247 250 … … 255 258 } 256 259 260 # Reload page 257 261 if ($core->error->flag()) { 258 262 echo '<p><a href="'.$p_url.'">'.__('Retry').'</a></p>'; 259 263 } 260 264 265 # TaC stats 266 if (!$core->error->flag()) { 267 $stats = $TaC->stat(); 268 if (1 < count($stats['registry'])) { 269 echo ' 270 </div><div class="col"> 271 <fieldset><legend>'.__('Usage of TaC').'</legend> 272 <p>'.sprintf(__('TaC is used by %s different consumers.'),count($stats['registry'])).'</p>'; 273 if (count($stats['registry'])) { 274 echo '<ul>'; 275 foreach ($stats['registry'] as $k => $v) { 276 echo '<li>'.sprintf(__('Consumer "%s" has %s registered client(s).'), 277 $v['id'],$v['access']).'</li>'; 278 } 279 echo '</ul>'; 280 } 281 echo ' 282 </fieldset>'; 283 } 284 } 285 261 286 echo ' 287 </div></div> 262 288 <br class="clear"/> 263 289 <p class="right">
Note: See TracChangeset
for help on using the changeset viewer.