Changeset 2631
- Timestamp:
- 09/09/10 00:58:01 (12 years ago)
- Location:
- plugins/TaC
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/TaC/_define.php
r2629 r2631 17 17 /* Description*/ "Twitter client layer for Dotclear plugins", 18 18 /* Author */ "JC Denis", 19 /* Version */ '0.1 ',19 /* Version */ '0.1.1', 20 20 /* Permissions */ 'admin' 21 21 ); -
plugins/TaC/inc/class.tac.php
r2628 r2631 88 88 } 89 89 90 /* Retourne quelques statistiques sur l'utilisation de TaC */ 91 public function stat() 92 { 93 $res = array( 94 'registry'=>array() 95 ); 96 97 $rrs = $this->con->select( 98 'SELECT registry_id, cr_id FROM '.$this->table_registry 99 ); 100 while($rrs->fetch()) { 101 102 $ars = $this->con->select( 103 'SELECT count(ct_id) FROM '.$this->table_access.' '. 104 "WHERE registry_id = '".$this->con->escape($rrs->registry_id)."' " 105 ); 106 $res['registry'][$rrs->registry_id] = array( 107 'id' => $rrs->cr_id, 108 'access' => $ars->f(0)+0 109 ); 110 } 111 112 return $res; 113 } 114 90 115 /* Test si un plugin est connu et si oui le charge */ 91 116 public function checkRegistry() -
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"> -
plugins/TaC/locales/fr/main.lang.php
r2628 r2631 1 1 <?php 2 2 // Language: Français 3 // Module: TaC - 0.1 -alpha54 // Date: 2010-09-08 02:15:533 // Module: TaC - 0.1.1 4 // Date: 2010-09-08 22:25:32 5 5 // Translated with dcTranslater - 1.5 6 6 … … 11 11 $GLOBALS['__l10n']['Not sure that your message is sent'] = 'Pas sure que votre message ai été envoyé.'; 12 12 13 #index.php:23 213 #index.php:234 14 14 $GLOBALS['__l10n']['Your are connected as "%s"'] = 'Vous êtes connecté avec le compte "%s"'; 15 15 16 #index.php:23 316 #index.php:235 17 17 $GLOBALS['__l10n']['It remains %s API hits'] = 'Il reste %s requêtes sur l\'API'; 18 18 19 #index.php:23 419 #index.php:236 20 20 $GLOBALS['__l10n']['Disconnect and clean access'] = 'Déconnexion et suppression des autorisations'; 21 21 22 #index.php:2 3822 #index.php:240 23 23 $GLOBALS['__l10n']['Quick send message to your twitter timeline:'] = 'Envoyer un message sur votre timeline Twitter :'; 24 24 25 #index.php:25 225 #index.php:255 26 26 $GLOBALS['__l10n']['Connect your blog with your twitter account through TaC'] = 'Connectez votre blog à Twitter à travers TaC'; 27 27 28 #index.php:2 5828 #index.php:262 29 29 $GLOBALS['__l10n']['Retry'] = 'Recommencer'; 30 30 31 #index.php:271 32 $GLOBALS['__l10n']['Usage of TaC'] = 'Utilisation de TaC'; 33 34 #index.php:272 35 $GLOBALS['__l10n']['TaC is used by %s different consumers.'] = 'TaC est utilisé par %s client(s) différent(s).'; 36 37 #index.php:276 38 $GLOBALS['__l10n']['Consumer "%s" has %s registered client(s).'] = 'L\'utilisateur "%s" a %s client(s) enregistré(s).'; 39 31 40 ?> -
plugins/TaC/locales/fr/main.po
r2628 r2631 1 1 # Language: Français 2 # Module: TaC - 0.1 -alpha53 # Date: 2010-09-08 02:15:532 # Module: TaC - 0.1.1 3 # Date: 2010-09-08 22:25:32 4 4 # Translated with translater 1.5 5 5 … … 7 7 msgstr "" 8 8 "Content-Type: text/plain; charset=UTF-8\n" 9 "Project-Id-Version: TaC 0.1 -alpha5\n"9 "Project-Id-Version: TaC 0.1.1\n" 10 10 "POT-Creation-Date: \n" 11 "PO-Revision-Date: 2010-09-08T 02:15:53+00:00\n"11 "PO-Revision-Date: 2010-09-08T22:25:32+00:00\n" 12 12 "Last-Translator: JC Denis\n" 13 13 "Language-Team: \n" … … 23 23 msgstr "Pas sure que votre message ai été envoyé." 24 24 25 #: index.php:23 225 #: index.php:234 26 26 msgid "Your are connected as \"%s\"" 27 27 msgstr "Vous êtes connecté avec le compte \"%s\"" 28 28 29 #: index.php:23 329 #: index.php:235 30 30 msgid "It remains %s API hits" 31 31 msgstr "Il reste %s requêtes sur l'API" 32 32 33 #: index.php:23 433 #: index.php:236 34 34 msgid "Disconnect and clean access" 35 35 msgstr "Déconnexion et suppression des autorisations" 36 36 37 #: index.php:2 3837 #: index.php:240 38 38 msgid "Quick send message to your twitter timeline:" 39 39 msgstr "Envoyer un message sur votre timeline Twitter :" 40 40 41 #: index.php:25 241 #: index.php:255 42 42 msgid "Connect your blog with your twitter account through TaC" 43 43 msgstr "Connectez votre blog à Twitter à travers TaC" 44 44 45 #: index.php:2 5845 #: index.php:262 46 46 msgid "Retry" 47 47 msgstr "Recommencer" 48 48 49 #: index.php:271 50 msgid "Usage of TaC" 51 msgstr "Utilisation de TaC" 52 53 #: index.php:272 54 msgid "TaC is used by %s different consumers." 55 msgstr "TaC est utilisé par %s client(s) différent(s)." 56 57 #: index.php:276 58 msgid "Consumer \"%s\" has %s registered client(s)." 59 msgstr "L'utilisateur \"%s\" a %s client(s) enregistré(s)." 60 -
plugins/TaC/release.txt
r2629 r2631 1 0.1.1 20100909 2 * Added small stats 3 1 4 0.1 20100908 2 5 * Fixed bugs
Note: See TracChangeset
for help on using the changeset viewer.