Dotclear

Changeset 2315


Ignore:
Timestamp:
06/07/10 02:13:34 (13 years ago)
Author:
JcDenis
Message:

activityReport 1.0

  • Switched to DC 2.2
  • Fixed simultaneous report (used php flock)
  • Changed admin interface
Location:
plugins/activityReport
Files:
2 added
9 edited

Legend:

Unmodified
Added
Removed
  • plugins/activityReport/_define.php

    r2035 r2315  
    1717     /* Description*/         "Receive your blog activity by email, feed, or on dashboard", 
    1818     /* Author */             "JC Denis", 
    19      /* Version */            '0.9', 
     19     /* Version */            '1.0', 
    2020     /* Permissions */        'admin', 
    2121     /* Priority */           -1000000  
    2222); 
    23      /* date */          #20100129 
     23     /* date */          #20100606 
    2424?> 
  • plugins/activityReport/_install.php

    r2018 r2315  
    2020try 
    2121{ 
    22      # Check DC version (dev on) 
    23      if (!version_compare(DC_VERSION,'2.1.6','>=')) 
     22     # Check DC version 
     23     if (version_compare(DC_VERSION,'2.2-beta','<')) 
    2424     { 
    25           throw new Exception('Plugin called activityReport requires Dotclear 2.1.5 or higher.'); 
     25          throw new Exception('translater requires Dotclear 2.2'); 
    2626     } 
    27      # Check DC version (new settings) 
    28      if (version_compare(DC_VERSION,'2.2','>=')) 
    29      { 
    30           throw new Exception('Plugin called activityReport requires Dotclear up to 2.2.'); 
    31      } 
     27      
    3228     # Table 
    3329     $s = new dbStruct($core->con,$core->prefix); 
     
    4238          ->activity_blog_status ('smallint',0,false,0) 
    4339          ->activity_super_status ('smallint',0,false,0) 
    44  
     40           
    4541          ->primary('pk_activity','activity_id') 
    4642          ->index('idx_activity_type','btree','activity_type') 
     
    4945          ->index('idx_activity_blog_status','btree','activity_blog_status') 
    5046          ->index('idx_activity_super_status','btree','activity_super_status'); 
    51  
     47      
    5248     $s->activity_setting 
    5349          ->setting_id('varchar',64,false) 
     
    5551          ->setting_type('varchar',32,false) 
    5652          ->setting_value('text',0,false) 
    57  
     53           
    5854          ->unique('uk_activity_setting','setting_id','blog_id','setting_type') 
    5955          ->index('idx_activity_setting_blog_id','btree','blog_id') 
    6056          ->index('idx_activity_setting_type','btree','setting_type'); 
    61  
     57      
    6258     $si = new dbStruct($core->con,$core->prefix); 
    6359     $changes = $si->synchronize($s); 
  • plugins/activityReport/_public.php

    r2018 r2315  
    4949          } 
    5050 
    51           $_ctx->nb_entry_per_page = $core->blog->settings->nb_post_per_feed; 
    52           $_ctx->short_feed_items = $core->blog->settings->short_feed_items; 
     51          $_ctx->nb_entry_per_page = $core->blog->settings->system->nb_post_per_feed; 
     52          $_ctx->short_feed_items = $core->blog->settings->system->short_feed_items; 
    5353 
    54           header('X-Robots-Tag: '.context::robotsPolicy($core->blog->settings->robots_policy,'')); 
     54          header('X-Robots-Tag: '.context::robotsPolicy($core->blog->settings->system->robots_policy,'')); 
    5555          self::serveDocument('activityreport-'.$m[1].'.xml',$mime); 
    5656          return; 
     
    126126 
    127127          if ($rfc822) { 
    128                return '<?php echo '.sprintf($f,"dt::rfc822(strtotime(\$_ctx->activityreports->activity_dt),\$core->blog->settings->blog_timezone)").'; ?>'; 
     128               return '<?php echo '.sprintf($f,"dt::rfc822(strtotime(\$_ctx->activityreports->activity_dt),\$core->blog->settings->system->blog_timezone)").'; ?>'; 
    129129          } elseif ($iso8601) { 
    130                return '<?php echo '.sprintf($f,"dt::iso8601(strtotime(\$_ctx->activityreports->activity_dt),\$core->blog->settings->blog_timezone)").'; ?>'; 
     130               return '<?php echo '.sprintf($f,"dt::iso8601(strtotime(\$_ctx->activityreports->activity_dt),\$core->blog->settings->system->blog_timezone)").'; ?>'; 
    131131          } elseif (!empty($format)) { 
    132132               return '<?php echo '.sprintf($f,"dt::dt2str('".$format."',\$_ctx->activityreports->activity_dt)").'; ?>'; 
    133133          } else { 
    134                return '<?php echo '.sprintf($f,"dt::dt2str(\$core->blog->settings->date_format,\$_ctx->activityreports->activity_dt)").'; ?>'; 
     134               return '<?php echo '.sprintf($f,"dt::dt2str(\$core->blog->settings->system->date_format,\$_ctx->activityreports->activity_dt)").'; ?>'; 
    135135          } 
    136136     } 
  • plugins/activityReport/inc/class.activity.report.php

    r2035 r2315  
    2626     private $groups = array(); 
    2727     private $settings = array(); 
     28     private $lock = null; 
    2829 
    2930     public function __construct($core,$ns='activityReport') 
     
    356357          $to = 0; 
    357358          $res = $blog = $group = ''; 
    358           $tz = $this->_global ? 'UTC' : $this->core->blog->settings->blog_timezone; 
     359          $tz = $this->_global ? 'UTC' : $this->core->blog->settings->system->blog_timezone; 
    359360 
    360361          $dt = $this->settings[$this->_global]['dateformat']; 
     
    551552     } 
    552553 
     554     # Lock a file to see if an update is ongoing 
     555     public function lockUpdate() 
     556     { 
     557          # Cache writable ? 
     558          if (!is_writable(DC_TPL_CACHE)) { 
     559               return false; 
     560          } 
     561          # Set file path 
     562          $f_md5 = md5($this->blog); 
     563          $cached_file = sprintf('%s/%s/%s/%s/%s.txt', 
     564               DC_TPL_CACHE, 
     565               'activityreport', 
     566               substr($f_md5,0,2), 
     567               substr($f_md5,2,2), 
     568               $f_md5 
     569          ); 
     570          # Make dir 
     571          if (!is_dir(dirname($cached_file))) { 
     572               try { 
     573                    files::makeDir(dirname($cached_file),true); 
     574               } catch (Exception $e) { 
     575                    return false; 
     576               } 
     577          } 
     578          # Make file 
     579          if (!file_exists($cached_file)) { 
     580               if (!@file_put_contents($cached_file,'')) { 
     581                    return false; 
     582               } 
     583          } 
     584          # Open file 
     585          if (!($fp = @fopen($cached_file, 'wb'))) { 
     586               return false; 
     587          } 
     588          # Lock file 
     589          if (flock($fp,LOCK_EX)) { 
     590               $this->lock = $fp; 
     591               return true; 
     592          } 
     593          return false; 
     594     } 
     595 
     596     public function unlockUpdate() 
     597     { 
     598          @fclose($this->lock); 
     599          $this->lock = null; 
     600     } 
     601      
    553602     public function needReport($force=false) 
    554603     { 
    555           $send = false; 
    556           $now = time(); 
    557  
    558           $active = (boolean) $this->settings[$this->_global]['active']; 
    559           $mailinglist = $this->settings[$this->_global]['mailinglist']; 
    560           $mailformat = $this->settings[$this->_global]['mailformat']; 
    561           $requests = $this->settings[$this->_global]['requests']; 
    562           $lastreport = (integer) $this->settings[$this->_global]['lastreport']; 
    563           $interval = (integer) $this->settings[$this->_global]['interval']; 
    564           $blogs = $this->settings[$this->_global]['blogs']; 
    565  
    566           if ($force) $lastreport = 0; 
    567  
    568           # Check if report is needed 
    569           if ($active && !empty($mailinglist) && !empty($requests) && !empty($blogs)  
    570           && ($lastreport + $interval) < $now ) 
    571           { 
    572                # Get datas 
    573                $params = array(); 
    574                $params['from_date_ts'] = $lastreport; 
    575                $params['to_date_ts'] = $now; 
    576                $params['blog_id'] = $blogs; 
    577                $params['sql'] = self::requests2params($requests); 
    578                $params['order'] = 'blog_id ASC, activity_group ASC, activity_action ASC, activity_dt ASC '; 
    579  
    580                $logs = $this->getLogs($params); 
    581                if (!$logs->isEmpty()) 
    582                { 
    583                     # Datas to readable text 
    584                     $content = $this->parseLogs($logs); 
    585                     if (!empty($content)) 
     604          # Limit to one update at a time 
     605          if (!$this->lockUpdate()) { 
     606               return false; 
     607          } 
     608           
     609          try 
     610          { 
     611               $send = false; 
     612               $now = time(); 
     613 
     614               $active = (boolean) $this->settings[$this->_global]['active']; 
     615               $mailinglist = $this->settings[$this->_global]['mailinglist']; 
     616               $mailformat = $this->settings[$this->_global]['mailformat']; 
     617               $requests = $this->settings[$this->_global]['requests']; 
     618               $lastreport = (integer) $this->settings[$this->_global]['lastreport']; 
     619               $interval = (integer) $this->settings[$this->_global]['interval']; 
     620               $blogs = $this->settings[$this->_global]['blogs']; 
     621 
     622               if ($force) $lastreport = 0; 
     623 
     624               # Check if report is needed 
     625               if ($active && !empty($mailinglist) && !empty($requests) && !empty($blogs)  
     626               && ($lastreport + $interval) < $now ) 
     627               { 
     628                    # Get datas 
     629                    $params = array(); 
     630                    $params['from_date_ts'] = $lastreport; 
     631                    $params['to_date_ts'] = $now; 
     632                    $params['blog_id'] = $blogs; 
     633                    $params['sql'] = self::requests2params($requests); 
     634                    $params['order'] = 'blog_id ASC, activity_group ASC, activity_action ASC, activity_dt ASC '; 
     635 
     636                    $logs = $this->getLogs($params); 
     637                    if (!$logs->isEmpty()) 
    586638                    { 
    587                          # Send mails 
    588                          $send = $this->sendReport($mailinglist,$content,$mailformat); 
    589                     } 
    590                } 
    591  
    592                # Update db 
    593                if ($send || $this->_global) // if global : delete all blog logs even if not selected 
    594                { 
    595                     # Update log status 
    596                     $this->updateStatus($lastreport,$now); 
    597                     # Delete old logs 
    598                     $this->cleanLogs(); 
    599                     # Then set update time 
    600                     $this->setSetting('lastreport',$now); 
    601                } 
    602           } 
    603  
    604           # If this is on a blog, we need to test superAdmin report 
    605           if (!$this->_global) 
    606           { 
    607                $this->_global = true; 
    608                $this->needReport(); 
    609                $this->_global = false; 
    610  
    611                if ($send) 
    612                { 
    613                     $this->core->callBehavior('messageActivityReport','Activity report has been successfully send by mail.'); 
    614                } 
    615           } 
    616  
     639                         # Datas to readable text 
     640                         $content = $this->parseLogs($logs); 
     641                         if (!empty($content)) 
     642                         { 
     643                              # Send mails 
     644                              $send = $this->sendReport($mailinglist,$content,$mailformat); 
     645                         } 
     646                    } 
     647 
     648                    # Update db 
     649                    if ($send || $this->_global) // if global : delete all blog logs even if not selected 
     650                    { 
     651                         # Update log status 
     652                         $this->updateStatus($lastreport,$now); 
     653                         # Delete old logs 
     654                         $this->cleanLogs(); 
     655                         # Then set update time 
     656                         $this->setSetting('lastreport',$now); 
     657                    } 
     658               } 
     659 
     660               # If this is on a blog, we need to test superAdmin report 
     661               if (!$this->_global) 
     662               { 
     663                    $this->_global = true; 
     664                    $this->needReport(); 
     665                    $this->_global = false; 
     666 
     667                    if ($send) 
     668                    { 
     669                         $this->core->callBehavior('messageActivityReport','Activity report has been successfully send by mail.'); 
     670                    } 
     671               } 
     672               $this->unlockUpdate(); 
     673          } 
     674          catch (Exception $e) 
     675          { 
     676               $this->unlockUpdate(); 
     677               //throw $e; 
     678          } 
    617679          return true; 
    618680     } 
     
    638700          if (empty($recipients)) return false; 
    639701 
    640           # Sending mail 
    641           $headers = array( 
    642                'From: '.mail::B64Header(__('Activity report module')).' <'.$this->mailer.'>', 
    643                'Reply-To: <'.$this->mailer.'>', 
    644                'Content-Type: text/'.$mailformat.'; charset=UTF-8;', 
    645                'MIME-Version: 1.0', 
    646                'X-Originating-IP: '.http::realIP(), 
    647                'X-Mailer: Dotclear', 
    648                'X-Blog-Id: '.mail::B64Header($this->core->blog->id), 
    649                'X-Blog-Name: '.mail::B64Header($this->core->blog->name), 
    650                'X-Blog-Url: '.mail::B64Header($this->core->blog->url) 
    651           ); 
    652  
    653           $subject = $this->_global ? 
    654                mail::B64Header(__('Blog activity report')) : 
    655                mail::B64Header('['.$this->core->blog->name.'] '.__('Blog activity report')); 
    656  
    657           $done = true; 
    658           foreach ($recipients as $email) 
    659           { 
    660                try 
    661                { 
    662                     mail::sendMail($email,$subject,$msg,$headers); 
    663                } 
    664                catch (Exception $e) 
    665                { 
    666                     $done = false; 
    667                } 
     702          # Sending mails 
     703          try 
     704          { 
     705               $headers = array( 
     706                    'From: '.mail::B64Header(__('Activity report module')).' <'.$this->mailer.'>', 
     707                    'Reply-To: <'.$this->mailer.'>', 
     708                    'Content-Type: text/'.$mailformat.'; charset=UTF-8;', 
     709                    'MIME-Version: 1.0', 
     710                    'X-Originating-IP: '.http::realIP(), 
     711                    'X-Mailer: Dotclear', 
     712                    'X-Blog-Id: '.mail::B64Header($this->core->blog->id), 
     713                    'X-Blog-Name: '.mail::B64Header($this->core->blog->name), 
     714                    'X-Blog-Url: '.mail::B64Header($this->core->blog->url) 
     715               ); 
     716 
     717               $subject = $this->_global ? 
     718                    mail::B64Header(__('Blog activity report')) : 
     719                    mail::B64Header('['.$this->core->blog->name.'] '.__('Blog activity report')); 
     720 
     721               $done = true; 
     722               foreach ($recipients as $email) 
     723               { 
     724                    if (true !== mail::sendMail($email,$subject,$msg,$headers)) { 
     725                         $done = false; 
     726                    } 
     727               } 
     728          } 
     729          catch (Exception $e) 
     730          { 
     731               $done = false; 
    668732          } 
    669733 
  • plugins/activityReport/inc/lib.activity.report.index.php

    r2035 r2315  
    1818     { 
    1919          $O =& $core->activityReport; 
     20          $section = isset($_REQUEST['section']) ? $_REQUEST['section'] : ''; 
     21           
    2022          if ($global) 
    2123          { 
     
    103105          if ($redirect) 
    104106          { 
    105                http::redirect('plugin.php?p=activityReport&tab='.$t.'_settings'); 
     107               http::redirect('plugin.php?p=activityReport&tab='.$t.'_settings&amp;section'.$section); 
    106108          } 
    107109 
    108110          $bl = $O->getSetting('lastreport'); 
    109           $blog_last = !$bl ? __('never') : dt::str($core->blog->settings->date_format.', '.$core->blog->settings->time_format,$bl,$core->auth->getInfo('user_tz')); 
     111          $blog_last = !$bl ? __('never') : dt::str($core->blog->settings->system->date_format.', '.$core->blog->settings->system->time_format,$bl,$core->auth->getInfo('user_tz')); 
    110112 
    111113          $bi = $O->getSetting('interval'); 
    112           $blog_next = !$bl ? __('on new activity') : dt::str($core->blog->settings->date_format.', '.$core->blog->settings->time_format,$bl+$bi,$core->auth->getInfo('user_tz')); 
     114          $blog_next = !$bl ? __('on new activity') : dt::str($core->blog->settings->system->date_format.', '.$core->blog->settings->system->time_format,$bl+$bi,$core->auth->getInfo('user_tz')); 
    113115 
    114116          $emails = implode(';',$O->getSetting('mailinglist')); 
     
    129131          <?php } ?> 
    130132 
    131           <form method="post" action="plugin.php"> 
    132  
    133           <fieldset><legend><?php echo __('Settings'); ?></legend> 
     133          <form id="setting-<?php echo $t; ?>-form" method="post" action="plugin.php"> 
     134 
     135          <fieldset id="setting-<?php echo $t; ?>-setting"><legend><?php echo __('Settings'); ?></legend> 
    134136 
    135137          <p><label class="classic"><?php echo 
     
    189191          { 
    190192               ?> 
    191                <fieldset><legend><?php echo __('Blogs'); ?></legend> 
     193               <fieldset id="setting-<?php echo $t; ?>-blog"><legend><?php echo __('Blogs'); ?></legend> 
    192194               <div class="three-cols"> 
    193195               <?php 
     
    219221 
    220222          ?> 
    221           <fieldset><legend><?php echo __('Report'); ?></legend> 
     223          <fieldset id="setting-<?php echo $t; ?>-report"><legend><?php echo __('Report'); ?></legend> 
    222224          <div class="three-cols"> 
    223225          <?php 
     
    226228          $blog_request = $O->getSetting('requests'); 
    227229 
     230          $i = 0; 
    228231          foreach($groups as $k_group => $v_group) 
    229232          { 
     
    248251               <?php 
    249252 
     253               $i++; 
     254               if ($i == 3) { 
     255                    ?></div><div class="three-cols"><?php 
     256                    $i = 0; 
     257               } 
    250258          } 
    251259 
     
    272280           form::hidden(array('p'),'activityReport'). 
    273281           form::hidden(array('tab'),$t.'_settings'). 
     282           form::hidden(array('section'),$section). 
    274283           $core->formNonce(); 
    275284           ?> 
     
    328337                         ' offline' : ''; 
    329338                    $date = dt::str( 
    330                          $core->blog->settings->date_format.', '.$core->blog->settings->time_format, 
     339                         $core->blog->settings->system->date_format.', '.$core->blog->settings->system->time_format, 
    331340                         strtotime($logs->activity_dt), 
    332341                         $core->auth->getInfo('user_tz') 
  • plugins/activityReport/index.php

    r2018 r2315  
    1313if (!defined('DC_CONTEXT_ADMIN')){return;} 
    1414 
    15 if (!$core->activityReport instanceof activityReport){return;} 
     15if (!defined('ACTIVITY_REPORT')){return;} 
    1616 
    1717dcPage::check('admin'); 
     
    2929dcPage::jsLoad('js/_posts_list.js'). 
    3030dcPage::jsToolBar(). 
    31 dcPage::jsPageTabs($tab); 
     31dcPage::jsPageTabs($tab). 
     32dcPage::jsLoad('index.php?pf=activityReport/js/main.js'). 
     33'<script type="text/javascript">'."\n//<![CDATA[\n". 
     34dcPage::jsVar('jcToolsBox.prototype.text_wait',__('Please wait')). 
     35dcPage::jsVar('jcToolsBox.prototype.section',$section). 
     36"\n//]]>\n</script>\n"; 
    3237?> 
    3338 </head> 
  • plugins/activityReport/locales/fr/main.lang.php

    r2035 r2315  
    11<?php 
    2 // Language: français  
    3 // Module: activityReport - 0.9 
    4 // Date: 2010-01-29 17:27:05  
    5 // Translated with dcTranslater - 1.3  
     2// Language: Français  
     3// Module: activityReport - 1.0 
     4// Date: 2010-06-07 00:04:46  
     5// Translated with dcTranslater - 1.4  
    66 
    77#_admin.php:19 
    88#_admin.php:88 
    9 #inc/class.activity.report.php:433 
     9#inc/class.activity.report.php:434 
    1010#inc/lib.parselogs.config.php:33 
    1111#index.php:26 
    12 #index.php:37 
     12#index.php:42 
    1313$GLOBALS['__l10n']['Activity report'] = 'Rapport d\'activité'; 
    1414 
     
    123123$GLOBALS['__l10n']['User named "%s" has been deleted by "%"'] = 'L\'utilisateur nommé "%s" a été supprimé par "%s"'; 
    124124 
    125 #inc/class.activity.report.php:427 
     125#inc/class.activity.report.php:428 
    126126$GLOBALS['__l10n']['An error occured when parsing report.'] = 'Une erreur est survenue lors de la compilation du rapport.'; 
    127127 
    128 #inc/class.activity.report.php:436 
     128#inc/class.activity.report.php:437 
    129129$GLOBALS['__l10n']['You received a message from your blog\'s activity report module.'] = 'Vous recevez un message du module de rapport d\'activité de votre blog.'; 
    130130 
    131 #inc/class.activity.report.php:442 
     131#inc/class.activity.report.php:443 
    132132$GLOBALS['__l10n']['Period from %s to %s'] = 'Période du %s au %s'; 
    133133 
    134 #inc/class.activity.report.php:488 
     134#inc/class.activity.report.php:489 
    135135$GLOBALS['__l10n']['Activity report deletes some old logs.'] = 'L\'extension a automatiquement effacé des anciennes activités.'; 
    136136 
    137 #inc/class.activity.report.php:642 
     137#inc/class.activity.report.php:706 
    138138$GLOBALS['__l10n']['Activity report module'] = 'Module de rapport d\'activité'; 
    139139 
    140 #inc/class.activity.report.php:654 
    141 #inc/class.activity.report.php:655 
     140#inc/class.activity.report.php:718 
     141#inc/class.activity.report.php:719 
    142142$GLOBALS['__l10n']['Blog activity report'] = 'Rapport d\'activité du blog'; 
    143  
    144 #inc/lib.activity.report.index.php:31 
    145 #inc/lib.activity.report.index.php:40 
    146 $GLOBALS['__l10n']['every hour'] = 'toutes les heures'; 
    147  
    148 #inc/lib.activity.report.index.php:32 
    149 #inc/lib.activity.report.index.php:41 
    150 $GLOBALS['__l10n']['every 2 hours'] = 'toutes les 2 heures'; 
    151143 
    152144#inc/lib.activity.report.index.php:33 
    153145#inc/lib.activity.report.index.php:42 
    154 $GLOBALS['__l10n']['2 times by day'] = '2 fois par jour'; 
     146$GLOBALS['__l10n']['every hour'] = 'toutes les heures'; 
    155147 
    156148#inc/lib.activity.report.index.php:34 
    157149#inc/lib.activity.report.index.php:43 
    158 $GLOBALS['__l10n']['every day'] = 'tous les jours'; 
     150$GLOBALS['__l10n']['every 2 hours'] = 'toutes les 2 heures'; 
    159151 
    160152#inc/lib.activity.report.index.php:35 
    161153#inc/lib.activity.report.index.php:44 
    162 $GLOBALS['__l10n']['every 2 days'] = 'tous les 2 jours'; 
     154$GLOBALS['__l10n']['2 times by day'] = '2 fois par jour'; 
    163155 
    164156#inc/lib.activity.report.index.php:36 
    165157#inc/lib.activity.report.index.php:45 
     158$GLOBALS['__l10n']['every day'] = 'tous les jours'; 
     159 
     160#inc/lib.activity.report.index.php:37 
     161#inc/lib.activity.report.index.php:46 
     162$GLOBALS['__l10n']['every 2 days'] = 'tous les 2 jours'; 
     163 
     164#inc/lib.activity.report.index.php:38 
     165#inc/lib.activity.report.index.php:47 
    166166$GLOBALS['__l10n']['every week'] = 'toutes les semaines'; 
    167167 
    168 #inc/lib.activity.report.index.php:46 
     168#inc/lib.activity.report.index.php:48 
    169169$GLOBALS['__l10n']['every 2 weeks'] = 'toutes les 2 semaines'; 
    170170 
    171 #inc/lib.activity.report.index.php:47 
     171#inc/lib.activity.report.index.php:49 
    172172$GLOBALS['__l10n']['every 4 weeks'] = 'toutes les 4 semaines'; 
    173173 
    174 #inc/lib.activity.report.index.php:51 
     174#inc/lib.activity.report.index.php:53 
    175175$GLOBALS['__l10n']['Plain text'] = 'Texte brut'; 
    176176 
    177 #inc/lib.activity.report.index.php:52 
     177#inc/lib.activity.report.index.php:54 
    178178$GLOBALS['__l10n']['HTML'] = 'HTML'; 
    179179 
    180 #inc/lib.activity.report.index.php:109 
     180#inc/lib.activity.report.index.php:111 
    181181$GLOBALS['__l10n']['never'] = 'jamais'; 
    182182 
    183 #inc/lib.activity.report.index.php:112 
     183#inc/lib.activity.report.index.php:114 
    184184$GLOBALS['__l10n']['on new activity'] = 'lors d\'une nouvelle activité'; 
    185185 
    186 #inc/lib.activity.report.index.php:121 
    187 #inc/lib.activity.report.index.php:122 
     186#inc/lib.activity.report.index.php:123 
     187#inc/lib.activity.report.index.php:124 
    188188$GLOBALS['__l10n']['RSS feed'] = 'Flux RSS'; 
    189189 
    190 #inc/lib.activity.report.index.php:123 
     190#inc/lib.activity.report.index.php:125 
    191191$GLOBALS['__l10n']['Rss2 feed for activity on this blog'] = 'Flux Rss2 pour l\'activité de ce blog'; 
    192192 
    193 #inc/lib.activity.report.index.php:125 
    194 #inc/lib.activity.report.index.php:126 
     193#inc/lib.activity.report.index.php:127 
     194#inc/lib.activity.report.index.php:128 
    195195$GLOBALS['__l10n']['Atom feed'] = 'Flux Atom'; 
    196196 
    197 #inc/lib.activity.report.index.php:127 
     197#inc/lib.activity.report.index.php:129 
    198198$GLOBALS['__l10n']['Atom feed for activity on this blog'] = 'Flux Atom pour l\'activité de ce blog'; 
    199199 
    200 #inc/lib.activity.report.index.php:133 
    201 #index.php:41 
     200#inc/lib.activity.report.index.php:135 
     201#index.php:46 
    202202$GLOBALS['__l10n']['Settings'] = 'Paramètres'; 
    203203 
    204 #inc/lib.activity.report.index.php:139 
     204#inc/lib.activity.report.index.php:141 
    205205$GLOBALS['__l10n']['Enable super administrator report'] = 'Autoriser le rapport de super administrateur'; 
    206206 
    207 #inc/lib.activity.report.index.php:140 
     207#inc/lib.activity.report.index.php:142 
    208208$GLOBALS['__l10n']['Enable report on this blog'] = 'Autoriser le rapport sur ce blog'; 
    209209 
    210 #inc/lib.activity.report.index.php:143 
     210#inc/lib.activity.report.index.php:145 
    211211$GLOBALS['__l10n']['Automatic cleaning of old logs:'] = 'Nettoyage automatique des anciennes activités:'; 
    212212 
    213 #inc/lib.activity.report.index.php:155 
     213#inc/lib.activity.report.index.php:157 
    214214$GLOBALS['__l10n']['Add activity report on dashboard items'] = 'Ajouter le rapport d\'activité au tableau de bord'; 
    215215 
    216 #inc/lib.activity.report.index.php:162 
     216#inc/lib.activity.report.index.php:164 
    217217$GLOBALS['__l10n']['Send report:'] = 'Rapport envoyé :'; 
    218218 
    219 #inc/lib.activity.report.index.php:169 
     219#inc/lib.activity.report.index.php:171 
    220220$GLOBALS['__l10n']['Use Dotclear date formaters. ex: %B %d at %H:%M'] = 'Utiliser le formatage des dates de Dotclear. ex: %d %B à %H:%M'; 
    221221 
    222 #inc/lib.activity.report.index.php:171 
     222#inc/lib.activity.report.index.php:173 
    223223$GLOBALS['__l10n']['Report format:'] = 'Format du rapport :'; 
    224224 
    225 #inc/lib.activity.report.index.php:175 
     225#inc/lib.activity.report.index.php:177 
    226226$GLOBALS['__l10n']['Recipients:'] = 'Destinataires :'; 
    227227 
    228 #inc/lib.activity.report.index.php:178 
     228#inc/lib.activity.report.index.php:180 
    229229$GLOBALS['__l10n']['Separate multiple email addresses with a semicolon ";"'] = 'Séparer les adresses email par un point-virgule ";"'; 
    230230 
    231 #inc/lib.activity.report.index.php:181 
     231#inc/lib.activity.report.index.php:183 
    232232$GLOBALS['__l10n']['Last report by email:'] = 'Dernier rapport par email :'; 
    233233 
    234 #inc/lib.activity.report.index.php:182 
     234#inc/lib.activity.report.index.php:184 
    235235$GLOBALS['__l10n']['Next report by email:'] = 'Prochain rapport par email :'; 
    236236 
    237 #inc/lib.activity.report.index.php:221 
     237#inc/lib.activity.report.index.php:223 
    238238$GLOBALS['__l10n']['Report'] = 'Rapport'; 
    239239 
    240 #inc/lib.activity.report.index.php:262 
     240#inc/lib.activity.report.index.php:270 
    241241$GLOBALS['__l10n']['Send report by email now'] = 'Envoyer un rapport par email maintenant'; 
    242242 
    243 #inc/lib.activity.report.index.php:268 
    244 $GLOBALS['__l10n']['Delete all logs'] = 'Supprimer tous les enregistrements'; 
    245  
    246 #inc/lib.activity.report.index.php:305 
     243#inc/lib.activity.report.index.php:314 
    247244$GLOBALS['__l10n']['No log'] = 'Pas d\'enregistrement'; 
    248245 
    249 #inc/lib.activity.report.index.php:315 
     246#inc/lib.activity.report.index.php:324 
    250247$GLOBALS['__l10n']['Message'] = 'Message'; 
    251248 
    252 #index.php:42 
     249#index.php:34 
     250$GLOBALS['__l10n']['Please wait'] = 'Veuillez patienter'; 
     251 
     252#index.php:47 
    253253$GLOBALS['__l10n']['Logs'] = 'Enregistrements'; 
    254254 
    255 #index.php:46 
     255#index.php:51 
    256256$GLOBALS['__l10n']['Super settings'] = 'Super paramètres'; 
    257257 
    258 #index.php:47 
     258#index.php:52 
    259259$GLOBALS['__l10n']['Super logs'] = 'Super enregistrements'; 
    260260 
  • plugins/activityReport/locales/fr/main.po

    r2035 r2315  
    1 # Language: français 
    2 # Module: activityReport - 0.9 
    3 # Date: 2010-01-29 17:27:05 
    4 # Translated with translater 1.3 
     1# Language: Français 
     2# Module: activityReport - 1.0 
     3# Date: 2010-06-07 00:04:47 
     4# Translated with translater 1.4 
    55 
    66msgid "" 
    77msgstr "" 
    88"Content-Type: text/plain; charset=UTF-8\n" 
    9 "Project-Id-Version: activityReport 0.9\n" 
     9"Project-Id-Version: activityReport 1.0\n" 
    1010"POT-Creation-Date: \n" 
    11 "PO-Revision-Date: 2010-01-29T17:27:05+00:00\n" 
     11"PO-Revision-Date: 2010-06-07T00:04:47+00:00\n" 
    1212"Last-Translator: JC Denis\n" 
    1313"Language-Team: \n" 
     
    1717#: _admin.php:19 
    1818#: _admin.php:88 
    19 #: inc/class.activity.report.php:433 
     19#: inc/class.activity.report.php:434 
    2020#: inc/lib.parselogs.config.php:33 
    2121#: index.php:26 
    22 #: index.php:37 
     22#: index.php:42 
    2323msgid "Activity report" 
    2424msgstr "Rapport d'activité" 
     
    170170msgstr "L'utilisateur nommé \"%s\" a été supprimé par \"%s\"" 
    171171 
    172 #: inc/class.activity.report.php:427 
     172#: inc/class.activity.report.php:428 
    173173msgid "An error occured when parsing report." 
    174174msgstr "Une erreur est survenue lors de la compilation du rapport." 
    175175 
    176 #: inc/class.activity.report.php:436 
     176#: inc/class.activity.report.php:437 
    177177msgid "You received a message from your blog's activity report module." 
    178178msgstr "Vous recevez un message du module de rapport d'activité de votre blog." 
    179179 
    180 #: inc/class.activity.report.php:442 
     180#: inc/class.activity.report.php:443 
    181181msgid "Period from %s to %s" 
    182182msgstr "Période du %s au %s" 
    183183 
    184 #: inc/class.activity.report.php:488 
     184#: inc/class.activity.report.php:489 
    185185msgid "Activity report deletes some old logs." 
    186186msgstr "L'extension a automatiquement effacé des anciennes activités." 
    187187 
    188 #: inc/class.activity.report.php:642 
     188#: inc/class.activity.report.php:706 
    189189msgid "Activity report module" 
    190190msgstr "Module de rapport d'activité" 
    191191 
    192 #: inc/class.activity.report.php:654 
    193 #: inc/class.activity.report.php:655 
     192#: inc/class.activity.report.php:718 
     193#: inc/class.activity.report.php:719 
    194194msgid "Blog activity report" 
    195195msgstr "Rapport d'activité du blog" 
    196196 
    197 #: inc/lib.activity.report.index.php:31 
    198 #: inc/lib.activity.report.index.php:40 
     197#: inc/lib.activity.report.index.php:33 
     198#: inc/lib.activity.report.index.php:42 
    199199msgid "every hour" 
    200200msgstr "toutes les heures" 
    201201 
    202 #: inc/lib.activity.report.index.php:32 
    203 #: inc/lib.activity.report.index.php:41 
     202#: inc/lib.activity.report.index.php:34 
     203#: inc/lib.activity.report.index.php:43 
    204204msgid "every 2 hours" 
    205205msgstr "toutes les 2 heures" 
    206206 
    207 #: inc/lib.activity.report.index.php:33 
    208 #: inc/lib.activity.report.index.php:42 
     207#: inc/lib.activity.report.index.php:35 
     208#: inc/lib.activity.report.index.php:44 
    209209msgid "2 times by day" 
    210210msgstr "2 fois par jour" 
    211211 
    212 #: inc/lib.activity.report.index.php:34 
    213 #: inc/lib.activity.report.index.php:43 
     212#: inc/lib.activity.report.index.php:36 
     213#: inc/lib.activity.report.index.php:45 
    214214msgid "every day" 
    215215msgstr "tous les jours" 
    216216 
    217 #: inc/lib.activity.report.index.php:35 
    218 #: inc/lib.activity.report.index.php:44 
     217#: inc/lib.activity.report.index.php:37 
     218#: inc/lib.activity.report.index.php:46 
    219219msgid "every 2 days" 
    220220msgstr "tous les 2 jours" 
    221221 
    222 #: inc/lib.activity.report.index.php:36 
    223 #: inc/lib.activity.report.index.php:45 
     222#: inc/lib.activity.report.index.php:38 
     223#: inc/lib.activity.report.index.php:47 
    224224msgid "every week" 
    225225msgstr "toutes les semaines" 
    226226 
    227 #: inc/lib.activity.report.index.php:46 
     227#: inc/lib.activity.report.index.php:48 
    228228msgid "every 2 weeks" 
    229229msgstr "toutes les 2 semaines" 
    230230 
    231 #: inc/lib.activity.report.index.php:47 
     231#: inc/lib.activity.report.index.php:49 
    232232msgid "every 4 weeks" 
    233233msgstr "toutes les 4 semaines" 
    234234 
    235 #: inc/lib.activity.report.index.php:51 
     235#: inc/lib.activity.report.index.php:53 
    236236msgid "Plain text" 
    237237msgstr "Texte brut" 
    238238 
    239 #: inc/lib.activity.report.index.php:52 
     239#: inc/lib.activity.report.index.php:54 
    240240msgid "HTML" 
    241241msgstr "HTML" 
    242242 
    243 #: inc/lib.activity.report.index.php:109 
     243#: inc/lib.activity.report.index.php:111 
    244244msgid "never" 
    245245msgstr "jamais" 
    246246 
    247 #: inc/lib.activity.report.index.php:112 
     247#: inc/lib.activity.report.index.php:114 
    248248msgid "on new activity" 
    249249msgstr "lors d'une nouvelle activité" 
    250250 
    251 #: inc/lib.activity.report.index.php:121 
    252 #: inc/lib.activity.report.index.php:122 
     251#: inc/lib.activity.report.index.php:123 
     252#: inc/lib.activity.report.index.php:124 
    253253msgid "RSS feed" 
    254254msgstr "Flux RSS" 
    255255 
    256 #: inc/lib.activity.report.index.php:123 
     256#: inc/lib.activity.report.index.php:125 
    257257msgid "Rss2 feed for activity on this blog" 
    258258msgstr "Flux Rss2 pour l'activité de ce blog" 
    259259 
    260 #: inc/lib.activity.report.index.php:125 
    261 #: inc/lib.activity.report.index.php:126 
     260#: inc/lib.activity.report.index.php:127 
     261#: inc/lib.activity.report.index.php:128 
    262262msgid "Atom feed" 
    263263msgstr "Flux Atom" 
    264264 
    265 #: inc/lib.activity.report.index.php:127 
     265#: inc/lib.activity.report.index.php:129 
    266266msgid "Atom feed for activity on this blog" 
    267267msgstr "Flux Atom pour l'activité de ce blog" 
    268268 
    269 #: inc/lib.activity.report.index.php:133 
    270 #: index.php:41 
     269#: inc/lib.activity.report.index.php:135 
     270#: index.php:46 
    271271msgid "Settings" 
    272272msgstr "Paramètres" 
    273273 
    274 #: inc/lib.activity.report.index.php:139 
     274#: inc/lib.activity.report.index.php:141 
    275275msgid "Enable super administrator report" 
    276276msgstr "Autoriser le rapport de super administrateur" 
    277277 
    278 #: inc/lib.activity.report.index.php:140 
     278#: inc/lib.activity.report.index.php:142 
    279279msgid "Enable report on this blog" 
    280280msgstr "Autoriser le rapport sur ce blog" 
    281281 
    282 #: inc/lib.activity.report.index.php:143 
     282#: inc/lib.activity.report.index.php:145 
    283283msgid "Automatic cleaning of old logs:" 
    284284msgstr "Nettoyage automatique des anciennes activités:" 
    285285 
    286 #: inc/lib.activity.report.index.php:155 
     286#: inc/lib.activity.report.index.php:157 
    287287msgid "Add activity report on dashboard items" 
    288288msgstr "Ajouter le rapport d'activité au tableau de bord" 
    289289 
    290 #: inc/lib.activity.report.index.php:162 
     290#: inc/lib.activity.report.index.php:164 
    291291msgid "Send report:" 
    292292msgstr "Rapport envoyé :" 
    293293 
    294 #: inc/lib.activity.report.index.php:169 
     294#: inc/lib.activity.report.index.php:171 
    295295msgid "Use Dotclear date formaters. ex: %B %d at %H:%M" 
    296296msgstr "Utiliser le formatage des dates de Dotclear. ex: %d %B à %H:%M" 
    297297 
    298 #: inc/lib.activity.report.index.php:171 
     298#: inc/lib.activity.report.index.php:173 
    299299msgid "Report format:" 
    300300msgstr "Format du rapport :" 
    301301 
    302 #: inc/lib.activity.report.index.php:175 
     302#: inc/lib.activity.report.index.php:177 
    303303msgid "Recipients:" 
    304304msgstr "Destinataires :" 
    305305 
    306 #: inc/lib.activity.report.index.php:178 
     306#: inc/lib.activity.report.index.php:180 
    307307msgid "Separate multiple email addresses with a semicolon \";\"" 
    308308msgstr "Séparer les adresses email par un point-virgule \";\"" 
    309309 
    310 #: inc/lib.activity.report.index.php:181 
     310#: inc/lib.activity.report.index.php:183 
    311311msgid "Last report by email:" 
    312312msgstr "Dernier rapport par email :" 
    313313 
    314 #: inc/lib.activity.report.index.php:182 
     314#: inc/lib.activity.report.index.php:184 
    315315msgid "Next report by email:" 
    316316msgstr "Prochain rapport par email :" 
    317317 
    318 #: inc/lib.activity.report.index.php:221 
     318#: inc/lib.activity.report.index.php:223 
    319319msgid "Report" 
    320320msgstr "Rapport" 
    321321 
    322 #: inc/lib.activity.report.index.php:262 
     322#: inc/lib.activity.report.index.php:270 
    323323msgid "Send report by email now" 
    324324msgstr "Envoyer un rapport par email maintenant" 
    325325 
    326 #: inc/lib.activity.report.index.php:268 
    327 msgid "Delete all logs" 
    328 msgstr "Supprimer tous les enregistrements" 
    329  
    330 #: inc/lib.activity.report.index.php:305 
     326#: inc/lib.activity.report.index.php:314 
    331327msgid "No log" 
    332328msgstr "Pas d'enregistrement" 
    333329 
    334 #: inc/lib.activity.report.index.php:315 
     330#: inc/lib.activity.report.index.php:324 
    335331msgid "Message" 
    336332msgstr "Message" 
    337333 
    338 #: index.php:42 
     334#: index.php:34 
     335msgid "Please wait" 
     336msgstr "Veuillez patienter" 
     337 
     338#: index.php:47 
    339339msgid "Logs" 
    340340msgstr "Enregistrements" 
    341341 
    342 #: index.php:46 
     342#: index.php:51 
    343343msgid "Super settings" 
    344344msgstr "Super paramètres" 
    345345 
    346 #: index.php:47 
     346#: index.php:52 
    347347msgid "Super logs" 
    348348msgstr "Super enregistrements" 
  • plugins/activityReport/release.txt

    r2035 r2315  
    11x.x xxxxxxxx 
    22 - Not fixed bug with send mail on 1&1 
    3  - Not fixed bug with plugin autobackup, 
     3 - Not fixed bug with plugin autobackup 
     4 
     51.0 20100606 
     6 * Switched to DC 2.2 
     7 * Fixed simultaneous report (used php flock) 
     8 * Changed admin interface 
     9 
    410 
    5110.9 20100129 
Note: See TracChangeset for help on using the changeset viewer.

Sites map