Plugin Directory

Changeset 571926 for count-per-day


Ignore:
Timestamp:
07/13/2012 07:23:43 PM (13 years ago)
Author:
Tom Braider
Message:
 
Location:
count-per-day/trunk
Files:
6 added
17 edited

Legend:

Unmodified
Added
Removed
  • count-per-day/trunk/ajax.php

    r434198 r571926  
    22if ( $_GET['f'] == 'count' )
    33{
     4    // answer only for 20 seconds after calling
     5    if ( empty($_GET['time']) || time() - $_GET['time'] > 20 )
     6    {
     7        header("HTTP/1.0 403 Forbidden");
     8        die();
     9    }
     10   
    411    if (!session_id()) session_start();
    512    $cpd_wp = (!empty($_SESSION['cpd_wp'])) ? $_SESSION['cpd_wp'] : '../../../';
    613    require_once($cpd_wp.'wp-load.php');
    7 
     14   
    815    $cpd_funcs = array ( 'show',
    916    'getReadsAll', 'getReadsToday', 'getReadsYesterday', 'getReadsLastWeek', 'getReadsThisMonth',
  • count-per-day/trunk/counter-core.php

    r454194 r571926  
    3131{
    3232    // variables
    33     global $wpdb, $cpd_path, $cpd_dir_name;
     33    global $wpdb, $path, $cpd_dir_name;
    3434   
    3535    define('CPD_METABOX', 'cpd_metaboxes');
     
    6767    if ($this->options['ajax'])
    6868    {
    69         wp_enqueue_script('jquery');
    70         add_action('wp_footer', array(&$this,'addAjaxScript'));
     69//      wp_enqueue_script('jquery');
     70        add_action('wp_enqueue_scripts', array(&$this,'addJquery'));
     71        add_action('wp_footer', array(&$this,'addAjaxScript'));
     72// auch in addJQuery?
     73       
    7174    }
    7275
     
    8992        add_filter('manage_edit-post_columns', array(&$this,'cpdColumn'));
    9093//      add_filter('manage_edit-post_sortable_columns', array(&$this,'cpdSortableColumns'));
    91 
    9294//      add_filter('request', array(&$this,'cpdReadsOrderby'));
    9395       
     
    119121   
    120122    // uninstall hook
    121     register_uninstall_hook($cpd_path.'counter.php', 'count_per_day_uninstall');
     123    register_uninstall_hook($path.'counter.php', 'count_per_day_uninstall');
    122124   
    123125    // query times debug
     
    133135    // thickbox in backend only
    134136    if (strpos($_SERVER['SCRIPT_NAME'], '/wp-admin/') !== false )
    135     {
    136         wp_enqueue_script('thickbox');
    137         wp_enqueue_script('cpd_flot', $this->dir.'/js/jquery.flot.min.js', 'jQuery');
    138     }
     137        add_action('admin_enqueue_scripts', array(&$this,'addThickbox'));
    139138   
    140139    // Session
    141140    add_action('init', array(&$this,'startSession'), 1);
     141}
     142
     143function addJquery()
     144{
     145    wp_enqueue_script('jquery');
     146}
     147
     148function addThickbox()
     149{
     150    wp_enqueue_script('thickbox');
     151    if (strpos($_SERVER['QUERY_STRING'], 'cpd_metaboxes') !== false)
     152        wp_enqueue_script('cpd_flot', $this->dir.'/js/jquery.flot.min.js', 'jQuery');
    142153}
    143154
     
    154165}
    155166
    156 
    157 
    158167/**
    159168 * starts session to provide WP variables to "addons"
     
    177186    $t = microtime(true);
    178187    $con = $wpdb->dbh;
    179    
    180188    $preparedSql = $wpdb->prepare($sql);
    181 
     189    $r = false;
    182190    if ($kind == 'var')
    183191        $r = $wpdb->get_var( $preparedSql );
     
    187195        $r = $wpdb->get_var( $wpdb->prepare($sql) );
    188196    }
    189     else if ($kind = 'rows')
     197    else if ($kind == 'rows')
     198    {
    190199        $r = $wpdb->get_results( $preparedSql );
     200    }
    191201    else
    192202        $wpdb->query( $preparedSql );
    193        
     203
    194204    if ( $this->options['debug'] )
    195205    {
     
    377387        $queries = array (
    378388        "ALTER TABLE `$cpd_c` ADD `ip2` INT(10) UNSIGNED NOT NULL AFTER `ip`",
    379         "UPDATE `$cpd_c` SET ip2 = INET_ATON(ip)",
     389        "UPDATE `$cpd_c` SET ip2 = $this->aton(ip)",
    380390        "ALTER TABLE `$cpd_c` DROP `ip`",
    381391        "ALTER TABLE `$cpd_c` CHANGE `ip2` `ip` INT( 10 ) UNSIGNED NOT NULL",
     
    432442   
    433443    // update options to array
    434     $this->UpdateOptions();
    435    
    436     // set directory mode
    437     @chmod(ABSPATH.PLUGINDIR.'/count-per-day/geoip', 0777);
     444    $this->updateOptions();
    438445}
    439446
     
    452459{
    453460    global $wpdb, $cpd_path, $cpd_version;
    454     echo '<div style="position:absolute;margin:10px;padding:10px;border:1px red solid">
     461    echo '<div style="position:absolute;margin:10px;padding:10px;border:1px red solid;background:#fff;clear:both">
    455462        <b>Count per Day - DEBUG: '.round($this->queries[0], 3).' s</b><ol>'."\n";
    456463    echo '<li>'
     
    517524function addJS()
    518525{
    519     echo '<!--[if IE]><script type="text/javascript" src="'.$this->dir.'/js/excanvas.min.js"></script><![endif]-->'."\n";
     526    if (strpos($_SERVER['QUERY_STRING'], 'cpd_metaboxes') !== false )
     527        echo '<!--[if IE]><script type="text/javascript" src="'.$this->dir.'/js/excanvas.min.js"></script><![endif]-->'."\n";
    520528}
    521529
     
    526534{
    527535    $this->getPostID();
     536    $time = time();
    528537    echo <<< JSEND
    529538<script type="text/javascript">
     
    532541jQuery(document).ready( function($)
    533542{
    534     jQuery.get('{$this->dir}/ajax.php?f=count&page={$this->page}', function(text)
     543    jQuery.get('{$this->dir}/ajax.php?f=count&page={$this->page}&time={$time}', function(text)
    535544    {
    536545        var cpd_funcs = text.split('|');
     
    539548            var cpd_daten = cpd_funcs[i].split('===');
    540549            var cpd_fields = document.getElementById('cpd_number_' + cpd_daten[0].toLowerCase());
    541             if (!cpd_fields) { cpd_fields.innerHTML = cpd_daten[1]; }
     550            if (!cpd_fields && cpd_fields != null) { cpd_fields.innerHTML = cpd_daten[1]; }
    542551        }
    543552    });
     
    546555</script>
    547556JSEND;
    548 
    549 // name not valide in span or div...
    550 // var cpd_fields = document.getElementsByName('cpd_number_' + cpd_daten[0].toLowerCase());
    551 // for(var x = 0; x < cpd_fields.length; x++)
    552 // {
    553 //      cpd_fields[x].innerHTML = cpd_daten[1];
    554 // }
    555557}
    556558
     
    572574    foreach( $bots as $ip )
    573575        if ( ip2long($ip) !== false )
    574             $this->mysqlQuery('', "DELETE FROM $wpdb->cpd_counter WHERE INET_NTOA(ip) LIKE '".$ip."%%", 'clenaDB_ip'.__LINE__);
     576            $this->mysqlQuery('', "DELETE FROM $wpdb->cpd_counter WHERE $this->ntoa(ip) LIKE '".$ip."%%", 'clenaDB_ip'.__LINE__);
    575577   
    576578    // delete by client
     
    636638    'chart_height' => 100,
    637639    'countries' => 20,
    638     'startdate' => '',
     640    'startdate' => '2000-01-01',
    639641    'startcount' => '',
    640642    'startreads' => '',
     
    663665function dashboardWidgetSetup()
    664666{
    665     wp_add_dashboard_widget( 'cpdDashboardWidget', 'Count per Day', array(&$this,'dashboardWidget') );
     667    if ( current_user_can($this->options['show_in_lists']) )
     668        wp_add_dashboard_widget( 'cpdDashboardWidget', 'Count per Day', array(&$this,'dashboardWidget') );
    666669}
    667670
     
    756759function getUserPerMonthMeta()          { $this->getUserPerMonth(); }
    757760function getReadsPerMonthMeta()         { $this->getReadsPerMonth(); }
     761function getSearchesMeta()              { $this->getSearches(); }
    758762
    759763/**
     
    776780    add_meta_box('last_reads', '<span class="cpd_icon cpd_calendar">&nbsp;</span> '.__('Latest Counts', 'cpd'), array(&$this,'getMostVisitedPostsMeta'), $this->pagehook, 'cpdrow4', 'default');
    777781    add_meta_box('day_reads', '<span class="cpd_icon cpd_day">&nbsp;</span> '.__('Visitors per day', 'cpd'), array(&$this,'getVisitedPostsOnDayMeta'), $this->pagehook, 'cpdrow4', 'default');
     782    add_meta_box('searches', '<span class="cpd_icon cpd_help">&nbsp;</span> '.__('Search strings', 'cpd'), array(&$this,'getSearchesMeta'), $this->pagehook, 'cpdrow1', 'default');
    778783    add_meta_box('cpd_info', '<span class="cpd_icon cpd_help">&nbsp;</span> '.__('Plugin'), array(&$this,'cpdInfo'), $this->pagehook, 'cpdrow1', 'low');
    779784    if ($this->options['referers'])
     
    805810        wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false);
    806811        wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false);
    807         $css = 'style="width:'.round(98 / $screen_layout_columns, 1).'%;"';
     812        $css = 'style="width:'.round(100 / $screen_layout_columns, 1).'%;"';
    808813        $this->getFlotChart();
    809814        ?>
     
    851856    add_shortcode('CPD_VISITORS_PER_POST', array(&$this,'shortUserPerPost'));
    852857    add_shortcode('CPD_COUNTRIES', array(&$this,'shortCountries'));
     858    add_shortcode('CPD_COUNTRIES_USERS', array(&$this,'shortCountriesUsers'));
    853859    add_shortcode('CPD_MOST_VISITED_POSTS', array(&$this,'shortMostVisitedPosts'));
    854860    add_shortcode('CPD_REFERERS', array(&$this,'shortReferers'));
     
    857863    add_shortcode('CPD_DAY_MOST_READS', array(&$this,'shortDayWithMostReads'));
    858864    add_shortcode('CPD_DAY_MOST_USERS', array(&$this,'shortDayWithMostUsers'));
     865    add_shortcode('CPD_SEARCHSTRINGS', array(&$this,'shortGetSearches'));
    859866}
    860867function shortShow()            { return $this->show('', '', false, false); }
     
    877884function shortUserPerPost()     { return $this->getUserPerPost(0, true, true); }
    878885function shortCountries()       { return $this->getCountries(0, true, false, true); }
     886function shortCountriesUsers(){ return $this->getCountries(0, true, true, true); }
    879887function shortMostVisitedPosts(){ return $this->getMostVisitedPosts(0, 0, true, false, true); }
    880888function shortReferers()        { return $this->getReferers(0, true, 0); }
    881889function shortDayWithMostReads(){ return $this->getDayWithMostReads(true, true); }
    882890function shortDayWithMostUsers(){ return $this->getDayWithMostUsers(true, true); }
     891function shortGetSearches( $atts )
     892{
     893    extract( shortcode_atts( array(
     894        'limit' => 0,
     895        'days' => 0
     896    ), $atts) );
     897    return $this->getSearches( $limit, $days, true );
     898}
    883899function shortPostsOnDay( $atts )
    884900{
     
    928944    global $wpdb;
    929945    $sql = $wpdb->prepare("
    930     SELECT  t.id, t.ip AS longip, INET_NTOA(t.ip) AS ip, t.date, t.posts, c.client
     946    SELECT  t.id, t.ip AS longip, $this->ntoa(t.ip) AS ip, t.date, t.posts, c.client
    931947    FROM (  SELECT  id, ip, date, count(*) posts
    932948            FROM    $wpdb->cpd_counter
     
    958974    $f = ($gz) ? gzopen($path,'w9') : fopen($path,'w');
    959975   
    960     @ob_start();
    961    
    962976    if (!$f) :
    963977        echo '<div class="error"><p>'.__('Backup failed! Cannot open file', 'cpd').' '.$path.'.</p></div>';
    964978    else :
    965979        set_time_limit(300);
     980        $this->flush_buffers();
    966981       
    967982        // write backup to file
    968         $d = "DROP TABLE IF EXISTS `$t`;\n";
     983        $d = '';
    969984        ($gz) ? gzwrite($f, $d) : fwrite($f, $d);
    970985        if ( $res = $this->mysqlQuery('rows', "SHOW CREATE TABLE `$t`", 'backupCollect'.__LINE__) )
     
    10271042                    }
    10281043                }
    1029 //              echo $this->formatBytes(memory_get_peak_usage());
    10301044                echo '| ';
    10311045                $this->flush_buffers();
     
    10981112
    10991113
     1114/**
     1115* restores backup data to the counter table or options
     1116*/
     1117function restore ()
     1118{
     1119    global $wpdb;
     1120   
     1121    if ( empty($_GET['_wpnonce']) || !wp_verify_nonce($_GET['_wpnonce'], 'cpdnonce')
     1122        || ( empty($_GET['cpdrestore']) && empty($_GET['cpdadding']) ) )
     1123        return;
     1124   
     1125    $doadding = (isset($_GET['cpdadding'])) ? 1 : 0;
     1126    $path = WP_CONTENT_DIR.'/'.(($doadding) ? $_GET['cpdadding'] : $_GET['cpdrestore']);
     1127   
     1128    if ( isset($path) && preg_match('/count_per_day|cpd_counter/i', $path) && file_exists($path) )
     1129    {
     1130        $gz = (substr($path, -3) == '.gz') ? 1 : 0;
     1131        $f = ($gz) ? gzopen($path, 'r') : fopen($path, 'r');
     1132   
     1133        if ( strpos($path, 'counter_backup') )
     1134        {
     1135            // counter table
     1136            $cpd_sep = array('DROP TABLE', 'CREATE TABLE', 'INSERT INTO', 'REPAIR TABLE');
     1137            $sql = '';
     1138            while ( ($cpd_line = ($gz)?gzgets($f):fgets($f)) !== false )
     1139            {
     1140                // new query?
     1141                $newsql = 0;
     1142                foreach ( $cpd_sep as $s )
     1143                    if ( strpos($cpd_line, $s) !== false && strpos($cpd_line, $s) < 5 )
     1144                        $newsql = 1;
     1145                if ($newsql)
     1146                {
     1147                    // execute query, do not recreate table while adding data
     1148                    if (!empty($sql))
     1149                    {
     1150                        if ($doadding)
     1151                            $sql = str_replace('INSERT INTO', 'REPLACE INTO', $sql);
     1152                        if ( !$doadding || ( strpos($sql, 'DROP TABLE') === false && strpos($sql, 'CREATE TABLE')  === false ) )
     1153                            $this->mysqlQuery('', $sql, 'restoreSql '.__LINE__);
     1154                    }
     1155                    $sql = $cpd_line;
     1156                }
     1157                else
     1158                    $sql .= $cpd_line;
     1159            }
     1160            if (!feof($f)) {
     1161                echo '<div class="error"><p>'.__('Error while reading backup file!', 'cpd')."</p></div>\n";
     1162            }
     1163            unset($sql);
     1164            if ($doadding)
     1165                echo '<div class="updated"><p>'.sprintf(__('The backup was added to counter table %s.', 'cpd'), "<code>$wpdb->cpd_counter</code>")."</p></div>\n";
     1166            else
     1167                echo '<div class="updated"><p>'.sprintf(__('The counter table %s was restored from backup.', 'cpd'), "<code>$wpdb->cpd_counter</code>")."</p></div>\n";
     1168        }
     1169        elseif ( strpos($path, 'count_per_day_options') )
     1170        {
     1171            // options
     1172            $backup = ($gz) ? gzread($f, 500000) : fread($f, filesize($path));
     1173            $entries = array('count_per_day', 'count_per_day_summary', 'count_per_day_collected', 'count_per_day_posts', 'count_per_day_notes');
     1174            foreach ( $entries as $entry )
     1175            {
     1176                $s = strpos($backup, "=== begin $entry ===") + strlen($entry) + 14;
     1177                $e = strpos($backup, "=== end $entry ===");
     1178                $option = trim(substr($backup, $s, $e - $s));
     1179                update_option($entry, unserialize($option));
     1180            }
     1181            $this->options = get_option('count_per_day');
     1182            unset($backup);
     1183            unset($option);
     1184            echo '<div class="updated"><p>'.__('Options restored from backup.', 'cpd')."</p></div>\n";
     1185        }
     1186        ($gz) ? gzclose($f) : fclose($f);
     1187    }
     1188
     1189}
    11001190
    11011191function addCollectionToCountries( $visitors, $limit = false )
     
    11201210    $res = $this->mysqlQuery('rows', $sql, 'getCountries '.__LINE__);
    11211211
     1212    $temp = array();
    11221213    foreach ( $res as $r )
    11231214        $temp[$r->country] = $r->c;
     
    12321323    if ( empty($s['firstcount']) )
    12331324    {
    1234         // first day from table  ORDER BY date LIMIT 1
     1325        // first day from table
    12351326        $res = $this->mysqlQuery('var', "SELECT MIN(date) FROM $wpdb->cpd_counter", 'getFirstCount'.__LINE__);
    12361327        if ($res)
     
    12731364function flush_buffers()
    12741365{
    1275     if (ob_get_length())
    1276     {
    1277         @ob_end_flush();
    1278         @ob_flush();
    1279         @flush();
    1280     }   
     1366    echo "\n<!--".str_repeat(' ', 4100)."-->\n";
     1367    $levels = ob_get_level();
     1368    for ( $i = 0; $i < $levels; $i++ )
     1369    {
     1370        $b = ob_get_status();
     1371        if ( strpos($b['name'], 'zlib') === false )
     1372        {
     1373            @ob_end_flush();
     1374            @ob_flush();
     1375            @flush();
     1376        }
     1377    }
    12811378    @ob_start();
    12821379}
     
    12991396}
    13001397
     1398/**
     1399 * try to get the search strings from referrer
     1400 */
     1401function getSearchString()
     1402{
     1403    if (empty($_SERVER['HTTP_REFERER']))
     1404        return false;
     1405    $ref = parse_url(rawurldecode($_SERVER['HTTP_REFERER']));
     1406    if ( empty($ref['host']) || empty($ref['query']) )
     1407        return false;
     1408    $keys = array('p','q','s','query','search','prev','qkw','qry');
     1409    parse_str($ref['query'], $query);
     1410    foreach ($keys as $key)
     1411        if (isset($query[$key]))
     1412            $search = str_ireplace(array('/search?q=','/images?q='), '', $query[$key]);
     1413    if (empty($search) || is_numeric($search)) // non WordPress postID
     1414        $search = '';
     1415    return $search;
     1416}
     1417
    13011418} // class
  • count-per-day/trunk/counter-options.php

    r454194 r571926  
    44 * Count Per Day - Options and Administration
    55 */
     6
     7$mysiteurl = substr($_SERVER['REQUEST_URI'], 0, strpos($_SERVER['REQUEST_URI'], 'counter-options.php') + 19);
    68
    79// check form
     
    5860            $rest = CpdGeoIp::updateDB();
    5961            echo '<div class="updated">
    60                 <form name="cpdcountries" method="post" action="'.$_SERVER['REQUEST_URI'].'">
     62                <form name="cpdcountries" method="post" action="'.$mysiteurl.'">
    6163                <p>'.sprintf(__('Countries updated. <b>%s</b> entries in %s without country left', 'cpd'), $rest, $wpdb->cpd_counter);
    6264            if ( $rest > 0 )
     
    98100            foreach ($bots as $r)
    99101            {
    100                 $count_per_day->mysqlQuery('', "DELETE FROM $wpdb->cpd_counter WHERE ip = INET_ATON('$r->ip') AND date = '$r->date'", 'deleteMassbots '.__LINE__);
     102                $count_per_day->mysqlQuery('', "DELETE FROM $wpdb->cpd_counter WHERE ip = $this->aton('$r->ip') AND date = '$r->date'", 'deleteMassbots '.__LINE__);
    101103                $sum += $r->posts;
    102104            }
     
    109111    case 'cpd_clean' :
    110112        $rows = $count_per_day->cleanDB();
    111         delete_option('count_per_day_summary');
    112         delete_option('count_per_day_collected');
    113         delete_option('count_per_day_posts');
    114113        echo '<div class="updated"><p>'.sprintf(__('Database cleaned. %s rows deleted.', 'cpd'), $rows).'</p></div>';
    115114        break;
     
    167166            'reads' => $count_per_day->getCollectedReads(),
    168167            'users' => $count_per_day->getCollectedUsers() );
    169         $mold = 0; // current month
    170         $countryold = '#'; // current country
    171168
    172169        echo '<div id="cpd_progress_collection" class="updated"><p>'.__('Collection in progress...', 'cpd').' ';
    173170        $count_per_day->flush_buffers();
    174171
    175         $sql = "
     172        $today = date('Y-m-01');
     173       
     174        // reads per month
     175        $cpd_sql = "
     176                SELECT  LEFT(date,7) month, COUNT(*) c
     177                FROM    $wpdb->cpd_counter
     178                WHERE   date < DATE_SUB( '$today', INTERVAL $keep MONTH )
     179                GROUP   BY LEFT(date,7)";
     180        $res = $count_per_day->mysqlQuery('rows', $cpd_sql, "getReadsPerMonthCompress ".__LINE__);
     181        foreach ($res as $r)
     182        {
     183            $month = str_replace('-','',$r->month);
     184            $d[$month]['reads'] = $r->c;
     185            $s['reads'] += $r->c;
     186        }
     187        unset($res);
     188       
     189        // visitors per month
     190        $cpd_sql = "
     191                SELECT  LEFT(date,7) month, COUNT(*) c
     192                FROM    (
     193                    SELECT  date
     194                    FROM    $wpdb->cpd_counter
     195                    WHERE   date < DATE_SUB( '$today', INTERVAL $keep MONTH )
     196                    GROUP   BY date, ip
     197                    ) AS t
     198                GROUP   BY LEFT(date,7)";
     199        $res = $count_per_day->mysqlQuery('rows', $cpd_sql, "getVisitorsPerMonthCompress ".__LINE__);
     200        foreach ($res as $r)
     201        {
     202            $month = str_replace('-','',$r->month);
     203            $d[$month]['users'] = $r->c;
     204            $s['users'] += $r->c;
     205        }
     206        unset($res);
     207       
     208        // reads per month and country
     209        $cpd_sql = "
    176210        SELECT  LEFT(date,7) month, COUNT(*) c, country
    177211        FROM    $wpdb->cpd_counter
    178         WHERE   date < DATE_SUB( DATE_FORMAT(CURDATE(), '%%Y-%%m-01'), INTERVAL $keep MONTH )
    179         GROUP   BY date, country, ip
    180         ORDER   BY LEFT(date,7), country";
    181         $res = $count_per_day->mysqlQuery('rows', $sql, 'getReadsPerMonthsCompress '.__LINE__);
    182        
     212        WHERE   date < DATE_SUB( '$today', INTERVAL $keep MONTH )
     213        GROUP   BY LEFT(date,7), country";
     214        $res = $count_per_day->mysqlQuery('rows', $cpd_sql, "getReadsPerCountryCompress ".__LINE__);
    183215        foreach ($res as $r)
    184216        {
    185             $reads = (int) $r->c;
    186             $s['reads'] += $reads;
    187             $s['users'] += 1;
     217            $month = str_replace('-','',$r->month);
    188218            $country = ($r->country) ? $r->country : '-';
    189            
    190             if ( $r->month != $mold )
    191             {
    192                 // new month row
    193                 $month = str_replace('-','',$r->month);
    194                 $d[$month]['reads'] = $reads;
    195                 $d[$month]['users'] = 1;
    196                 $t[$month][$country]['reads'] = $reads;
    197                 $t[$month][$country]['users'] = 1;
    198                 $mold = $r->month;
    199                 echo "| ";
    200                 $count_per_day->flush_buffers();
    201             }
    202             else if ( $country != $countryold )
    203             {
    204                 // new country
    205                 $d[$month]['reads'] += $reads;
    206                 $d[$month]['users'] += 1;
    207                 $t[$month][$country]['reads'] = $reads;
    208                 $t[$month][$country]['users'] = 1;
    209                 $countryold = $country;
    210             }
    211             else
    212             {
    213                 // new visitor/ip
    214                 $d[$month]['reads'] += $reads;
    215                 $d[$month]['users'] += 1;
    216                 $t[$month][$country]['reads'] += $reads;
    217                 $t[$month][$country]['users'] += 1;
    218             }
    219         }
     219            $t[$month][$country]['reads'] = $r->c;
     220        }
     221        unset($res);
     222   
     223        // visitors per month and country
     224        $cpd_sql = "
     225        SELECT  LEFT(date,7) month, COUNT(*) c, country
     226        FROM    (
     227            SELECT  date, country
     228            FROM    $wpdb->cpd_counter
     229            WHERE   date < DATE_SUB( '$today', INTERVAL $keep MONTH )
     230            GROUP   BY date, ip, country
     231            ) AS t
     232        GROUP   BY LEFT(date,7), country";
     233        $res = $count_per_day->mysqlQuery('rows', $cpd_sql, "getVisitorsPerCountryCompress ".__LINE__);
     234        foreach ($res as $r)
     235        {
     236            $month = str_replace('-','',$r->month);
     237            $country = ($r->country) ? $r->country : '-';
     238            $t[$month][$country]['users'] = $r->c;
     239        }
     240        unset($res);
    220241
    221242        // format country data as "country:reads|visitors;"
     
    243264        $count_per_day->flush_buffers();
    244265       
    245         $sql = "
     266        $cpd_sql = "
    246267        SELECT  COUNT(*) count, page
    247268        FROM    $wpdb->cpd_counter
    248         WHERE   date < DATE_SUB( DATE_FORMAT(CURDATE(), '%%Y-%%m-01'), INTERVAL $keep MONTH )
     269        WHERE   date < DATE_SUB( '$today', INTERVAL $keep MONTH )
    249270        AND     page
    250271        GROUP   BY page";
    251         $res = $count_per_day->mysqlQuery('rows', $sql, 'getUsersPerPostCompress '.__LINE__);
     272        $res = $count_per_day->mysqlQuery('rows', $cpd_sql, 'getUsersPerPostCompress '.__LINE__);
    252273       
    253274        $p = get_option('count_per_day_posts',array());
     
    273294        // delete entries
    274295        $sizeold = $count_per_day->getTableSize($wpdb->cpd_counter);
    275         $sql = "
     296        $cpd_sql = "
    276297        DELETE  FROM $wpdb->cpd_counter
    277         WHERE   date < DATE_SUB( DATE_FORMAT(CURDATE(), '%%Y-%%m-01'), INTERVAL $keep MONTH )";
    278         $count_per_day->mysqlQuery('', $sql, 'deleteAfterCollection '.__LINE__);
     298        WHERE   date < DATE_SUB( '$today', INTERVAL $keep MONTH )";
     299        $count_per_day->mysqlQuery('', $cpd_sql, 'deleteAfterCollection '.__LINE__);
    279300        $count_per_day->mysqlQuery('', "REPAIR TABLE `$wpdb->cpd_counter`", 'repairTable '.__LINE__);
    280301        $sizenew = $count_per_day->getTableSize($wpdb->cpd_counter);
     
    296317        echo '<div class="updated"><p>'.__('Installation of "Count per Day" checked', 'cpd').'</p></div>';
    297318        break;
     319   
     320    // delete search strings
     321    case 'cpd_searchclean' :
     322        $days = intval($_POST['cpd_keepsearch']);
     323        $deldate = date('Y-m-d', time() - $days * 86400);
     324        $searches = get_option('count_per_day_search', array());
     325        foreach ( $searches as $k => $v )
     326        {
     327            if ( $k < $deldate )
     328                unset($searches[$k]);
     329        }
     330        update_option('count_per_day_search', $searches);
     331        unset($searches);
     332        echo '<div class="updated"><p>'.__('Old search strings deleted', 'cpd').'</p></div>';
    298333       
    299334    default:
     
    308343if ( empty($mode) )
    309344    $mode = '';
     345
     346$nonce = wp_create_nonce('cpdnonce');
     347   
     348// restore from backup file
     349if ( isset($_GET['_wpnonce']) && wp_verify_nonce($_GET['_wpnonce'], 'cpdnonce')
     350    && ( isset($_GET['cpdrestore']) || isset($_GET['cpdadding']) ) )
     351{
     352    $count_per_day->restore();
     353}
    310354   
    311355switch($mode) {
     
    334378    }
    335379    ?>
    336     <div id="cpdsettings" class="wrap">
    337     <h2><img src="<?php echo $count_per_day->img('cpd_menu.gif') ?>" alt="" style="width:24px;height:24px" /> Count per Day</h2>
    338    
     380    <div id="cpdtools" style="position:absolute;top:-31px;height:0x;"></div>
     381    <div id="cpdtoolccs" class="wrap">
     382   
     383    <h2 class="nav-tab-wrapper" style="padding-bottom:0;margin-bottom:20px;">
     384        <img src="<?php echo $count_per_day->img('cpd_menu.gif') ?>" alt="" style="width:24px;height:24px" /> Count per Day
     385        <a class="nav-tab nav-tab-active" href="#cpdtools"><span class="cpd_icon cpd_tools">&nbsp;</span> <?php _e('Tools') ?></a>
     386        <a class="nav-tab" href="#cpdsettings"><span class="cpd_icon cpd_settings">&nbsp;</span> <?php _e('Settings') ?></a>
     387    </h2>
     388
    339389    <div id="poststuff" class="cpd_settings">
    340    
    341     <div class="postbox">
    342         <h3>
    343             <span class="cpd_icon cpd_settings">&nbsp;</span> <?php _e('Settings') ?> |
    344             <span class="cpd_icon cpd_tools">&nbsp;</span> <a href="#cpdtools"><?php _e('Tools') ?></a>
    345         </h3>
    346     </div>
    347 
    348     <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
    349        
    350     <?php // counter ?>
    351     <fieldset>
    352     <legend><span class="cpd_icon cpd_settings">&nbsp;</span> <?php _e('Counter', 'cpd') ?></legend>
    353    
    354     <table class="form-table">
    355     <tr>
    356         <th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Online time', 'cpd') ?>:</th>
    357         <td><input class="code" type="text" name="cpd_onlinetime" size="3" value="<?php echo $o['onlinetime']; ?>" /> <?php _e('Seconds for online counter. Used for "Visitors online" on dashboard page.', 'cpd') ?></td>
    358     </tr>
    359     <tr>
    360         <th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Logged on Users', 'cpd') ?>:</th>
    361         <td>
    362             <label for="cpd_user"><input type="checkbox" name="cpd_user" id="cpd_user" <?php if($o['user']==1) echo 'checked="checked"'; ?> /> <?php _e('count too', 'cpd') ?></label>
    363             - <?php _e('until User Level', 'cpd') ?>
    364             <select name="cpd_user_level">
    365                 <option value="10" <?php selected($o['user_level'], 10) ?>><?php echo translate_user_role('Administrator') ?> (10)</option>
    366                 <option value="7" <?php selected($o['user_level'], 7) ?>><?php echo translate_user_role('Editor') ?> (7)</option>
    367                 <option value="2" <?php selected($o['user_level'], 2) ?>><?php echo translate_user_role('Author') ?> (2)</option>
    368                 <option value="1" <?php selected($o['user_level'], 1) ?>><?php echo translate_user_role('Contributor') ?> (1)</option>
    369                 <option value="0" <?php selected($o['user_level'], 0) ?>><?php echo translate_user_role('Subscriber') ?> (0)</option>
    370             </select>
    371         </td>
    372     </tr>
    373     <tr>
    374         <th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Auto counter', 'cpd') ?>:</th>
    375         <td><label for="cpd_autocount"><input type="checkbox" name="cpd_autocount" id="cpd_autocount" <?php checked($o['autocount'], 1) ?> /> <?php _e('Counts automatically single-posts and pages, no changes on template needed.', 'cpd') ?></label></td>
    376     </tr>
    377     <tr>
    378         <th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Bots to ignore', 'cpd') ?>:</th>
    379         <td><textarea name="cpd_bots" cols="50" rows="10"><?php echo $o['bots']; ?></textarea></td>
    380     </tr>
    381     <tr>
    382         <th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Anonymous IP', 'cpd') ?>:</th>
    383         <td><label for="cpd_anoip"><input type="checkbox" name="cpd_anoip" id="cpd_anoip" <?php checked($o['anoip'], 1) ?> /> a.b.c.d &gt; a.b.c.x</label></td>
    384     </tr>
    385     <tr>
    386         <th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Cache', 'cpd') ?> (beta):</th>
    387         <td><label for="cpd_ajax"><input type="checkbox" name="cpd_ajax" id="cpd_ajax" <?php checked($o['ajax'], 1) ?> /> <?php _e('I use a cache plugin. Count these visits with ajax.', 'cpd') ?></label></td>
    388     </tr>
    389     <tr>
    390         <th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Clients and referrers', 'cpd') ?>:</th>
    391         <td>
    392             <label for="cpd_referers"><input type="checkbox" name="cpd_referers" id="cpd_referers" <?php checked($o['referers'], 1) ?> />
    393             <?php _e('Save and show clients and referrers.<br />Needs a lot of space in the database but gives you more detailed informations of your visitors.', 'cpd') ?> (1000000 <?php _e('Reads', 'cpd') ?> ~ 130 MB)</label><br/>
    394             <label for="cpd_referers_cut"><input type="checkbox" name="cpd_referers_cut" id="cpd_referers_cut" <?php checked($o['referers_cut'], 1) ?> />
    395             <?php _e('Save URL only, no query string.', 'cpd') ?> <code>http://example.com/webhp?hl=de#sclient=psy&amp;hl=de...</code> &gt; <code>http://example.com/webhp</code></label>
    396         </td>
    397     </tr>
    398     </table>
    399     </fieldset>
    400    
    401     <?php // dashboard ?>
    402     <fieldset>
    403     <legend><span class="cpd_icon cpd_settings">&nbsp;</span> <?php _e('Dashboard') ?></legend>
    404    
    405     <script type="text/javascript">
    406     function checkcustom()
    407     {
    408         var b = document.getElementById('cpd_whocansee');
    409         var i = document.getElementById('cpd_whocansee_custom_div');
    410         if ( b.value == 'custom' )
    411             i.style.display = 'block';
    412         else
    413             i.style.display = 'none';
    414     }
    415     </script>
    416    
    417     <table class="form-table">
    418     <tr>
    419         <th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Who can see it', 'cpd') ?>:</th>
    420         <td>
    421             <?php $cus = (in_array($o['whocansee'], array('manage_options','manage_links','publish_posts','edit_posts','read'))) ? 0 : 1 ?>
    422             <select id="cpd_whocansee" name="cpd_whocansee" onchange="checkcustom()">
    423                 <option value="manage_options" <?php selected($o['whocansee'], 'manage_options') ?>><?php echo translate_user_role('Administrator') ?> </option>
    424                 <option value="manage_links" <?php selected($o['whocansee'], 'manage_links') ?>><?php echo translate_user_role('Editor') ?></option>
    425                 <option value="publish_posts" <?php selected($o['whocansee'], 'publish_posts') ?>><?php echo translate_user_role('Author') ?></option>
    426                 <option value="edit_posts" <?php selected($o['whocansee'], 'edit_posts') ?>><?php echo translate_user_role('Contributor') ?></option>
    427                 <option value="read" <?php selected($o['whocansee'], 'read') ?>><?php echo translate_user_role('Subscriber') ?></option>
    428                 <option value="custom" <?php selected($cus) ?>>- <?php echo _e('custom', 'cpd') ?> -</option>
    429             </select>
    430             <?php _e('and higher are allowed to see the statistics page.', 'cpd') ?>
    431             <div id="cpd_whocansee_custom_div" <?php if (!$cus) echo 'style="display:none"' ?>>
    432             <?php printf(__('Set the %s capability %s a user need:', 'cpd'), '<a href="https://codex.wordpress.org/Roles_and_Capabilities">', '</a>'); ?>
    433                 <input type="text" name="cpd_whocansee_custom" value="<?php echo $o['whocansee'] ?>" />
    434             </div>
    435         </td>
    436     </tr>
    437     <tr>
    438         <th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Visitors per post', 'cpd') ?>:</th>
    439         <td><input class="code" type="text" name="cpd_dashboard_posts" size="3" value="<?php echo $o['dashboard_posts']; ?>" /> <?php _e('How many posts do you want to see on dashboard page?', 'cpd') ?></td>
    440     </tr>
    441     <tr>
    442         <th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Latest Counts - Posts', 'cpd') ?>:</th>
    443         <td><input class="code" type="text" name="cpd_dashboard_last_posts" size="3" value="<?php echo $o['dashboard_last_posts']; ?>" /> <?php _e('How many posts do you want to see on dashboard page?', 'cpd') ?></td>
    444     </tr>
    445     <tr>
    446         <th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Latest Counts - Days', 'cpd') ?>:</th>
    447         <td><input class="code" type="text" name="cpd_dashboard_last_days" size="3" value="<?php echo $o['dashboard_last_days']; ?>" /> <?php _e('How many days do you want look back?', 'cpd') ?></td>
    448     </tr>
    449     <tr>
    450         <th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Chart - Days', 'cpd') ?>:</th>
    451         <td><input class="code" type="text" name="cpd_chart_days" size="3" value="<?php echo $o['chart_days']; ?>" /> <?php _e('How many days do you want look back?', 'cpd') ?></td>
    452     </tr>
    453     <tr>
    454         <th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Chart - Height', 'cpd') ?>:</th>
    455         <td><input class="code" type="text" name="cpd_chart_height" size="3" value="<?php echo $o['chart_height']; ?>" /> px - <?php _e('Height of the biggest bar', 'cpd') ?></td>
    456     </tr>
    457     <?php if ($cpd_geoip) { ?>
    458     <tr>
    459         <th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Countries', 'cpd') ?>:</th>
    460         <td><input class="code" type="text" name="cpd_countries" size="3" value="<?php echo $o['countries']; ?>" /> <?php _e('How many countries do you want to see on dashboard page?', 'cpd') ?></td>
    461     </tr>
    462     <?php } ?>
    463     <tr>
    464         <th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Browsers', 'cpd') ?>:</th>
    465         <td><input class="code" type="text" name="cpd_clients" size="50" value="<?php echo $o['clients']; ?>" /> <?php _e('Substring of the user agent, separated by comma', 'cpd') ?></td>
    466     </tr>       
    467     <tr>
    468         <th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Referrers - Entries', 'cpd') ?>:</th>
    469         <td><input class="code" type="text" name="cpd_dashboard_referers" size="3" value="<?php echo $o['dashboard_referers']; ?>" /> <?php _e('How many referrers do you want to see on dashboard page?', 'cpd') ?></td>
    470     </tr>
    471     <tr>
    472         <th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Referrers - Days', 'cpd') ?>:</th>
    473         <td><input class="code" type="text" name="cpd_referers_last_days" size="3" value="<?php echo $o['referers_last_days']; ?>" /> <?php _e('How many days do you want look back?', 'cpd') ?></td>
    474     </tr>
    475     <tr>
    476         <th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Local URLs', 'cpd') ?>:</th>
    477         <td><label for="cpd_localref"><input type="checkbox" name="cpd_localref" id="cpd_localref" <?php checked($o['localref'], 1) ?> />  <?php _e('Show local referrers too.', 'cpd') ?> (<?php echo bloginfo('url') ?>/...)</label></td>
    478     </tr>
    479     </table>
    480     </fieldset>
    481    
    482     <?php // lists ?>
    483     <fieldset>
    484     <legend><span class="cpd_icon cpd_settings">&nbsp;</span> <?php _e('Posts') ?> / <?php _e('Pages') ?></legend>
    485     <table class="form-table">
    486     <tr>
    487         <th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Show in lists', 'cpd') ?>:</th>
    488         <td><label for="cpd_show_in_lists"><input type="checkbox" name="cpd_show_in_lists" id="cpd_show_in_lists" <?php checked($o['show_in_lists'], 1) ?> /> <?php _e('Show "Reads per Post" in a new column in post management views.', 'cpd') ?></label></td>
    489     </tr>
    490     </table>
    491     </fieldset>
    492    
    493     <?php // start values ?>
    494     <fieldset>
    495     <legend><span class="cpd_icon cpd_settings">&nbsp;</span> <?php _e('Start Values', 'cpd') ?></legend>
    496     <table class="form-table">
    497     <tr>
    498         <th colspan="2">
    499             <?php _e('Here you can change the date of first count and add a start count.', 'cpd')?>
    500         </th>
    501     </tr>
    502     <tr>
    503         <th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Start date', 'cpd') ?>:</th>
    504         <td><input class="code" type="text" name="cpd_startdate" size="10" value="<?php echo $o['startdate']; ?>" /> <?php _e('Your old Counter starts at?', 'cpd') ?> [yyyy-mm-dd]</td>
    505     </tr>
    506     <tr>
    507         <th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Start count', 'cpd') ?>:</th>
    508         <td><input class="code" type="text" name="cpd_startcount" size="10" value="<?php echo $o['startcount']; ?>" /> <?php _e('Add this value to "Total visitors".', 'cpd') ?></td>
    509     </tr>
    510     <tr>
    511         <th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Start count', 'cpd') ?>:</th>
    512         <td><input class="code" type="text" name="cpd_startreads" size="10" value="<?php echo $o['startreads']; ?>" /> <?php _e('Add this value to "Total reads".', 'cpd') ?></td>
    513     </tr>
    514     </table>
    515     </fieldset>
    516    
    517     <?php // stylesheet ?>
    518     <fieldset>
    519     <legend><span class="cpd_icon cpd_settings">&nbsp;</span> <?php _e('Stylesheet', 'cpd') ?></legend>
    520     <table class="form-table">
    521     <tr>
    522         <th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('NO Stylesheet in Frontend', 'cpd') ?>:</th>
    523         <td><label for="cpd_no_front_css"><input type="checkbox" name="cpd_no_front_css" id="cpd_no_front_css" <?php checked($o['no_front_css'], 1) ?> /> <?php _e('Do not load the stylesheet "counter.css" in frontend.', 'cpd') ?></label></td>
    524     </tr>
    525     </table>
    526     </fieldset>
    527    
    528     <?php // backup ?>
    529     <fieldset>
    530     <legend><span class="cpd_icon cpd_settings">&nbsp;</span> <?php _e('Backup', 'cpd') ?></legend>
    531     <table class="form-table">
    532     <tr>
    533         <th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Entries per pass', 'cpd') ?>:</th>
    534         <td>
    535             <input class="code" type="text" name="cpd_backup_part" size="10" value="<?php echo $o['backup_part']; ?>" />
    536             <?php _e('How many entries should be saved per pass? Default: 10000', 'cpd') ?><br/>
    537         </td>
    538     </tr>
    539     <tr>
    540         <td colspan="2">
    541             <?php _e('If your PHP memory limit less then 50 MB and you get a white page or error messages try a smaller value.', 'cpd') ?>
    542         </td>
    543     </tr>
    544     </table>
    545     </fieldset>
    546    
    547     <?php // debug ?>
    548     <fieldset>
    549         <legend style="color:red"><span class="cpd_icon cpd_settings">&nbsp;</span> <?php _e('Debug mode', 'cpd') ?></legend>
    550         <p style="margin-top:15px;margin-left:10px">
    551             <label for="cpd_debug"><input type="checkbox" name="cpd_debug" id="cpd_debug" <?php checked($o['debug'], 1) ?> /> <?php _e('Show debug informations at the bottom of all pages.', 'cpd') ?></label>
    552         </p>
    553     </fieldset>
    554    
    555     <input type="hidden" name="do" value="cpd_update" />
    556     <input type="submit" name="update" value="<?php _e('Update options', 'cpd') ?>" class="button-primary" style="margin-left: 5px;" />
    557     </form>
    558    
    559     <div id="cpdtools" class="postbox" style="margin-top:40px">
    560         <h3><span class="cpd_icon cpd_settings">&nbsp;</span> <a href="#cpdsettings"><?php _e('Settings') ?></a> |
    561             <span class="cpd_icon cpd_tools">&nbsp;</span> <?php _e('Tools') ?></h3>
    562     </div>
    563390
    564391    <?php // mass bots ?>
     
    575402    <h3><span class="cpd_icon cpd_massbots">&nbsp;</span> <?php _e('Mass Bots', 'cpd') ?></h3>
    576403    <div class="inside">
    577         <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>#cpdtools">
     404        <form method="post" action="<?php echo $mysiteurl ?>#cpdtools">
    578405        <p>
    579406            <?php printf(__('Show all IPs with more than %s page views per day', 'cpd'), $limit_input) ?>
     
    582409        </form>
    583410       
    584         <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
     411        <form method="post" action="<?php echo $mysiteurl ?>">
    585412        <table class="widefat post">
    586413        <thead>
     
    634461    <h3><span class="cpd_icon cpd_backup">&nbsp;</span> <?php _e('Backup', 'cpd') ?></h3>
    635462    <div class="inside">
    636         <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
     463        <form method="post" action="<?php echo $mysiteurl ?>">
    637464        <p>
    638465            <?php printf(__('Create a backup of the counter table %s in your wp-content directory (if writable).', 'cpd'), '<code>'.$wpdb->cpd_counter.'</code>') ?>
     
    646473        </p>
    647474        </form>
    648         <p>
    649475        <?php
    650476        if ( is_writable(WP_CONTENT_DIR) )
    651477        {
    652             $nonce = wp_create_nonce('cpdnonce');
    653            
    654478            // delete file?
    655479            if ( isset($_GET['cpddel']) && isset($_GET['_wpnonce']) && wp_verify_nonce($_GET['_wpnonce'], 'cpdnonce') )
     
    665489            $d->close();
    666490            sort($dirarray); // sort by names on all servers
     491            $captionO = 0;
     492            $captionB = 0;
     493            $link = '<td><a href="?page=count-per-day/counter-options.php&amp;_wpnonce='.$nonce.'&amp;';
     494            echo "<table class='cpd_backups'>\n";
    667495            foreach ( $dirarray as $entry )
    668496                if ( preg_match('/count_per_day|cpd_counter/i', $entry) )
    669                     echo '<a href="?page=count-per-day/counter-options.php&amp;_wpnonce='.$nonce.'&amp;cpddel='.$entry.'"
    670                         style="color:red;font-weight:bold;text-decoration:none" title="'.__('Delete').'"
    671                         onclick="return confirm(\''.sprintf(__('Delete the backup file %s ?','cpd'), '\n'.$entry).'\')">X</a>
    672                         <a href="'.content_url().'/'.$entry.'" style="text-decoration:none">'.$entry.'</a> - '.$count_per_day->formatbytes(filesize(WP_CONTENT_DIR.'/'.$entry)).'<br/>';
     497                {
     498                    if ( strpos($entry, 'count_per_day_options') !== false && !$captionO )
     499                    {
     500                        echo '<tr><td colspan="5" style="font-weight:bold;background:#EAEAEA">'.__('Settings and collections', 'cpd')."</td></tr>\n";
     501                        $captionO = 1;
     502                    }
     503                    else if ( strpos($entry, 'cpd_counter_backup') !== false && !$captionB )
     504                    {
     505                        echo '<tr><td colspan="5" style="font-weight:bold;background:#EAEAEA">'.sprintf(__('Counter table %s', 'cpd'), "<code>$wpdb->cpd_counter</code>")."</td></tr>\n";
     506                        $captionB = 1;
     507                    }
     508                    echo '<tr><td><a href="'.content_url().'/'.$entry.'" style="text-decoration:none">'.$entry."</a></td>\n";
     509                    echo '<td style="text-align:right">'.$count_per_day->formatbytes(filesize(WP_CONTENT_DIR.'/'.$entry))."&nbsp; </td>\n";
     510                    if ( strpos($entry, 'cpd_counter_backup') !== false )
     511                        echo $link.'cpdadding='.$entry.'" class="cpd_green"
     512                            onclick="return confirm(\''.sprintf(__('Add data from the backup file %s to existing counter table?','cpd'), '\n'.$entry).'\')" title="'.__('Add', 'cpd').'">+</a></td>'."\n";
     513                    else
     514                        echo "<td>&nbsp;</td>\n";
     515                    echo $link.'cpdrestore='.$entry.'" class="cpd_green"
     516                        onclick="return confirm(\''.sprintf(__('Restore data from the backup file %s ?','cpd'), '\n'.$entry).'\')" title="'.__('Restore').'">&uArr;</a></td>'."\n";
     517                    echo $link.'cpddel='.$entry.'"
     518                        style="color:red;font-weight:bold" title="'.__('Delete').'"
     519                        onclick="return confirm(\''.sprintf(__('Delete the backup file %s ?','cpd'), '\n'.$entry).'\')">X</a></td>'."\n";
     520                    echo "</tr>\n";
     521                }
     522            echo "</table>\n";
     523            ?>
     524            <p>
     525                <span class="cpd_green">+</span> <?php _e('add backup to current counter table', 'cpd') ?><br/>
     526                <span class="cpd_green">&uArr;</span> <?php _e('replace current counter table with with backup', 'cpd') ?><br/>
     527                <span style="color:red;font-weight:bold">X&nbsp;</span> <?php _e('delete backup file', 'cpd') ?>
     528            </p>
     529            <?php
    673530        }   
    674531        ?>
    675         </p>
    676532    </div>
    677533    </div>
     
    685541                <?php _e('You can clean the counter table by delete the "spam data".<br />If you add new bots above the old "spam data" keeps in the database.<br />Here you can run the bot filter again and delete the visits of the bots.', 'cpd') ?>
    686542            </p>
    687            
    688             <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
     543            <form method="post" action="<?php echo $mysiteurl ?>">
    689544            <p>
    690545                <input type="hidden" name="do" value="cpd_clean" />
     
    692547            </p>
    693548            </form>
     549           
     550            <form method="post" action="<?php echo $mysiteurl ?>">
     551            <p>
     552                <?php printf(__('Delete search strings older than %s days.', 'cpd'), '<input type="text" size="2" name="cpd_keepsearch" value="14" class="code" />') ?><br/>
     553                <input type="hidden" name="do" value="cpd_searchclean" />
     554                <input type="submit" name="clean" value="<?php _e('Delete search strings', 'cpd') ?>" class="button" />
     555            </p>
     556            </form>
    694557        </div>
    695558        </div>
     
    700563    <h3><span class="cpd_icon cpd_collection">&nbsp;</span> <?php _e('Collect old data', 'cpd') ?></h3>
    701564    <div class="inside">
    702         <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
     565        <form method="post" action="<?php echo $mysiteurl ?>">
    703566        <p>
    704567            <?php
     
    736599    </div>
    737600
    738     <!-- Plugin page -->
    739     <div class="postbox">
    740     <h3><span class="cpd_icon cpd_help">&nbsp;</span> <?php _e('Support', 'cpd') ?></h3>
    741     <div class="inside">
    742         <?php $count_per_day->cpdInfo() ?>
    743     </div>
    744     </div>
    745 
    746601    </div> <!-- left column -->
    747602   
     
    757612        </p>
    758613        <?php if ( $cpd_geoip ) { ?>
    759             <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
     614            <form method="post" action="<?php echo $mysiteurl ?>">
    760615            <p>
    761616            <input type="hidden" name="do" value="cpd_countries" />
     
    769624            echo '<p>'.__('Download a new version of GeoIP.dat file.', 'cpd').'</p>';
    770625            ?>
    771             <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
     626            <form method="post" action="<?php echo $mysiteurl ?>">
    772627            <p>
    773628            <input type="hidden" name="do" value="cpd_countrydb" />
     
    790645            <?php _e('Here you can start the installation functions manually.<br/>Same as deactivate and reactivate the plugin.', 'cpd') ?>
    791646        </p>
    792         <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
     647        <form method="post" action="<?php echo $mysiteurl ?>">
    793648        <p>
    794649            <input type="hidden" name="do" value="cpd_activate" />
     
    807662        </p>
    808663       
    809         <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
     664        <form method="post" action="<?php echo $mysiteurl ?>">
    810665        <p>
    811666            <input type="hidden" name="do" value="cpd_reset" />
     
    818673   
    819674    <!-- Uninstall -->
    820     <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
     675    <form method="post" action="<?php echo $mysiteurl ?>">
    821676    <div class="postbox">
    822677    <h3><span class="cpd_icon cpd_uninstall">&nbsp;</span> <?php _e('Uninstall', 'cpd') ?></h3>
     
    839694    </div>
    840695    </form>
    841    
     696
     697    <!-- Plugin page -->
     698    <div class="postbox">
     699    <h3><span class="cpd_icon cpd_help">&nbsp;</span> <?php _e('Support', 'cpd') ?></h3>
     700    <div class="inside">
     701        <?php $count_per_day->cpdInfo() ?>
     702    </div>
     703    </div>
     704
    842705    </div> <!-- right column -->
    843     <div class="clear"></div>
     706   
     707    <div class="clear" id="cpdsettings" style="margin-bottom:41px"></div>
     708
     709    <h2 class="nav-tab-wrapper" style="padding-bottom:0;font-size:23px;">
     710        <img src="<?php echo $count_per_day->img('cpd_menu.gif') ?>" alt="" style="width:24px;height:24px" /> Count per Day
     711        <a class="nav-tab" href="#cpdtools"><span class="cpd_icon cpd_tools">&nbsp;</span> <?php _e('Tools') ?></a>
     712        <a class="nav-tab nav-tab-active" href="#cpdsettings"><span class="cpd_icon cpd_settings">&nbsp;</span> <?php _e('Settings') ?></a>
     713    </h2>
     714
     715
     716    <form method="post" action="<?php echo $mysiteurl ?>">
     717       
     718    <?php // counter ?>
     719    <fieldset>
     720    <legend><span class="cpd_icon cpd_settings">&nbsp;</span> <?php _e('Counter', 'cpd') ?></legend>
     721   
     722    <table class="form-table">
     723    <tr>
     724        <th scope="row" style="vertical-align:middle;white-space:nowrap"><?php _e('Online time', 'cpd') ?>:</th>
     725        <td><input class="code" type="text" name="cpd_onlinetime" size="3" value="<?php echo $o['onlinetime']; ?>" /> <?php _e('Seconds for online counter. Used for "Visitors online" on dashboard page.', 'cpd') ?></td>
     726    </tr>
     727    <tr>
     728        <th scope="row" style="vertical-align:middle;white-space:nowrap"><?php _e('Logged on Users', 'cpd') ?>:</th>
     729        <td>
     730            <label for="cpd_user"><input type="checkbox" name="cpd_user" id="cpd_user" <?php if($o['user']==1) echo 'checked="checked"'; ?> /> <?php _e('count too', 'cpd') ?></label>
     731            - <?php _e('until User Level', 'cpd') ?>
     732            <select name="cpd_user_level">
     733                <option value="10" <?php selected($o['user_level'], 10) ?>><?php echo translate_user_role('Administrator') ?> (10)</option>
     734                <option value="7" <?php selected($o['user_level'], 7) ?>><?php echo translate_user_role('Editor') ?> (7)</option>
     735                <option value="2" <?php selected($o['user_level'], 2) ?>><?php echo translate_user_role('Author') ?> (2)</option>
     736                <option value="1" <?php selected($o['user_level'], 1) ?>><?php echo translate_user_role('Contributor') ?> (1)</option>
     737                <option value="0" <?php selected($o['user_level'], 0) ?>><?php echo translate_user_role('Subscriber') ?> (0)</option>
     738            </select>
     739        </td>
     740    </tr>
     741    <tr>
     742        <th scope="row" style="vertical-align:middle;white-space:nowrap"><?php _e('Auto counter', 'cpd') ?>:</th>
     743        <td><label for="cpd_autocount"><input type="checkbox" name="cpd_autocount" id="cpd_autocount" <?php checked($o['autocount'], 1) ?> /> <?php _e('Counts automatically single-posts and pages, no changes on template needed.', 'cpd') ?></label></td>
     744    </tr>
     745    <tr>
     746        <th scope="row" style="vertical-align:middle;white-space:nowrap"><?php _e('Bots to ignore', 'cpd') ?>:</th>
     747        <td><textarea name="cpd_bots" cols="50" rows="10"><?php echo $o['bots']; ?></textarea></td>
     748    </tr>
     749    <tr>
     750        <th scope="row" style="vertical-align:middle;white-space:nowrap"><?php _e('Anonymous IP', 'cpd') ?>:</th>
     751        <td><label for="cpd_anoip"><input type="checkbox" name="cpd_anoip" id="cpd_anoip" <?php checked($o['anoip'], 1) ?> /> a.b.c.d &gt; a.b.c.x</label></td>
     752    </tr>
     753    <tr>
     754        <th scope="row" style="vertical-align:middle;white-space:nowrap"><?php _e('Cache', 'cpd') ?> (beta):</th>
     755        <td><label for="cpd_ajax"><input type="checkbox" name="cpd_ajax" id="cpd_ajax" <?php checked($o['ajax'], 1) ?> /> <?php _e('I use a cache plugin. Count these visits with ajax.', 'cpd') ?></label></td>
     756    </tr>
     757    <tr>
     758        <th scope="row" style="vertical-align:middle;white-space:nowrap"><?php _e('Clients and referrers', 'cpd') ?>:</th>
     759        <td>
     760            <label for="cpd_referers"><input type="checkbox" name="cpd_referers" id="cpd_referers" <?php checked($o['referers'], 1) ?> />
     761            <?php _e('Save and show clients and referrers.<br />Needs a lot of space in the database but gives you more detailed informations of your visitors.', 'cpd') ?> (1000000 <?php _e('Reads', 'cpd') ?> ~ 130 MB)</label><br/>
     762            <label for="cpd_referers_cut"><input type="checkbox" name="cpd_referers_cut" id="cpd_referers_cut" <?php checked($o['referers_cut'], 1) ?> />
     763            <?php _e('Save URL only, no query string.', 'cpd') ?> <code>http://example.com/webhp?hl=de#sclient=psy&amp;hl=de...</code> &gt; <code>http://example.com/webhp</code></label>
     764        </td>
     765    </tr>
     766    </table>
     767    </fieldset>
     768   
     769    <?php // dashboard ?>
     770    <fieldset>
     771    <legend><span class="cpd_icon cpd_settings">&nbsp;</span> <?php _e('Dashboard') ?></legend>
     772   
     773    <script type="text/javascript">
     774    function checkcustom()
     775    {
     776        var b = document.getElementById('cpd_whocansee');
     777        var i = document.getElementById('cpd_whocansee_custom_div');
     778        if ( b.value == 'custom' )
     779            i.style.display = 'block';
     780        else
     781            i.style.display = 'none';
     782    }
     783    </script>
     784   
     785    <table class="form-table">
     786    <tr>
     787        <th scope="row" style="vertical-align:middle;white-space:nowrap"><?php _e('Who can see it', 'cpd') ?>:</th>
     788        <td>
     789            <?php $cus = (in_array($o['whocansee'], array('manage_options','manage_links','publish_posts','edit_posts','read'))) ? 0 : 1 ?>
     790            <select id="cpd_whocansee" name="cpd_whocansee" onchange="checkcustom()">
     791                <option value="manage_options" <?php selected($o['whocansee'], 'manage_options') ?>><?php echo translate_user_role('Administrator') ?> </option>
     792                <option value="manage_links" <?php selected($o['whocansee'], 'manage_links') ?>><?php echo translate_user_role('Editor') ?></option>
     793                <option value="publish_posts" <?php selected($o['whocansee'], 'publish_posts') ?>><?php echo translate_user_role('Author') ?></option>
     794                <option value="edit_posts" <?php selected($o['whocansee'], 'edit_posts') ?>><?php echo translate_user_role('Contributor') ?></option>
     795                <option value="read" <?php selected($o['whocansee'], 'read') ?>><?php echo translate_user_role('Subscriber') ?></option>
     796                <option value="custom" <?php selected($cus) ?>>- <?php echo _e('custom', 'cpd') ?> -</option>
     797            </select>
     798            <?php _e('and higher are allowed to see the statistics page.', 'cpd') ?>
     799            <div id="cpd_whocansee_custom_div" <?php if (!$cus) echo 'style="display:none"' ?>>
     800            <?php printf(__('Set the %s capability %s a user need:', 'cpd'), '<a href="https://codex.wordpress.org/Roles_and_Capabilities">', '</a>'); ?>
     801                <input type="text" name="cpd_whocansee_custom" value="<?php echo $o['whocansee'] ?>" />
     802            </div>
     803        </td>
     804    </tr>
     805    <tr>
     806        <th scope="row" style="vertical-align:middle;white-space:nowrap"><?php _e('Visitors per post', 'cpd') ?>:</th>
     807        <td><input class="code" type="text" name="cpd_dashboard_posts" size="3" value="<?php echo $o['dashboard_posts']; ?>" /> <?php _e('How many posts do you want to see on dashboard page?', 'cpd') ?></td>
     808    </tr>
     809    <tr>
     810        <th scope="row" style="vertical-align:middle;white-space:nowrap"><?php _e('Latest Counts - Posts', 'cpd') ?>:</th>
     811        <td><input class="code" type="text" name="cpd_dashboard_last_posts" size="3" value="<?php echo $o['dashboard_last_posts']; ?>" /> <?php _e('How many posts do you want to see on dashboard page?', 'cpd') ?></td>
     812    </tr>
     813    <tr>
     814        <th scope="row" style="vertical-align:middle;white-space:nowrap"><?php _e('Latest Counts - Days', 'cpd') ?>:</th>
     815        <td><input class="code" type="text" name="cpd_dashboard_last_days" size="3" value="<?php echo $o['dashboard_last_days']; ?>" /> <?php _e('How many days do you want look back?', 'cpd') ?></td>
     816    </tr>
     817    <tr>
     818        <th scope="row" style="vertical-align:middle;white-space:nowrap"><?php _e('Chart - Days', 'cpd') ?>:</th>
     819        <td><input class="code" type="text" name="cpd_chart_days" size="3" value="<?php echo $o['chart_days']; ?>" /> <?php _e('How many days do you want look back?', 'cpd') ?></td>
     820    </tr>
     821    <tr>
     822        <th scope="row" style="vertical-align:middle;white-space:nowrap"><?php _e('Chart - Height', 'cpd') ?>:</th>
     823        <td><input class="code" type="text" name="cpd_chart_height" size="3" value="<?php echo $o['chart_height']; ?>" /> px - <?php _e('Height of the biggest bar', 'cpd') ?></td>
     824    </tr>
     825    <?php if ($cpd_geoip) { ?>
     826    <tr>
     827        <th scope="row" style="vertical-align:middle;white-space:nowrap"><?php _e('Countries', 'cpd') ?>:</th>
     828        <td><input class="code" type="text" name="cpd_countries" size="3" value="<?php echo $o['countries']; ?>" /> <?php _e('How many countries do you want to see on dashboard page?', 'cpd') ?></td>
     829    </tr>
     830    <?php } ?>
     831    <tr>
     832        <th scope="row" style="vertical-align:middle;white-space:nowrap"><?php _e('Browsers', 'cpd') ?>:</th>
     833        <td><input class="code" type="text" name="cpd_clients" size="50" value="<?php echo $o['clients']; ?>" /> <?php _e('Substring of the user agent, separated by comma', 'cpd') ?></td>
     834    </tr>       
     835    <tr>
     836        <th scope="row" style="vertical-align:middle;white-space:nowrap"><?php _e('Search strings', 'cpd') ?>/<?php _e('Referrers - Entries', 'cpd') ?>:</th>
     837        <td><input class="code" type="text" name="cpd_dashboard_referers" size="3" value="<?php echo $o['dashboard_referers']; ?>" /> <?php _e('How many referrers do you want to see on dashboard page?', 'cpd') ?></td>
     838    </tr>
     839    <tr>
     840        <th scope="row" style="vertical-align:middle;white-space:nowrap"><?php _e('Search strings', 'cpd') ?>/<?php _e('Referrers - Days', 'cpd') ?>:</th>
     841        <td><input class="code" type="text" name="cpd_referers_last_days" size="3" value="<?php echo $o['referers_last_days']; ?>" /> <?php _e('How many days do you want look back?', 'cpd') ?></td>
     842    </tr>
     843    <tr>
     844        <th scope="row" style="vertical-align:middle;white-space:nowrap"><?php _e('Local URLs', 'cpd') ?>:</th>
     845        <td><label for="cpd_localref"><input type="checkbox" name="cpd_localref" id="cpd_localref" <?php checked($o['localref'], 1) ?> />  <?php _e('Show local referrers too.', 'cpd') ?> (<?php echo bloginfo('url') ?>/...)</label></td>
     846    </tr>
     847    </table>
     848    </fieldset>
     849   
     850    <?php // lists ?>
     851    <fieldset>
     852    <legend><span class="cpd_icon cpd_settings">&nbsp;</span> <?php _e('Posts') ?> / <?php _e('Pages') ?></legend>
     853    <table class="form-table">
     854    <tr>
     855        <th scope="row" style="vertical-align:middle;white-space:nowrap"><?php _e('Show in lists', 'cpd') ?>:</th>
     856        <td><label for="cpd_show_in_lists"><input type="checkbox" name="cpd_show_in_lists" id="cpd_show_in_lists" <?php checked($o['show_in_lists'], 1) ?> /> <?php _e('Show "Reads per Post" in a new column in post management views.', 'cpd') ?></label></td>
     857    </tr>
     858    </table>
     859    </fieldset>
     860   
     861    <?php // start values ?>
     862    <fieldset>
     863    <legend><span class="cpd_icon cpd_settings">&nbsp;</span> <?php _e('Start Values', 'cpd') ?></legend>
     864    <table class="form-table">
     865    <tr>
     866        <th colspan="2">
     867            <?php _e('Here you can change the date of first count and add a start count.', 'cpd')?>
     868        </th>
     869    </tr>
     870    <tr>
     871        <th scope="row" style="vertical-align:middle;white-space:nowrap"><?php _e('Start date', 'cpd') ?>:</th>
     872        <td><input class="code" type="text" name="cpd_startdate" size="10" value="<?php echo $o['startdate']; ?>" /> <?php _e('Your old Counter starts at?', 'cpd') ?> [yyyy-mm-dd]</td>
     873    </tr>
     874    <tr>
     875        <th scope="row" style="vertical-align:middle;white-space:nowrap"><?php _e('Start count', 'cpd') ?>:</th>
     876        <td><input class="code" type="text" name="cpd_startcount" size="10" value="<?php echo $o['startcount']; ?>" /> <?php _e('Add this value to "Total visitors".', 'cpd') ?></td>
     877    </tr>
     878    <tr>
     879        <th scope="row" style="vertical-align:middle;white-space:nowrap"><?php _e('Start count', 'cpd') ?>:</th>
     880        <td><input class="code" type="text" name="cpd_startreads" size="10" value="<?php echo $o['startreads']; ?>" /> <?php _e('Add this value to "Total reads".', 'cpd') ?></td>
     881    </tr>
     882    </table>
     883    </fieldset>
     884   
     885    <?php // stylesheet ?>
     886    <fieldset>
     887    <legend><span class="cpd_icon cpd_settings">&nbsp;</span> <?php _e('Stylesheet', 'cpd') ?></legend>
     888    <table class="form-table">
     889    <tr>
     890        <th scope="row" style="vertical-align:middle;white-space:nowrap"><?php _e('NO Stylesheet in Frontend', 'cpd') ?>:</th>
     891        <td><label for="cpd_no_front_css"><input type="checkbox" name="cpd_no_front_css" id="cpd_no_front_css" <?php checked($o['no_front_css'], 1) ?> /> <?php _e('Do not load the stylesheet "counter.css" in frontend.', 'cpd') ?></label></td>
     892    </tr>
     893    </table>
     894    </fieldset>
     895   
     896    <?php // backup ?>
     897    <fieldset>
     898    <legend><span class="cpd_icon cpd_settings">&nbsp;</span> <?php _e('Backup', 'cpd') ?></legend>
     899    <table class="form-table">
     900    <tr>
     901        <th scope="row" style="vertical-align:middle;white-space:nowrap"><?php _e('Entries per pass', 'cpd') ?>:</th>
     902        <td>
     903            <input class="code" type="text" name="cpd_backup_part" size="10" value="<?php echo $o['backup_part']; ?>" />
     904            <?php _e('How many entries should be saved per pass? Default: 10000', 'cpd') ?><br/>
     905        </td>
     906    </tr>
     907    <tr>
     908        <td colspan="2">
     909            <?php _e('If your PHP memory limit less then 50 MB and you get a white page or error messages try a smaller value.', 'cpd') ?>
     910        </td>
     911    </tr>
     912    </table>
     913    </fieldset>
     914   
     915    <?php // debug ?>
     916    <fieldset>
     917        <legend style="color:red"><span class="cpd_icon cpd_settings">&nbsp;</span> <?php _e('Debug mode', 'cpd') ?></legend>
     918        <p style="margin-top:15px;margin-left:10px">
     919            <label for="cpd_debug"><input type="checkbox" name="cpd_debug" id="cpd_debug" <?php checked($o['debug'], 1) ?> /> <?php _e('Show debug informations at the bottom of all pages.', 'cpd') ?></label>
     920        </p>
     921    </fieldset>
     922   
     923    <input type="hidden" name="do" value="cpd_update" />
     924    <input type="submit" name="update" value="<?php _e('Update options', 'cpd') ?>" class="button-primary" style="margin-left: 5px;" />
     925    </form>
    844926   
    845927    </div><!-- poststuff -->
  • count-per-day/trunk/counter.css

    r421091 r571926  
    1111
    1212/* settings */
     13
     14h2 .cpd_icon {
     15    vertical-align: top;
     16    margin-top:5px;
     17}
     18
     19.cpd_backups {
     20    width: 100%;
     21    border: 1px #ccc solid;
     22    border-collapse: collapse;
     23}
     24
     25.cpd_backups tr:nth-child(2n) {
     26    background: #fff;
     27}
     28
     29.cpd_backups td {
     30     border-bottom: 1px #ccc solid;
     31}
     32
     33.cpd_backups a {
     34     text-decoration: none;
     35}
     36
     37.cpd_green {
     38    font-size: 16px;
     39    font-weight: bold;
     40    color: green;
     41    margin-right: 3px;
     42}
    1343
    1444.cpd_halfsize {
     
    115145
    116146.cpd-dashboard .inside {
    117     padding: 5px;
     147    padding: 0 5px;
     148}
     149
     150.cpd-dashboard .postbox {
     151    min-width: 0 !important;
    118152}
    119153
     
    396430.cpd-flag-md{background-position:0 -1547px;}
    397431.cpd-flag-np{background-position:0 -1560px;}
     432.cpd-flag-bs{background-position:0 -1573px;}
     433.cpd-flag-cm{background-position:0 -1586px;}
     434.cpd-flag-mn{background-position:0 -1599px;}
     435.cpd-flag-kz{background-position:0 -1612px;}
  • count-per-day/trunk/counter.php

    r493093 r571926  
    33Plugin Name: Count Per Day
    44Plugin URI: http://www.tomsdimension.de/wp-plugins/count-per-day
    5 Description: Counter, shows reads per page; today, yesterday, last week, last months ... on dashboard, per shortcode or in widget.
    6 Version: 3.1.1
     5Description: Counter, shows reads and visitors per page; today, yesterday, last week, last months ... on dashboard, per shortcode or in widget.
     6Version: 3.2
    77License: Postcardware
    88Author: Tom Braider
     
    1111
    1212$cpd_dir_name = 'count-per-day';
    13 $cpd_version = '3.1.1';
     13$cpd_version = '3.2';
    1414
    1515$cpd_path = str_replace('/', DIRECTORY_SEPARATOR, ABSPATH.PLUGINDIR.'/'.$cpd_dir_name.'/');
     
    103103    if ( !$isBot && $countUser && isset($page) )
    104104    {
    105         $userip = $this->anonymize_ip($_SERVER['REMOTE_ADDR']);
     105        if (isset($_SERVER['HTTP_X_FORWARDED_FOR']))
     106        {
     107            // get real IP, not local IP
     108            $ips = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);
     109            $real_ip = $ips[0];
     110        }
     111        else
     112            $real_ip = $_SERVER['REMOTE_ADDR'];
     113       
     114        $userip = $this->anonymize_ip($real_ip);
    106115        $client = ($this->options['referers']) ? $_SERVER['HTTP_USER_AGENT'] : '';
    107116        $referer = ($this->options['referers'] && isset($_SERVER['HTTP_REFERER'])) ? $_SERVER['HTTP_REFERER'] : '';
     
    111120       
    112121        // new visitor on page?
    113         $count = $this->mysqlQuery('var', $wpdb->prepare("SELECT COUNT(*) FROM $wpdb->cpd_counter WHERE ip=INET_ATON(%s) AND date=%s AND page=%d", $userip, $date, $page), 'count check '.__LINE__);
     122        $count = $this->mysqlQuery('var', $wpdb->prepare("SELECT COUNT(*) FROM $wpdb->cpd_counter WHERE ip=$this->aton(%s) AND date=%s AND page=%d", $userip, $date, $page), 'count check '.__LINE__);
    114123        if ( !$count )
    115124        {
     
    121130                $country = strtolower(cpd_geoip_country_code_by_addr($gi, $userip));
    122131                $this->mysqlQuery('', $wpdb->prepare("INSERT INTO $wpdb->cpd_counter (page, ip, client, date, country, referer)
    123                 VALUES (%s, INET_ATON(%s), %s, %s, %s, %s)", $page, $userip, $client, $date, $country, $referer), 'count insert '.__LINE__);
     132                VALUES (%s, $this->aton(%s), %s, %s, %s, %s)", $page, $userip, $client, $date, $country, $referer), 'count insert '.__LINE__);
    124133            }
    125134            else
    126135                // without country
    127136                $this->mysqlQuery('', $wpdb->prepare("INSERT INTO $wpdb->cpd_counter (page, ip, client, date, referer)
    128                 VALUES (%s, INET_ATON(%s), %s, %s, %s)", $page, $userip, $client, $date, $referer), 'count insert '.__LINE__);
     137                VALUES (%s, $this->aton(%s), %s, %s, %s)", $page, $userip, $client, $date, $referer), 'count insert '.__LINE__);
    129138        }
    130139        // online counter
    131         $oc = get_option('count_per_day_online', array()); 
     140        $oc = get_option('count_per_day_online', array());
    132141        $oc[$userip] = array( time(), $page );
    133142        update_option('count_per_day_online', $oc);
     143    }
     144   
     145    // save searchstring if exists
     146    $s = $this->getSearchString();
     147    if ($s)
     148    {
     149        $search = get_option('count_per_day_search', array());
     150        if (isset($search[$date]))
     151        {
     152            if (!in_array($s, $search[$date]))
     153                $search[$date][] = $s;
     154        }
     155        else
     156            $search[$date] = array($s);
     157        update_option('count_per_day_search', $search);
     158        unset($search);
    134159    }
    135160}
     
    678703        LIMIT   %d",
    679704        $date, $limit);
    680     $r =  '<small>'.sprintf(__('The %s most visited posts in last %s days:', 'cpd'), $limit, $days).'<br/>&nbsp;</small>';
     705    $r =  '<small>'.sprintf(__('The %s most visited posts in last %s days:', 'cpd'), $limit, $days).'</small>';
    681706    $r .= $this->getUserPer_SQL( $sql, 'getMostVisitedPosts', $frontend );
    682707    if ($return) return $r; else echo $r;
     
    819844    $all = max(1, (int) $res);
    820845    $rest = 100;
    821     $r = '<ul id="cpd_clients" class="cpd_front_list">';
    822846    foreach ($clients as $c)
    823847    {
    824848        $c = trim($c);
    825         $count = $this->mysqlQuery('var', "SELECT COUNT(*) FROM $wpdb->cpd_counter WHERE client like '%%".$c."%%'", 'getClients_'.$c.'_ '.__LINE__);
     849        $sql = "SELECT COUNT(*) FROM $wpdb->cpd_counter WHERE client LIKE '%%".$c."%%'";
     850        if ( strtolower($c) == 'safari' ) // don't count chrome too while counting safari
     851            $sql .= " AND client NOT LIKE '%%chrome%%'";
     852        $count = $this->mysqlQuery('var', $sql, 'getClients_'.$c.'_ '.__LINE__);
    826853        $percent = number_format(100 * $count / $all, 0);
    827854        $rest -= $percent;
    828         $r .= '<li class="cpd-client-logo cpd-client-'.strtolower($c).'">'.$c.' <b>'.$percent.' %</b></li>';
     855        $cl_percent[] = $percent;
     856        $cl_name[] = $c;
    829857    }
    830858    if ( $rest > 0 )
    831         $r .= '<li>'.__('Other', 'cpd').' <b>'.$rest.' %</b></li>';
     859    {
     860        $cl_percent[] = $rest;
     861        $cl_name[] = __('Other', 'cpd');
     862    }
     863    array_multisort($cl_percent, SORT_NUMERIC, SORT_DESC, $cl_name);
     864    $r = '<ul id="cpd_clients" class="cpd_front_list">';
     865    for ($i = 0; $i < count($cl_percent); $i++)
     866    {
     867        $r .= '<li class="cpd-client-logo cpd-client-'.strtolower($cl_name[$i]).'">'.$cl_name[$i].' <b>'.$cl_percent[$i].' %</b></li>';     
     868    }
    832869    $r .= '</ul>';
    833    
     870
    834871    $res = $this->mysqlQuery('var', "SELECT MIN(date) FROM ".$wpdb->cpd_counter, 'getClients_date '.__LINE__);
    835872    $r .= '<small>'.__('Counter starts on', 'cpd').': '.mysql2date(get_option('date_format'), $res ).'</small>';
     
    853890    $localref = ($this->options['localref']) ? '' : " AND referer NOT LIKE '".get_bloginfo('url')."%%' ";
    854891    $res = $this->mysqlQuery('rows', "SELECT COUNT(*) count, referer FROM $wpdb->cpd_counter WHERE referer > '' $dayfiltre $localref GROUP BY referer ORDER BY count DESC LIMIT $limit", 'getReferers '.__LINE__);
    855     $r =  '<small>'.sprintf(__('The %s referrers in last %s days:', 'cpd'), $limit, $days).'<br/>&nbsp;</small>';
     892    $r =  '<small>'.sprintf(__('The %s referrers in last %s days:', 'cpd'), $limit, $days).'</small>';
    856893    $r .= '<ul id="cpd_referrers" class="cpd_front_list">';
    857894    if ($res)
     
    859896        {
    860897            $ref =  str_replace('&', '&amp;', $row->referer);
    861             $ref2 = str_replace('http://', '', $ref);
     898            $ref2 = str_replace(array('http://', 'https://'), '', $ref);
    862899            $r .= '<li><a href="'.$ref.'">'.$ref2.'</a> <b>'.$row->count.'</b></li>';
    863900        }
     
    956993            $if .= " WHEN ".str_replace('p', '', $id)." THEN $count";
    957994
    958 //      $sql = "
    959 //      SELECT  CASE p.id $if ELSE 0 END AS count, 
    960 //              p.id post_id,
    961 //              p.post_title post,
    962 //              t.name tag_cat_name,
    963 //              t.slug tag_cat_slug,
    964 //              x.taxonomy tax
    965 //      FROM    $wpdb->posts p,
    966 //              $wpdb->terms t
    967 //      LEFT    JOIN $wpdb->term_taxonomy x
    968 //              ON x.term_id = t.term_id
    969 //      WHERE   p.id IN ($list)
    970 //      OR      -t.term_id IN ($list)
    971 //      GROUP   BY p.id
    972 //      ORDER   BY count DESC";
    973 //          echo $sql;
    974 //      $m = $this->mysqlQuery('rows', $sql, $name.' '.__LINE__);
    975 //      if (!$m)
    976 //          return;
    977 
    978995        $sql = "
    979                 SELECT temp_outer.* FROM (
    980                     SELECT  CASE p.id $if ELSE 0 END count,
    981                             p.id post_id,
    982                             p.post_title post,
    983                             '' tag_cat_name,
    984                             '' tag_cat_slug,
    985                             '' tax
    986                     FROM    $wpdb->posts p
    987                     WHERE   p.id IN ($list)
    988                     GROUP   BY p.id
    989                     UNION
    990                     SELECT  CASE -t.term_id $if ELSE 0 END count,
    991                             t.term_id post_id,
    992                             '' post,
    993                             t.name tag_cat_name,
    994                             t.slug tag_cat_slug,
    995                             x.taxonomy tax
    996                     FROM    $wpdb->terms t
    997                     LEFT    JOIN $wpdb->term_taxonomy x
    998                             ON x.term_id = t.term_id
    999                     WHERE   -t.term_id IN ($list)
    1000                     GROUP   BY t.term_id
    1001                     ) temp_outer
    1002                 ORDER   BY count DESC";
    1003 //      echo $sql;
     996        SELECT temp_outer.* FROM (
     997            SELECT  CASE p.id $if ELSE 0 END count,
     998                    p.id post_id,
     999                    p.post_title post,
     1000                    '' tag_cat_name,
     1001                    '' tag_cat_slug,
     1002                    '' tax
     1003            FROM    $wpdb->posts p
     1004            WHERE   p.id IN ($list)
     1005            GROUP   BY p.id
     1006            UNION
     1007            SELECT  CASE -t.term_id $if ELSE 0 END count,
     1008                    t.term_id post_id,
     1009                    '' post,
     1010                    t.name tag_cat_name,
     1011                    t.slug tag_cat_slug,
     1012                    x.taxonomy tax
     1013            FROM    $wpdb->terms t
     1014            LEFT    JOIN $wpdb->term_taxonomy x
     1015                    ON x.term_id = t.term_id
     1016            WHERE   -t.term_id IN ($list)
     1017            GROUP   BY t.term_id
     1018            ) temp_outer
     1019        ORDER   BY count DESC";
    10041020        $m = $this->mysqlQuery('rows', $sql, $name.' '.__LINE__);
    10051021        if (!$m)
     
    10131029        $r .= '<li>';
    10141030        // link only for editors in backend
    1015         if ( current_user_can('editor') && !$frontend )
    1016 //      if ( isset($userdata->user_level) && (int) $userdata->user_level >= 7 && !$frontend)
     1031        if ( current_user_can('manage_links') && !$frontend )
    10171032        {
    10181033            if ( $row->post_id > 0 )
     
    10201035                    .'<a href="'.$this->dir.'/userperspan.php?page='.$row->post_id.'&amp;KeepThis=true&amp;TB_iframe=true" class="thickbox" title="Count per Day"><img src="'.$this->img('cpd_calendar.png').'" alt="[v]" style="width:12px;height:12px;" /></a> ';
    10211036            else
    1022                 $r .= '<img src="'.$this->img('cpd_trans.png').'" alt="" style="width:25px;height:12px;" /> ';
     1037                $r .= '<img src="'.$this->img('cpd_trans.png').'" alt="" style="width:25px;height:12px;" />';
    10231038        }
    10241039       
    10251040        $r .= '<a href="'.get_bloginfo('url');
    1026 //      if ( $row->post_id < 0 && $row->tax == 'category' )
    1027             // category
    1028 //          $r .= '?cat='.abs($row->post_id).'">- '.$row->tag_cat_name.' ('.__('Category').') -';
    1029 //      else if ( $row->post_id < 0 )
    1030             // tag
    1031 //          $r .= '?tag='.$row->tag_cat_slug.'">- '.$row->tag_cat_name.' ('.__('Tag').') -';
    1032 
    10331041        if ( $row->tax == 'category' )
    10341042            // category
     
    10371045            // tag
    10381046            $r .= '?tag='.$row->tag_cat_slug.'">- '.$row->tag_cat_name.' ('.__('Tag').') -';
    1039            
    1040        
    1041        
    10421047        else if ( $row->post_id == 0 )
    10431048            // homepage
     
    10521057    $r .= '</ul>';
    10531058    return $r;
     1059}
     1060
     1061/**
     1062* shows searchstrings
     1063*/
     1064function getSearches( $limit = 0, $days = 0, $return = false )
     1065{
     1066    $search = get_option('count_per_day_search');
     1067    if (!$search)
     1068        return;
     1069   
     1070    if ( $limit == 0 )
     1071    $limit = $this->options['dashboard_referers'];
     1072    if ( $days == 0 )
     1073    $days = $this->options['referers_last_days'];
     1074   
     1075    // most searched
     1076    $c = array();
     1077    foreach ( $search as $day => $strings )
     1078    {
     1079        foreach ( $strings as $s )
     1080        {
     1081            if (isset($c[$s]))
     1082                $c[$s]++;
     1083            else
     1084                $c[$s] = 1;
     1085        }
     1086    }
     1087    arsort($c);
     1088    $c = array_slice($c, 0, $limit);
     1089    $r = '<small>'.sprintf(__('The %s most searched strings:', 'cpd'), $limit).'</small>';
     1090    $r .= '<ul class="cpd_front_list">';
     1091    foreach ( $c as $string => $count )
     1092        $r .= '<li>'.$string.' <b>'.$count.'</b></li>'."\n";
     1093    $r .= '</ul>';
     1094   
     1095    // last days
     1096    krsort($search);
     1097    $search = array_slice($search, 0, $days);
     1098    $r .= '<small>'.sprintf(__('The search strings of the last %s days:', 'cpd'), $days).'</small>';
     1099    $r .= '<ul class="cpd_front_list">';
     1100    foreach ( $search as $day => $s )
     1101        $r .= '<li><div style="font-weight:bold">'.$day.'</div> '.implode(', ', $s).'</li>'."\n";
     1102    $r .= '</ul>';
     1103    if ($return) return $r; else echo $r;
    10541104}
    10551105
     
    13421392    delete_option('count_per_day_online');
    13431393    delete_option('count_per_day_notes');
     1394    delete_option('count_per_day_posts');
     1395    delete_option('count_per_day_search');
    13441396    $wpdb->query("DELETE FROM $wpdb->usermeta WHERE meta_key LIKE '%_cpd_metaboxes%';");
    13451397}
  • count-per-day/trunk/download.php

    r488883 r571926  
    1515header("Content-Disposition: attachment; filename=\"$name\"");
    1616readfile($file);
    17 
    18 
    19 
    20 
  • count-per-day/trunk/geoip/geoip.php

    r421769 r571926  
    4747   
    4848    $limit = 20;
    49     $res = $count_per_day->mysqlQuery('rows', "SELECT ip, INET_NTOA(ip) realip FROM $wpdb->cpd_counter WHERE country LIKE '' GROUP BY ip LIMIT $limit", 'GeoIP updateDB '.__LINE__);
     49    $res = $count_per_day->mysqlQuery('rows', "SELECT ip, $count_per_day->ntoa(ip) realip FROM $wpdb->cpd_counter WHERE country LIKE '' GROUP BY ip LIMIT $limit", 'GeoIP updateDB '.__LINE__);
    5050    $gi = cpd_geoip_open($cpd_path.'/geoip/GeoIP.dat', GEOIP_STANDARD);
    5151   
     
    8383    global $cpd_path;
    8484   
    85     // set directory mode
    86     @chmod($cpd_path.'/geoip', 0777);
    87    
    8885    // function checks
    8986    if ( !ini_get('allow_url_fopen') )
     
    113110    fclose($h);
    114111   
    115     @chmod($file, 0777);
     112    @chmod($file, 0755);
    116113    if (is_file($file) && $del)
    117114        return __('New GeoIP database installed.', 'cpd');
  • count-per-day/trunk/locale/cpd-de_DE.po

    r454203 r571926  
    11msgid ""
    22msgstr ""
    3 "Project-Id-Version: Count per Day\n"
     3"Project-Id-Version: Count Per Day v3.2\n"
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: 2008-11-02 12:13+0100\n"
    6 "PO-Revision-Date: \n"
     6"PO-Revision-Date: 2012-07-13 17:28:12+0000\n"
    77"Last-Translator: Tom Braider <post@tomsdimension.de>\n"
    88"Language-Team: \n"
     
    2020"X-Textdomain-Support: yes"
    2121
    22 #: counter-options.php:50
     22#: Copy of counter-options.php:50
     23#: counter-options.php:52
    2324#@ cpd
    2425msgid "Options updated"
    2526msgstr "Einstellungen aktualisiert"
    2627
    27 #: counter-options.php:114
     28#: Copy of counter-options.php:111
     29#: counter-options.php:113
    2830#, php-format
    2931#@ cpd
     
    3133msgstr "Datenbank aufger&auml;umt. %s Datens&auml;tze gel&ouml;scht."
    3234
    33 #: counter-options.php:129
    34 #: counter-options.php:836
     35#: Copy of counter-options.php:126
     36#: Copy of counter-options.php:839
     37#: counter-options.php:128
     38#: counter-options.php:693
    3539#@ cpd
    3640msgid "UNINSTALL Count per Day"
    3741msgstr "DEINSTALLIERE Count per Day"
    3842
     43#: Copy of counter-options.php:131
     44#: Copy of counter-options.php:132
     45#: Copy of counter-options.php:133
     46#: counter-options.php:133
    3947#: counter-options.php:134
    4048#: counter-options.php:135
    41 #: counter-options.php:136
    4249#, php-format
    4350#@ cpd
     
    4552msgstr "Tabelle %s gel&ouml;scht"
    4653
    47 #: counter-options.php:137
     54#: Copy of counter-options.php:134
     55#: counter-options.php:136
    4856#@ cpd
    4957msgid "Options deleted"
    5058msgstr "Einstellungen gel&ouml;scht"
    5159
    52 #: counter-options.php:318
    53 #: counter-options.php:822
     60#: Copy of counter-options.php:321
     61#: Copy of counter-options.php:825
     62#: counter-options.php:362
     63#: counter-options.php:679
    5464#@ cpd
    5565msgid "Uninstall"
    5666msgstr "Deinstallation"
    5767
    58 #: counter-options.php:319
     68#: Copy of counter-options.php:322
     69#: counter-options.php:363
    5970#@ cpd
    6071msgid "Click here"
    6172msgstr "Klick hier"
    6273
    63 #: counter-options.php:319
     74#: Copy of counter-options.php:322
     75#: counter-options.php:363
    6476#@ cpd
    6577msgid "to finish the uninstall and to deactivate \"Count per Day\"."
    6678msgstr "um die Deinstallation zu beenden und \"Count per Day\" zu deaktivieren."
    6779
    68 #: counter-options.php:356
     80#: Copy of counter-options.php:359
     81#: counter-options.php:726
    6982#@ cpd
    7083msgid "Online time"
    7184msgstr "Onlinezeit"
    7285
    73 #: counter-options.php:357
     86#: Copy of counter-options.php:360
     87#: counter-options.php:727
    7488#@ cpd
    7589msgid "Seconds for online counter. Used for \"Visitors online\" on dashboard page."
    7690msgstr "Sekunden f&uuml;r Onlinecounter. Wird f&uuml;r die Anzeige der \"Besucher momentan online\" im Dashboard verwendet."
    7791
    78 #: counter-options.php:360
     92#: Copy of counter-options.php:363
     93#: counter-options.php:730
    7994#@ cpd
    8095msgid "Logged on Users"
    8196msgstr "Angemeldete Benutzer"
    8297
    83 #: counter-options.php:362
     98#: Copy of counter-options.php:365
     99#: counter-options.php:732
    84100#@ cpd
    85101msgid "count too"
    86102msgstr "auch mit z&auml;hlen"
    87103
    88 #: counter-options.php:374
     104#: Copy of counter-options.php:377
     105#: counter-options.php:744
    89106#@ cpd
    90107msgid "Auto counter"
    91108msgstr "Auto-Counter"
    92109
    93 #: counter-options.php:375
     110#: Copy of counter-options.php:378
     111#: counter-options.php:745
    94112#@ cpd
    95113msgid "Counts automatically single-posts and pages, no changes on template needed."
    96114msgstr "Z&auml;hlt automatisch Besuche auf Single-Posts und Seiten ohne &Auml;nderungen am Template."
    97115
    98 #: counter-options.php:378
     116#: Copy of counter-options.php:381
     117#: counter-options.php:748
    99118#@ cpd
    100119msgid "Bots to ignore"
    101120msgstr "Spam/Suchmaschinen Bots ignorieren"
    102121
    103 #: counter-options.php:556
     122#: Copy of counter-options.php:559
     123#: counter-options.php:926
    104124#@ cpd
    105125msgid "Update options"
    106126msgstr "Einstellungen aktualisieren"
    107127
    108 #: counter-options.php:682
    109 #: counter-options.php:691
     128#: Copy of counter-options.php:685
     129#: Copy of counter-options.php:694
     130#: counter-options.php:540
     131#: counter-options.php:548
    110132#@ cpd
    111133msgid "Clean the database"
    112134msgstr "Datenbank aufr&auml;umen"
    113135
    114 #: counter-options.php:685
     136#: Copy of counter-options.php:688
     137#: counter-options.php:543
    115138#@ cpd
    116139msgid "You can clean the counter table by delete the \"spam data\".<br />If you add new bots above the old \"spam data\" keeps in the database.<br />Here you can run the bot filter again and delete the visits of the bots."
    117140msgstr "Du kannst die Counter-Tabelle von \"Spam-Daten\" befreien.<br />Wenn du neue Bots zu der Liste oben hinzuf&uuml;gst bleiben die alten \"Spam-Daten\" erhalten.<br />Hier kannst du den Filter erneut laufen lassen und die Besuche von Bots nachtr&auml;glich l&ouml;schen."
    118141
    119 #: counter-options.php:825
     142#: Copy of counter-options.php:828
     143#: counter-options.php:682
    120144#@ cpd
    121145msgid "If \"Count per Day\" only disabled the tables in the database will be preserved."
    122146msgstr "Wenn \"Count per Day\" nur deaktiviert wird, bleiben die Tabellen in der Datenbank erhalten."
    123147
    124 #: counter-options.php:826
     148#: Copy of counter-options.php:829
     149#: counter-options.php:683
    125150#@ cpd
    126151msgid "Here you can delete the tables and disable \"Count per Day\"."
    127152msgstr "Hier kannst du \"Count per Day\" deinstallieren und die Tabellen l&ouml;schen."
    128153
    129 #: counter-options.php:829
     154#: Copy of counter-options.php:832
     155#: counter-options.php:686
    130156#@ cpd
    131157msgid "WARNING"
    132158msgstr "WARNUNG"
    133159
    134 #: counter-options.php:830
     160#: Copy of counter-options.php:833
     161#: counter-options.php:687
    135162#@ cpd
    136163msgid "These tables (with ALL counter data) will be deleted."
    137164msgstr "Diese Tabellen werden mit ALLEN Z&auml;hlerdaten gel&ouml;scht."
    138165
    139 #: counter-options.php:832
     166#: Copy of counter-options.php:835
     167#: counter-options.php:689
    140168#@ cpd
    141169msgid "If \"Count per Day\" re-installed, the counter starts at 0."
    142170msgstr "Wenn \"Count per Day\" erneut installiert wird, beginnt der Z&auml;hler bei 0."
    143171
    144 #: counter-options.php:812
    145 #: counter-options.php:835
     172#: Copy of counter-options.php:815
     173#: Copy of counter-options.php:838
     174#: counter-options.php:669
     175#: counter-options.php:692
    146176#@ cpd
    147177msgid "Yes"
    148178msgstr "Ja, los!"
    149179
    150 #: counter-options.php:836
     180#: Copy of counter-options.php:839
     181#: counter-options.php:693
    151182#@ cpd
    152183msgid "You are sure to disable Count per Day and delete all data?"
    153184msgstr "Bist du sicher, dass du Count per Day deaktivieren und alle Daten l&ouml;schen willst?"
    154185
    155 #: counter-core.php:802
    156 #: counter.php:1137
     186#: counter-core.php:844
     187#: counter.php:1232
    157188#@ cpd
    158189msgid "Statistics"
    159190msgstr "Statistiken"
    160191
    161 #: counter-core.php:771
    162 #: counter.php:162
    163 #: counter.php:1023
    164 #: counter.php:1215
     192#: counter-core.php:812
     193#: counter.php:190
     194#: counter.php:1118
     195#: counter.php:1310
    165196#@ cpd
    166197msgid "Total visitors"
    167198msgstr "Besucher gesamt"
    168199
    169 #: counter.php:163
    170 #: counter.php:1221
     200#: counter.php:191
     201#: counter.php:1316
    171202#@ cpd
    172203msgid "Visitors currently online"
    173204msgstr "Besucher momentan online"
    174205
    175 #: counter.php:164
    176 #: counter.php:1216
     206#: counter.php:192
     207#: counter.php:1311
    177208#@ cpd
    178209msgid "Visitors today"
    179210msgstr "Besucher heute"
    180211
    181 #: counter.php:165
    182 #: counter.php:1217
     212#: counter.php:193
     213#: counter.php:1312
    183214#@ cpd
    184215msgid "Visitors yesterday"
    185216msgstr "Besucher gestern"
    186217
    187 #: counter.php:166
    188 #: counter.php:1218
     218#: counter.php:194
     219#: counter.php:1313
    189220#@ cpd
    190221msgid "Visitors last week"
    191222msgstr "Besucher letzte Woche"
    192223
    193 #: counter.php:169
    194 #: counter.php:835
    195 #: counter.php:1222
     224#: counter.php:197
     225#: counter.php:877
     226#: counter.php:1317
    196227#@ cpd
    197228msgid "Counter starts on"
    198229msgstr "gez&auml;hlt ab"
    199230
    200 #: counter-core.php:777
    201 #: counter.php:168
    202 #: counter.php:267
    203 #: counter.php:1025
    204 #: counter.php:1220
     231#: counter-core.php:818
     232#: counter.php:196
     233#: counter.php:295
     234#: counter.php:1120
     235#: counter.php:1315
    205236#: userperspan.php:34
    206237#@ cpd
     
    208239msgstr "Besucher pro Tag"
    209240
    210 #: counter-core.php:773
    211 #: counter.php:1219
     241#: counter-core.php:814
     242#: counter.php:1314
    212243#@ cpd
    213244msgid "Visitors per month"
    214245msgstr "Besucher pro Monat"
    215246
    216 #: counter-core.php:775
    217 #: counter-options.php:438
     247#: Copy of counter-options.php:441
     248#: counter-core.php:816
     249#: counter-options.php:808
    218250#@ cpd
    219251msgid "Visitors per post"
    220252msgstr "Besucher pro Artikel"
    221253
    222 #: counter-options.php:124
     254#: Copy of counter-options.php:121
     255#: counter-options.php:123
    223256#@ cpd
    224257msgid "Counter reseted."
    225258msgstr "Z&auml;hler zur&uuml;ckgesetzt."
    226259
    227 #: counter-options.php:439
    228 #: counter-options.php:443
     260#: Copy of counter-options.php:442
     261#: Copy of counter-options.php:446
     262#: counter-options.php:809
     263#: counter-options.php:813
    229264#@ cpd
    230265msgid "How many posts do you want to see on dashboard page?"
    231266msgstr "Wie viele Eintr&auml;ge m&ouml;chtest du auf der Dashboard Seite sehen?"
    232267
    233 #: counter-options.php:442
     268#: Copy of counter-options.php:445
     269#: counter-options.php:812
    234270#@ cpd
    235271msgid "Latest Counts - Posts"
    236272msgstr "Aktuelle Besuche - Artikel"
    237273
    238 #: counter-options.php:446
     274#: Copy of counter-options.php:449
     275#: counter-options.php:816
    239276#@ cpd
    240277msgid "Latest Counts - Days"
    241278msgstr "Aktuelle Besuche - Tage"
    242279
    243 #: counter-options.php:447
    244 #: counter-options.php:451
    245 #: counter-options.php:473
     280#: Copy of counter-options.php:450
     281#: Copy of counter-options.php:454
     282#: Copy of counter-options.php:476
     283#: counter-options.php:817
     284#: counter-options.php:821
     285#: counter-options.php:843
    246286#@ cpd
    247287msgid "How many days do you want look back?"
    248288msgstr "Wie viele Tage m&ouml;chtest du zur&uuml;ck schauen?"
    249289
    250 #: counter-options.php:487
     290#: Copy of counter-options.php:490
     291#: counter-options.php:857
    251292#@ cpd
    252293msgid "Show in lists"
    253294msgstr "In &Uuml;bersichten anzeigen"
    254295
    255 #: counter-options.php:488
     296#: Copy of counter-options.php:491
     297#: counter-options.php:858
    256298#@ cpd
    257299msgid "Show \"Reads per Post\" in a new column in post management views."
    258300msgstr "Zeige \"Besucher pro Artikel\" in einer eigenen Spalte in der Artikel&uuml;bersicht."
    259301
    260 #: counter-options.php:803
    261 #: counter-options.php:813
     302#: Copy of counter-options.php:806
     303#: Copy of counter-options.php:816
     304#: counter-options.php:660
     305#: counter-options.php:670
    262306#@ cpd
    263307msgid "Reset the counter"
    264308msgstr "Z&auml;hler zur&uuml;cksetzen"
    265309
    266 #: counter-options.php:806
     310#: Copy of counter-options.php:809
     311#: counter-options.php:663
    267312#@ cpd
    268313msgid "You can reset the counter by empty the table. ALL TO 0!<br />Make a backup if you need the current data!"
    269314msgstr "Du kannst die Z&auml;hler zur&uuml;cksetzen und die Tabelle leeren. Alles auf 0!<br />Wenn du die aktuellen Zahlen brauchst, mache ein Backup der Datenbank!"
    270315
    271 #: counter.php:680
     316#: counter.php:708
    272317#, php-format
    273318#@ cpd
     
    275320msgstr "Die %s am meisten besuchten Seiten der letzten %s Tage:"
    276321
    277 #: counter-core.php:610
    278 #: counter-options.php:343
    279 #: counter-options.php:560
     322#: Copy of counter-options.php:346
     323#: Copy of counter-options.php:563
     324#: counter-core.php:649
     325#: counter-options.php:386
     326#: counter-options.php:714
    280327#@ default
    281328msgid "Settings"
    282329msgstr ""
    283330
    284 #: counter-core.php:674
    285 #: counter-options.php:393
    286 #: counter.php:161
    287 #: counter.php:885
     331#: Copy of counter-options.php:396
     332#: counter-core.php:714
     333#: counter-options.php:763
     334#: counter.php:189
     335#: counter.php:927
    288336#@ cpd
    289337msgid "Reads"
    290338msgstr "Seitenaufrufe"
    291339
    292 #: counter-core.php:776
     340#: counter-core.php:817
    293341#@ cpd
    294342msgid "Latest Counts"
    295343msgstr "Letzte Seitenaufrufe"
    296344
    297 #: counter-options.php:450
     345#: Copy of counter-options.php:453
     346#: counter-options.php:820
    298347#@ cpd
    299348msgid "Chart - Days"
    300349msgstr "Diagramm - Tage"
    301350
    302 #: counter-options.php:454
     351#: Copy of counter-options.php:457
     352#: counter-options.php:824
    303353#@ cpd
    304354msgid "Chart - Height"
    305355msgstr "Diagramm - H&ouml;he"
    306356
    307 #: counter-options.php:455
     357#: Copy of counter-options.php:458
     358#: counter-options.php:825
    308359#@ cpd
    309360msgid "Height of the biggest bar"
    310361msgstr "H&ouml;he des gr&ouml;&szlig;ten Balkens"
    311362
    312 #: counter.php:1209
     363#: counter.php:1304
    313364#@ cpd
    314365msgid "This post"
    315366msgstr "Diese Seite"
    316367
    317 #: counter-options.php:403
     368#: Copy of counter-options.php:406
     369#: counter-options.php:773
    318370#@ default
    319371msgid "Dashboard"
    320372msgstr ""
    321373
    322 #: counter.php:266
     374#: counter.php:294
    323375#@ cpd
    324376msgid "Reads per day"
    325377msgstr "Seitenaufrufe pro Tag"
    326378
    327 #: counter-options.php:61
     379#: Copy of counter-options.php:61
     380#: counter-options.php:63
    328381#, php-format
    329382#@ cpd
     
    331384msgstr "L&auml;nder aktualisiert. <b>%s</b> Datens&auml;tze in %s noch offen."
    332385
    333 #: counter-options.php:64
     386#: Copy of counter-options.php:64
     387#: counter-options.php:66
    334388#@ cpd
    335389msgid "update next"
    336390msgstr "weiter aktualisieren"
    337391
    338 #: counter-options.php:753
     392#: Copy of counter-options.php:756
     393#: counter-options.php:610
    339394#@ cpd
    340395msgid "GeoIP - Countries"
    341396msgstr "GeoIP - L&auml;nder"
    342397
    343 #: counter-options.php:762
     398#: Copy of counter-options.php:765
     399#: counter-options.php:619
    344400#@ cpd
    345401msgid "Update old counter data"
    346402msgstr "Aktualisiere alte Z&auml;hlerdaten"
    347403
    348 #: counter-options.php:774
     404#: Copy of counter-options.php:777
     405#: counter-options.php:631
    349406#@ cpd
    350407msgid "Update GeoIP database"
    351408msgstr "Aktualisiere GeoIP Datenbank"
    352409
    353 #: counter-options.php:769
     410#: Copy of counter-options.php:772
     411#: counter-options.php:626
    354412#@ cpd
    355413msgid "Download a new version of GeoIP.dat file."
    356414msgstr "Neue Version von GeoIP.dat herunterladen."
    357415
    358 #: counter-options.php:779
     416#: Copy of counter-options.php:782
     417#: counter-options.php:636
    359418#@ cpd
    360419msgid "More informations about GeoIP"
    361420msgstr "Mehr Informationen über GeoIP"
    362421
    363 #: counter-core.php:786
     422#: counter-core.php:828
    364423#@ cpd
    365424msgid "Reads per Country"
    366425msgstr "Seitenaufrufe pro Land"
    367426
    368 #: geoip/geoip.php:117
     427#: geoip/geoip.php:114
    369428#@ cpd
    370429msgid "New GeoIP database installed."
    371430msgstr "Neue GeoIP Datenbank installiert."
    372431
    373 #: geoip/geoip.php:119
     432#: geoip/geoip.php:116
    374433#@ cpd
    375434msgid "Sorry, an error occurred. Try again or check the access rights of directory \"geoip\" is 777."
    376435msgstr "Leider gab es einen Fehler. Versuche es noch einmal oder &uuml;berpr&uuml;fe ob du für das Verzeichnis \"geoip\" Schreibrechte (777) hast."
    377436
    378 #: geoip/geoip.php:93
     437#: geoip/geoip.php:90
    379438#@ cpd
    380439msgid "Sorry, necessary functions (zlib) not installed or enabled in php.ini."
    381440msgstr "Leider ist eine notwendige Funktion (zlib) nicht installiert oder nicht in der php.ini aktiviert."
    382441
    383 #: counter-options.php:459
     442#: Copy of counter-options.php:462
     443#: counter-options.php:829
    384444#@ cpd
    385445msgid "Countries"
    386446msgstr "L&auml;nder"
    387447
    388 #: counter-options.php:460
     448#: Copy of counter-options.php:463
     449#: counter-options.php:830
    389450#@ cpd
    390451msgid "How many countries do you want to see on dashboard page?"
    391452msgstr "Wie viele L&auml;nder m&ouml;chtest du auf der Dashboard Seite sehen?"
    392453
    393 #: counter-options.php:104
     454#: Copy of counter-options.php:104
     455#: counter-options.php:106
    394456#, php-format
    395457#@ cpd
     
    397459msgstr "Massen-Bots bereinigt. %s Z&auml;hlerdaten gel&ouml;scht."
    398460
    399 #: counter-options.php:575
     461#: Copy of counter-options.php:578
     462#: counter-options.php:402
    400463#: massbots.php:36
    401464#@ cpd
     
    403466msgstr "Massen-Bots"
    404467
    405 #: counter-options.php:579
     468#: Copy of counter-options.php:582
     469#: counter-options.php:406
    406470#, php-format
    407471#@ cpd
     
    409473msgstr "Zeige alle IP-Adressen mit mehr als %s Seitenaufrufe pro Tag"
    410474
    411 #: counter-options.php:580
     475#: Copy of counter-options.php:583
     476#: counter-options.php:407
    412477#: notes.php:71
    413478#: userperspan.php:44
     
    416481msgstr "anzeigen"
    417482
    418 #: counter-options.php:606
    419 #: counter-options.php:622
     483#: Copy of counter-options.php:609
     484#: Copy of counter-options.php:625
     485#: counter-options.php:433
     486#: counter-options.php:449
    420487#, php-format
    421488#@ cpd
     
    423490msgstr "L&ouml;sche diese %s Z&auml;hlerdaten"
    424491
    425 #: counter.php:831
     492#: counter.php:865
    426493#@ cpd
    427494msgid "Other"
    428495msgstr "Sonstige"
    429496
    430 #: counter.php:1004
     497#: counter.php:1054
    431498#: massbots.php:53
    432499#: userperspan.php:63
     
    435502msgstr ""
    436503
    437 #: counter-core.php:781
    438 #: counter-options.php:464
     504#: Copy of counter-options.php:467
     505#: counter-core.php:823
     506#: counter-options.php:834
    439507#@ cpd
    440508msgid "Browsers"
    441509msgstr "Browser"
    442510
    443 #: counter-options.php:588
     511#: Copy of counter-options.php:591
     512#: counter-options.php:415
    444513#@ cpd
    445514msgid "IP"
    446515msgstr "IP"
    447516
    448 #: counter-options.php:589
     517#: Copy of counter-options.php:592
     518#: counter-options.php:416
    449519#: notes.php:75
    450520#@ cpd
     
    453523msgstr "Datum"
    454524
    455 #: counter-options.php:590
     525#: Copy of counter-options.php:593
     526#: counter-options.php:417
    456527#@ cpd
    457528msgid "Client"
    458529msgstr "Browser"
    459530
    460 #: counter-options.php:591
     531#: Copy of counter-options.php:594
     532#: counter-options.php:418
    461533#@ cpd
    462534msgid "Views"
    463535msgstr "Seitenaufrufe"
    464536
    465 #: counter-options.php:495
     537#: Copy of counter-options.php:498
     538#: counter-options.php:865
    466539#@ cpd
    467540msgid "Start Values"
    468541msgstr "Startwerte"
    469542
    470 #: counter-options.php:499
     543#: Copy of counter-options.php:502
     544#: counter-options.php:869
    471545#@ cpd
    472546msgid "Here you can change the date of first count and add a start count."
    473547msgstr "Hier kannst du das Startdatum und den Startz&auml;hlerstand überschreiben."
    474548
    475 #: counter-options.php:503
     549#: Copy of counter-options.php:506
     550#: counter-options.php:873
    476551#@ cpd
    477552msgid "Start date"
    478553msgstr "Startdatum"
    479554
    480 #: counter-options.php:504
     555#: Copy of counter-options.php:507
     556#: counter-options.php:874
    481557#@ cpd
    482558msgid "Your old Counter starts at?"
    483559msgstr "Dein alter Z&auml;hler begann am?"
    484560
    485 #: counter-options.php:507
    486 #: counter-options.php:511
     561#: Copy of counter-options.php:510
     562#: Copy of counter-options.php:514
     563#: counter-options.php:877
     564#: counter-options.php:881
    487565#@ cpd
    488566msgid "Start count"
    489567msgstr "Startz&auml;hlerstand"
    490568
    491 #: counter-options.php:508
     569#: Copy of counter-options.php:511
     570#: counter-options.php:878
    492571#@ cpd
    493572msgid "Add this value to \"Total visitors\"."
    494573msgstr "Addiere diesen Wert zu \"Besucher gesamt\"."
    495574
    496 #: counter-options.php:740
     575#: Copy of counter-options.php:743
     576#: counter-options.php:701
    497577#@ cpd
    498578msgid "Support"
    499579msgstr "Kontakt"
    500580
    501 #: counter-core.php:738
     581#: counter-core.php:778
    502582#@ cpd
    503583msgid "Bug? Problem? Question? Hint? Praise?"
    504584msgstr "Bug? Problem? Frage? Tipp? Lob?"
    505585
    506 #: counter-core.php:739
     586#: counter-core.php:779
    507587#, php-format
    508588#@ cpd
     
    510590msgstr "Schreib einen Kommentar auf der <a href=\"%s\">Plugin-Seite</a>."
    511591
    512 #: counter.php:796
     592#: counter.php:824
    513593#@ default
    514594msgid "Show"
    515595msgstr ""
    516596
    517 #: counter.php:989
     597#: counter.php:1039
    518598#@ default
    519599msgid "Edit Post"
    520600msgstr ""
    521601
    522 #: counter-core.php:737
     602#: counter-core.php:777
    523603#, php-format
    524604#@ cpd
     
    526606msgstr "Zeit bei Count per Day: <code>%s</code>"
    527607
    528 #: counter-options.php:363
     608#: Copy of counter-options.php:366
     609#: counter-options.php:733
    529610#@ cpd
    530611msgid "until User Level"
    531612msgstr "bis Benutzerlevel"
    532613
    533 #: counter-core.php:778
     614#: counter-core.php:820
    534615#@ default
    535616msgid "Plugin"
    536617msgstr ""
    537618
    538 #: counter.php:798
     619#: counter.php:826
    539620#: notes.php:42
    540621#: notes.php:76
     
    568649msgstr "&auml;ndern"
    569650
    570 #: counter-options.php:512
     651#: Copy of counter-options.php:515
     652#: counter-options.php:882
    571653#@ cpd
    572654msgid "Add this value to \"Total reads\"."
    573655msgstr "Addiere diesen Wert zu \"Seitenaufrufe gesamt\"."
    574656
    575 #: counter.php:157
    576 #: counter.php:1210
     657#: counter.php:185
     658#: counter.php:1305
    577659#@ cpd
    578660msgid "Total reads"
    579661msgstr "Seitenaufrufe gesamt"
    580662
    581 #: counter.php:158
    582 #: counter.php:1211
     663#: counter.php:186
     664#: counter.php:1306
    583665#@ cpd
    584666msgid "Reads today"
    585667msgstr "Seitenaufrufe heute"
    586668
    587 #: counter.php:159
    588 #: counter.php:1212
     669#: counter.php:187
     670#: counter.php:1307
    589671#@ cpd
    590672msgid "Reads yesterday"
    591673msgstr "Seitenaufrufe gestern"
    592674
    593 #: counter.php:357
    594 #: counter.php:1054
     675#: counter.php:385
     676#: counter.php:1149
    595677#@ cpd
    596678msgid "Map"
    597679msgstr "Weltkarte"
    598680
    599 #: counter-options.php:382
     681#: Copy of counter-options.php:385
     682#: counter-options.php:752
    600683#@ cpd
    601684msgid "Anonymous IP"
    602685msgstr "Anonyme IP-Adresse"
    603686
    604 #: counter-options.php:386
     687#: Copy of counter-options.php:389
     688#: counter-options.php:756
    605689#@ cpd
    606690msgid "Cache"
    607691msgstr "Cache"
    608692
    609 #: counter-options.php:387
     693#: Copy of counter-options.php:390
     694#: counter-options.php:757
    610695#@ cpd
    611696msgid "I use a cache plugin. Count these visits with ajax."
    612697msgstr "Ich benutze ein Cache-Plugin. Zähle diese Seiten mit Ajax."
    613698
    614 #: counter-options.php:465
     699#: Copy of counter-options.php:468
     700#: counter-options.php:835
    615701#@ cpd
    616702msgid "Substring of the user agent, separated by comma"
    617703msgstr "Teil der Browserkennung (user agent), getrennt durch Komma."
    618704
    619 #: counter-core.php:787
     705#: counter-core.php:829
    620706#@ cpd
    621707msgid "Visitors per Country"
    622708msgstr "Besucher pro Land"
    623709
    624 #: counter-options.php:549
     710#: Copy of counter-options.php:552
     711#: counter-options.php:919
    625712#@ cpd
    626713msgid "Debug mode"
    627714msgstr "Debug Modus"
    628715
    629 #: counter-options.php:551
     716#: Copy of counter-options.php:554
     717#: counter-options.php:921
    630718#@ cpd
    631719msgid "Show debug informations at the bottom of all pages."
     
    652740msgstr "keine passenden Daten gefunden"
    653741
    654 #: counter-options.php:756
     742#: Copy of counter-options.php:759
     743#: counter-options.php:613
    655744#@ cpd
    656745msgid "You can get the country data for all entries in database by checking the IP adress against the GeoIP database. This can take a while!"
    657746msgstr "Du kannst zu allen Zählerdaten das Herkunftsland speichern. Dazu wird die IP mit der GeoIP Datenbank abgeglichen. Das kann je nach Anzahl der Daten eine ganze Weile dauern."
    658747
    659 #: counter-options.php:352
     748#: Copy of counter-options.php:355
     749#: counter-options.php:722
    660750#@ cpd
    661751msgid "Counter"
    662752msgstr "Z&auml;hler"
    663753
    664 #: counter-options.php:476
     754#: Copy of counter-options.php:479
     755#: counter-options.php:846
    665756#@ cpd
    666757msgid "Local URLs"
    667758msgstr "Lokale URLs"
    668759
    669 #: counter-options.php:477
     760#: Copy of counter-options.php:480
     761#: counter-options.php:847
    670762#@ cpd
    671763msgid "Show local referrers too."
    672764msgstr "Zeige auch lokale Referrer."
    673765
    674 #: counter-options.php:484
     766#: Copy of counter-options.php:487
     767#: counter-options.php:854
    675768#@ default
    676769msgid "Posts"
    677770msgstr ""
    678771
    679 #: counter-options.php:484
     772#: Copy of counter-options.php:487
     773#: counter-options.php:854
    680774#@ default
    681775msgid "Pages"
    682776msgstr ""
    683777
    684 #: counter.php:998
     778#: counter.php:1048
    685779#@ default
    686780msgid "Category"
    687781msgstr ""
    688782
    689 #: counter.php:1001
     783#: counter.php:1051
    690784#@ default
    691785msgid "Tag"
    692786msgstr ""
    693787
    694 #: counter-core.php:740
     788#: counter-core.php:780
    695789#@ default
    696790msgid "License"
    697791msgstr ""
    698792
    699 #: counter-core.php:782
     793#: counter-core.php:824
    700794#@ cpd
    701795msgid "Referrer"
    702796msgstr "Herkunft"
    703797
    704 #: counter.php:1233
     798#: counter.php:1328
    705799#@ default
    706800msgid "Title"
    707801msgstr ""
    708802
    709 #: counter-options.php:393
     803#: Copy of counter-options.php:396
     804#: counter-options.php:763
    710805#@ cpd
    711806msgid "Save and show clients and referrers.<br />Needs a lot of space in the database but gives you more detailed informations of your visitors."
    712807msgstr "Browser und Herkunft speichern und anzeigen.<br />Diese Daten brauchen mit Abstand den meisten Platz in der Datenbank, liefern aber auch detailliertere Informationen über die Besucher."
    713808
    714 #: counter-options.php:390
     809#: Copy of counter-options.php:393
     810#: counter-options.php:760
    715811#@ cpd
    716812msgid "Clients and referrers"
    717813msgstr "Browser und Herkunft"
    718814
    719 #: counter.php:160
    720 #: counter.php:1213
     815#: counter.php:188
     816#: counter.php:1308
    721817#@ cpd
    722818msgid "Reads last week"
    723819msgstr "Seitenaufrufe letzte Woche"
    724820
    725 #: counter-core.php:774
    726 #: counter.php:1214
     821#: counter-core.php:815
     822#: counter.php:1309
    727823#@ cpd
    728824msgid "Reads per month"
    729825msgstr "Seitenaufrufe pro Monat"
    730826
    731 #: counter-options.php:468
     827#: Copy of counter-options.php:471
     828#: counter-options.php:838
    732829#@ cpd
    733830msgid "Referrers - Entries"
    734831msgstr "Herkunft - Einträge"
    735832
    736 #: counter-options.php:469
     833#: Copy of counter-options.php:472
     834#: counter-options.php:839
    737835#@ cpd
    738836msgid "How many referrers do you want to see on dashboard page?"
    739837msgstr "Wie viele Herkunftsseiten möchtest du auf der Dashbord Seite sehen?"
    740838
    741 #: counter-options.php:472
     839#: Copy of counter-options.php:475
     840#: counter-options.php:842
    742841#@ cpd
    743842msgid "Referrers - Days"
    744843msgstr "Herkunft - Tage"
    745844
    746 #: counter.php:855
     845#: counter.php:897
    747846#, php-format
    748847#@ cpd
     
    750849msgstr "Die %s Herkunftsseiten der letzten %s Tage:"
    751850
    752 #: counter-core.php:772
     851#: counter-core.php:813
    753852#@ cpd
    754853msgid "Visitors online"
    755854msgstr "Besucher online"
    756855
    757 #: counter-options.php:519
     856#: Copy of counter-options.php:522
     857#: counter-options.php:889
    758858#@ cpd
    759859msgid "Stylesheet"
    760860msgstr "Stylesheet"
    761861
    762 #: counter-options.php:522
     862#: Copy of counter-options.php:525
     863#: counter-options.php:892
    763864#@ cpd
    764865msgid "NO Stylesheet in Frontend"
    765866msgstr "KEIN Stylesheet im Frontend"
    766867
    767 #: counter-options.php:523
     868#: Copy of counter-options.php:526
     869#: counter-options.php:893
    768870#@ cpd
    769871msgid "Do not load the stylesheet \"counter.css\" in frontend."
    770872msgstr "Lade die Datei \"counter.css\" nicht im Frontend."
    771873
    772 #: counter-options.php:419
     874#: Copy of counter-options.php:422
     875#: counter-options.php:789
    773876#@ cpd
    774877msgid "Who can see it"
    775878msgstr "Wer darf es sehen"
    776879
    777 #: counter-options.php:428
     880#: Copy of counter-options.php:431
     881#: counter-options.php:798
    778882#@ cpd
    779883msgid "custom"
    780884msgstr "benutzerdefiniert"
    781885
    782 #: counter-options.php:430
     886#: Copy of counter-options.php:433
     887#: counter-options.php:800
    783888#@ cpd
    784889msgid "and higher are allowed to see the statistics page."
    785890msgstr "und höher haben Zugriff auf die Statistikseite."
    786891
    787 #: counter-options.php:432
     892#: Copy of counter-options.php:435
     893#: counter-options.php:802
    788894#, php-format
    789895#@ cpd
     
    791897msgstr "Gibt die benötigte %s Rolle %s ein."
    792898
    793 #: counter-core.php:215
     899#: counter-core.php:252
    794900#, php-format
    795901#@ cpd
     
    797903msgstr "&quot;Count per Day&quot; aktualisiert auf Version %s."
    798904
    799 #: counter-core.php:963
     905#: counter-core.php:1016
    800906#@ cpd
    801907msgid "Backup failed! Cannot open file"
    802908msgstr "Backup fehlgeschlagen! Kann die Datei nicht öffnen"
    803909
    804 #: counter-core.php:989
     910#: counter-core.php:1042
    805911#, php-format
    806912#@ cpd
     
    808914msgstr "Sicherung von %s Einträge. Jeder Punkt entspricht %s Einträgen."
    809915
    810 #: counter-core.php:1081
    811 #: counter-core.php:1089
     916#: counter-core.php:1133
     917#: counter-core.php:1141
    812918#, php-format
    813919#@ cpd
     
    815921msgstr "Die Zähler-Tabelle wurde in %s gesichert."
    816922
    817 #: counter-core.php:1083
    818 #: counter-core.php:1091
     923#: counter-core.php:1135
     924#: counter-core.php:1143
    819925#, php-format
    820926#@ cpd
     
    822928msgstr "Die Optionen und Zusammenfassung wurden in %s gesichert."
    823929
    824 #: counter-options.php:172
     930#: Copy of counter-options.php:169
     931#: counter-options.php:169
    825932#@ cpd
    826933msgid "Collection in progress..."
    827934msgstr "Zusammenfassung erfolgt ..."
    828935
    829 #: counter-options.php:242
     936#: Copy of counter-options.php:245
     937#: counter-options.php:263
    830938#@ cpd
    831939msgid "Get Visitors per Post..."
    832940msgstr "Besucher pro Artikel bearbeiten..."
    833941
    834 #: counter-options.php:263
     942#: Copy of counter-options.php:266
     943#: counter-options.php:284
    835944#@ cpd
    836945msgid "Delete old data..."
    837946msgstr "L&ouml;schen alter Daten..."
    838947
    839 #: counter-options.php:287
     948#: Copy of counter-options.php:290
     949#: counter-options.php:308
    840950#, php-format
    841951#@ cpd
     
    843953msgstr "Zähler-Eintr&auml;ge bis %s zusammengefasst und Tabelle %s optimiert (Gr&ouml;&szlig;e vorher = %s &gt; Gr&ouml;&szlig;e nachher = %s)."
    844954
    845 #: counter-options.php:296
     955#: Copy of counter-options.php:299
     956#: counter-options.php:317
    846957#@ cpd
    847958msgid "Installation of \"Count per Day\" checked"
    848959msgstr "Installation von &quot;Count per Day&quot; überpr&uuml;ft"
    849960
    850 #: counter-options.php:344
    851 #: counter-options.php:561
     961#: Copy of counter-options.php:347
     962#: Copy of counter-options.php:564
     963#: counter-options.php:385
     964#: counter-options.php:713
    852965#@ default
    853966msgid "Tools"
    854967msgstr ""
    855968
    856 #: counter-options.php:395
     969#: Copy of counter-options.php:398
     970#: counter-options.php:765
    857971#@ cpd
    858972msgid "Save URL only, no query string."
    859973msgstr "Speichere nur die URL, keinen Query-String."
    860974
    861 #: counter-options.php:530
    862 #: counter-options.php:634
     975#: Copy of counter-options.php:533
     976#: Copy of counter-options.php:637
     977#: counter-options.php:461
     978#: counter-options.php:900
    863979#@ cpd
    864980msgid "Backup"
    865981msgstr "Backup"
    866982
    867 #: counter-options.php:533
     983#: Copy of counter-options.php:536
     984#: counter-options.php:903
    868985#@ cpd
    869986msgid "Entries per pass"
    870987msgstr "Einträge pro Durchgang"
    871988
    872 #: counter-options.php:536
     989#: Copy of counter-options.php:539
     990#: counter-options.php:906
    873991#@ cpd
    874992msgid "How many entries should be saved per pass? Default: 10000"
    875993msgstr "Wie viele Eintr&auml;ge sollen pro Durchgang bearbeitet werden? Standard: 10000"
    876994
    877 #: counter-options.php:541
     995#: Copy of counter-options.php:544
     996#: counter-options.php:911
    878997#@ cpd
    879998msgid "If your PHP memory limit less then 50 MB and you get a white page or error messages try a smaller value."
    880999msgstr "Wenn dein PHP-Speicher-Limit kleiner als 50 MB ist und du nur eine wei&szlig;e Seite oder Fehlermeldungen bekommst versuche einen kleineren Wert."
    8811000
    882 #: counter-options.php:638
     1001#: Copy of counter-options.php:641
     1002#: counter-options.php:465
    8831003#, php-format
    8841004#@ cpd
     
    8861006msgstr "Erstelle eine Sicherungskopie der Z&auml;hler-Tabelle %s in deinem wp-content Verzeichnis (wenn beschreibbar)."
    8871007
    888 #: counter-options.php:645
     1008#: Copy of counter-options.php:648
     1009#: counter-options.php:472
    8891010#@ cpd
    8901011msgid "Backup the database"
    8911012msgstr "Datenbank sichern"
    8921013
    893 #: counter-options.php:700
    894 #: counter-options.php:732
     1014#: Copy of counter-options.php:703
     1015#: Copy of counter-options.php:735
     1016#: counter-options.php:565
     1017#: counter-options.php:597
    8951018#@ cpd
    8961019msgid "Collect old data"
    8971020msgstr "Alte Daten zusammenfassen"
    8981021
    899 #: counter-options.php:705
     1022#: Copy of counter-options.php:708
     1023#: counter-options.php:570
    9001024#, php-format
    9011025#@ cpd
     
    9031027msgstr "Die aktuelle Gr&ouml;&szlig;e der Z&auml;hler-Tabelle %s ist %s."
    9041028
    905 #: counter-options.php:707
     1029#: Copy of counter-options.php:710
     1030#: counter-options.php:572
    9061031#@ cpd
    9071032msgid "You can collect old data and clean up the counter table.<br/>Reads and visitors will be saved per month, per country and per post.<br/>Clients and referrers will deleted."
    9081033msgstr "Du kannst alte Daten zusammenfassen und die Z&auml;hler-Tabelle bereinigen.<br/>Seitenaufrufe und Besucher werden pro Monat, pro Land und pro Beitrag zusammengefasst.<br/>Browser und Herkunftsdaten werden gel&ouml;scht."
    9091034
    910 #: counter-options.php:712
     1035#: Copy of counter-options.php:715
     1036#: counter-options.php:577
    9111037#, php-format
    9121038#@ cpd
     
    9141040msgstr "Momentan enth&auml;lt die Zusammenfassung Daten bis %s."
    9151041
    916 #: counter-options.php:716
     1042#: Copy of counter-options.php:719
     1043#: counter-options.php:581
    9171044#@ cpd
    9181045msgid "Normally new data will be added to the collection."
    9191046msgstr "Normalerweise werden neue Daten zur Zusammenfassung hinzugef&uuml;gt."
    9201047
    921 #: counter-options.php:722
     1048#: Copy of counter-options.php:725
     1049#: counter-options.php:587
    9221050#@ cpd
    9231051msgid "Delete old collection and create a new one which contains only the data currently in counter table."
    9241052msgstr "L&ouml;sche die aktuelle Zusammenfassung und erstelle eine neue, die nur die Daten enth&auml;lt, die momentan in der Z&auml;hler-Tabelle sind."
    9251053
    926 #: counter-options.php:723
     1054#: Copy of counter-options.php:726
     1055#: counter-options.php:588
    9271056#, php-format
    9281057#@ cpd
     
    9301059msgstr "Alle zusammengefassten Daten bis %s werden gel&ouml;scht."
    9311060
    932 #: counter-options.php:728
     1061#: Copy of counter-options.php:731
     1062#: counter-options.php:593
    9331063#, php-format
    9341064#@ cpd
     
    9361066msgstr "Behalte die Eintr&auml;ge der letzten %s vollen Monate plus des aktuellen Monats in der Z&auml;hler-Tabelle."
    9371067
    938 #: counter-options.php:787
     1068#: Copy of counter-options.php:790
     1069#: counter-options.php:644
    9391070#@ cpd
    9401071msgid "ReActivation"
    9411072msgstr "ReAktivierung"
    9421073
    943 #: counter-options.php:790
     1074#: Copy of counter-options.php:793
     1075#: counter-options.php:647
    9441076#@ cpd
    9451077msgid "Here you can start the installation functions manually.<br/>Same as deactivate and reactivate the plugin."
    9461078msgstr "Hier kannst du die Installationsfunktionen manuell starten.<br/>Macht das gleiche, als würdest du das Plugin deaktivieren und wieder aktivieren."
    9471079
    948 #: counter-options.php:795
     1080#: Copy of counter-options.php:798
     1081#: counter-options.php:652
    9491082#@ cpd
    9501083msgid "ReActivate the plugin"
    9511084msgstr "ReAktiviere das Plugin"
    9521085
    953 #: counter.php:167
    954 #: counter.php:909
     1086#: counter.php:195
     1087#: counter.php:951
    9551088#@ cpd
    9561089msgid "Visitors"
    9571090msgstr "Besucher"
    9581091
    959 #: counter.php:170
    960 #: counter.php:171
     1092#: counter.php:198
     1093#: counter.php:199
    9611094#@ cpd
    9621095msgid "Most visited day"
    9631096msgstr "meistbesuchter Tag"
    9641097
    965 #: counter.php:1252
     1098#: counter.php:1347
    9661099#@ cpd
    9671100msgid "drag and drop to sort"
    9681101msgstr "per Drag &amp; Drop sortieren"
    9691102
    970 #: counter-core.php:1077
     1103#: counter-core.php:1129
    9711104#@ cpd
    9721105msgid "Your can download the backup files here and now."
    9731106msgstr "Du kannst die Sicherungen nur hier und jetzt herunterladen."
    9741107
    975 #: counter-options.php:641
     1108#: Copy of counter-options.php:644
     1109#: counter-options.php:468
    9761110#@ cpd
    9771111msgid "Download only"
    9781112msgstr "nur zum Download anbieten, nicht speichern"
    9791113
    980 #: counter-options.php:670
     1114#: Copy of counter-options.php:673
     1115#: counter-options.php:519
    9811116#@ default
    9821117msgid "Delete"
    9831118msgstr ""
    9841119
    985 #: counter-options.php:671
     1120#: Copy of counter-options.php:674
     1121#: counter-options.php:520
    9861122#, php-format
    9871123#@ cpd
     
    9891125msgstr "Sicherung %s l&ouml;schen?"
    9901126
     1127#: counter-core.php:819
     1128#: counter-options.php:838
     1129#: counter-options.php:842
     1130#@ cpd
     1131msgid "Search strings"
     1132msgstr "Suchw&ouml;rter"
     1133
     1134#: counter-core.php:1199
     1135#@ cpd
     1136msgid "Error while reading backup file!"
     1137msgstr "Fehler beim Lesen der Sicherungsdatei!"
     1138
     1139#: counter-core.php:1203
     1140#, php-format
     1141#@ cpd
     1142msgid "The backup was added to counter table %s."
     1143msgstr "Die Sicherung wurde zur Tabelle %s hinzugef&uuml;gt."
     1144
     1145#: counter-core.php:1205
     1146#, php-format
     1147#@ cpd
     1148msgid "The counter table %s was restored from backup."
     1149msgstr "Die Z&auml;hlertabelle %s wurde wiederhergestellt."
     1150
     1151#: counter-core.php:1222
     1152#@ cpd
     1153msgid "Options restored from backup."
     1154msgstr "Einstellungen wiederhergestellt."
     1155
     1156#: counter-options.php:501
     1157#@ cpd
     1158msgid "Settings and collections"
     1159msgstr "Einstellungen und Zusammenfassung"
     1160
     1161#: counter-options.php:506
     1162#, php-format
     1163#@ cpd
     1164msgid "Counter table %s"
     1165msgstr "Z&auml;hlertabelle %s"
     1166
     1167#: counter-options.php:513
     1168#, php-format
     1169#@ cpd
     1170msgid "Add data from the backup file %s to existing counter table?"
     1171msgstr "Die Daten der Sicherung zur vorhandenen Z&auml;hlertabelle %s hinzuf&uuml;gen?"
     1172
     1173#: counter-options.php:517
     1174#, php-format
     1175#@ cpd
     1176msgid "Restore data from the backup file %s ?"
     1177msgstr "Daten aus der Sicherung %s wiederherstellen?"
     1178
     1179#: counter-options.php:517
     1180#@ default
     1181msgid "Restore"
     1182msgstr ""
     1183
     1184#: counter-options.php:526
     1185#@ cpd
     1186msgid "add backup to current counter table"
     1187msgstr "Sicherung zu aktuellen Daten hinzuf&uuml;gen"
     1188
     1189#: counter-options.php:527
     1190#@ cpd
     1191msgid "replace current counter table with with backup"
     1192msgstr "aktuelle Daten durch Sicherung ersetzen"
     1193
     1194#: counter-options.php:528
     1195#@ cpd
     1196msgid "delete backup file"
     1197msgstr "Sicherung l&ouml;schen"
     1198
     1199#: counter.php:1094
     1200#, php-format
     1201#@ cpd
     1202msgid "The %s most searched strings:"
     1203msgstr "Die %s am meisten gesuchten W&ouml;rter:"
     1204
     1205#: counter.php:1103
     1206#, php-format
     1207#@ cpd
     1208msgid "The search strings of the last %s days:"
     1209msgstr "Die Suchw&ouml;rter der letzten %s Tage:"
     1210
     1211#: counter-options.php:332
     1212#@ cpd
     1213msgid "Old search strings deleted"
     1214msgstr "Alte Suchw&ouml;rter wurden gel&ouml;scht."
     1215
     1216#: counter-options.php:554
     1217#, php-format
     1218#@ cpd
     1219msgid "Delete search strings older than %s days."
     1220msgstr "L&ouml;sche Suchw&ouml;rter die älter als %s Tage sind!"
     1221
     1222#: counter-options.php:556
     1223#@ cpd
     1224msgid "Delete search strings"
     1225msgstr "L&ouml;sche Suchw&ouml;rter"
     1226
     1227#: counter-options.php:513
     1228#@ cpd
     1229msgid "Add"
     1230msgstr "Hinzuf&uuml;gen"
     1231
  • count-per-day/trunk/locale/cpd-ua_UA.po

    r421216 r571926  
    55"POT-Creation-Date: 2008-11-02 12:13+0100\n"
    66"PO-Revision-Date: \n"
    7 "Last-Translator: Alexandr <pixelpwnz@gmail.com>\n"
    8 "Language-Team: Alyona Lompar <alyona.lompar@aol.com>\n"
     7"Last-Translator: Igor <djsoldier1988@gmail.com>\n"
     8"Language-Team: Iflexion design <iflexion.1@gmail.com>\n"
    99"MIME-Version: 1.0\n"
    1010"Content-Type: text/plain; charset=UTF-8\n"
     
    1414"X-Poedit-Country: UKRAINE\n"
    1515"X-Poedit-SourceCharset: utf-8\n"
    16 "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
     16"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
    1717"X-Poedit-Basepath: P:/xampp/htdocs/wp/wp-content/plugins/count-per-day\n"
    18 "X-Poedit-Bookmarks: \n"
     18"X-Textdomain-Support: yes\n"
     19"X-Poedit-Bookmarks: -1,-1,-1,-1,-1,-1,-1,-1,-1,13\n"
    1920"X-Poedit-SearchPath-0: .\n"
    20 "X-Textdomain-Support: yes"
    21 
     21
     22#@ cpd
    2223#: counter-options.php:49
    23 #@ cpd
    2424msgid "Options updated"
    2525msgstr "Налаштування збереженні"
    2626
     27#@ cpd
    2728#: counter-options.php:113
    2829#, php-format
    29 #@ cpd
    3030msgid "Database cleaned. %s rows deleted."
    3131msgstr "База даних очищена. %s строк видалено."
    3232
     33#@ cpd
    3334#: counter-options.php:128
    3435#: counter-options.php:811
    35 #@ cpd
    3636msgid "UNINSTALL Count per Day"
    3737msgstr "Видалити Count per Day"
    3838
     39#@ cpd
    3940#: counter-options.php:133
    4041#: counter-options.php:134
    4142#: counter-options.php:135
    4243#, php-format
    43 #@ cpd
    4444msgid "Table %s deleted"
    4545msgstr "Таблиця %s видалена"
    4646
     47#@ cpd
    4748#: counter-options.php:136
    48 #@ cpd
    4949msgid "Options deleted"
    5050msgstr "Параметри видалено"
    5151
     52#@ cpd
    5253#: counter-options.php:317
    5354#: counter-options.php:797
    54 #@ cpd
    5555msgid "Uninstall"
    5656msgstr "Видалити"
    5757
     58#@ cpd
    5859#: counter-options.php:318
    59 #@ cpd
    6060msgid "Click here"
    6161msgstr "Натисніть тут"
    6262
     63#@ cpd
    6364#: counter-options.php:318
    64 #@ cpd
    6565msgid "to finish the uninstall and to deactivate \"Count per Day\"."
    6666msgstr "Для завершення видалення і відключення \"Count per Day\"."
    6767
     68#@ cpd
    6869#: counter-options.php:356
    69 #@ cpd
    7070msgid "Online time"
    7171msgstr "Час з'єднання"
    7272
     73#@ cpd
    7374#: counter-options.php:357
    74 #@ cpd
    7575msgid "Seconds for online counter. Used for \"Visitors online\" on dashboard page."
    7676msgstr "Секунд для он-лайн лічильника. Використовується для \" Відвідувачей онлайн \" на приладовій панелі сторінки."
    7777
     78#@ cpd
    7879#: counter-options.php:360
    79 #@ cpd
    8080msgid "Logged on Users"
    8181msgstr "Зареєстрованих користувачів"
    8282
     83#@ cpd
    8384#: counter-options.php:362
    84 #@ cpd
    8585msgid "count too"
    8686msgstr "Враховувати також"
    8787
     88#@ cpd
    8889#: counter-options.php:374
    89 #@ cpd
    9090msgid "Auto counter"
    9191msgstr "Авто лічильник"
    9292
     93#@ cpd
    9394#: counter-options.php:375
    94 #@ cpd
    9595msgid "Counts automatically single-posts and pages, no changes on template needed."
    9696msgstr "Рахує автоматично окремі повідомлення і сторінки, ніяких змін в шаблон не потрібно\"."
    9797
     98#@ cpd
    9899#: counter-options.php:378
    99 #@ cpd
    100100msgid "Bots to ignore"
    101101msgstr "Ігнорувати пошукові системи"
    102102
     103#@ cpd
    103104#: counter-options.php:562
    104 #@ cpd
    105105msgid "Update options"
    106106msgstr "Параметри оновлення"
    107107
     108#@ cpd
    108109#: counter-options.php:657
    109110#: counter-options.php:666
    110 #@ cpd
    111111msgid "Clean the database"
    112112msgstr "Очистити бази даних"
    113113
     114#@ cpd
    114115#: counter-options.php:660
    115 #@ cpd
    116116msgid "You can clean the counter table by delete the \"spam data\".<br />If you add new bots above the old \"spam data\" keeps in the database.<br />Here you can run the bot filter again and delete the visits of the bots."
    117117msgstr "Ви можете очистити лічильник таблиці видаливши \"Спам\". <br />Якщо ви додаєте нових ботів над старими \"Спам\" які є в базі даних. <br />Тут ви можете запустити бот-фільтр знову і видалити візити ботів\"."
    118118
     119#@ cpd
    119120#: counter-options.php:800
    120 #@ cpd
    121121msgid "If \"Count per Day\" only disabled the tables in the database will be preserved."
    122122msgstr "Якщо \"Count per Day\" активований, таблиці в базі даних будуть збережені."
    123123
     124#@ cpd
    124125#: counter-options.php:801
    125 #@ cpd
    126126msgid "Here you can delete the tables and disable \"Count per Day\"."
    127127msgstr "Тут можна видалити таблиці і відключити \"Count per Day\"."
    128128
     129#@ cpd
    129130#: counter-options.php:804
    130 #@ cpd
    131131msgid "WARNING"
    132132msgstr "УВАГА"
    133133
     134#@ cpd
    134135#: counter-options.php:805
    135 #@ cpd
    136136msgid "These tables (with ALL counter data) will be deleted."
    137137msgstr "Ці таблиці (з усіма даними лічильника), будуть видалені."
    138138
     139#@ cpd
    139140#: counter-options.php:807
    140 #@ cpd
    141141msgid "If \"Count per Day\" re-installed, the counter starts at 0."
    142142msgstr "Якщо \"Count per Day\" було перевстановлено, лічильник починається з 0."
    143143
     144#@ cpd
    144145#: counter-options.php:787
    145146#: counter-options.php:810
    146 #@ cpd
    147147msgid "Yes"
    148148msgstr "Так"
    149149
     150#@ cpd
    150151#: counter-options.php:811
    151 #@ cpd
    152152msgid "You are sure to disable Count per Day and delete all data?"
    153153msgstr "Ви впевнені, що хочете відключити Count per Day і видалити всі дані?"
    154154
     155#@ cpd
    155156#: counter-core.php:754
    156157#: counter.php:1124
    157 #@ cpd
    158158msgid "Statistics"
    159159msgstr "Статистика"
    160160
     161#@ cpd
    161162#: counter-core.php:723
    162163#: counter.php:160
    163164#: counter.php:1010
    164165#: counter.php:1202
    165 #@ cpd
    166166msgid "Total visitors"
    167167msgstr "Усього користувачів"
    168168
     169#@ cpd
    169170#: counter.php:161
    170171#: counter.php:1208
    171 #@ cpd
    172172msgid "Visitors currently online"
    173173msgstr "Відвідувачі даний час в мережі"
    174174
     175#@ cpd
    175176#: counter.php:162
    176177#: counter.php:1203
    177 #@ cpd
    178178msgid "Visitors today"
    179179msgstr "Відвідувачів сьогодні"
    180180
     181#@ cpd
    181182#: counter.php:163
    182183#: counter.php:1204
    183 #@ cpd
    184184msgid "Visitors yesterday"
    185185msgstr "Відвідувачів вчора"
    186186
     187#@ cpd
    187188#: counter.php:164
    188189#: counter.php:1205
    189 #@ cpd
    190190msgid "Visitors last week"
    191191msgstr "Відвідувачів на минулому тижні"
    192192
     193#@ cpd
    193194#: counter.php:167
    194195#: counter.php:825
    195196#: counter.php:1209
    196 #@ cpd
    197197msgid "Counter starts on"
    198198msgstr "Лічильник починається з"
    199199
     200#@ cpd
    200201#: counter-core.php:729
    201202#: counter.php:166
     
    204205#: counter.php:1207
    205206#: userperspan.php:34
    206 #@ cpd
    207207msgid "Visitors per day"
    208208msgstr "Відвідувачів у день"
    209209
     210#@ cpd
    210211#: counter-core.php:725
    211212#: counter.php:1206
    212 #@ cpd
    213213msgid "Visitors per month"
    214214msgstr "Відвідувачів за місяць"
    215215
     216#@ cpd
    216217#: counter-core.php:727
    217218#: counter-options.php:439
    218 #@ cpd
    219219msgid "Visitors per post"
    220220msgstr "Відвідувачів повідомлення"
    221221
     222#@ cpd
    222223#: counter-options.php:123
    223 #@ cpd
    224224msgid "Counter reseted."
    225225msgstr "Лічильник оновлено"
    226226
     227#@ default
    227228#: counter-options.php:404
    228 #@ default
    229229msgid "Dashboard"
    230230msgstr "Панель"
    231231
     232#@ cpd
    232233#: counter-options.php:440
    233234#: counter-options.php:444
    234 #@ cpd
    235235msgid "How many posts do you want to see on dashboard page?"
    236236msgstr "Скільки повідомлень ви хочете бачити на приладовій панелі сторінки?"
    237237
     238#@ cpd
    238239#: counter-options.php:443
    239 #@ cpd
    240240msgid "Latest Counts - Posts"
    241241msgstr "Останні рахунки - Повідомлення"
    242242
     243#@ cpd
    243244#: counter-options.php:447
    244 #@ cpd
    245245msgid "Latest Counts - Days"
    246246msgstr "Останні рахунки - Дні"
    247247
     248#@ cpd
    248249#: counter-options.php:448
    249250#: counter-options.php:452
    250251#: counter-options.php:474
    251 #@ cpd
    252252msgid "How many days do you want look back?"
    253253msgstr "На скільки днів ви хочете озирнутися назад?"
    254254
     255#@ cpd
    255256#: counter-options.php:451
    256 #@ cpd
    257257msgid "Chart - Days"
    258258msgstr "Графік - Дні"
    259259
     260#@ cpd
    260261#: counter-options.php:455
    261 #@ cpd
    262262msgid "Chart - Height"
    263263msgstr "Графік - висота"
    264264
     265#@ cpd
    265266#: counter-options.php:456
    266 #@ cpd
    267267msgid "Height of the biggest bar"
    268268msgstr "Висота найбільшого стовпчика"
    269269
     270#@ cpd
    270271#: counter-options.php:489
    271 #@ cpd
    272272msgid "Show in lists"
    273273msgstr "Показувати в списках"
    274274
     275#@ cpd
    275276#: counter-options.php:490
    276 #@ cpd
    277277msgid "Show \"Reads per Post\" in a new column in post management views."
    278278msgstr "Показати \"Читачів на повідомлення\" в новій колонці в управлінні записами."
    279279
     280#@ cpd
    280281#: counter-options.php:778
    281282#: counter-options.php:788
    282 #@ cpd
    283283msgid "Reset the counter"
    284284msgstr "Скидання лічильника"
    285285
     286#@ cpd
    286287#: counter-options.php:781
    287 #@ cpd
    288288msgid "You can reset the counter by empty the table. ALL TO 0!<br />Make a backup if you need the current data!"
    289289msgstr "Ви можете скинути лічильник шляхом очищення таблиці. ВСІ НА 0! <br />Зробіть резервну копію, якщо вам потрібні поточні дані!"
    290290
     291#@ cpd
    291292#: counter.php:672
    292293#, php-format
    293 #@ cpd
    294294msgid "The %s most visited posts in last %s days:"
    295295msgstr "%s самих відвідуваних повідомлень за останні %s днів."
    296296
     297#@ default
    297298#: counter-core.php:575
    298299#: counter-options.php:342
    299300#: counter-options.php:566
    300 #@ default
    301301msgid "Settings"
    302302msgstr "Настройки"
    303303
     304#@ cpd
    304305#: counter.php:262
    305 #@ cpd
    306306msgid "Reads per day"
    307307msgstr "Читання в день"
    308308
     309#@ cpd
    309310#: counter-core.php:639
    310311#: counter-options.php:393
    311312#: counter.php:159
    312313#: counter.php:875
    313 #@ cpd
    314314msgid "Reads"
    315315msgstr "Читання"
    316316
     317#@ cpd
    317318#: counter.php:1196
    318 #@ cpd
    319319msgid "This post"
    320320msgstr "Це повідомлення"
    321321
     322#@ cpd
    322323#: counter-options.php:60
    323324#, php-format
    324 #@ cpd
    325325msgid "Countries updated. <b>%s</b> entries in %s without country left"
    326326msgstr "Країни оновлені. <b>%s</b> записів в %s залишилось без країни"
    327327
     328#@ cpd
    328329#: counter-options.php:63
    329 #@ cpd
    330330msgid "update next"
    331331msgstr "Оновити наступний"
    332332
     333#@ cpd
    333334#: counter-options.php:103
    334335#, php-format
    335 #@ cpd
    336336msgid "Mass Bots cleaned. %s counts deleted."
    337337msgstr "Таблиця Пошукових систем очищена. %s записів видалено."
    338338
     339#@ cpd
    339340#: counter-options.php:363
    340 #@ cpd
    341341msgid "until User Level"
    342342msgstr "до рівня користувача"
    343343
     344#@ cpd
    344345#: counter-options.php:382
    345 #@ cpd
    346346msgid "Anonymous IP"
    347347msgstr "Анонімний IP"
    348348
     349#@ cpd
    349350#: counter-options.php:460
    350 #@ cpd
    351351msgid "Countries"
    352352msgstr "Країни"
    353353
     354#@ cpd
    354355#: counter-options.php:461
    355 #@ cpd
    356356msgid "How many countries do you want to see on dashboard page?"
    357357msgstr "Скільки країн ви хотіли б бачити на приладовій панелі сторінки?"
    358358
     359#@ cpd
    359360#: counter-options.php:498
    360 #@ cpd
    361361msgid "Start Values"
    362362msgstr "Початкові дані"
    363363
     364#@ cpd
    364365#: counter-options.php:502
    365 #@ cpd
    366366msgid "Here you can change the date of first count and add a start count."
    367367msgstr "Тут ви можете змінити дату першого відрахунку і задати початок відрахунку."
    368368
     369#@ cpd
    369370#: counter-options.php:506
    370 #@ cpd
    371371msgid "Start date"
    372372msgstr "Дата початку"
    373373
     374#@ cpd
    374375#: counter-options.php:507
    375 #@ cpd
    376376msgid "Your old Counter starts at?"
    377377msgstr "Ваш старий лічильник починався з?"
    378378
     379#@ cpd
    379380#: counter-options.php:510
    380381#: counter-options.php:514
    381 #@ cpd
    382382msgid "Start count"
    383383msgstr "Почати рахувати"
    384384
     385#@ cpd
    385386#: counter-options.php:511
    386 #@ cpd
    387387msgid "Add this value to \"Total visitors\"."
    388388msgstr "Установка цього значення в \"Усього користувачів\"."
    389389
     390#@ cpd
    390391#: counter-options.php:728
    391 #@ cpd
    392392msgid "GeoIP - Countries"
    393393msgstr "GeoIP - Країни"
    394394
     395#@ cpd
    395396#: counter-options.php:737
    396 #@ cpd
    397397msgid "Update old counter data"
    398398msgstr "Оновлення старих даних лічильника"
    399399
     400#@ cpd
    400401#: counter-options.php:749
    401 #@ cpd
    402402msgid "Update GeoIP database"
    403403msgstr "Оновлення бази даних GeoIP"
    404404
     405#@ cpd
    405406#: counter-options.php:744
    406 #@ cpd
    407407msgid "Download a new version of GeoIP.dat file."
    408408msgstr "Завантажити нову версію файла GeoIP.dat"
    409409
     410#@ cpd
    410411#: counter-options.php:754
    411 #@ cpd
    412412msgid "More informations about GeoIP"
    413413msgstr "Більш детальна інформація про GeoIP"
    414414
     415#@ cpd
    415416#: counter-options.php:581
    416417#: massbots.php:35
    417 #@ cpd
    418418msgid "Mass Bots"
    419419msgstr "Масові Пошукові системи"
    420420
     421#@ cpd
    421422#: counter-options.php:585
    422423#, php-format
    423 #@ cpd
    424424msgid "Show all IPs with more than %s page views per day"
    425425msgstr "Показати всі IP-адреси з більш ніж %s переглядів сторінок на день"
    426426
     427#@ cpd
    427428#: counter-options.php:586
    428429#: notes.php:71
    429430#: userperspan.php:44
    430 #@ cpd
    431431msgid "show"
    432432msgstr "показати"
    433433
     434#@ cpd
    434435#: counter-options.php:594
    435 #@ cpd
    436436msgid "IP"
    437437msgstr "IP"
    438438
     439#@ cpd
     440#@ default
    439441#: counter-options.php:595
    440442#: notes.php:75
    441 #@ cpd
    442 #@ default
    443443msgid "Date"
    444444msgstr "Дата"
    445445
     446#@ cpd
    446447#: counter-options.php:596
    447 #@ cpd
    448448msgid "Client"
    449449msgstr "Клієнт"
    450450
     451#@ cpd
    451452#: counter-options.php:597
    452 #@ cpd
    453453msgid "Views"
    454454msgstr "Переглядів"
    455455
     456#@ cpd
    456457#: counter-options.php:612
    457458#: counter-options.php:628
    458459#, php-format
    459 #@ cpd
    460460msgid "Delete these %s counts"
    461461msgstr "Видалити ц і%s лічильників"
    462462
     463#@ cpd
    463464#: counter-options.php:715
    464 #@ cpd
    465465msgid "Support"
    466466msgstr "Підтримка"
    467467
     468#@ cpd
    468469#: counter-core.php:689
    469470#, php-format
    470 #@ cpd
    471471msgid "Time for Count per Day: <code>%s</code>."
    472472msgstr "Час для Count per Day: <code>%s</code>."
    473473
     474#@ cpd
    474475#: counter-core.php:690
    475 #@ cpd
    476476msgid "Bug? Problem? Question? Hint? Praise?"
    477477msgstr "Помилка? Проблема? Питання? Підказка? Хвала?"
    478478
     479#@ cpd
    479480#: counter-core.php:691
    480481#, php-format
    481 #@ cpd
    482482msgid "Write a comment on the <a href=\"%s\">plugin page</a>."
    483483msgstr "Написати коментар на <a href=\"%s\">сторінці плагіна</a>."
    484484
     485#@ cpd
    485486#: counter.php:155
    486487#: counter.php:1197
    487 #@ cpd
    488488msgid "Total reads"
    489489msgstr "Всього читаннь"
    490490
     491#@ cpd
    491492#: counter.php:156
    492493#: counter.php:1198
    493 #@ cpd
    494494msgid "Reads today"
    495495msgstr "Читаннь сьогодні"
    496496
     497#@ cpd
    497498#: counter.php:157
    498499#: counter.php:1199
    499 #@ cpd
    500500msgid "Reads yesterday"
    501501msgstr "Читаннь вчора"
    502502
     503#@ cpd
    503504#: counter.php:788
    504505#: notes.php:42
    505506#: notes.php:76
    506 #@ cpd
    507507msgid "Notes"
    508508msgstr "Записки"
    509509
     510#@ default
    510511#: counter.php:786
    511 #@ default
    512512msgid "Show"
    513513msgstr "Показати"
    514514
     515#@ cpd
    515516#: counter.php:821
    516 #@ cpd
    517517msgid "Other"
    518518msgstr "Інші"
    519519
     520#@ default
    520521#: counter.php:976
    521 #@ default
    522522msgid "Edit Post"
    523523msgstr "Редагувати повідомлення"
    524524
     525#@ default
    525526#: counter.php:991
    526527#: massbots.php:52
    527528#: userperspan.php:63
    528 #@ default
    529529msgid "Front page displays"
    530530msgstr "Відображати на першій сторінці"
    531531
     532#@ cpd
    532533#: counter-core.php:733
    533534#: counter-options.php:465
    534 #@ cpd
    535535msgid "Browsers"
    536536msgstr "Браузери"
    537537
     538#@ cpd
    538539#: counter-core.php:728
    539 #@ cpd
    540540msgid "Latest Counts"
    541541msgstr "Останні підрахунки"
    542542
     543#@ default
    543544#: counter-core.php:730
    544 #@ default
    545545msgid "Plugin"
    546546msgstr "Плагін"
    547547
     548#@ cpd
    548549#: counter-core.php:738
    549 #@ cpd
    550550msgid "Reads per Country"
    551551msgstr "Читання по країнам"
    552552
     553#@ cpd
    553554#: counter.php:353
    554555#: counter.php:1041
    555 #@ cpd
    556556msgid "Map"
    557557msgstr "Карта"
    558558
     559#@ cpd
    559560#: geoip/geoip.php:93
    560 #@ cpd
    561561msgid "Sorry, necessary functions (zlib) not installed or enabled in php.ini."
    562562msgstr "На жаль, необхідні функції (Zlib) не встановлені або не включені в php.ini."
    563563
     564#@ cpd
    564565#: geoip/geoip.php:117
    565 #@ cpd
    566566msgid "New GeoIP database installed."
    567567msgstr "Нова база даних GeoIP встановлена."
    568568
     569#@ cpd
    569570#: geoip/geoip.php:119
    570 #@ cpd
    571571msgid "Sorry, an error occurred. Try again or check the access rights of directory \"geoip\" is 777."
    572572msgstr "Вибачте, сталася помилка. Спробуйте ще раз або перевірьте права доступу каталогу \"GeoIP\" є 777."
    573573
     574#@ default
    574575#: notes.php:77
    575 #@ default
    576576msgid "Action"
    577577msgstr "Дія"
    578578
     579#@ cpd
    579580#: notes.php:82
    580 #@ cpd
    581581msgid "add"
    582582msgstr "Додати"
    583583
     584#@ cpd
    584585#: notes.php:98
    585 #@ cpd
    586586msgid "save"
    587587msgstr "Зберегти"
    588588
     589#@ cpd
    589590#: notes.php:99
    590 #@ cpd
    591591msgid "delete"
    592592msgstr "Видалити"
    593593
     594#@ cpd
    594595#: notes.php:110
    595 #@ cpd
    596596msgid "edit"
    597597msgstr "Змінити"
    598598
     599#@ cpd
    599600#: counter-options.php:386
    600 #@ cpd
    601601msgid "Cache"
    602602msgstr "Кеш"
    603603
     604#@ cpd
    604605#: counter-options.php:387
    605 #@ cpd
    606606msgid "I use a cache plugin. Count these visits with ajax."
    607607msgstr "Я використовую кеш плагінів. Рахувати ці візити за допомогою Ajax."
    608608
     609#@ cpd
    609610#: counter-options.php:466
    610 #@ cpd
    611611msgid "Substring of the user agent, separated by comma"
    612612msgstr "Підрядок агента користувача, розділених комою"
    613613
     614#@ cpd
    614615#: counter-options.php:555
    615 #@ cpd
    616616msgid "Debug mode"
    617617msgstr "Режим відлагодження"
    618618
     619#@ cpd
    619620#: counter-options.php:557
    620 #@ cpd
    621621msgid "Show debug informations at the bottom of all pages."
    622622msgstr "Показати відлагоджувальну інофрмацію в нижній частині всіх сторінок."
    623623
     624#@ cpd
    624625#: counter-core.php:739
    625 #@ cpd
    626626msgid "Visitors per Country"
    627627msgstr "Відвідувачів по країнах"
    628628
     629#@ cpd
    629630#: userperspan.php:38
    630 #@ cpd
    631631msgid "Start"
    632632msgstr "Старт"
    633633
     634#@ cpd
    634635#: userperspan.php:40
    635 #@ cpd
    636636msgid "End"
    637637msgstr "Кінець"
    638638
     639#@ cpd
    639640#: userperspan.php:42
    640 #@ cpd
    641641msgid "PostID"
    642642msgstr "ID повідомлення"
    643643
     644#@ cpd
    644645#: counter-options.php:515
    645 #@ cpd
    646646msgid "Add this value to \"Total reads\"."
    647647msgstr "Установити це значення в \"Всього читаннь\"."
    648648
     649#@ cpd
    649650#: counter-options.php:731
    650 #@ cpd
    651651msgid "You can get the country data for all entries in database by checking the IP adress against the GeoIP database. This can take a while!"
    652652msgstr "Ви можете отримати дані по країнах для всіх записів в базі даних, перевіряючи IP-адреси по базі даних GeoIP. Це може зайняти деякий час!"
    653653
     654#@ cpd
    654655#: userperspan.php:50
    655 #@ cpd
    656656msgid "no data found"
    657657msgstr "Нічого не знайдено"
    658658
     659#@ cpd
    659660#: counter-options.php:352
    660 #@ cpd
    661661msgid "Counter"
    662662msgstr "Лічильник"
    663663
     664#@ cpd
    664665#: counter-options.php:390
    665 #@ cpd
    666666msgid "Clients and referrers"
    667667msgstr "Клієнти та джерела"
    668668
     669#@ cpd
    669670#: counter-options.php:393
    670 #@ cpd
    671671msgid "Save and show clients and referrers.<br />Needs a lot of space in the database but gives you more detailed informations of your visitors."
    672672msgstr "Зберегти і показати клієнтів і джерела. <br />Потребує багато місця в базі даних, але надає більш детальну інформацію про ваших відвідувачів."
    673673
     674#@ cpd
    674675#: counter-options.php:477
    675 #@ cpd
    676676msgid "Local URLs"
    677677msgstr "Місцеві URL"
    678678
     679#@ cpd
    679680#: counter-options.php:478
    680 #@ cpd
    681681msgid "Show local referrers too."
    682682msgstr "Показати місцеві джерела теж."
    683683
     684#@ default
    684685#: counter-options.php:486
    685 #@ default
    686686msgid "Posts"
    687687msgstr "Повідомлення"
    688688
     689#@ default
    689690#: counter-options.php:486
    690 #@ default
    691691msgid "Pages"
    692692msgstr "Сторінки"
    693693
     694#@ cpd
    694695#: counter.php:158
    695696#: counter.php:1200
    696 #@ cpd
    697697msgid "Reads last week"
    698698msgstr "Читаннь минулого тижня"
    699699
     700#@ default
    700701#: counter.php:985
    701 #@ default
    702702msgid "Category"
    703703msgstr "Категорія"
    704704
     705#@ default
    705706#: counter.php:988
    706 #@ default
    707707msgid "Tag"
    708708msgstr "Тег"
    709709
     710#@ default
    710711#: counter-core.php:692
    711 #@ default
    712712msgid "License"
    713713msgstr "Ліцензія"
    714714
     715#@ cpd
    715716#: counter-core.php:726
    716717#: counter.php:1201
    717 #@ cpd
    718718msgid "Reads per month"
    719719msgstr "Читаннь в місяць"
    720720
     721#@ cpd
    721722#: counter-core.php:734
    722 #@ cpd
    723723msgid "Referrer"
    724724msgstr "Джерела"
    725725
     726#@ cpd
    726727#: counter-options.php:469
    727 #@ cpd
    728728msgid "Referrers - Entries"
    729729msgstr "Джерела - Входження"
    730730
     731#@ cpd
    731732#: counter-options.php:470
    732 #@ cpd
    733733msgid "How many referrers do you want to see on dashboard page?"
    734734msgstr "Скільки джерел ви хочете бачити на приладовій панелі сторінки?"
    735735
     736#@ cpd
    736737#: counter-options.php:473
    737 #@ cpd
    738738msgid "Referrers - Days"
    739739msgstr "Джерела - Дні"
    740740
     741#@ cpd
    741742#: counter.php:845
    742743#, php-format
    743 #@ cpd
    744744msgid "The %s referrers in last %s days:"
    745745msgstr "%s джерел в останні %s днів:"
    746746
     747#@ cpd
    747748#: counter-core.php:724
    748 #@ cpd
    749749msgid "Visitors online"
    750750msgstr "Відвідувачів онлайн"
    751751
     752#@ default
    752753#: counter.php:1220
    753 #@ default
    754754msgid "Title"
    755755msgstr "Назва"
    756756
     757#@ cpd
    757758#: counter-core.php:186
    758759#, php-format
    759 #@ cpd
    760760msgid "\"Count per Day\" updated to version %s."
    761 msgstr ""
    762 
     761msgstr "\"Count per Day\" Оновлено до версії %s."
     762
     763#@ cpd
    763764#: counter-core.php:917
    764 #@ cpd
    765765msgid "Backup failed! Cannot open file"
    766 msgstr ""
    767 
     766msgstr "Резервне копіювання не вдалося! Не вдається відкрити файл"
     767
     768#@ cpd
    768769#: counter-core.php:940
    769770#, php-format
    770 #@ cpd
    771771msgid "Backup of %s entries in progress. Every point complies %s entries."
    772 msgstr ""
    773 
     772msgstr "Резервне копіювання %s записи в прогрес. Відповідає кожній точці %s записи."
     773
     774#@ cpd
    774775#: counter-core.php:1027
    775 #@ cpd
    776776msgid "Your wp-content directory is not writable. But you can copy the content of this box to a plain text file."
    777 msgstr ""
    778 
     777msgstr "Ваш wp-вміст каталогів не є записуваним. Але можна копіювати вміст цього поля текстовий файл."
     778
     779#@ cpd
    779780#: counter-core.php:1033
    780781#, php-format
    781 #@ cpd
    782782msgid "Backup of counter table saved in %s."
    783 msgstr ""
    784 
     783msgstr "Резервне копіювання таблиці лічильник, збережені у %s."
     784
     785#@ cpd
    785786#: counter-core.php:1035
    786787#, php-format
    787 #@ cpd
    788788msgid "Backup of counter options and collection saved in %s."
    789 msgstr ""
    790 
     789msgstr "Резервне копіювання лічильник варіантів і колекції, збережені у %s."
     790
     791#@ cpd
    791792#: counter-options.php:171
    792 #@ cpd
    793793msgid "Collection in progress..."
    794 msgstr ""
    795 
     794msgstr "Триває збір..."
     795
     796#@ cpd
    796797#: counter-options.php:241
    797 #@ cpd
    798798msgid "Get Visitors per Post..."
    799 msgstr ""
    800 
     799msgstr "Отримати відвідувачів на посаду..."
     800
     801#@ cpd
    801802#: counter-options.php:262
    802 #@ cpd
    803803msgid "Delete old data..."
    804 msgstr ""
    805 
     804msgstr "Видалити старі дані..."
     805
     806#@ cpd
    806807#: counter-options.php:286
    807808#, php-format
    808 #@ cpd
    809809msgid "Counter entries until %s collected and counter table %s optimized (size before = %s &gt; size after = %s)."
    810 msgstr ""
    811 
     810msgstr "Лічильник записів до %s зібрані та боротьби таблиці %s оптимізований (Розмір перед = %s &gt; Розмір після = %s)."
     811
     812#@ cpd
    812813#: counter-options.php:295
    813 #@ cpd
    814814msgid "Installation of \"Count per Day\" checked"
    815 msgstr ""
    816 
     815msgstr "Установка \"Count per Day\" перевірено"
     816
     817#@ default
    817818#: counter-options.php:343
    818819#: counter-options.php:567
    819 #@ default
    820820msgid "Tools"
    821 msgstr ""
    822 
     821msgstr "Інструменти"
     822
     823#@ cpd
    823824#: counter-options.php:395
    824 #@ cpd
    825825msgid "Save URL only, no query string."
    826 msgstr ""
    827 
     826msgstr "Збережіть URL тільки, немає рядка запиту."
     827
     828#@ cpd
    828829#: counter-options.php:420
    829 #@ cpd
    830830msgid "Who can see it"
    831 msgstr ""
    832 
     831msgstr "Хто це може побачити"
     832
     833#@ cpd
    833834#: counter-options.php:429
    834 #@ cpd
    835835msgid "custom"
    836 msgstr ""
    837 
     836msgstr "Користувальницькі"
     837
     838#@ cpd
    838839#: counter-options.php:431
    839 #@ cpd
    840840msgid "and higher are allowed to see the statistics page."
    841 msgstr ""
    842 
     841msgstr "і вище, можуть побачити на сторінці статистики."
     842
     843#@ cpd
    843844#: counter-options.php:433
    844845#, php-format
    845 #@ cpd
    846846msgid "Set the %s capability %s a user need:"
    847 msgstr ""
    848 
     847msgstr "Встановити на %s можливості %s користувачеві необхідно:"
     848
     849#@ cpd
    849850#: counter-options.php:523
    850 #@ cpd
    851851msgid "Stylesheet"
    852 msgstr ""
    853 
     852msgstr "Таблиця стилів"
     853
     854#@ cpd
    854855#: counter-options.php:526
    855 #@ cpd
    856856msgid "NO Stylesheet in Frontend"
    857 msgstr ""
    858 
     857msgstr "НЕМАЄ стилів в інтерфейс"
     858
     859#@ cpd
    859860#: counter-options.php:527
    860 #@ cpd
    861861msgid "Do not load the stylesheet \"counter.css\" in frontend."
    862 msgstr ""
    863 
     862msgstr "Не завантажити стиль \"counter.css\" у інтерфейс."
     863
     864#@ cpd
    864865#: counter-options.php:535
    865866#: counter-options.php:640
    866 #@ cpd
    867867msgid "Backup"
    868 msgstr ""
    869 
     868msgstr "Резервне копіювання"
     869
     870#@ cpd
    870871#: counter-options.php:538
    871 #@ cpd
    872872msgid "Entries per pass"
    873 msgstr ""
    874 
     873msgstr "Записи за пас"
     874
     875#@ cpd
    875876#: counter-options.php:541
    876 #@ cpd
    877877msgid "How many entries should be saved per pass? Default: 10000"
    878 msgstr ""
    879 
     878msgstr "Скільки записів повинна бути збережена за пас? Default: 10000"
     879
     880#@ cpd
    880881#: counter-options.php:546
    881 #@ cpd
    882882msgid "If your PHP memory limit less then 50 MB and you get a white page or error messages try a smaller value."
    883 msgstr ""
    884 
     883msgstr "Якщо ваш PHP пам'яті обмежити менше потім 50 МБ і ви отримаєте білу сторінку або повідомлення про помилку, спробуйте менші значення."
     884
     885#@ cpd
    885886#: counter-options.php:644
    886887#, php-format
    887 #@ cpd
    888888msgid "Create a backup of the counter table %s in your wp-content directory (if writable)."
    889 msgstr ""
    890 
     889msgstr "Створити резервну копію таблиці лічильник %s в каталозі wp зміст (якщо для запису)."
     890
     891#@ cpd
    891892#: counter-options.php:648
    892 #@ cpd
    893893msgid "Backup the database"
    894 msgstr ""
    895 
     894msgstr "Резервне копіювання бази даних"
     895
     896#@ cpd
    896897#: counter-options.php:675
    897898#: counter-options.php:707
    898 #@ cpd
    899899msgid "Collect old data"
    900 msgstr ""
    901 
     900msgstr "Збирати старі дані"
     901
     902#@ cpd
    902903#: counter-options.php:680
    903904#, php-format
    904 #@ cpd
    905905msgid "Current size of your counter table %s is %s."
    906 msgstr ""
    907 
     906msgstr "Поточний розмір таблиці лічильник %s є %s."
     907
     908#@ cpd
    908909#: counter-options.php:682
    909 #@ cpd
    910910msgid "You can collect old data and clean up the counter table.<br/>Reads and visitors will be saved per month, per country and per post.<br/>Clients and referrers will deleted."
    911 msgstr ""
    912 
     911msgstr "Можна збирати старі дані та очищення таблиці лічильник.<br/>Переглядів і відвідувачів буде збережено на місяць, в країні і за пост.<br/>Клієнтів і посилаються, буде видалено. "
     912
     913#@ cpd
    913914#: counter-options.php:687
    914915#, php-format
    915 #@ cpd
    916916msgid "Currently your collection contains data until %s."
    917 msgstr ""
    918 
     917msgstr "В даний час вашої колекції містить дані до %s."
     918
     919#@ cpd
    919920#: counter-options.php:691
    920 #@ cpd
    921921msgid "Normally new data will be added to the collection."
    922 msgstr ""
    923 
     922msgstr "Зазвичай нові дані будуть додані до колекції."
     923
     924#@ cpd
    924925#: counter-options.php:697
    925 #@ cpd
    926926msgid "Delete old collection and create a new one which contains only the data currently in counter table."
    927 msgstr ""
    928 
     927msgstr "Видалення старої колекції і створити новий список, який містить лише дані в даний час лічильник таблиці."
     928
     929#@ cpd
    929930#: counter-options.php:698
    930931#, php-format
    931 #@ cpd
    932932msgid "All collected data until %s will deleted."
    933 msgstr ""
    934 
     933msgstr "Всі зібрані дані до %s буде видалено."
     934
     935#@ cpd
    935936#: counter-options.php:703
    936937#, php-format
    937 #@ cpd
    938938msgid "Keep entries of last %s full months + current month in counter table."
    939 msgstr ""
    940 
     939msgstr "Зберегти записи останнього %s повний місяць поточний місяць в таблиці лічильник."
     940
     941#@ cpd
    941942#: counter-options.php:762
    942 #@ cpd
    943943msgid "ReActivation"
    944 msgstr ""
    945 
     944msgstr "Реактивація"
     945
     946#@ cpd
    946947#: counter-options.php:765
    947 #@ cpd
    948948msgid "Here you can start the installation functions manually.<br/>Same as deactivate and reactivate the plugin."
    949 msgstr ""
    950 
     949msgstr "Тут ви можете почати установку функції вручну.<br/>Так само, як відключити і повторно активувати плагін. "
     950
     951#@ cpd
    951952#: counter-options.php:770
    952 #@ cpd
    953953msgid "ReActivate the plugin"
    954 msgstr ""
    955 
     954msgstr "Активувати плагін"
     955
     956#@ cpd
    956957#: counter.php:165
    957958#: counter.php:899
    958 #@ cpd
    959959msgid "Visitors"
    960 msgstr ""
    961 
     960msgstr "Відвідувачі"
     961
     962#@ cpd
    962963#: counter.php:168
    963964#: counter.php:169
    964 #@ cpd
    965965msgid "Most visited day"
    966 msgstr ""
    967 
     966msgstr "Найбільш відвідуваних день"
     967
     968#@ cpd
    968969#: counter.php:1239
    969 #@ cpd
    970970msgid "drag and drop to sort"
    971 msgstr ""
    972 
     971msgstr "перетягування для сортування"
     972
  • count-per-day/trunk/map/data.xml.php

    r488883 r571926  
    77$data = array();
    88
    9 $what = (empty($_GET['map'])) ? 'reads' : $_GET['map'];
    10 $what = strip_tags($what);
     9$what = (empty($_GET['map'])) ? 'reads' : strip_tags($_GET['map']);
    1110
    1211if ( $what == 'online' )
  • count-per-day/trunk/map/map.php

    r488883 r571926  
    11<?php
    2 $what = (empty($_GET['map'])) ? 'reads' : $_GET['map'];
    3 $what = strip_tags($what);
     2$what = (empty($_GET['map'])) ? 'reads' : strip_tags($_GET['map']);
    43if ( !in_array($what, array('visitors','reads','online')) )
    54    die();
  • count-per-day/trunk/map/settings.xml.php

    r490270 r571926  
    11<?php
    2 $what = (empty($_GET['map'])) ? 'Reads' : ucfirst($_GET['map']);
    3 $what = strip_tags($what);
     2$what = (empty($_GET['map'])) ? 'Reads' : ucfirst(strip_tags($_GET['map']));
    43$disable = (empty($_GET['min'])) ? '' : '<enabled>false</enabled>';
    54
  • count-per-day/trunk/userperspan.php

    r434198 r571926  
    44require_once($cpd_wp.'wp-load.php');
    55
    6 $cpd_datemin = ( !empty($_REQUEST['datemin']) ) ? $_REQUEST['datemin'] : date_i18n('Y-m-d', time() - 86400 * 14); // 14 days
    7 $cpd_datemax = ( !empty($_REQUEST['datemax']) ) ? $_REQUEST['datemax'] : date_i18n('Y-m-d');
    8 $cpd_page = ( isset($_REQUEST['page']) ) ? $_REQUEST['page'] : 0;
     6$cpd_datemin = ( !empty($_REQUEST['datemin']) ) ? wp_strip_all_tags($_REQUEST['datemin']) : date_i18n('Y-m-d', time() - 86400 * 14); // 14 days
     7$cpd_datemax = ( !empty($_REQUEST['datemax']) ) ? wp_strip_all_tags($_REQUEST['datemax']) : date_i18n('Y-m-d');
     8$cpd_page = ( isset($_REQUEST['page']) ) ? intval($_REQUEST['page']) : 0;
    99
    1010$sql = "SELECT  p.post_title,
Note: See TracChangeset for help on using the changeset viewer.