Changeset 571926 for count-per-day
- Timestamp:
- 07/13/2012 07:23:43 PM (13 years ago)
- Location:
- count-per-day/trunk
- Files:
-
- 6 added
- 17 edited
-
ajax.php (modified) (1 diff)
-
counter-core.php (modified) (33 diffs)
-
counter-options.php (modified) (25 diffs)
-
counter.css (modified) (3 diffs)
-
counter.php (modified) (15 diffs)
-
download.php (modified) (1 diff)
-
geoip/GeoIP.dat (modified) (previous)
-
geoip/geoip.php (modified) (3 diffs)
-
img/cpd_flags.png (modified) (previous)
-
locale/cpd-de_DE.mo (modified) (previous)
-
locale/cpd-de_DE.po (modified) (31 diffs)
-
locale/cpd-fi.mo (added)
-
locale/cpd-fi.po (added)
-
locale/cpd-hi_IN_HI.mo (added)
-
locale/cpd-hi_IN_HI.po (added)
-
locale/cpd-ro_RO.mo (added)
-
locale/cpd-ro_RO.po (added)
-
locale/cpd-ua_UA.mo (modified) (previous)
-
locale/cpd-ua_UA.po (modified) (3 diffs)
-
map/data.xml.php (modified) (1 diff)
-
map/map.php (modified) (1 diff)
-
map/settings.xml.php (modified) (1 diff)
-
userperspan.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
count-per-day/trunk/ajax.php
r434198 r571926 2 2 if ( $_GET['f'] == 'count' ) 3 3 { 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 4 11 if (!session_id()) session_start(); 5 12 $cpd_wp = (!empty($_SESSION['cpd_wp'])) ? $_SESSION['cpd_wp'] : '../../../'; 6 13 require_once($cpd_wp.'wp-load.php'); 7 14 8 15 $cpd_funcs = array ( 'show', 9 16 'getReadsAll', 'getReadsToday', 'getReadsYesterday', 'getReadsLastWeek', 'getReadsThisMonth', -
count-per-day/trunk/counter-core.php
r454194 r571926 31 31 { 32 32 // variables 33 global $wpdb, $ cpd_path, $cpd_dir_name;33 global $wpdb, $path, $cpd_dir_name; 34 34 35 35 define('CPD_METABOX', 'cpd_metaboxes'); … … 67 67 if ($this->options['ajax']) 68 68 { 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 71 74 } 72 75 … … 89 92 add_filter('manage_edit-post_columns', array(&$this,'cpdColumn')); 90 93 // add_filter('manage_edit-post_sortable_columns', array(&$this,'cpdSortableColumns')); 91 92 94 // add_filter('request', array(&$this,'cpdReadsOrderby')); 93 95 … … 119 121 120 122 // 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'); 122 124 123 125 // query times debug … … 133 135 // thickbox in backend only 134 136 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')); 139 138 140 139 // Session 141 140 add_action('init', array(&$this,'startSession'), 1); 141 } 142 143 function addJquery() 144 { 145 wp_enqueue_script('jquery'); 146 } 147 148 function 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'); 142 153 } 143 154 … … 154 165 } 155 166 156 157 158 167 /** 159 168 * starts session to provide WP variables to "addons" … … 177 186 $t = microtime(true); 178 187 $con = $wpdb->dbh; 179 180 188 $preparedSql = $wpdb->prepare($sql); 181 189 $r = false; 182 190 if ($kind == 'var') 183 191 $r = $wpdb->get_var( $preparedSql ); … … 187 195 $r = $wpdb->get_var( $wpdb->prepare($sql) ); 188 196 } 189 else if ($kind = 'rows') 197 else if ($kind == 'rows') 198 { 190 199 $r = $wpdb->get_results( $preparedSql ); 200 } 191 201 else 192 202 $wpdb->query( $preparedSql ); 193 203 194 204 if ( $this->options['debug'] ) 195 205 { … … 377 387 $queries = array ( 378 388 "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)", 380 390 "ALTER TABLE `$cpd_c` DROP `ip`", 381 391 "ALTER TABLE `$cpd_c` CHANGE `ip2` `ip` INT( 10 ) UNSIGNED NOT NULL", … … 432 442 433 443 // update options to array 434 $this->UpdateOptions(); 435 436 // set directory mode 437 @chmod(ABSPATH.PLUGINDIR.'/count-per-day/geoip', 0777); 444 $this->updateOptions(); 438 445 } 439 446 … … 452 459 { 453 460 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"> 455 462 <b>Count per Day - DEBUG: '.round($this->queries[0], 3).' s</b><ol>'."\n"; 456 463 echo '<li>' … … 517 524 function addJS() 518 525 { 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"; 520 528 } 521 529 … … 526 534 { 527 535 $this->getPostID(); 536 $time = time(); 528 537 echo <<< JSEND 529 538 <script type="text/javascript"> … … 532 541 jQuery(document).ready( function($) 533 542 { 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) 535 544 { 536 545 var cpd_funcs = text.split('|'); … … 539 548 var cpd_daten = cpd_funcs[i].split('==='); 540 549 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]; } 542 551 } 543 552 }); … … 546 555 </script> 547 556 JSEND; 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 // }555 557 } 556 558 … … 572 574 foreach( $bots as $ip ) 573 575 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__); 575 577 576 578 // delete by client … … 636 638 'chart_height' => 100, 637 639 'countries' => 20, 638 'startdate' => ' ',640 'startdate' => '2000-01-01', 639 641 'startcount' => '', 640 642 'startreads' => '', … … 663 665 function dashboardWidgetSetup() 664 666 { 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') ); 666 669 } 667 670 … … 756 759 function getUserPerMonthMeta() { $this->getUserPerMonth(); } 757 760 function getReadsPerMonthMeta() { $this->getReadsPerMonth(); } 761 function getSearchesMeta() { $this->getSearches(); } 758 762 759 763 /** … … 776 780 add_meta_box('last_reads', '<span class="cpd_icon cpd_calendar"> </span> '.__('Latest Counts', 'cpd'), array(&$this,'getMostVisitedPostsMeta'), $this->pagehook, 'cpdrow4', 'default'); 777 781 add_meta_box('day_reads', '<span class="cpd_icon cpd_day"> </span> '.__('Visitors per day', 'cpd'), array(&$this,'getVisitedPostsOnDayMeta'), $this->pagehook, 'cpdrow4', 'default'); 782 add_meta_box('searches', '<span class="cpd_icon cpd_help"> </span> '.__('Search strings', 'cpd'), array(&$this,'getSearchesMeta'), $this->pagehook, 'cpdrow1', 'default'); 778 783 add_meta_box('cpd_info', '<span class="cpd_icon cpd_help"> </span> '.__('Plugin'), array(&$this,'cpdInfo'), $this->pagehook, 'cpdrow1', 'low'); 779 784 if ($this->options['referers']) … … 805 810 wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false); 806 811 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).'%;"'; 808 813 $this->getFlotChart(); 809 814 ?> … … 851 856 add_shortcode('CPD_VISITORS_PER_POST', array(&$this,'shortUserPerPost')); 852 857 add_shortcode('CPD_COUNTRIES', array(&$this,'shortCountries')); 858 add_shortcode('CPD_COUNTRIES_USERS', array(&$this,'shortCountriesUsers')); 853 859 add_shortcode('CPD_MOST_VISITED_POSTS', array(&$this,'shortMostVisitedPosts')); 854 860 add_shortcode('CPD_REFERERS', array(&$this,'shortReferers')); … … 857 863 add_shortcode('CPD_DAY_MOST_READS', array(&$this,'shortDayWithMostReads')); 858 864 add_shortcode('CPD_DAY_MOST_USERS', array(&$this,'shortDayWithMostUsers')); 865 add_shortcode('CPD_SEARCHSTRINGS', array(&$this,'shortGetSearches')); 859 866 } 860 867 function shortShow() { return $this->show('', '', false, false); } … … 877 884 function shortUserPerPost() { return $this->getUserPerPost(0, true, true); } 878 885 function shortCountries() { return $this->getCountries(0, true, false, true); } 886 function shortCountriesUsers(){ return $this->getCountries(0, true, true, true); } 879 887 function shortMostVisitedPosts(){ return $this->getMostVisitedPosts(0, 0, true, false, true); } 880 888 function shortReferers() { return $this->getReferers(0, true, 0); } 881 889 function shortDayWithMostReads(){ return $this->getDayWithMostReads(true, true); } 882 890 function shortDayWithMostUsers(){ return $this->getDayWithMostUsers(true, true); } 891 function shortGetSearches( $atts ) 892 { 893 extract( shortcode_atts( array( 894 'limit' => 0, 895 'days' => 0 896 ), $atts) ); 897 return $this->getSearches( $limit, $days, true ); 898 } 883 899 function shortPostsOnDay( $atts ) 884 900 { … … 928 944 global $wpdb; 929 945 $sql = $wpdb->prepare(" 930 SELECT t.id, t.ip AS longip, INET_NTOA(t.ip) AS ip, t.date, t.posts, c.client946 SELECT t.id, t.ip AS longip, $this->ntoa(t.ip) AS ip, t.date, t.posts, c.client 931 947 FROM ( SELECT id, ip, date, count(*) posts 932 948 FROM $wpdb->cpd_counter … … 958 974 $f = ($gz) ? gzopen($path,'w9') : fopen($path,'w'); 959 975 960 @ob_start();961 962 976 if (!$f) : 963 977 echo '<div class="error"><p>'.__('Backup failed! Cannot open file', 'cpd').' '.$path.'.</p></div>'; 964 978 else : 965 979 set_time_limit(300); 980 $this->flush_buffers(); 966 981 967 982 // write backup to file 968 $d = "DROP TABLE IF EXISTS `$t`;\n";983 $d = ''; 969 984 ($gz) ? gzwrite($f, $d) : fwrite($f, $d); 970 985 if ( $res = $this->mysqlQuery('rows', "SHOW CREATE TABLE `$t`", 'backupCollect'.__LINE__) ) … … 1027 1042 } 1028 1043 } 1029 // echo $this->formatBytes(memory_get_peak_usage());1030 1044 echo '| '; 1031 1045 $this->flush_buffers(); … … 1098 1112 1099 1113 1114 /** 1115 * restores backup data to the counter table or options 1116 */ 1117 function 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 } 1100 1190 1101 1191 function addCollectionToCountries( $visitors, $limit = false ) … … 1120 1210 $res = $this->mysqlQuery('rows', $sql, 'getCountries '.__LINE__); 1121 1211 1212 $temp = array(); 1122 1213 foreach ( $res as $r ) 1123 1214 $temp[$r->country] = $r->c; … … 1232 1323 if ( empty($s['firstcount']) ) 1233 1324 { 1234 // first day from table ORDER BY date LIMIT 11325 // first day from table 1235 1326 $res = $this->mysqlQuery('var', "SELECT MIN(date) FROM $wpdb->cpd_counter", 'getFirstCount'.__LINE__); 1236 1327 if ($res) … … 1273 1364 function flush_buffers() 1274 1365 { 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 } 1281 1378 @ob_start(); 1282 1379 } … … 1299 1396 } 1300 1397 1398 /** 1399 * try to get the search strings from referrer 1400 */ 1401 function 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 1301 1418 } // class -
count-per-day/trunk/counter-options.php
r454194 r571926 4 4 * Count Per Day - Options and Administration 5 5 */ 6 7 $mysiteurl = substr($_SERVER['REQUEST_URI'], 0, strpos($_SERVER['REQUEST_URI'], 'counter-options.php') + 19); 6 8 7 9 // check form … … 58 60 $rest = CpdGeoIp::updateDB(); 59 61 echo '<div class="updated"> 60 <form name="cpdcountries" method="post" action="'.$ _SERVER['REQUEST_URI'].'">62 <form name="cpdcountries" method="post" action="'.$mysiteurl.'"> 61 63 <p>'.sprintf(__('Countries updated. <b>%s</b> entries in %s without country left', 'cpd'), $rest, $wpdb->cpd_counter); 62 64 if ( $rest > 0 ) … … 98 100 foreach ($bots as $r) 99 101 { 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__); 101 103 $sum += $r->posts; 102 104 } … … 109 111 case 'cpd_clean' : 110 112 $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');114 113 echo '<div class="updated"><p>'.sprintf(__('Database cleaned. %s rows deleted.', 'cpd'), $rows).'</p></div>'; 115 114 break; … … 167 166 'reads' => $count_per_day->getCollectedReads(), 168 167 'users' => $count_per_day->getCollectedUsers() ); 169 $mold = 0; // current month170 $countryold = '#'; // current country171 168 172 169 echo '<div id="cpd_progress_collection" class="updated"><p>'.__('Collection in progress...', 'cpd').' '; 173 170 $count_per_day->flush_buffers(); 174 171 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 = " 176 210 SELECT LEFT(date,7) month, COUNT(*) c, country 177 211 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__); 183 215 foreach ($res as $r) 184 216 { 185 $reads = (int) $r->c; 186 $s['reads'] += $reads; 187 $s['users'] += 1; 217 $month = str_replace('-','',$r->month); 188 218 $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); 220 241 221 242 // format country data as "country:reads|visitors;" … … 243 264 $count_per_day->flush_buffers(); 244 265 245 $ sql = "266 $cpd_sql = " 246 267 SELECT COUNT(*) count, page 247 268 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 ) 249 270 AND page 250 271 GROUP BY page"; 251 $res = $count_per_day->mysqlQuery('rows', $ sql, 'getUsersPerPostCompress '.__LINE__);272 $res = $count_per_day->mysqlQuery('rows', $cpd_sql, 'getUsersPerPostCompress '.__LINE__); 252 273 253 274 $p = get_option('count_per_day_posts',array()); … … 273 294 // delete entries 274 295 $sizeold = $count_per_day->getTableSize($wpdb->cpd_counter); 275 $ sql = "296 $cpd_sql = " 276 297 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__); 279 300 $count_per_day->mysqlQuery('', "REPAIR TABLE `$wpdb->cpd_counter`", 'repairTable '.__LINE__); 280 301 $sizenew = $count_per_day->getTableSize($wpdb->cpd_counter); … … 296 317 echo '<div class="updated"><p>'.__('Installation of "Count per Day" checked', 'cpd').'</p></div>'; 297 318 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>'; 298 333 299 334 default: … … 308 343 if ( empty($mode) ) 309 344 $mode = ''; 345 346 $nonce = wp_create_nonce('cpdnonce'); 347 348 // restore from backup file 349 if ( isset($_GET['_wpnonce']) && wp_verify_nonce($_GET['_wpnonce'], 'cpdnonce') 350 && ( isset($_GET['cpdrestore']) || isset($_GET['cpdadding']) ) ) 351 { 352 $count_per_day->restore(); 353 } 310 354 311 355 switch($mode) { … … 334 378 } 335 379 ?> 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"> </span> <?php _e('Tools') ?></a> 386 <a class="nav-tab" href="#cpdsettings"><span class="cpd_icon cpd_settings"> </span> <?php _e('Settings') ?></a> 387 </h2> 388 339 389 <div id="poststuff" class="cpd_settings"> 340 341 <div class="postbox">342 <h3>343 <span class="cpd_icon cpd_settings"> </span> <?php _e('Settings') ?> |344 <span class="cpd_icon cpd_tools"> </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"> </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 > 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&hl=de...</code> > <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"> </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 else413 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"> </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"> </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"> </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"> </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"> </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"> </span> <a href="#cpdsettings"><?php _e('Settings') ?></a> |561 <span class="cpd_icon cpd_tools"> </span> <?php _e('Tools') ?></h3>562 </div>563 390 564 391 <?php // mass bots ?> … … 575 402 <h3><span class="cpd_icon cpd_massbots"> </span> <?php _e('Mass Bots', 'cpd') ?></h3> 576 403 <div class="inside"> 577 <form method="post" action="<?php echo $ _SERVER['REQUEST_URI'];?>#cpdtools">404 <form method="post" action="<?php echo $mysiteurl ?>#cpdtools"> 578 405 <p> 579 406 <?php printf(__('Show all IPs with more than %s page views per day', 'cpd'), $limit_input) ?> … … 582 409 </form> 583 410 584 <form method="post" action="<?php echo $ _SERVER['REQUEST_URI'];?>">411 <form method="post" action="<?php echo $mysiteurl ?>"> 585 412 <table class="widefat post"> 586 413 <thead> … … 634 461 <h3><span class="cpd_icon cpd_backup"> </span> <?php _e('Backup', 'cpd') ?></h3> 635 462 <div class="inside"> 636 <form method="post" action="<?php echo $ _SERVER['REQUEST_URI'];?>">463 <form method="post" action="<?php echo $mysiteurl ?>"> 637 464 <p> 638 465 <?php printf(__('Create a backup of the counter table %s in your wp-content directory (if writable).', 'cpd'), '<code>'.$wpdb->cpd_counter.'</code>') ?> … … 646 473 </p> 647 474 </form> 648 <p>649 475 <?php 650 476 if ( is_writable(WP_CONTENT_DIR) ) 651 477 { 652 $nonce = wp_create_nonce('cpdnonce');653 654 478 // delete file? 655 479 if ( isset($_GET['cpddel']) && isset($_GET['_wpnonce']) && wp_verify_nonce($_GET['_wpnonce'], 'cpdnonce') ) … … 665 489 $d->close(); 666 490 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&_wpnonce='.$nonce.'&'; 494 echo "<table class='cpd_backups'>\n"; 667 495 foreach ( $dirarray as $entry ) 668 496 if ( preg_match('/count_per_day|cpd_counter/i', $entry) ) 669 echo '<a href="?page=count-per-day/counter-options.php&_wpnonce='.$nonce.'&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))." </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> </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').'">⇑</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">⇑</span> <?php _e('replace current counter table with with backup', 'cpd') ?><br/> 527 <span style="color:red;font-weight:bold">X </span> <?php _e('delete backup file', 'cpd') ?> 528 </p> 529 <?php 673 530 } 674 531 ?> 675 </p>676 532 </div> 677 533 </div> … … 685 541 <?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') ?> 686 542 </p> 687 688 <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>"> 543 <form method="post" action="<?php echo $mysiteurl ?>"> 689 544 <p> 690 545 <input type="hidden" name="do" value="cpd_clean" /> … … 692 547 </p> 693 548 </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> 694 557 </div> 695 558 </div> … … 700 563 <h3><span class="cpd_icon cpd_collection"> </span> <?php _e('Collect old data', 'cpd') ?></h3> 701 564 <div class="inside"> 702 <form method="post" action="<?php echo $ _SERVER['REQUEST_URI'];?>">565 <form method="post" action="<?php echo $mysiteurl ?>"> 703 566 <p> 704 567 <?php … … 736 599 </div> 737 600 738 <!-- Plugin page -->739 <div class="postbox">740 <h3><span class="cpd_icon cpd_help"> </span> <?php _e('Support', 'cpd') ?></h3>741 <div class="inside">742 <?php $count_per_day->cpdInfo() ?>743 </div>744 </div>745 746 601 </div> <!-- left column --> 747 602 … … 757 612 </p> 758 613 <?php if ( $cpd_geoip ) { ?> 759 <form method="post" action="<?php echo $ _SERVER['REQUEST_URI'];?>">614 <form method="post" action="<?php echo $mysiteurl ?>"> 760 615 <p> 761 616 <input type="hidden" name="do" value="cpd_countries" /> … … 769 624 echo '<p>'.__('Download a new version of GeoIP.dat file.', 'cpd').'</p>'; 770 625 ?> 771 <form method="post" action="<?php echo $ _SERVER['REQUEST_URI'];?>">626 <form method="post" action="<?php echo $mysiteurl ?>"> 772 627 <p> 773 628 <input type="hidden" name="do" value="cpd_countrydb" /> … … 790 645 <?php _e('Here you can start the installation functions manually.<br/>Same as deactivate and reactivate the plugin.', 'cpd') ?> 791 646 </p> 792 <form method="post" action="<?php echo $ _SERVER['REQUEST_URI'];?>">647 <form method="post" action="<?php echo $mysiteurl ?>"> 793 648 <p> 794 649 <input type="hidden" name="do" value="cpd_activate" /> … … 807 662 </p> 808 663 809 <form method="post" action="<?php echo $ _SERVER['REQUEST_URI'];?>">664 <form method="post" action="<?php echo $mysiteurl ?>"> 810 665 <p> 811 666 <input type="hidden" name="do" value="cpd_reset" /> … … 818 673 819 674 <!-- Uninstall --> 820 <form method="post" action="<?php echo $ _SERVER['REQUEST_URI'];?>">675 <form method="post" action="<?php echo $mysiteurl ?>"> 821 676 <div class="postbox"> 822 677 <h3><span class="cpd_icon cpd_uninstall"> </span> <?php _e('Uninstall', 'cpd') ?></h3> … … 839 694 </div> 840 695 </form> 841 696 697 <!-- Plugin page --> 698 <div class="postbox"> 699 <h3><span class="cpd_icon cpd_help"> </span> <?php _e('Support', 'cpd') ?></h3> 700 <div class="inside"> 701 <?php $count_per_day->cpdInfo() ?> 702 </div> 703 </div> 704 842 705 </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"> </span> <?php _e('Tools') ?></a> 712 <a class="nav-tab nav-tab-active" href="#cpdsettings"><span class="cpd_icon cpd_settings"> </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"> </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 > 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&hl=de...</code> > <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"> </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"> </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"> </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"> </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"> </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"> </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> 844 926 845 927 </div><!-- poststuff --> -
count-per-day/trunk/counter.css
r421091 r571926 11 11 12 12 /* settings */ 13 14 h2 .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 } 13 43 14 44 .cpd_halfsize { … … 115 145 116 146 .cpd-dashboard .inside { 117 padding: 5px; 147 padding: 0 5px; 148 } 149 150 .cpd-dashboard .postbox { 151 min-width: 0 !important; 118 152 } 119 153 … … 396 430 .cpd-flag-md{background-position:0 -1547px;} 397 431 .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 3 3 Plugin Name: Count Per Day 4 4 Plugin 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.15 Description: Counter, shows reads and visitors per page; today, yesterday, last week, last months ... on dashboard, per shortcode or in widget. 6 Version: 3.2 7 7 License: Postcardware 8 8 Author: Tom Braider … … 11 11 12 12 $cpd_dir_name = 'count-per-day'; 13 $cpd_version = '3. 1.1';13 $cpd_version = '3.2'; 14 14 15 15 $cpd_path = str_replace('/', DIRECTORY_SEPARATOR, ABSPATH.PLUGINDIR.'/'.$cpd_dir_name.'/'); … … 103 103 if ( !$isBot && $countUser && isset($page) ) 104 104 { 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); 106 115 $client = ($this->options['referers']) ? $_SERVER['HTTP_USER_AGENT'] : ''; 107 116 $referer = ($this->options['referers'] && isset($_SERVER['HTTP_REFERER'])) ? $_SERVER['HTTP_REFERER'] : ''; … … 111 120 112 121 // 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__); 114 123 if ( !$count ) 115 124 { … … 121 130 $country = strtolower(cpd_geoip_country_code_by_addr($gi, $userip)); 122 131 $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__); 124 133 } 125 134 else 126 135 // without country 127 136 $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__); 129 138 } 130 139 // online counter 131 $oc = get_option('count_per_day_online', array()); 140 $oc = get_option('count_per_day_online', array()); 132 141 $oc[$userip] = array( time(), $page ); 133 142 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); 134 159 } 135 160 } … … 678 703 LIMIT %d", 679 704 $date, $limit); 680 $r = '<small>'.sprintf(__('The %s most visited posts in last %s days:', 'cpd'), $limit, $days).'< br/> </small>';705 $r = '<small>'.sprintf(__('The %s most visited posts in last %s days:', 'cpd'), $limit, $days).'</small>'; 681 706 $r .= $this->getUserPer_SQL( $sql, 'getMostVisitedPosts', $frontend ); 682 707 if ($return) return $r; else echo $r; … … 819 844 $all = max(1, (int) $res); 820 845 $rest = 100; 821 $r = '<ul id="cpd_clients" class="cpd_front_list">';822 846 foreach ($clients as $c) 823 847 { 824 848 $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__); 826 853 $percent = number_format(100 * $count / $all, 0); 827 854 $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; 829 857 } 830 858 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 } 832 869 $r .= '</ul>'; 833 870 834 871 $res = $this->mysqlQuery('var', "SELECT MIN(date) FROM ".$wpdb->cpd_counter, 'getClients_date '.__LINE__); 835 872 $r .= '<small>'.__('Counter starts on', 'cpd').': '.mysql2date(get_option('date_format'), $res ).'</small>'; … … 853 890 $localref = ($this->options['localref']) ? '' : " AND referer NOT LIKE '".get_bloginfo('url')."%%' "; 854 891 $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/> </small>';892 $r = '<small>'.sprintf(__('The %s referrers in last %s days:', 'cpd'), $limit, $days).'</small>'; 856 893 $r .= '<ul id="cpd_referrers" class="cpd_front_list">'; 857 894 if ($res) … … 859 896 { 860 897 $ref = str_replace('&', '&', $row->referer); 861 $ref2 = str_replace( 'http://', '', $ref);898 $ref2 = str_replace(array('http://', 'https://'), '', $ref); 862 899 $r .= '<li><a href="'.$ref.'">'.$ref2.'</a> <b>'.$row->count.'</b></li>'; 863 900 } … … 956 993 $if .= " WHEN ".str_replace('p', '', $id)." THEN $count"; 957 994 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 tax965 // FROM $wpdb->posts p,966 // $wpdb->terms t967 // LEFT JOIN $wpdb->term_taxonomy x968 // ON x.term_id = t.term_id969 // WHERE p.id IN ($list)970 // OR -t.term_id IN ($list)971 // GROUP BY p.id972 // ORDER BY count DESC";973 // echo $sql;974 // $m = $this->mysqlQuery('rows', $sql, $name.' '.__LINE__);975 // if (!$m)976 // return;977 978 995 $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"; 1004 1020 $m = $this->mysqlQuery('rows', $sql, $name.' '.__LINE__); 1005 1021 if (!$m) … … 1013 1029 $r .= '<li>'; 1014 1030 // 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 ) 1017 1032 { 1018 1033 if ( $row->post_id > 0 ) … … 1020 1035 .'<a href="'.$this->dir.'/userperspan.php?page='.$row->post_id.'&KeepThis=true&TB_iframe=true" class="thickbox" title="Count per Day"><img src="'.$this->img('cpd_calendar.png').'" alt="[v]" style="width:12px;height:12px;" /></a> '; 1021 1036 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;" />'; 1023 1038 } 1024 1039 1025 1040 $r .= '<a href="'.get_bloginfo('url'); 1026 // if ( $row->post_id < 0 && $row->tax == 'category' )1027 // category1028 // $r .= '?cat='.abs($row->post_id).'">- '.$row->tag_cat_name.' ('.__('Category').') -';1029 // else if ( $row->post_id < 0 )1030 // tag1031 // $r .= '?tag='.$row->tag_cat_slug.'">- '.$row->tag_cat_name.' ('.__('Tag').') -';1032 1033 1041 if ( $row->tax == 'category' ) 1034 1042 // category … … 1037 1045 // tag 1038 1046 $r .= '?tag='.$row->tag_cat_slug.'">- '.$row->tag_cat_name.' ('.__('Tag').') -'; 1039 1040 1041 1042 1047 else if ( $row->post_id == 0 ) 1043 1048 // homepage … … 1052 1057 $r .= '</ul>'; 1053 1058 return $r; 1059 } 1060 1061 /** 1062 * shows searchstrings 1063 */ 1064 function 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; 1054 1104 } 1055 1105 … … 1342 1392 delete_option('count_per_day_online'); 1343 1393 delete_option('count_per_day_notes'); 1394 delete_option('count_per_day_posts'); 1395 delete_option('count_per_day_search'); 1344 1396 $wpdb->query("DELETE FROM $wpdb->usermeta WHERE meta_key LIKE '%_cpd_metaboxes%';"); 1345 1397 } -
count-per-day/trunk/download.php
r488883 r571926 15 15 header("Content-Disposition: attachment; filename=\"$name\""); 16 16 readfile($file); 17 18 19 20 -
count-per-day/trunk/geoip/geoip.php
r421769 r571926 47 47 48 48 $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__); 50 50 $gi = cpd_geoip_open($cpd_path.'/geoip/GeoIP.dat', GEOIP_STANDARD); 51 51 … … 83 83 global $cpd_path; 84 84 85 // set directory mode86 @chmod($cpd_path.'/geoip', 0777);87 88 85 // function checks 89 86 if ( !ini_get('allow_url_fopen') ) … … 113 110 fclose($h); 114 111 115 @chmod($file, 07 77);112 @chmod($file, 0755); 116 113 if (is_file($file) && $del) 117 114 return __('New GeoIP database installed.', 'cpd'); -
count-per-day/trunk/locale/cpd-de_DE.po
r454203 r571926 1 1 msgid "" 2 2 msgstr "" 3 "Project-Id-Version: Count per Day\n"3 "Project-Id-Version: Count Per Day v3.2\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "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" 7 7 "Last-Translator: Tom Braider <post@tomsdimension.de>\n" 8 8 "Language-Team: \n" … … 20 20 "X-Textdomain-Support: yes" 21 21 22 #: counter-options.php:50 22 #: Copy of counter-options.php:50 23 #: counter-options.php:52 23 24 #@ cpd 24 25 msgid "Options updated" 25 26 msgstr "Einstellungen aktualisiert" 26 27 27 #: counter-options.php:114 28 #: Copy of counter-options.php:111 29 #: counter-options.php:113 28 30 #, php-format 29 31 #@ cpd … … 31 33 msgstr "Datenbank aufgeräumt. %s Datensätze gelöscht." 32 34 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 35 39 #@ cpd 36 40 msgid "UNINSTALL Count per Day" 37 41 msgstr "DEINSTALLIERE Count per Day" 38 42 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 39 47 #: counter-options.php:134 40 48 #: counter-options.php:135 41 #: counter-options.php:13642 49 #, php-format 43 50 #@ cpd … … 45 52 msgstr "Tabelle %s gelöscht" 46 53 47 #: counter-options.php:137 54 #: Copy of counter-options.php:134 55 #: counter-options.php:136 48 56 #@ cpd 49 57 msgid "Options deleted" 50 58 msgstr "Einstellungen gelöscht" 51 59 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 54 64 #@ cpd 55 65 msgid "Uninstall" 56 66 msgstr "Deinstallation" 57 67 58 #: counter-options.php:319 68 #: Copy of counter-options.php:322 69 #: counter-options.php:363 59 70 #@ cpd 60 71 msgid "Click here" 61 72 msgstr "Klick hier" 62 73 63 #: counter-options.php:319 74 #: Copy of counter-options.php:322 75 #: counter-options.php:363 64 76 #@ cpd 65 77 msgid "to finish the uninstall and to deactivate \"Count per Day\"." 66 78 msgstr "um die Deinstallation zu beenden und \"Count per Day\" zu deaktivieren." 67 79 68 #: counter-options.php:356 80 #: Copy of counter-options.php:359 81 #: counter-options.php:726 69 82 #@ cpd 70 83 msgid "Online time" 71 84 msgstr "Onlinezeit" 72 85 73 #: counter-options.php:357 86 #: Copy of counter-options.php:360 87 #: counter-options.php:727 74 88 #@ cpd 75 89 msgid "Seconds for online counter. Used for \"Visitors online\" on dashboard page." 76 90 msgstr "Sekunden für Onlinecounter. Wird für die Anzeige der \"Besucher momentan online\" im Dashboard verwendet." 77 91 78 #: counter-options.php:360 92 #: Copy of counter-options.php:363 93 #: counter-options.php:730 79 94 #@ cpd 80 95 msgid "Logged on Users" 81 96 msgstr "Angemeldete Benutzer" 82 97 83 #: counter-options.php:362 98 #: Copy of counter-options.php:365 99 #: counter-options.php:732 84 100 #@ cpd 85 101 msgid "count too" 86 102 msgstr "auch mit zählen" 87 103 88 #: counter-options.php:374 104 #: Copy of counter-options.php:377 105 #: counter-options.php:744 89 106 #@ cpd 90 107 msgid "Auto counter" 91 108 msgstr "Auto-Counter" 92 109 93 #: counter-options.php:375 110 #: Copy of counter-options.php:378 111 #: counter-options.php:745 94 112 #@ cpd 95 113 msgid "Counts automatically single-posts and pages, no changes on template needed." 96 114 msgstr "Zählt automatisch Besuche auf Single-Posts und Seiten ohne Änderungen am Template." 97 115 98 #: counter-options.php:378 116 #: Copy of counter-options.php:381 117 #: counter-options.php:748 99 118 #@ cpd 100 119 msgid "Bots to ignore" 101 120 msgstr "Spam/Suchmaschinen Bots ignorieren" 102 121 103 #: counter-options.php:556 122 #: Copy of counter-options.php:559 123 #: counter-options.php:926 104 124 #@ cpd 105 125 msgid "Update options" 106 126 msgstr "Einstellungen aktualisieren" 107 127 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 110 132 #@ cpd 111 133 msgid "Clean the database" 112 134 msgstr "Datenbank aufräumen" 113 135 114 #: counter-options.php:685 136 #: Copy of counter-options.php:688 137 #: counter-options.php:543 115 138 #@ cpd 116 139 msgid "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." 117 140 msgstr "Du kannst die Counter-Tabelle von \"Spam-Daten\" befreien.<br />Wenn du neue Bots zu der Liste oben hinzufügst bleiben die alten \"Spam-Daten\" erhalten.<br />Hier kannst du den Filter erneut laufen lassen und die Besuche von Bots nachträglich löschen." 118 141 119 #: counter-options.php:825 142 #: Copy of counter-options.php:828 143 #: counter-options.php:682 120 144 #@ cpd 121 145 msgid "If \"Count per Day\" only disabled the tables in the database will be preserved." 122 146 msgstr "Wenn \"Count per Day\" nur deaktiviert wird, bleiben die Tabellen in der Datenbank erhalten." 123 147 124 #: counter-options.php:826 148 #: Copy of counter-options.php:829 149 #: counter-options.php:683 125 150 #@ cpd 126 151 msgid "Here you can delete the tables and disable \"Count per Day\"." 127 152 msgstr "Hier kannst du \"Count per Day\" deinstallieren und die Tabellen löschen." 128 153 129 #: counter-options.php:829 154 #: Copy of counter-options.php:832 155 #: counter-options.php:686 130 156 #@ cpd 131 157 msgid "WARNING" 132 158 msgstr "WARNUNG" 133 159 134 #: counter-options.php:830 160 #: Copy of counter-options.php:833 161 #: counter-options.php:687 135 162 #@ cpd 136 163 msgid "These tables (with ALL counter data) will be deleted." 137 164 msgstr "Diese Tabellen werden mit ALLEN Zählerdaten gelöscht." 138 165 139 #: counter-options.php:832 166 #: Copy of counter-options.php:835 167 #: counter-options.php:689 140 168 #@ cpd 141 169 msgid "If \"Count per Day\" re-installed, the counter starts at 0." 142 170 msgstr "Wenn \"Count per Day\" erneut installiert wird, beginnt der Zähler bei 0." 143 171 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 146 176 #@ cpd 147 177 msgid "Yes" 148 178 msgstr "Ja, los!" 149 179 150 #: counter-options.php:836 180 #: Copy of counter-options.php:839 181 #: counter-options.php:693 151 182 #@ cpd 152 183 msgid "You are sure to disable Count per Day and delete all data?" 153 184 msgstr "Bist du sicher, dass du Count per Day deaktivieren und alle Daten löschen willst?" 154 185 155 #: counter-core.php:8 02156 #: counter.php:1 137186 #: counter-core.php:844 187 #: counter.php:1232 157 188 #@ cpd 158 189 msgid "Statistics" 159 190 msgstr "Statistiken" 160 191 161 #: counter-core.php: 771162 #: counter.php:1 62163 #: counter.php:1 023164 #: counter.php:1 215192 #: counter-core.php:812 193 #: counter.php:190 194 #: counter.php:1118 195 #: counter.php:1310 165 196 #@ cpd 166 197 msgid "Total visitors" 167 198 msgstr "Besucher gesamt" 168 199 169 #: counter.php:1 63170 #: counter.php:1 221200 #: counter.php:191 201 #: counter.php:1316 171 202 #@ cpd 172 203 msgid "Visitors currently online" 173 204 msgstr "Besucher momentan online" 174 205 175 #: counter.php:1 64176 #: counter.php:1 216206 #: counter.php:192 207 #: counter.php:1311 177 208 #@ cpd 178 209 msgid "Visitors today" 179 210 msgstr "Besucher heute" 180 211 181 #: counter.php:1 65182 #: counter.php:1 217212 #: counter.php:193 213 #: counter.php:1312 183 214 #@ cpd 184 215 msgid "Visitors yesterday" 185 216 msgstr "Besucher gestern" 186 217 187 #: counter.php:1 66188 #: counter.php:1 218218 #: counter.php:194 219 #: counter.php:1313 189 220 #@ cpd 190 221 msgid "Visitors last week" 191 222 msgstr "Besucher letzte Woche" 192 223 193 #: counter.php:1 69194 #: counter.php:8 35195 #: counter.php:1 222224 #: counter.php:197 225 #: counter.php:877 226 #: counter.php:1317 196 227 #@ cpd 197 228 msgid "Counter starts on" 198 229 msgstr "gezählt ab" 199 230 200 #: counter-core.php: 777201 #: counter.php:1 68202 #: counter.php:2 67203 #: counter.php:1 025204 #: counter.php:1 220231 #: counter-core.php:818 232 #: counter.php:196 233 #: counter.php:295 234 #: counter.php:1120 235 #: counter.php:1315 205 236 #: userperspan.php:34 206 237 #@ cpd … … 208 239 msgstr "Besucher pro Tag" 209 240 210 #: counter-core.php: 773211 #: counter.php:1 219241 #: counter-core.php:814 242 #: counter.php:1314 212 243 #@ cpd 213 244 msgid "Visitors per month" 214 245 msgstr "Besucher pro Monat" 215 246 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 218 250 #@ cpd 219 251 msgid "Visitors per post" 220 252 msgstr "Besucher pro Artikel" 221 253 222 #: counter-options.php:124 254 #: Copy of counter-options.php:121 255 #: counter-options.php:123 223 256 #@ cpd 224 257 msgid "Counter reseted." 225 258 msgstr "Zähler zurückgesetzt." 226 259 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 229 264 #@ cpd 230 265 msgid "How many posts do you want to see on dashboard page?" 231 266 msgstr "Wie viele Einträge möchtest du auf der Dashboard Seite sehen?" 232 267 233 #: counter-options.php:442 268 #: Copy of counter-options.php:445 269 #: counter-options.php:812 234 270 #@ cpd 235 271 msgid "Latest Counts - Posts" 236 272 msgstr "Aktuelle Besuche - Artikel" 237 273 238 #: counter-options.php:446 274 #: Copy of counter-options.php:449 275 #: counter-options.php:816 239 276 #@ cpd 240 277 msgid "Latest Counts - Days" 241 278 msgstr "Aktuelle Besuche - Tage" 242 279 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 246 286 #@ cpd 247 287 msgid "How many days do you want look back?" 248 288 msgstr "Wie viele Tage möchtest du zurück schauen?" 249 289 250 #: counter-options.php:487 290 #: Copy of counter-options.php:490 291 #: counter-options.php:857 251 292 #@ cpd 252 293 msgid "Show in lists" 253 294 msgstr "In Übersichten anzeigen" 254 295 255 #: counter-options.php:488 296 #: Copy of counter-options.php:491 297 #: counter-options.php:858 256 298 #@ cpd 257 299 msgid "Show \"Reads per Post\" in a new column in post management views." 258 300 msgstr "Zeige \"Besucher pro Artikel\" in einer eigenen Spalte in der Artikelübersicht." 259 301 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 262 306 #@ cpd 263 307 msgid "Reset the counter" 264 308 msgstr "Zähler zurücksetzen" 265 309 266 #: counter-options.php:806 310 #: Copy of counter-options.php:809 311 #: counter-options.php:663 267 312 #@ cpd 268 313 msgid "You can reset the counter by empty the table. ALL TO 0!<br />Make a backup if you need the current data!" 269 314 msgstr "Du kannst die Zähler zurücksetzen und die Tabelle leeren. Alles auf 0!<br />Wenn du die aktuellen Zahlen brauchst, mache ein Backup der Datenbank!" 270 315 271 #: counter.php: 680316 #: counter.php:708 272 317 #, php-format 273 318 #@ cpd … … 275 320 msgstr "Die %s am meisten besuchten Seiten der letzten %s Tage:" 276 321 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 280 327 #@ default 281 328 msgid "Settings" 282 329 msgstr "" 283 330 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 288 336 #@ cpd 289 337 msgid "Reads" 290 338 msgstr "Seitenaufrufe" 291 339 292 #: counter-core.php: 776340 #: counter-core.php:817 293 341 #@ cpd 294 342 msgid "Latest Counts" 295 343 msgstr "Letzte Seitenaufrufe" 296 344 297 #: counter-options.php:450 345 #: Copy of counter-options.php:453 346 #: counter-options.php:820 298 347 #@ cpd 299 348 msgid "Chart - Days" 300 349 msgstr "Diagramm - Tage" 301 350 302 #: counter-options.php:454 351 #: Copy of counter-options.php:457 352 #: counter-options.php:824 303 353 #@ cpd 304 354 msgid "Chart - Height" 305 355 msgstr "Diagramm - Höhe" 306 356 307 #: counter-options.php:455 357 #: Copy of counter-options.php:458 358 #: counter-options.php:825 308 359 #@ cpd 309 360 msgid "Height of the biggest bar" 310 361 msgstr "Höhe des größten Balkens" 311 362 312 #: counter.php:1 209363 #: counter.php:1304 313 364 #@ cpd 314 365 msgid "This post" 315 366 msgstr "Diese Seite" 316 367 317 #: counter-options.php:403 368 #: Copy of counter-options.php:406 369 #: counter-options.php:773 318 370 #@ default 319 371 msgid "Dashboard" 320 372 msgstr "" 321 373 322 #: counter.php:2 66374 #: counter.php:294 323 375 #@ cpd 324 376 msgid "Reads per day" 325 377 msgstr "Seitenaufrufe pro Tag" 326 378 327 #: counter-options.php:61 379 #: Copy of counter-options.php:61 380 #: counter-options.php:63 328 381 #, php-format 329 382 #@ cpd … … 331 384 msgstr "Länder aktualisiert. <b>%s</b> Datensätze in %s noch offen." 332 385 333 #: counter-options.php:64 386 #: Copy of counter-options.php:64 387 #: counter-options.php:66 334 388 #@ cpd 335 389 msgid "update next" 336 390 msgstr "weiter aktualisieren" 337 391 338 #: counter-options.php:753 392 #: Copy of counter-options.php:756 393 #: counter-options.php:610 339 394 #@ cpd 340 395 msgid "GeoIP - Countries" 341 396 msgstr "GeoIP - Länder" 342 397 343 #: counter-options.php:762 398 #: Copy of counter-options.php:765 399 #: counter-options.php:619 344 400 #@ cpd 345 401 msgid "Update old counter data" 346 402 msgstr "Aktualisiere alte Zählerdaten" 347 403 348 #: counter-options.php:774 404 #: Copy of counter-options.php:777 405 #: counter-options.php:631 349 406 #@ cpd 350 407 msgid "Update GeoIP database" 351 408 msgstr "Aktualisiere GeoIP Datenbank" 352 409 353 #: counter-options.php:769 410 #: Copy of counter-options.php:772 411 #: counter-options.php:626 354 412 #@ cpd 355 413 msgid "Download a new version of GeoIP.dat file." 356 414 msgstr "Neue Version von GeoIP.dat herunterladen." 357 415 358 #: counter-options.php:779 416 #: Copy of counter-options.php:782 417 #: counter-options.php:636 359 418 #@ cpd 360 419 msgid "More informations about GeoIP" 361 420 msgstr "Mehr Informationen über GeoIP" 362 421 363 #: counter-core.php: 786422 #: counter-core.php:828 364 423 #@ cpd 365 424 msgid "Reads per Country" 366 425 msgstr "Seitenaufrufe pro Land" 367 426 368 #: geoip/geoip.php:11 7427 #: geoip/geoip.php:114 369 428 #@ cpd 370 429 msgid "New GeoIP database installed." 371 430 msgstr "Neue GeoIP Datenbank installiert." 372 431 373 #: geoip/geoip.php:11 9432 #: geoip/geoip.php:116 374 433 #@ cpd 375 434 msgid "Sorry, an error occurred. Try again or check the access rights of directory \"geoip\" is 777." 376 435 msgstr "Leider gab es einen Fehler. Versuche es noch einmal oder überprüfe ob du für das Verzeichnis \"geoip\" Schreibrechte (777) hast." 377 436 378 #: geoip/geoip.php:9 3437 #: geoip/geoip.php:90 379 438 #@ cpd 380 439 msgid "Sorry, necessary functions (zlib) not installed or enabled in php.ini." 381 440 msgstr "Leider ist eine notwendige Funktion (zlib) nicht installiert oder nicht in der php.ini aktiviert." 382 441 383 #: counter-options.php:459 442 #: Copy of counter-options.php:462 443 #: counter-options.php:829 384 444 #@ cpd 385 445 msgid "Countries" 386 446 msgstr "Länder" 387 447 388 #: counter-options.php:460 448 #: Copy of counter-options.php:463 449 #: counter-options.php:830 389 450 #@ cpd 390 451 msgid "How many countries do you want to see on dashboard page?" 391 452 msgstr "Wie viele Länder möchtest du auf der Dashboard Seite sehen?" 392 453 393 #: counter-options.php:104 454 #: Copy of counter-options.php:104 455 #: counter-options.php:106 394 456 #, php-format 395 457 #@ cpd … … 397 459 msgstr "Massen-Bots bereinigt. %s Zählerdaten gelöscht." 398 460 399 #: counter-options.php:575 461 #: Copy of counter-options.php:578 462 #: counter-options.php:402 400 463 #: massbots.php:36 401 464 #@ cpd … … 403 466 msgstr "Massen-Bots" 404 467 405 #: counter-options.php:579 468 #: Copy of counter-options.php:582 469 #: counter-options.php:406 406 470 #, php-format 407 471 #@ cpd … … 409 473 msgstr "Zeige alle IP-Adressen mit mehr als %s Seitenaufrufe pro Tag" 410 474 411 #: counter-options.php:580 475 #: Copy of counter-options.php:583 476 #: counter-options.php:407 412 477 #: notes.php:71 413 478 #: userperspan.php:44 … … 416 481 msgstr "anzeigen" 417 482 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 420 487 #, php-format 421 488 #@ cpd … … 423 490 msgstr "Lösche diese %s Zählerdaten" 424 491 425 #: counter.php:8 31492 #: counter.php:865 426 493 #@ cpd 427 494 msgid "Other" 428 495 msgstr "Sonstige" 429 496 430 #: counter.php:10 04497 #: counter.php:1054 431 498 #: massbots.php:53 432 499 #: userperspan.php:63 … … 435 502 msgstr "" 436 503 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 439 507 #@ cpd 440 508 msgid "Browsers" 441 509 msgstr "Browser" 442 510 443 #: counter-options.php:588 511 #: Copy of counter-options.php:591 512 #: counter-options.php:415 444 513 #@ cpd 445 514 msgid "IP" 446 515 msgstr "IP" 447 516 448 #: counter-options.php:589 517 #: Copy of counter-options.php:592 518 #: counter-options.php:416 449 519 #: notes.php:75 450 520 #@ cpd … … 453 523 msgstr "Datum" 454 524 455 #: counter-options.php:590 525 #: Copy of counter-options.php:593 526 #: counter-options.php:417 456 527 #@ cpd 457 528 msgid "Client" 458 529 msgstr "Browser" 459 530 460 #: counter-options.php:591 531 #: Copy of counter-options.php:594 532 #: counter-options.php:418 461 533 #@ cpd 462 534 msgid "Views" 463 535 msgstr "Seitenaufrufe" 464 536 465 #: counter-options.php:495 537 #: Copy of counter-options.php:498 538 #: counter-options.php:865 466 539 #@ cpd 467 540 msgid "Start Values" 468 541 msgstr "Startwerte" 469 542 470 #: counter-options.php:499 543 #: Copy of counter-options.php:502 544 #: counter-options.php:869 471 545 #@ cpd 472 546 msgid "Here you can change the date of first count and add a start count." 473 547 msgstr "Hier kannst du das Startdatum und den Startzählerstand überschreiben." 474 548 475 #: counter-options.php:503 549 #: Copy of counter-options.php:506 550 #: counter-options.php:873 476 551 #@ cpd 477 552 msgid "Start date" 478 553 msgstr "Startdatum" 479 554 480 #: counter-options.php:504 555 #: Copy of counter-options.php:507 556 #: counter-options.php:874 481 557 #@ cpd 482 558 msgid "Your old Counter starts at?" 483 559 msgstr "Dein alter Zähler begann am?" 484 560 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 487 565 #@ cpd 488 566 msgid "Start count" 489 567 msgstr "Startzählerstand" 490 568 491 #: counter-options.php:508 569 #: Copy of counter-options.php:511 570 #: counter-options.php:878 492 571 #@ cpd 493 572 msgid "Add this value to \"Total visitors\"." 494 573 msgstr "Addiere diesen Wert zu \"Besucher gesamt\"." 495 574 496 #: counter-options.php:740 575 #: Copy of counter-options.php:743 576 #: counter-options.php:701 497 577 #@ cpd 498 578 msgid "Support" 499 579 msgstr "Kontakt" 500 580 501 #: counter-core.php:7 38581 #: counter-core.php:778 502 582 #@ cpd 503 583 msgid "Bug? Problem? Question? Hint? Praise?" 504 584 msgstr "Bug? Problem? Frage? Tipp? Lob?" 505 585 506 #: counter-core.php:7 39586 #: counter-core.php:779 507 587 #, php-format 508 588 #@ cpd … … 510 590 msgstr "Schreib einen Kommentar auf der <a href=\"%s\">Plugin-Seite</a>." 511 591 512 #: counter.php: 796592 #: counter.php:824 513 593 #@ default 514 594 msgid "Show" 515 595 msgstr "" 516 596 517 #: counter.php: 989597 #: counter.php:1039 518 598 #@ default 519 599 msgid "Edit Post" 520 600 msgstr "" 521 601 522 #: counter-core.php:7 37602 #: counter-core.php:777 523 603 #, php-format 524 604 #@ cpd … … 526 606 msgstr "Zeit bei Count per Day: <code>%s</code>" 527 607 528 #: counter-options.php:363 608 #: Copy of counter-options.php:366 609 #: counter-options.php:733 529 610 #@ cpd 530 611 msgid "until User Level" 531 612 msgstr "bis Benutzerlevel" 532 613 533 #: counter-core.php: 778614 #: counter-core.php:820 534 615 #@ default 535 616 msgid "Plugin" 536 617 msgstr "" 537 618 538 #: counter.php: 798619 #: counter.php:826 539 620 #: notes.php:42 540 621 #: notes.php:76 … … 568 649 msgstr "ändern" 569 650 570 #: counter-options.php:512 651 #: Copy of counter-options.php:515 652 #: counter-options.php:882 571 653 #@ cpd 572 654 msgid "Add this value to \"Total reads\"." 573 655 msgstr "Addiere diesen Wert zu \"Seitenaufrufe gesamt\"." 574 656 575 #: counter.php:1 57576 #: counter.php:1 210657 #: counter.php:185 658 #: counter.php:1305 577 659 #@ cpd 578 660 msgid "Total reads" 579 661 msgstr "Seitenaufrufe gesamt" 580 662 581 #: counter.php:1 58582 #: counter.php:1 211663 #: counter.php:186 664 #: counter.php:1306 583 665 #@ cpd 584 666 msgid "Reads today" 585 667 msgstr "Seitenaufrufe heute" 586 668 587 #: counter.php:1 59588 #: counter.php:1 212669 #: counter.php:187 670 #: counter.php:1307 589 671 #@ cpd 590 672 msgid "Reads yesterday" 591 673 msgstr "Seitenaufrufe gestern" 592 674 593 #: counter.php:3 57594 #: counter.php:1 054675 #: counter.php:385 676 #: counter.php:1149 595 677 #@ cpd 596 678 msgid "Map" 597 679 msgstr "Weltkarte" 598 680 599 #: counter-options.php:382 681 #: Copy of counter-options.php:385 682 #: counter-options.php:752 600 683 #@ cpd 601 684 msgid "Anonymous IP" 602 685 msgstr "Anonyme IP-Adresse" 603 686 604 #: counter-options.php:386 687 #: Copy of counter-options.php:389 688 #: counter-options.php:756 605 689 #@ cpd 606 690 msgid "Cache" 607 691 msgstr "Cache" 608 692 609 #: counter-options.php:387 693 #: Copy of counter-options.php:390 694 #: counter-options.php:757 610 695 #@ cpd 611 696 msgid "I use a cache plugin. Count these visits with ajax." 612 697 msgstr "Ich benutze ein Cache-Plugin. Zähle diese Seiten mit Ajax." 613 698 614 #: counter-options.php:465 699 #: Copy of counter-options.php:468 700 #: counter-options.php:835 615 701 #@ cpd 616 702 msgid "Substring of the user agent, separated by comma" 617 703 msgstr "Teil der Browserkennung (user agent), getrennt durch Komma." 618 704 619 #: counter-core.php: 787705 #: counter-core.php:829 620 706 #@ cpd 621 707 msgid "Visitors per Country" 622 708 msgstr "Besucher pro Land" 623 709 624 #: counter-options.php:549 710 #: Copy of counter-options.php:552 711 #: counter-options.php:919 625 712 #@ cpd 626 713 msgid "Debug mode" 627 714 msgstr "Debug Modus" 628 715 629 #: counter-options.php:551 716 #: Copy of counter-options.php:554 717 #: counter-options.php:921 630 718 #@ cpd 631 719 msgid "Show debug informations at the bottom of all pages." … … 652 740 msgstr "keine passenden Daten gefunden" 653 741 654 #: counter-options.php:756 742 #: Copy of counter-options.php:759 743 #: counter-options.php:613 655 744 #@ cpd 656 745 msgid "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!" 657 746 msgstr "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." 658 747 659 #: counter-options.php:352 748 #: Copy of counter-options.php:355 749 #: counter-options.php:722 660 750 #@ cpd 661 751 msgid "Counter" 662 752 msgstr "Zähler" 663 753 664 #: counter-options.php:476 754 #: Copy of counter-options.php:479 755 #: counter-options.php:846 665 756 #@ cpd 666 757 msgid "Local URLs" 667 758 msgstr "Lokale URLs" 668 759 669 #: counter-options.php:477 760 #: Copy of counter-options.php:480 761 #: counter-options.php:847 670 762 #@ cpd 671 763 msgid "Show local referrers too." 672 764 msgstr "Zeige auch lokale Referrer." 673 765 674 #: counter-options.php:484 766 #: Copy of counter-options.php:487 767 #: counter-options.php:854 675 768 #@ default 676 769 msgid "Posts" 677 770 msgstr "" 678 771 679 #: counter-options.php:484 772 #: Copy of counter-options.php:487 773 #: counter-options.php:854 680 774 #@ default 681 775 msgid "Pages" 682 776 msgstr "" 683 777 684 #: counter.php: 998778 #: counter.php:1048 685 779 #@ default 686 780 msgid "Category" 687 781 msgstr "" 688 782 689 #: counter.php:10 01783 #: counter.php:1051 690 784 #@ default 691 785 msgid "Tag" 692 786 msgstr "" 693 787 694 #: counter-core.php:7 40788 #: counter-core.php:780 695 789 #@ default 696 790 msgid "License" 697 791 msgstr "" 698 792 699 #: counter-core.php: 782793 #: counter-core.php:824 700 794 #@ cpd 701 795 msgid "Referrer" 702 796 msgstr "Herkunft" 703 797 704 #: counter.php:1 233798 #: counter.php:1328 705 799 #@ default 706 800 msgid "Title" 707 801 msgstr "" 708 802 709 #: counter-options.php:393 803 #: Copy of counter-options.php:396 804 #: counter-options.php:763 710 805 #@ cpd 711 806 msgid "Save and show clients and referrers.<br />Needs a lot of space in the database but gives you more detailed informations of your visitors." 712 807 msgstr "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." 713 808 714 #: counter-options.php:390 809 #: Copy of counter-options.php:393 810 #: counter-options.php:760 715 811 #@ cpd 716 812 msgid "Clients and referrers" 717 813 msgstr "Browser und Herkunft" 718 814 719 #: counter.php:1 60720 #: counter.php:1 213815 #: counter.php:188 816 #: counter.php:1308 721 817 #@ cpd 722 818 msgid "Reads last week" 723 819 msgstr "Seitenaufrufe letzte Woche" 724 820 725 #: counter-core.php: 774726 #: counter.php:1 214821 #: counter-core.php:815 822 #: counter.php:1309 727 823 #@ cpd 728 824 msgid "Reads per month" 729 825 msgstr "Seitenaufrufe pro Monat" 730 826 731 #: counter-options.php:468 827 #: Copy of counter-options.php:471 828 #: counter-options.php:838 732 829 #@ cpd 733 830 msgid "Referrers - Entries" 734 831 msgstr "Herkunft - Einträge" 735 832 736 #: counter-options.php:469 833 #: Copy of counter-options.php:472 834 #: counter-options.php:839 737 835 #@ cpd 738 836 msgid "How many referrers do you want to see on dashboard page?" 739 837 msgstr "Wie viele Herkunftsseiten möchtest du auf der Dashbord Seite sehen?" 740 838 741 #: counter-options.php:472 839 #: Copy of counter-options.php:475 840 #: counter-options.php:842 742 841 #@ cpd 743 842 msgid "Referrers - Days" 744 843 msgstr "Herkunft - Tage" 745 844 746 #: counter.php:8 55845 #: counter.php:897 747 846 #, php-format 748 847 #@ cpd … … 750 849 msgstr "Die %s Herkunftsseiten der letzten %s Tage:" 751 850 752 #: counter-core.php: 772851 #: counter-core.php:813 753 852 #@ cpd 754 853 msgid "Visitors online" 755 854 msgstr "Besucher online" 756 855 757 #: counter-options.php:519 856 #: Copy of counter-options.php:522 857 #: counter-options.php:889 758 858 #@ cpd 759 859 msgid "Stylesheet" 760 860 msgstr "Stylesheet" 761 861 762 #: counter-options.php:522 862 #: Copy of counter-options.php:525 863 #: counter-options.php:892 763 864 #@ cpd 764 865 msgid "NO Stylesheet in Frontend" 765 866 msgstr "KEIN Stylesheet im Frontend" 766 867 767 #: counter-options.php:523 868 #: Copy of counter-options.php:526 869 #: counter-options.php:893 768 870 #@ cpd 769 871 msgid "Do not load the stylesheet \"counter.css\" in frontend." 770 872 msgstr "Lade die Datei \"counter.css\" nicht im Frontend." 771 873 772 #: counter-options.php:419 874 #: Copy of counter-options.php:422 875 #: counter-options.php:789 773 876 #@ cpd 774 877 msgid "Who can see it" 775 878 msgstr "Wer darf es sehen" 776 879 777 #: counter-options.php:428 880 #: Copy of counter-options.php:431 881 #: counter-options.php:798 778 882 #@ cpd 779 883 msgid "custom" 780 884 msgstr "benutzerdefiniert" 781 885 782 #: counter-options.php:430 886 #: Copy of counter-options.php:433 887 #: counter-options.php:800 783 888 #@ cpd 784 889 msgid "and higher are allowed to see the statistics page." 785 890 msgstr "und höher haben Zugriff auf die Statistikseite." 786 891 787 #: counter-options.php:432 892 #: Copy of counter-options.php:435 893 #: counter-options.php:802 788 894 #, php-format 789 895 #@ cpd … … 791 897 msgstr "Gibt die benötigte %s Rolle %s ein." 792 898 793 #: counter-core.php:2 15899 #: counter-core.php:252 794 900 #, php-format 795 901 #@ cpd … … 797 903 msgstr ""Count per Day" aktualisiert auf Version %s." 798 904 799 #: counter-core.php: 963905 #: counter-core.php:1016 800 906 #@ cpd 801 907 msgid "Backup failed! Cannot open file" 802 908 msgstr "Backup fehlgeschlagen! Kann die Datei nicht öffnen" 803 909 804 #: counter-core.php: 989910 #: counter-core.php:1042 805 911 #, php-format 806 912 #@ cpd … … 808 914 msgstr "Sicherung von %s Einträge. Jeder Punkt entspricht %s Einträgen." 809 915 810 #: counter-core.php:1 081811 #: counter-core.php:1 089916 #: counter-core.php:1133 917 #: counter-core.php:1141 812 918 #, php-format 813 919 #@ cpd … … 815 921 msgstr "Die Zähler-Tabelle wurde in %s gesichert." 816 922 817 #: counter-core.php:1 083818 #: counter-core.php:1 091923 #: counter-core.php:1135 924 #: counter-core.php:1143 819 925 #, php-format 820 926 #@ cpd … … 822 928 msgstr "Die Optionen und Zusammenfassung wurden in %s gesichert." 823 929 824 #: counter-options.php:172 930 #: Copy of counter-options.php:169 931 #: counter-options.php:169 825 932 #@ cpd 826 933 msgid "Collection in progress..." 827 934 msgstr "Zusammenfassung erfolgt ..." 828 935 829 #: counter-options.php:242 936 #: Copy of counter-options.php:245 937 #: counter-options.php:263 830 938 #@ cpd 831 939 msgid "Get Visitors per Post..." 832 940 msgstr "Besucher pro Artikel bearbeiten..." 833 941 834 #: counter-options.php:263 942 #: Copy of counter-options.php:266 943 #: counter-options.php:284 835 944 #@ cpd 836 945 msgid "Delete old data..." 837 946 msgstr "Löschen alter Daten..." 838 947 839 #: counter-options.php:287 948 #: Copy of counter-options.php:290 949 #: counter-options.php:308 840 950 #, php-format 841 951 #@ cpd … … 843 953 msgstr "Zähler-Einträge bis %s zusammengefasst und Tabelle %s optimiert (Größe vorher = %s > Größe nachher = %s)." 844 954 845 #: counter-options.php:296 955 #: Copy of counter-options.php:299 956 #: counter-options.php:317 846 957 #@ cpd 847 958 msgid "Installation of \"Count per Day\" checked" 848 959 msgstr "Installation von "Count per Day" überprüft" 849 960 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 852 965 #@ default 853 966 msgid "Tools" 854 967 msgstr "" 855 968 856 #: counter-options.php:395 969 #: Copy of counter-options.php:398 970 #: counter-options.php:765 857 971 #@ cpd 858 972 msgid "Save URL only, no query string." 859 973 msgstr "Speichere nur die URL, keinen Query-String." 860 974 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 863 979 #@ cpd 864 980 msgid "Backup" 865 981 msgstr "Backup" 866 982 867 #: counter-options.php:533 983 #: Copy of counter-options.php:536 984 #: counter-options.php:903 868 985 #@ cpd 869 986 msgid "Entries per pass" 870 987 msgstr "Einträge pro Durchgang" 871 988 872 #: counter-options.php:536 989 #: Copy of counter-options.php:539 990 #: counter-options.php:906 873 991 #@ cpd 874 992 msgid "How many entries should be saved per pass? Default: 10000" 875 993 msgstr "Wie viele Einträge sollen pro Durchgang bearbeitet werden? Standard: 10000" 876 994 877 #: counter-options.php:541 995 #: Copy of counter-options.php:544 996 #: counter-options.php:911 878 997 #@ cpd 879 998 msgid "If your PHP memory limit less then 50 MB and you get a white page or error messages try a smaller value." 880 999 msgstr "Wenn dein PHP-Speicher-Limit kleiner als 50 MB ist und du nur eine weiße Seite oder Fehlermeldungen bekommst versuche einen kleineren Wert." 881 1000 882 #: counter-options.php:638 1001 #: Copy of counter-options.php:641 1002 #: counter-options.php:465 883 1003 #, php-format 884 1004 #@ cpd … … 886 1006 msgstr "Erstelle eine Sicherungskopie der Zähler-Tabelle %s in deinem wp-content Verzeichnis (wenn beschreibbar)." 887 1007 888 #: counter-options.php:645 1008 #: Copy of counter-options.php:648 1009 #: counter-options.php:472 889 1010 #@ cpd 890 1011 msgid "Backup the database" 891 1012 msgstr "Datenbank sichern" 892 1013 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 895 1018 #@ cpd 896 1019 msgid "Collect old data" 897 1020 msgstr "Alte Daten zusammenfassen" 898 1021 899 #: counter-options.php:705 1022 #: Copy of counter-options.php:708 1023 #: counter-options.php:570 900 1024 #, php-format 901 1025 #@ cpd … … 903 1027 msgstr "Die aktuelle Größe der Zähler-Tabelle %s ist %s." 904 1028 905 #: counter-options.php:707 1029 #: Copy of counter-options.php:710 1030 #: counter-options.php:572 906 1031 #@ cpd 907 1032 msgid "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." 908 1033 msgstr "Du kannst alte Daten zusammenfassen und die Zähler-Tabelle bereinigen.<br/>Seitenaufrufe und Besucher werden pro Monat, pro Land und pro Beitrag zusammengefasst.<br/>Browser und Herkunftsdaten werden gelöscht." 909 1034 910 #: counter-options.php:712 1035 #: Copy of counter-options.php:715 1036 #: counter-options.php:577 911 1037 #, php-format 912 1038 #@ cpd … … 914 1040 msgstr "Momentan enthält die Zusammenfassung Daten bis %s." 915 1041 916 #: counter-options.php:716 1042 #: Copy of counter-options.php:719 1043 #: counter-options.php:581 917 1044 #@ cpd 918 1045 msgid "Normally new data will be added to the collection." 919 1046 msgstr "Normalerweise werden neue Daten zur Zusammenfassung hinzugefügt." 920 1047 921 #: counter-options.php:722 1048 #: Copy of counter-options.php:725 1049 #: counter-options.php:587 922 1050 #@ cpd 923 1051 msgid "Delete old collection and create a new one which contains only the data currently in counter table." 924 1052 msgstr "Lösche die aktuelle Zusammenfassung und erstelle eine neue, die nur die Daten enthält, die momentan in der Zähler-Tabelle sind." 925 1053 926 #: counter-options.php:723 1054 #: Copy of counter-options.php:726 1055 #: counter-options.php:588 927 1056 #, php-format 928 1057 #@ cpd … … 930 1059 msgstr "Alle zusammengefassten Daten bis %s werden gelöscht." 931 1060 932 #: counter-options.php:728 1061 #: Copy of counter-options.php:731 1062 #: counter-options.php:593 933 1063 #, php-format 934 1064 #@ cpd … … 936 1066 msgstr "Behalte die Einträge der letzten %s vollen Monate plus des aktuellen Monats in der Zähler-Tabelle." 937 1067 938 #: counter-options.php:787 1068 #: Copy of counter-options.php:790 1069 #: counter-options.php:644 939 1070 #@ cpd 940 1071 msgid "ReActivation" 941 1072 msgstr "ReAktivierung" 942 1073 943 #: counter-options.php:790 1074 #: Copy of counter-options.php:793 1075 #: counter-options.php:647 944 1076 #@ cpd 945 1077 msgid "Here you can start the installation functions manually.<br/>Same as deactivate and reactivate the plugin." 946 1078 msgstr "Hier kannst du die Installationsfunktionen manuell starten.<br/>Macht das gleiche, als würdest du das Plugin deaktivieren und wieder aktivieren." 947 1079 948 #: counter-options.php:795 1080 #: Copy of counter-options.php:798 1081 #: counter-options.php:652 949 1082 #@ cpd 950 1083 msgid "ReActivate the plugin" 951 1084 msgstr "ReAktiviere das Plugin" 952 1085 953 #: counter.php:1 67954 #: counter.php:9 091086 #: counter.php:195 1087 #: counter.php:951 955 1088 #@ cpd 956 1089 msgid "Visitors" 957 1090 msgstr "Besucher" 958 1091 959 #: counter.php:1 70960 #: counter.php:1 711092 #: counter.php:198 1093 #: counter.php:199 961 1094 #@ cpd 962 1095 msgid "Most visited day" 963 1096 msgstr "meistbesuchter Tag" 964 1097 965 #: counter.php:1 2521098 #: counter.php:1347 966 1099 #@ cpd 967 1100 msgid "drag and drop to sort" 968 1101 msgstr "per Drag & Drop sortieren" 969 1102 970 #: counter-core.php:1 0771103 #: counter-core.php:1129 971 1104 #@ cpd 972 1105 msgid "Your can download the backup files here and now." 973 1106 msgstr "Du kannst die Sicherungen nur hier und jetzt herunterladen." 974 1107 975 #: counter-options.php:641 1108 #: Copy of counter-options.php:644 1109 #: counter-options.php:468 976 1110 #@ cpd 977 1111 msgid "Download only" 978 1112 msgstr "nur zum Download anbieten, nicht speichern" 979 1113 980 #: counter-options.php:670 1114 #: Copy of counter-options.php:673 1115 #: counter-options.php:519 981 1116 #@ default 982 1117 msgid "Delete" 983 1118 msgstr "" 984 1119 985 #: counter-options.php:671 1120 #: Copy of counter-options.php:674 1121 #: counter-options.php:520 986 1122 #, php-format 987 1123 #@ cpd … … 989 1125 msgstr "Sicherung %s löschen?" 990 1126 1127 #: counter-core.php:819 1128 #: counter-options.php:838 1129 #: counter-options.php:842 1130 #@ cpd 1131 msgid "Search strings" 1132 msgstr "Suchwörter" 1133 1134 #: counter-core.php:1199 1135 #@ cpd 1136 msgid "Error while reading backup file!" 1137 msgstr "Fehler beim Lesen der Sicherungsdatei!" 1138 1139 #: counter-core.php:1203 1140 #, php-format 1141 #@ cpd 1142 msgid "The backup was added to counter table %s." 1143 msgstr "Die Sicherung wurde zur Tabelle %s hinzugefügt." 1144 1145 #: counter-core.php:1205 1146 #, php-format 1147 #@ cpd 1148 msgid "The counter table %s was restored from backup." 1149 msgstr "Die Zählertabelle %s wurde wiederhergestellt." 1150 1151 #: counter-core.php:1222 1152 #@ cpd 1153 msgid "Options restored from backup." 1154 msgstr "Einstellungen wiederhergestellt." 1155 1156 #: counter-options.php:501 1157 #@ cpd 1158 msgid "Settings and collections" 1159 msgstr "Einstellungen und Zusammenfassung" 1160 1161 #: counter-options.php:506 1162 #, php-format 1163 #@ cpd 1164 msgid "Counter table %s" 1165 msgstr "Zählertabelle %s" 1166 1167 #: counter-options.php:513 1168 #, php-format 1169 #@ cpd 1170 msgid "Add data from the backup file %s to existing counter table?" 1171 msgstr "Die Daten der Sicherung zur vorhandenen Zählertabelle %s hinzufügen?" 1172 1173 #: counter-options.php:517 1174 #, php-format 1175 #@ cpd 1176 msgid "Restore data from the backup file %s ?" 1177 msgstr "Daten aus der Sicherung %s wiederherstellen?" 1178 1179 #: counter-options.php:517 1180 #@ default 1181 msgid "Restore" 1182 msgstr "" 1183 1184 #: counter-options.php:526 1185 #@ cpd 1186 msgid "add backup to current counter table" 1187 msgstr "Sicherung zu aktuellen Daten hinzufügen" 1188 1189 #: counter-options.php:527 1190 #@ cpd 1191 msgid "replace current counter table with with backup" 1192 msgstr "aktuelle Daten durch Sicherung ersetzen" 1193 1194 #: counter-options.php:528 1195 #@ cpd 1196 msgid "delete backup file" 1197 msgstr "Sicherung löschen" 1198 1199 #: counter.php:1094 1200 #, php-format 1201 #@ cpd 1202 msgid "The %s most searched strings:" 1203 msgstr "Die %s am meisten gesuchten Wörter:" 1204 1205 #: counter.php:1103 1206 #, php-format 1207 #@ cpd 1208 msgid "The search strings of the last %s days:" 1209 msgstr "Die Suchwörter der letzten %s Tage:" 1210 1211 #: counter-options.php:332 1212 #@ cpd 1213 msgid "Old search strings deleted" 1214 msgstr "Alte Suchwörter wurden gelöscht." 1215 1216 #: counter-options.php:554 1217 #, php-format 1218 #@ cpd 1219 msgid "Delete search strings older than %s days." 1220 msgstr "Lösche Suchwörter die älter als %s Tage sind!" 1221 1222 #: counter-options.php:556 1223 #@ cpd 1224 msgid "Delete search strings" 1225 msgstr "Lösche Suchwörter" 1226 1227 #: counter-options.php:513 1228 #@ cpd 1229 msgid "Add" 1230 msgstr "Hinzufügen" 1231 -
count-per-day/trunk/locale/cpd-ua_UA.po
r421216 r571926 5 5 "POT-Creation-Date: 2008-11-02 12:13+0100\n" 6 6 "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" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=UTF-8\n" … … 14 14 "X-Poedit-Country: UKRAINE\n" 15 15 "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" 17 17 "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" 19 20 "X-Poedit-SearchPath-0: .\n" 20 "X-Textdomain-Support: yes" 21 21 22 #@ cpd 22 23 #: counter-options.php:49 23 #@ cpd24 24 msgid "Options updated" 25 25 msgstr "Налаштування збереженні" 26 26 27 #@ cpd 27 28 #: counter-options.php:113 28 29 #, php-format 29 #@ cpd30 30 msgid "Database cleaned. %s rows deleted." 31 31 msgstr "База даних очищена. %s строк видалено." 32 32 33 #@ cpd 33 34 #: counter-options.php:128 34 35 #: counter-options.php:811 35 #@ cpd36 36 msgid "UNINSTALL Count per Day" 37 37 msgstr "Видалити Count per Day" 38 38 39 #@ cpd 39 40 #: counter-options.php:133 40 41 #: counter-options.php:134 41 42 #: counter-options.php:135 42 43 #, php-format 43 #@ cpd44 44 msgid "Table %s deleted" 45 45 msgstr "Таблиця %s видалена" 46 46 47 #@ cpd 47 48 #: counter-options.php:136 48 #@ cpd49 49 msgid "Options deleted" 50 50 msgstr "Параметри видалено" 51 51 52 #@ cpd 52 53 #: counter-options.php:317 53 54 #: counter-options.php:797 54 #@ cpd55 55 msgid "Uninstall" 56 56 msgstr "Видалити" 57 57 58 #@ cpd 58 59 #: counter-options.php:318 59 #@ cpd60 60 msgid "Click here" 61 61 msgstr "Натисніть тут" 62 62 63 #@ cpd 63 64 #: counter-options.php:318 64 #@ cpd65 65 msgid "to finish the uninstall and to deactivate \"Count per Day\"." 66 66 msgstr "Для завершення видалення і відключення \"Count per Day\"." 67 67 68 #@ cpd 68 69 #: counter-options.php:356 69 #@ cpd70 70 msgid "Online time" 71 71 msgstr "Час з'єднання" 72 72 73 #@ cpd 73 74 #: counter-options.php:357 74 #@ cpd75 75 msgid "Seconds for online counter. Used for \"Visitors online\" on dashboard page." 76 76 msgstr "Секунд для он-лайн лічильника. Використовується для \" Відвідувачей онлайн \" на приладовій панелі сторінки." 77 77 78 #@ cpd 78 79 #: counter-options.php:360 79 #@ cpd80 80 msgid "Logged on Users" 81 81 msgstr "Зареєстрованих користувачів" 82 82 83 #@ cpd 83 84 #: counter-options.php:362 84 #@ cpd85 85 msgid "count too" 86 86 msgstr "Враховувати також" 87 87 88 #@ cpd 88 89 #: counter-options.php:374 89 #@ cpd90 90 msgid "Auto counter" 91 91 msgstr "Авто лічильник" 92 92 93 #@ cpd 93 94 #: counter-options.php:375 94 #@ cpd95 95 msgid "Counts automatically single-posts and pages, no changes on template needed." 96 96 msgstr "Рахує автоматично окремі повідомлення і сторінки, ніяких змін в шаблон не потрібно\"." 97 97 98 #@ cpd 98 99 #: counter-options.php:378 99 #@ cpd100 100 msgid "Bots to ignore" 101 101 msgstr "Ігнорувати пошукові системи" 102 102 103 #@ cpd 103 104 #: counter-options.php:562 104 #@ cpd105 105 msgid "Update options" 106 106 msgstr "Параметри оновлення" 107 107 108 #@ cpd 108 109 #: counter-options.php:657 109 110 #: counter-options.php:666 110 #@ cpd111 111 msgid "Clean the database" 112 112 msgstr "Очистити бази даних" 113 113 114 #@ cpd 114 115 #: counter-options.php:660 115 #@ cpd116 116 msgid "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." 117 117 msgstr "Ви можете очистити лічильник таблиці видаливши \"Спам\". <br />Якщо ви додаєте нових ботів над старими \"Спам\" які є в базі даних. <br />Тут ви можете запустити бот-фільтр знову і видалити візити ботів\"." 118 118 119 #@ cpd 119 120 #: counter-options.php:800 120 #@ cpd121 121 msgid "If \"Count per Day\" only disabled the tables in the database will be preserved." 122 122 msgstr "Якщо \"Count per Day\" активований, таблиці в базі даних будуть збережені." 123 123 124 #@ cpd 124 125 #: counter-options.php:801 125 #@ cpd126 126 msgid "Here you can delete the tables and disable \"Count per Day\"." 127 127 msgstr "Тут можна видалити таблиці і відключити \"Count per Day\"." 128 128 129 #@ cpd 129 130 #: counter-options.php:804 130 #@ cpd131 131 msgid "WARNING" 132 132 msgstr "УВАГА" 133 133 134 #@ cpd 134 135 #: counter-options.php:805 135 #@ cpd136 136 msgid "These tables (with ALL counter data) will be deleted." 137 137 msgstr "Ці таблиці (з усіма даними лічильника), будуть видалені." 138 138 139 #@ cpd 139 140 #: counter-options.php:807 140 #@ cpd141 141 msgid "If \"Count per Day\" re-installed, the counter starts at 0." 142 142 msgstr "Якщо \"Count per Day\" було перевстановлено, лічильник починається з 0." 143 143 144 #@ cpd 144 145 #: counter-options.php:787 145 146 #: counter-options.php:810 146 #@ cpd147 147 msgid "Yes" 148 148 msgstr "Так" 149 149 150 #@ cpd 150 151 #: counter-options.php:811 151 #@ cpd152 152 msgid "You are sure to disable Count per Day and delete all data?" 153 153 msgstr "Ви впевнені, що хочете відключити Count per Day і видалити всі дані?" 154 154 155 #@ cpd 155 156 #: counter-core.php:754 156 157 #: counter.php:1124 157 #@ cpd158 158 msgid "Statistics" 159 159 msgstr "Статистика" 160 160 161 #@ cpd 161 162 #: counter-core.php:723 162 163 #: counter.php:160 163 164 #: counter.php:1010 164 165 #: counter.php:1202 165 #@ cpd166 166 msgid "Total visitors" 167 167 msgstr "Усього користувачів" 168 168 169 #@ cpd 169 170 #: counter.php:161 170 171 #: counter.php:1208 171 #@ cpd172 172 msgid "Visitors currently online" 173 173 msgstr "Відвідувачі даний час в мережі" 174 174 175 #@ cpd 175 176 #: counter.php:162 176 177 #: counter.php:1203 177 #@ cpd178 178 msgid "Visitors today" 179 179 msgstr "Відвідувачів сьогодні" 180 180 181 #@ cpd 181 182 #: counter.php:163 182 183 #: counter.php:1204 183 #@ cpd184 184 msgid "Visitors yesterday" 185 185 msgstr "Відвідувачів вчора" 186 186 187 #@ cpd 187 188 #: counter.php:164 188 189 #: counter.php:1205 189 #@ cpd190 190 msgid "Visitors last week" 191 191 msgstr "Відвідувачів на минулому тижні" 192 192 193 #@ cpd 193 194 #: counter.php:167 194 195 #: counter.php:825 195 196 #: counter.php:1209 196 #@ cpd197 197 msgid "Counter starts on" 198 198 msgstr "Лічильник починається з" 199 199 200 #@ cpd 200 201 #: counter-core.php:729 201 202 #: counter.php:166 … … 204 205 #: counter.php:1207 205 206 #: userperspan.php:34 206 #@ cpd207 207 msgid "Visitors per day" 208 208 msgstr "Відвідувачів у день" 209 209 210 #@ cpd 210 211 #: counter-core.php:725 211 212 #: counter.php:1206 212 #@ cpd213 213 msgid "Visitors per month" 214 214 msgstr "Відвідувачів за місяць" 215 215 216 #@ cpd 216 217 #: counter-core.php:727 217 218 #: counter-options.php:439 218 #@ cpd219 219 msgid "Visitors per post" 220 220 msgstr "Відвідувачів повідомлення" 221 221 222 #@ cpd 222 223 #: counter-options.php:123 223 #@ cpd224 224 msgid "Counter reseted." 225 225 msgstr "Лічильник оновлено" 226 226 227 #@ default 227 228 #: counter-options.php:404 228 #@ default229 229 msgid "Dashboard" 230 230 msgstr "Панель" 231 231 232 #@ cpd 232 233 #: counter-options.php:440 233 234 #: counter-options.php:444 234 #@ cpd235 235 msgid "How many posts do you want to see on dashboard page?" 236 236 msgstr "Скільки повідомлень ви хочете бачити на приладовій панелі сторінки?" 237 237 238 #@ cpd 238 239 #: counter-options.php:443 239 #@ cpd240 240 msgid "Latest Counts - Posts" 241 241 msgstr "Останні рахунки - Повідомлення" 242 242 243 #@ cpd 243 244 #: counter-options.php:447 244 #@ cpd245 245 msgid "Latest Counts - Days" 246 246 msgstr "Останні рахунки - Дні" 247 247 248 #@ cpd 248 249 #: counter-options.php:448 249 250 #: counter-options.php:452 250 251 #: counter-options.php:474 251 #@ cpd252 252 msgid "How many days do you want look back?" 253 253 msgstr "На скільки днів ви хочете озирнутися назад?" 254 254 255 #@ cpd 255 256 #: counter-options.php:451 256 #@ cpd257 257 msgid "Chart - Days" 258 258 msgstr "Графік - Дні" 259 259 260 #@ cpd 260 261 #: counter-options.php:455 261 #@ cpd262 262 msgid "Chart - Height" 263 263 msgstr "Графік - висота" 264 264 265 #@ cpd 265 266 #: counter-options.php:456 266 #@ cpd267 267 msgid "Height of the biggest bar" 268 268 msgstr "Висота найбільшого стовпчика" 269 269 270 #@ cpd 270 271 #: counter-options.php:489 271 #@ cpd272 272 msgid "Show in lists" 273 273 msgstr "Показувати в списках" 274 274 275 #@ cpd 275 276 #: counter-options.php:490 276 #@ cpd277 277 msgid "Show \"Reads per Post\" in a new column in post management views." 278 278 msgstr "Показати \"Читачів на повідомлення\" в новій колонці в управлінні записами." 279 279 280 #@ cpd 280 281 #: counter-options.php:778 281 282 #: counter-options.php:788 282 #@ cpd283 283 msgid "Reset the counter" 284 284 msgstr "Скидання лічильника" 285 285 286 #@ cpd 286 287 #: counter-options.php:781 287 #@ cpd288 288 msgid "You can reset the counter by empty the table. ALL TO 0!<br />Make a backup if you need the current data!" 289 289 msgstr "Ви можете скинути лічильник шляхом очищення таблиці. ВСІ НА 0! <br />Зробіть резервну копію, якщо вам потрібні поточні дані!" 290 290 291 #@ cpd 291 292 #: counter.php:672 292 293 #, php-format 293 #@ cpd294 294 msgid "The %s most visited posts in last %s days:" 295 295 msgstr "%s самих відвідуваних повідомлень за останні %s днів." 296 296 297 #@ default 297 298 #: counter-core.php:575 298 299 #: counter-options.php:342 299 300 #: counter-options.php:566 300 #@ default301 301 msgid "Settings" 302 302 msgstr "Настройки" 303 303 304 #@ cpd 304 305 #: counter.php:262 305 #@ cpd306 306 msgid "Reads per day" 307 307 msgstr "Читання в день" 308 308 309 #@ cpd 309 310 #: counter-core.php:639 310 311 #: counter-options.php:393 311 312 #: counter.php:159 312 313 #: counter.php:875 313 #@ cpd314 314 msgid "Reads" 315 315 msgstr "Читання" 316 316 317 #@ cpd 317 318 #: counter.php:1196 318 #@ cpd319 319 msgid "This post" 320 320 msgstr "Це повідомлення" 321 321 322 #@ cpd 322 323 #: counter-options.php:60 323 324 #, php-format 324 #@ cpd325 325 msgid "Countries updated. <b>%s</b> entries in %s without country left" 326 326 msgstr "Країни оновлені. <b>%s</b> записів в %s залишилось без країни" 327 327 328 #@ cpd 328 329 #: counter-options.php:63 329 #@ cpd330 330 msgid "update next" 331 331 msgstr "Оновити наступний" 332 332 333 #@ cpd 333 334 #: counter-options.php:103 334 335 #, php-format 335 #@ cpd336 336 msgid "Mass Bots cleaned. %s counts deleted." 337 337 msgstr "Таблиця Пошукових систем очищена. %s записів видалено." 338 338 339 #@ cpd 339 340 #: counter-options.php:363 340 #@ cpd341 341 msgid "until User Level" 342 342 msgstr "до рівня користувача" 343 343 344 #@ cpd 344 345 #: counter-options.php:382 345 #@ cpd346 346 msgid "Anonymous IP" 347 347 msgstr "Анонімний IP" 348 348 349 #@ cpd 349 350 #: counter-options.php:460 350 #@ cpd351 351 msgid "Countries" 352 352 msgstr "Країни" 353 353 354 #@ cpd 354 355 #: counter-options.php:461 355 #@ cpd356 356 msgid "How many countries do you want to see on dashboard page?" 357 357 msgstr "Скільки країн ви хотіли б бачити на приладовій панелі сторінки?" 358 358 359 #@ cpd 359 360 #: counter-options.php:498 360 #@ cpd361 361 msgid "Start Values" 362 362 msgstr "Початкові дані" 363 363 364 #@ cpd 364 365 #: counter-options.php:502 365 #@ cpd366 366 msgid "Here you can change the date of first count and add a start count." 367 367 msgstr "Тут ви можете змінити дату першого відрахунку і задати початок відрахунку." 368 368 369 #@ cpd 369 370 #: counter-options.php:506 370 #@ cpd371 371 msgid "Start date" 372 372 msgstr "Дата початку" 373 373 374 #@ cpd 374 375 #: counter-options.php:507 375 #@ cpd376 376 msgid "Your old Counter starts at?" 377 377 msgstr "Ваш старий лічильник починався з?" 378 378 379 #@ cpd 379 380 #: counter-options.php:510 380 381 #: counter-options.php:514 381 #@ cpd382 382 msgid "Start count" 383 383 msgstr "Почати рахувати" 384 384 385 #@ cpd 385 386 #: counter-options.php:511 386 #@ cpd387 387 msgid "Add this value to \"Total visitors\"." 388 388 msgstr "Установка цього значення в \"Усього користувачів\"." 389 389 390 #@ cpd 390 391 #: counter-options.php:728 391 #@ cpd392 392 msgid "GeoIP - Countries" 393 393 msgstr "GeoIP - Країни" 394 394 395 #@ cpd 395 396 #: counter-options.php:737 396 #@ cpd397 397 msgid "Update old counter data" 398 398 msgstr "Оновлення старих даних лічильника" 399 399 400 #@ cpd 400 401 #: counter-options.php:749 401 #@ cpd402 402 msgid "Update GeoIP database" 403 403 msgstr "Оновлення бази даних GeoIP" 404 404 405 #@ cpd 405 406 #: counter-options.php:744 406 #@ cpd407 407 msgid "Download a new version of GeoIP.dat file." 408 408 msgstr "Завантажити нову версію файла GeoIP.dat" 409 409 410 #@ cpd 410 411 #: counter-options.php:754 411 #@ cpd412 412 msgid "More informations about GeoIP" 413 413 msgstr "Більш детальна інформація про GeoIP" 414 414 415 #@ cpd 415 416 #: counter-options.php:581 416 417 #: massbots.php:35 417 #@ cpd418 418 msgid "Mass Bots" 419 419 msgstr "Масові Пошукові системи" 420 420 421 #@ cpd 421 422 #: counter-options.php:585 422 423 #, php-format 423 #@ cpd424 424 msgid "Show all IPs with more than %s page views per day" 425 425 msgstr "Показати всі IP-адреси з більш ніж %s переглядів сторінок на день" 426 426 427 #@ cpd 427 428 #: counter-options.php:586 428 429 #: notes.php:71 429 430 #: userperspan.php:44 430 #@ cpd431 431 msgid "show" 432 432 msgstr "показати" 433 433 434 #@ cpd 434 435 #: counter-options.php:594 435 #@ cpd436 436 msgid "IP" 437 437 msgstr "IP" 438 438 439 #@ cpd 440 #@ default 439 441 #: counter-options.php:595 440 442 #: notes.php:75 441 #@ cpd442 #@ default443 443 msgid "Date" 444 444 msgstr "Дата" 445 445 446 #@ cpd 446 447 #: counter-options.php:596 447 #@ cpd448 448 msgid "Client" 449 449 msgstr "Клієнт" 450 450 451 #@ cpd 451 452 #: counter-options.php:597 452 #@ cpd453 453 msgid "Views" 454 454 msgstr "Переглядів" 455 455 456 #@ cpd 456 457 #: counter-options.php:612 457 458 #: counter-options.php:628 458 459 #, php-format 459 #@ cpd460 460 msgid "Delete these %s counts" 461 461 msgstr "Видалити ц і%s лічильників" 462 462 463 #@ cpd 463 464 #: counter-options.php:715 464 #@ cpd465 465 msgid "Support" 466 466 msgstr "Підтримка" 467 467 468 #@ cpd 468 469 #: counter-core.php:689 469 470 #, php-format 470 #@ cpd471 471 msgid "Time for Count per Day: <code>%s</code>." 472 472 msgstr "Час для Count per Day: <code>%s</code>." 473 473 474 #@ cpd 474 475 #: counter-core.php:690 475 #@ cpd476 476 msgid "Bug? Problem? Question? Hint? Praise?" 477 477 msgstr "Помилка? Проблема? Питання? Підказка? Хвала?" 478 478 479 #@ cpd 479 480 #: counter-core.php:691 480 481 #, php-format 481 #@ cpd482 482 msgid "Write a comment on the <a href=\"%s\">plugin page</a>." 483 483 msgstr "Написати коментар на <a href=\"%s\">сторінці плагіна</a>." 484 484 485 #@ cpd 485 486 #: counter.php:155 486 487 #: counter.php:1197 487 #@ cpd488 488 msgid "Total reads" 489 489 msgstr "Всього читаннь" 490 490 491 #@ cpd 491 492 #: counter.php:156 492 493 #: counter.php:1198 493 #@ cpd494 494 msgid "Reads today" 495 495 msgstr "Читаннь сьогодні" 496 496 497 #@ cpd 497 498 #: counter.php:157 498 499 #: counter.php:1199 499 #@ cpd500 500 msgid "Reads yesterday" 501 501 msgstr "Читаннь вчора" 502 502 503 #@ cpd 503 504 #: counter.php:788 504 505 #: notes.php:42 505 506 #: notes.php:76 506 #@ cpd507 507 msgid "Notes" 508 508 msgstr "Записки" 509 509 510 #@ default 510 511 #: counter.php:786 511 #@ default512 512 msgid "Show" 513 513 msgstr "Показати" 514 514 515 #@ cpd 515 516 #: counter.php:821 516 #@ cpd517 517 msgid "Other" 518 518 msgstr "Інші" 519 519 520 #@ default 520 521 #: counter.php:976 521 #@ default522 522 msgid "Edit Post" 523 523 msgstr "Редагувати повідомлення" 524 524 525 #@ default 525 526 #: counter.php:991 526 527 #: massbots.php:52 527 528 #: userperspan.php:63 528 #@ default529 529 msgid "Front page displays" 530 530 msgstr "Відображати на першій сторінці" 531 531 532 #@ cpd 532 533 #: counter-core.php:733 533 534 #: counter-options.php:465 534 #@ cpd535 535 msgid "Browsers" 536 536 msgstr "Браузери" 537 537 538 #@ cpd 538 539 #: counter-core.php:728 539 #@ cpd540 540 msgid "Latest Counts" 541 541 msgstr "Останні підрахунки" 542 542 543 #@ default 543 544 #: counter-core.php:730 544 #@ default545 545 msgid "Plugin" 546 546 msgstr "Плагін" 547 547 548 #@ cpd 548 549 #: counter-core.php:738 549 #@ cpd550 550 msgid "Reads per Country" 551 551 msgstr "Читання по країнам" 552 552 553 #@ cpd 553 554 #: counter.php:353 554 555 #: counter.php:1041 555 #@ cpd556 556 msgid "Map" 557 557 msgstr "Карта" 558 558 559 #@ cpd 559 560 #: geoip/geoip.php:93 560 #@ cpd561 561 msgid "Sorry, necessary functions (zlib) not installed or enabled in php.ini." 562 562 msgstr "На жаль, необхідні функції (Zlib) не встановлені або не включені в php.ini." 563 563 564 #@ cpd 564 565 #: geoip/geoip.php:117 565 #@ cpd566 566 msgid "New GeoIP database installed." 567 567 msgstr "Нова база даних GeoIP встановлена." 568 568 569 #@ cpd 569 570 #: geoip/geoip.php:119 570 #@ cpd571 571 msgid "Sorry, an error occurred. Try again or check the access rights of directory \"geoip\" is 777." 572 572 msgstr "Вибачте, сталася помилка. Спробуйте ще раз або перевірьте права доступу каталогу \"GeoIP\" є 777." 573 573 574 #@ default 574 575 #: notes.php:77 575 #@ default576 576 msgid "Action" 577 577 msgstr "Дія" 578 578 579 #@ cpd 579 580 #: notes.php:82 580 #@ cpd581 581 msgid "add" 582 582 msgstr "Додати" 583 583 584 #@ cpd 584 585 #: notes.php:98 585 #@ cpd586 586 msgid "save" 587 587 msgstr "Зберегти" 588 588 589 #@ cpd 589 590 #: notes.php:99 590 #@ cpd591 591 msgid "delete" 592 592 msgstr "Видалити" 593 593 594 #@ cpd 594 595 #: notes.php:110 595 #@ cpd596 596 msgid "edit" 597 597 msgstr "Змінити" 598 598 599 #@ cpd 599 600 #: counter-options.php:386 600 #@ cpd601 601 msgid "Cache" 602 602 msgstr "Кеш" 603 603 604 #@ cpd 604 605 #: counter-options.php:387 605 #@ cpd606 606 msgid "I use a cache plugin. Count these visits with ajax." 607 607 msgstr "Я використовую кеш плагінів. Рахувати ці візити за допомогою Ajax." 608 608 609 #@ cpd 609 610 #: counter-options.php:466 610 #@ cpd611 611 msgid "Substring of the user agent, separated by comma" 612 612 msgstr "Підрядок агента користувача, розділених комою" 613 613 614 #@ cpd 614 615 #: counter-options.php:555 615 #@ cpd616 616 msgid "Debug mode" 617 617 msgstr "Режим відлагодження" 618 618 619 #@ cpd 619 620 #: counter-options.php:557 620 #@ cpd621 621 msgid "Show debug informations at the bottom of all pages." 622 622 msgstr "Показати відлагоджувальну інофрмацію в нижній частині всіх сторінок." 623 623 624 #@ cpd 624 625 #: counter-core.php:739 625 #@ cpd626 626 msgid "Visitors per Country" 627 627 msgstr "Відвідувачів по країнах" 628 628 629 #@ cpd 629 630 #: userperspan.php:38 630 #@ cpd631 631 msgid "Start" 632 632 msgstr "Старт" 633 633 634 #@ cpd 634 635 #: userperspan.php:40 635 #@ cpd636 636 msgid "End" 637 637 msgstr "Кінець" 638 638 639 #@ cpd 639 640 #: userperspan.php:42 640 #@ cpd641 641 msgid "PostID" 642 642 msgstr "ID повідомлення" 643 643 644 #@ cpd 644 645 #: counter-options.php:515 645 #@ cpd646 646 msgid "Add this value to \"Total reads\"." 647 647 msgstr "Установити це значення в \"Всього читаннь\"." 648 648 649 #@ cpd 649 650 #: counter-options.php:731 650 #@ cpd651 651 msgid "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!" 652 652 msgstr "Ви можете отримати дані по країнах для всіх записів в базі даних, перевіряючи IP-адреси по базі даних GeoIP. Це може зайняти деякий час!" 653 653 654 #@ cpd 654 655 #: userperspan.php:50 655 #@ cpd656 656 msgid "no data found" 657 657 msgstr "Нічого не знайдено" 658 658 659 #@ cpd 659 660 #: counter-options.php:352 660 #@ cpd661 661 msgid "Counter" 662 662 msgstr "Лічильник" 663 663 664 #@ cpd 664 665 #: counter-options.php:390 665 #@ cpd666 666 msgid "Clients and referrers" 667 667 msgstr "Клієнти та джерела" 668 668 669 #@ cpd 669 670 #: counter-options.php:393 670 #@ cpd671 671 msgid "Save and show clients and referrers.<br />Needs a lot of space in the database but gives you more detailed informations of your visitors." 672 672 msgstr "Зберегти і показати клієнтів і джерела. <br />Потребує багато місця в базі даних, але надає більш детальну інформацію про ваших відвідувачів." 673 673 674 #@ cpd 674 675 #: counter-options.php:477 675 #@ cpd676 676 msgid "Local URLs" 677 677 msgstr "Місцеві URL" 678 678 679 #@ cpd 679 680 #: counter-options.php:478 680 #@ cpd681 681 msgid "Show local referrers too." 682 682 msgstr "Показати місцеві джерела теж." 683 683 684 #@ default 684 685 #: counter-options.php:486 685 #@ default686 686 msgid "Posts" 687 687 msgstr "Повідомлення" 688 688 689 #@ default 689 690 #: counter-options.php:486 690 #@ default691 691 msgid "Pages" 692 692 msgstr "Сторінки" 693 693 694 #@ cpd 694 695 #: counter.php:158 695 696 #: counter.php:1200 696 #@ cpd697 697 msgid "Reads last week" 698 698 msgstr "Читаннь минулого тижня" 699 699 700 #@ default 700 701 #: counter.php:985 701 #@ default702 702 msgid "Category" 703 703 msgstr "Категорія" 704 704 705 #@ default 705 706 #: counter.php:988 706 #@ default707 707 msgid "Tag" 708 708 msgstr "Тег" 709 709 710 #@ default 710 711 #: counter-core.php:692 711 #@ default712 712 msgid "License" 713 713 msgstr "Ліцензія" 714 714 715 #@ cpd 715 716 #: counter-core.php:726 716 717 #: counter.php:1201 717 #@ cpd718 718 msgid "Reads per month" 719 719 msgstr "Читаннь в місяць" 720 720 721 #@ cpd 721 722 #: counter-core.php:734 722 #@ cpd723 723 msgid "Referrer" 724 724 msgstr "Джерела" 725 725 726 #@ cpd 726 727 #: counter-options.php:469 727 #@ cpd728 728 msgid "Referrers - Entries" 729 729 msgstr "Джерела - Входження" 730 730 731 #@ cpd 731 732 #: counter-options.php:470 732 #@ cpd733 733 msgid "How many referrers do you want to see on dashboard page?" 734 734 msgstr "Скільки джерел ви хочете бачити на приладовій панелі сторінки?" 735 735 736 #@ cpd 736 737 #: counter-options.php:473 737 #@ cpd738 738 msgid "Referrers - Days" 739 739 msgstr "Джерела - Дні" 740 740 741 #@ cpd 741 742 #: counter.php:845 742 743 #, php-format 743 #@ cpd744 744 msgid "The %s referrers in last %s days:" 745 745 msgstr "%s джерел в останні %s днів:" 746 746 747 #@ cpd 747 748 #: counter-core.php:724 748 #@ cpd749 749 msgid "Visitors online" 750 750 msgstr "Відвідувачів онлайн" 751 751 752 #@ default 752 753 #: counter.php:1220 753 #@ default754 754 msgid "Title" 755 755 msgstr "Назва" 756 756 757 #@ cpd 757 758 #: counter-core.php:186 758 759 #, php-format 759 #@ cpd760 760 msgid "\"Count per Day\" updated to version %s." 761 msgstr "" 762 761 msgstr "\"Count per Day\" Оновлено до версії %s." 762 763 #@ cpd 763 764 #: counter-core.php:917 764 #@ cpd765 765 msgid "Backup failed! Cannot open file" 766 msgstr "" 767 766 msgstr "Резервне копіювання не вдалося! Не вдається відкрити файл" 767 768 #@ cpd 768 769 #: counter-core.php:940 769 770 #, php-format 770 #@ cpd771 771 msgid "Backup of %s entries in progress. Every point complies %s entries." 772 msgstr "" 773 772 msgstr "Резервне копіювання %s записи в прогрес. Відповідає кожній точці %s записи." 773 774 #@ cpd 774 775 #: counter-core.php:1027 775 #@ cpd776 776 msgid "Your wp-content directory is not writable. But you can copy the content of this box to a plain text file." 777 msgstr "" 778 777 msgstr "Ваш wp-вміст каталогів не є записуваним. Але можна копіювати вміст цього поля текстовий файл." 778 779 #@ cpd 779 780 #: counter-core.php:1033 780 781 #, php-format 781 #@ cpd782 782 msgid "Backup of counter table saved in %s." 783 msgstr "" 784 783 msgstr "Резервне копіювання таблиці лічильник, збережені у %s." 784 785 #@ cpd 785 786 #: counter-core.php:1035 786 787 #, php-format 787 #@ cpd788 788 msgid "Backup of counter options and collection saved in %s." 789 msgstr "" 790 789 msgstr "Резервне копіювання лічильник варіантів і колекції, збережені у %s." 790 791 #@ cpd 791 792 #: counter-options.php:171 792 #@ cpd793 793 msgid "Collection in progress..." 794 msgstr "" 795 794 msgstr "Триває збір..." 795 796 #@ cpd 796 797 #: counter-options.php:241 797 #@ cpd798 798 msgid "Get Visitors per Post..." 799 msgstr "" 800 799 msgstr "Отримати відвідувачів на посаду..." 800 801 #@ cpd 801 802 #: counter-options.php:262 802 #@ cpd803 803 msgid "Delete old data..." 804 msgstr "" 805 804 msgstr "Видалити старі дані..." 805 806 #@ cpd 806 807 #: counter-options.php:286 807 808 #, php-format 808 #@ cpd809 809 msgid "Counter entries until %s collected and counter table %s optimized (size before = %s > size after = %s)." 810 msgstr "" 811 810 msgstr "Лічильник записів до %s зібрані та боротьби таблиці %s оптимізований (Розмір перед = %s > Розмір після = %s)." 811 812 #@ cpd 812 813 #: counter-options.php:295 813 #@ cpd814 814 msgid "Installation of \"Count per Day\" checked" 815 msgstr "" 816 815 msgstr "Установка \"Count per Day\" перевірено" 816 817 #@ default 817 818 #: counter-options.php:343 818 819 #: counter-options.php:567 819 #@ default820 820 msgid "Tools" 821 msgstr "" 822 821 msgstr "Інструменти" 822 823 #@ cpd 823 824 #: counter-options.php:395 824 #@ cpd825 825 msgid "Save URL only, no query string." 826 msgstr "" 827 826 msgstr "Збережіть URL тільки, немає рядка запиту." 827 828 #@ cpd 828 829 #: counter-options.php:420 829 #@ cpd830 830 msgid "Who can see it" 831 msgstr "" 832 831 msgstr "Хто це може побачити" 832 833 #@ cpd 833 834 #: counter-options.php:429 834 #@ cpd835 835 msgid "custom" 836 msgstr "" 837 836 msgstr "Користувальницькі" 837 838 #@ cpd 838 839 #: counter-options.php:431 839 #@ cpd840 840 msgid "and higher are allowed to see the statistics page." 841 msgstr "" 842 841 msgstr "і вище, можуть побачити на сторінці статистики." 842 843 #@ cpd 843 844 #: counter-options.php:433 844 845 #, php-format 845 #@ cpd846 846 msgid "Set the %s capability %s a user need:" 847 msgstr "" 848 847 msgstr "Встановити на %s можливості %s користувачеві необхідно:" 848 849 #@ cpd 849 850 #: counter-options.php:523 850 #@ cpd851 851 msgid "Stylesheet" 852 msgstr "" 853 852 msgstr "Таблиця стилів" 853 854 #@ cpd 854 855 #: counter-options.php:526 855 #@ cpd856 856 msgid "NO Stylesheet in Frontend" 857 msgstr "" 858 857 msgstr "НЕМАЄ стилів в інтерфейс" 858 859 #@ cpd 859 860 #: counter-options.php:527 860 #@ cpd861 861 msgid "Do not load the stylesheet \"counter.css\" in frontend." 862 msgstr "" 863 862 msgstr "Не завантажити стиль \"counter.css\" у інтерфейс." 863 864 #@ cpd 864 865 #: counter-options.php:535 865 866 #: counter-options.php:640 866 #@ cpd867 867 msgid "Backup" 868 msgstr "" 869 868 msgstr "Резервне копіювання" 869 870 #@ cpd 870 871 #: counter-options.php:538 871 #@ cpd872 872 msgid "Entries per pass" 873 msgstr "" 874 873 msgstr "Записи за пас" 874 875 #@ cpd 875 876 #: counter-options.php:541 876 #@ cpd877 877 msgid "How many entries should be saved per pass? Default: 10000" 878 msgstr "" 879 878 msgstr "Скільки записів повинна бути збережена за пас? Default: 10000" 879 880 #@ cpd 880 881 #: counter-options.php:546 881 #@ cpd882 882 msgid "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 883 msgstr "Якщо ваш PHP пам'яті обмежити менше потім 50 МБ і ви отримаєте білу сторінку або повідомлення про помилку, спробуйте менші значення." 884 885 #@ cpd 885 886 #: counter-options.php:644 886 887 #, php-format 887 #@ cpd888 888 msgid "Create a backup of the counter table %s in your wp-content directory (if writable)." 889 msgstr "" 890 889 msgstr "Створити резервну копію таблиці лічильник %s в каталозі wp зміст (якщо для запису)." 890 891 #@ cpd 891 892 #: counter-options.php:648 892 #@ cpd893 893 msgid "Backup the database" 894 msgstr "" 895 894 msgstr "Резервне копіювання бази даних" 895 896 #@ cpd 896 897 #: counter-options.php:675 897 898 #: counter-options.php:707 898 #@ cpd899 899 msgid "Collect old data" 900 msgstr "" 901 900 msgstr "Збирати старі дані" 901 902 #@ cpd 902 903 #: counter-options.php:680 903 904 #, php-format 904 #@ cpd905 905 msgid "Current size of your counter table %s is %s." 906 msgstr "" 907 906 msgstr "Поточний розмір таблиці лічильник %s є %s." 907 908 #@ cpd 908 909 #: counter-options.php:682 909 #@ cpd910 910 msgid "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 911 msgstr "Можна збирати старі дані та очищення таблиці лічильник.<br/>Переглядів і відвідувачів буде збережено на місяць, в країні і за пост.<br/>Клієнтів і посилаються, буде видалено. " 912 913 #@ cpd 913 914 #: counter-options.php:687 914 915 #, php-format 915 #@ cpd916 916 msgid "Currently your collection contains data until %s." 917 msgstr "" 918 917 msgstr "В даний час вашої колекції містить дані до %s." 918 919 #@ cpd 919 920 #: counter-options.php:691 920 #@ cpd921 921 msgid "Normally new data will be added to the collection." 922 msgstr "" 923 922 msgstr "Зазвичай нові дані будуть додані до колекції." 923 924 #@ cpd 924 925 #: counter-options.php:697 925 #@ cpd926 926 msgid "Delete old collection and create a new one which contains only the data currently in counter table." 927 msgstr "" 928 927 msgstr "Видалення старої колекції і створити новий список, який містить лише дані в даний час лічильник таблиці." 928 929 #@ cpd 929 930 #: counter-options.php:698 930 931 #, php-format 931 #@ cpd932 932 msgid "All collected data until %s will deleted." 933 msgstr "" 934 933 msgstr "Всі зібрані дані до %s буде видалено." 934 935 #@ cpd 935 936 #: counter-options.php:703 936 937 #, php-format 937 #@ cpd938 938 msgid "Keep entries of last %s full months + current month in counter table." 939 msgstr "" 940 939 msgstr "Зберегти записи останнього %s повний місяць поточний місяць в таблиці лічильник." 940 941 #@ cpd 941 942 #: counter-options.php:762 942 #@ cpd943 943 msgid "ReActivation" 944 msgstr "" 945 944 msgstr "Реактивація" 945 946 #@ cpd 946 947 #: counter-options.php:765 947 #@ cpd948 948 msgid "Here you can start the installation functions manually.<br/>Same as deactivate and reactivate the plugin." 949 msgstr "" 950 949 msgstr "Тут ви можете почати установку функції вручну.<br/>Так само, як відключити і повторно активувати плагін. " 950 951 #@ cpd 951 952 #: counter-options.php:770 952 #@ cpd953 953 msgid "ReActivate the plugin" 954 msgstr "" 955 954 msgstr "Активувати плагін" 955 956 #@ cpd 956 957 #: counter.php:165 957 958 #: counter.php:899 958 #@ cpd959 959 msgid "Visitors" 960 msgstr "" 961 960 msgstr "Відвідувачі" 961 962 #@ cpd 962 963 #: counter.php:168 963 964 #: counter.php:169 964 #@ cpd965 965 msgid "Most visited day" 966 msgstr "" 967 966 msgstr "Найбільш відвідуваних день" 967 968 #@ cpd 968 969 #: counter.php:1239 969 #@ cpd970 970 msgid "drag and drop to sort" 971 msgstr " "972 971 msgstr "перетягування для сортування" 972 -
count-per-day/trunk/map/data.xml.php
r488883 r571926 7 7 $data = array(); 8 8 9 $what = (empty($_GET['map'])) ? 'reads' : $_GET['map']; 10 $what = strip_tags($what); 9 $what = (empty($_GET['map'])) ? 'reads' : strip_tags($_GET['map']); 11 10 12 11 if ( $what == 'online' ) -
count-per-day/trunk/map/map.php
r488883 r571926 1 1 <?php 2 $what = (empty($_GET['map'])) ? 'reads' : $_GET['map']; 3 $what = strip_tags($what); 2 $what = (empty($_GET['map'])) ? 'reads' : strip_tags($_GET['map']); 4 3 if ( !in_array($what, array('visitors','reads','online')) ) 5 4 die(); -
count-per-day/trunk/map/settings.xml.php
r490270 r571926 1 1 <?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'])); 4 3 $disable = (empty($_GET['min'])) ? '' : '<enabled>false</enabled>'; 5 4 -
count-per-day/trunk/userperspan.php
r434198 r571926 4 4 require_once($cpd_wp.'wp-load.php'); 5 5 6 $cpd_datemin = ( !empty($_REQUEST['datemin']) ) ? $_REQUEST['datemin']: date_i18n('Y-m-d', time() - 86400 * 14); // 14 days7 $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; 9 9 10 10 $sql = "SELECT p.post_title,
Note: See TracChangeset
for help on using the changeset viewer.