Count per Day - Version 1.3

Version Description

Download this release

Release Info

Developer Tom Braider
Plugin Icon 128x128 Count per Day
Version 1.3
Comparing to
See all releases

Code changes from version 1.2.3 to 1.3

counter-options.php CHANGED
@@ -19,6 +19,11 @@ if(!empty($_POST['do']))
19
update_option( 'cpd_bots', $_POST['cpd_bots'] );
20
echo '<div id="message" class="updated fade"><p>'.__('Options updated', 'cpd').'</p></div>';
21
break;
22
// uninstall plugin
23
case __('UNINSTALL Count per Day', 'cpd') :
24
if(trim($_POST['uninstall_cpd_yes']) == 'yes')
@@ -66,7 +71,7 @@ switch($mode) {
66
<table class="form-table">
67
<tr>
68
<th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Online time', 'cpd') ?>:</th>
69
- <td><input class="code" type="text" name="cpd_onlinetime" size="3" value="<?php echo get_option('cpd_onlinetime'); ?>" /> <?php _e('Seconds for online counter', 'cpd') ?></td>
70
</tr><tr>
71
<th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Loged on Users', 'cpd') ?>:</th>
72
<td><input type="checkbox" name="cpd_user" id="cpd_user" <?php if(get_option('cpd_user')==1) echo 'checked="checked"'; ?> /> <label for="cpd_user"><?php _e('count too', 'cpd') ?></label></td>
@@ -78,7 +83,7 @@ switch($mode) {
78
<td><textarea name="cpd_bots" cols="50" rows="10"><?php echo get_option('cpd_bots'); ?></textarea></td>
79
</tr>
80
</table>
81
- <p class="submit">
82
<input type="hidden" name="do" value="cpd_update" />
83
<input type="submit" name="update" value="<?php _e('Update options', 'cpd') ?>" class="button" />
84
</p>
@@ -86,6 +91,23 @@ switch($mode) {
86
</div>
87
88
89
<!-- Uninstall -->
90
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
91
<div class="wrap" style="margin-top: 100px;">
19
update_option( 'cpd_bots', $_POST['cpd_bots'] );
20
echo '<div id="message" class="updated fade"><p>'.__('Options updated', 'cpd').'</p></div>';
21
break;
22
+ // clean database
23
+ case 'cpd_clean' :
24
+ $rows = cpdCleanDB();
25
+ echo '<div id="message" class="updated fade"><p>'.sprintf(__('Database cleaned. %s rows deleted.', 'cpd'), $rows).'</p></div>';
26
+ break;
27
// uninstall plugin
28
case __('UNINSTALL Count per Day', 'cpd') :
29
if(trim($_POST['uninstall_cpd_yes']) == 'yes')
71
<table class="form-table">
72
<tr>
73
<th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Online time', 'cpd') ?>:</th>
74
+ <td><input class="code" type="text" name="cpd_onlinetime" size="3" value="<?php echo get_option('cpd_onlinetime'); ?>" /> <?php _e('Seconds for online counter. Used for "Visitors online" on dashboard page.', 'cpd') ?></td>
75
</tr><tr>
76
<th nowrap="nowrap" scope="row" style="vertical-align:middle;"><?php _e('Loged on Users', 'cpd') ?>:</th>
77
<td><input type="checkbox" name="cpd_user" id="cpd_user" <?php if(get_option('cpd_user')==1) echo 'checked="checked"'; ?> /> <label for="cpd_user"><?php _e('count too', 'cpd') ?></label></td>
83
<td><textarea name="cpd_bots" cols="50" rows="10"><?php echo get_option('cpd_bots'); ?></textarea></td>
84
</tr>
85
</table>
86
+ <p>
87
<input type="hidden" name="do" value="cpd_update" />
88
<input type="submit" name="update" value="<?php _e('Update options', 'cpd') ?>" class="button" />
89
</p>
91
</div>
92
93
94
+ <!-- Cleaner -->
95
+ <div class="wrap" style="margin-top: 50px;">
96
+ <h2>Count per Day - <?php _e('Clean the database', 'cpd') ?></h2>
97
+
98
+ <p>
99
+ <?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') ?>
100
+ </p>
101
+
102
+ <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
103
+ <p>
104
+ <input type="hidden" name="do" value="cpd_clean" />
105
+ <input type="submit" name="clean" value="<?php _e('Clean the database', 'cpd') ?>" class="button" />
106
+ </p>
107
+ </form>
108
+ </div>
109
+
110
+
111
<!-- Uninstall -->
112
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
113
<div class="wrap" style="margin-top: 100px;">
counter.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: Count Per Day
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.
6
- Version: 1.2.3
7
License: GPL
8
Author: Tom Braider
9
Author URI: http://www.tomsdimension.de
@@ -86,16 +86,29 @@ function cpdCount()
86
87
/**
88
* Bot oder Mensch?
89
*/
90
- function cpdIsBot()
91
{
92
// Strings die auf Suchmaschinen deuten
93
$bots = explode( "\n", get_option('cpd_bots') );
94
$isBot = false;
95
foreach ( $bots as $bot )
96
{
97
- if ( strpos( $_SERVER['HTTP_USER_AGENT'], trim($bot) ) !== false )
98
- $isBot = true;
99
}
100
return $isBot;
101
}
@@ -157,7 +170,7 @@ function cpdDashbord()
157
<h3><?php _e('Reads at all', 'cpd') ?></h3>
158
<ul>
159
<li><?php _e('Reads at all', 'cpd') ?>: <span><?php cpdGetUserAll(); ?></span></li>
160
- <li><?php _e('Reads currently online', 'cpd') ?>: <span><?php cpdGetUserOnline(); ?></span></li>
161
<li><?php _e('Reads today', 'cpd') ?>: <b><?php cpdGetUserToday(); ?></b></li>
162
<li><?php _e('Reads yesterday', 'cpd') ?>: <b><?php cpdGetUserYesterday(); ?></b></li>
163
<li><?php _e('Reads last week', 'cpd') ?>: <b><?php cpdGetUserLastWeek(); ?></b></li>
@@ -308,7 +321,25 @@ function cpdGetUserPerDay()
308
echo number_format($count, 0);
309
}
310
311
-
312
313
/**
314
* f�gt Stylesheet in WP-Head ein
@@ -325,7 +356,7 @@ function cpdAddCSS() {
325
function cpdMenu($content)
326
{
327
if (function_exists('add_options_page')) {
328
- add_options_page('CountPerDay', 'Count Per Day', 'manage_options', 'options-general.php?page='.dirname(plugin_basename(__FILE__)).'/counter-options.php') ;
329
// Dashboard Men�punkt
330
add_submenu_page('index.php','CountPerDay','Count per Day',1,__FILE__,'cpdDashbord');
331
}
3
Plugin Name: Count Per Day
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.
6
+ Version: 1.3
7
License: GPL
8
Author: Tom Braider
9
Author URI: http://www.tomsdimension.de
86
87
/**
88
* Bot oder Mensch?
89
+ * @param string $client String der auf Bot getestet werden soll
90
*/
91
+ function cpdIsBot( $client = '' )
92
{
93
// Strings die auf Suchmaschinen deuten
94
$bots = explode( "\n", get_option('cpd_bots') );
95
$isBot = false;
96
foreach ( $bots as $bot )
97
{
98
+ $b = trim($bot);
99
+ if ( !empty($b) )
100
+ {
101
+ if ( empty($client) )
102
+ {
103
+ if ( strpos( strtolower($_SERVER['HTTP_USER_AGENT']), strtolower($b) ) !== false )
104
+ $isBot = true;
105
+ }
106
+ else
107
+ {
108
+ if ( strpos( strtolower($client), strtolower($b) ) !== false )
109
+ $isBot = true;
110
+ }
111
+ }
112
}
113
return $isBot;
114
}
170
<h3><?php _e('Reads at all', 'cpd') ?></h3>
171
<ul>
172
<li><?php _e('Reads at all', 'cpd') ?>: <span><?php cpdGetUserAll(); ?></span></li>
173
+ <li><?php _e('Visitors currently online', 'cpd') ?>: <span><?php cpdGetUserOnline(); ?></span></li>
174
<li><?php _e('Reads today', 'cpd') ?>: <b><?php cpdGetUserToday(); ?></b></li>
175
<li><?php _e('Reads yesterday', 'cpd') ?>: <b><?php cpdGetUserYesterday(); ?></b></li>
176
<li><?php _e('Reads last week', 'cpd') ?>: <b><?php cpdGetUserLastWeek(); ?></b></li>
321
echo number_format($count, 0);
322
}
323
324
+ /**
325
+ * loescht alten Spam
326
+ */
327
+ function cpdCleanDB()
328
+ {
329
+ global $wpdb;
330
+
331
+ $rows = 0;
332
+ $v = $wpdb->get_results("SELECT * FROM ".CPD_C_TABLE.";");
333
+ foreach ($v as $row)
334
+ {
335
+ if ( cpdIsBot($row->client) )
336
+ {
337
+ $wpdb->query("DELETE FROM ".CPD_C_TABLE." WHERE id = ".$row->id.";");
338
+ $rows++;
339
+ }
340
+ }
341
+ return $rows;
342
+ }
343
344
/**
345
* f�gt Stylesheet in WP-Head ein
356
function cpdMenu($content)
357
{
358
if (function_exists('add_options_page')) {
359
+ add_options_page('CountPerDay', 'Count Per Day', 'manage_options', dirname(plugin_basename(__FILE__)).'/counter-options.php') ;
360
// Dashboard Men�punkt
361
add_submenu_page('index.php','CountPerDay','Count per Day',1,__FILE__,'cpdDashbord');
362
}
locale/de_DE.mo CHANGED
Binary file
locale/de_DE.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
msgstr ""
3
"Project-Id-Version: Count per Day\n"
4
"Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2008-05-29 20:03+0100\n"
6
"PO-Revision-Date: \n"
7
"Last-Translator: Tom Braider <post@tomsdimension.de>\n"
8
"Language-Team: \n"
@@ -12,146 +12,162 @@ msgstr ""
12
"X-Poedit-Language: German\n"
13
"X-Poedit-Country: GERMANY\n"
14
"X-Poedit-KeywordsList: __;_e\n"
15
- "X-Poedit-Basepath: P:\\xampp\\htdocs\\td\\wp\\wp-content\\plugins\\\n"
16
- "X-Poedit-SearchPath-0: count-per-day\n"
17
18
- #: count-per-day/counter-options.php:19
19
msgid "Options updated"
20
msgstr "Einstellungen aktualisiert"
21
22
- #: count-per-day/counter-options.php:22
23
- #: count-per-day/counter-options.php:105
24
msgid "UNINSTALL Count per Day"
25
msgstr "DEINSTALLIERE Count per Day"
26
27
- #: count-per-day/counter-options.php:34
28
- #: count-per-day/counter-options.php:36
29
#, php-format
30
msgid "Table %s deleted"
31
- msgstr "Tabelle %s gelöscht"
32
33
- #: count-per-day/counter-options.php:38
34
msgid "Options deleted"
35
- msgstr "Einstellungen gelöscht"
36
37
- #: count-per-day/counter-options.php:54
38
- #: count-per-day/counter-options.php:91
39
msgid "Uninstall"
40
msgstr "Deinstallation"
41
42
- #: count-per-day/counter-options.php:55
43
msgid "Click here"
44
msgstr "Klick hier"
45
46
- #: count-per-day/counter-options.php:55
47
msgid "to finish the uninstall and to deactivate \"Count per Day\"."
48
msgstr "um die Deinstallation zu beenden und \"Count per Day\" zu deaktivieren."
49
50
- #: count-per-day/counter-options.php:62
51
msgid "Options"
52
msgstr "Einstellungen"
53
54
- #: count-per-day/counter-options.php:67
55
msgid "Online time"
56
msgstr "Onlinezeit"
57
58
- #: count-per-day/counter-options.php:68
59
- msgid "Seconds for online counter"
60
- msgstr "Sekunden für Onlinecounter"
61
62
- #: count-per-day/counter-options.php:70
63
msgid "Loged on Users"
64
msgstr "Angemeldete Benutzer"
65
66
- #: count-per-day/counter-options.php:71
67
msgid "count too"
68
- msgstr "auch mit zählen"
69
70
- #: count-per-day/counter-options.php:73
71
msgid "Auto counter"
72
msgstr "Auto-Counter"
73
74
- #: count-per-day/counter-options.php:74
75
msgid "Counts automatically single-posts and pages, no changes on template needed."
76
- msgstr "Zählt automatisch Besuche auf Single-Posts und Seiten ohne Änderungen am Template."
77
78
- #: count-per-day/counter-options.php:76
79
msgid "Bots to ignore"
80
msgstr "Bots ignorieren"
81
82
- #: count-per-day/counter-options.php:82
83
msgid "Update options"
84
msgstr "Einstellungen aktualisieren"
85
86
- #: count-per-day/counter-options.php:93
87
msgid "If \"Count per Day\" only disabled the tables in the database will be preserved."
88
msgstr "Wenn \"Count per Day\" nur deaktiviert wird, bleiben die Tabellen in der Datenbank erhalten."
89
90
- #: count-per-day/counter-options.php:94
91
msgid "Here you can delete the tables and disable \"Count per Day\"."
92
- msgstr "Hier kannst du \"Count per Day\" deinstallieren und die Tabellen löschen."
93
94
- #: count-per-day/counter-options.php:97
95
msgid "WARNING"
96
msgstr "WARNUNG"
97
98
- #: count-per-day/counter-options.php:98
99
msgid "These tables (with ALL counter data) will be deleted."
100
- msgstr "Diese Tabellen werden mit ALLEN Zählerdaten gelöscht."
101
102
- #: count-per-day/counter-options.php:100
103
msgid "If \"Count per Day\" re-installed, the counter starts at 0."
104
- msgstr "Wenn \"Count per Day\" erneut installiert wird, beginnt der Zähler bei 0."
105
106
- #: count-per-day/counter-options.php:104
107
msgid "Yes"
108
msgstr "Ja, los!"
109
110
- #: count-per-day/counter-options.php:105
111
msgid "You are sure to disable Count per Day and delete all data?"
112
- msgstr "Bist du sicher, dass du Count per Day deaktivieren und alle Daten löschen willst?"
113
114
- #: count-per-day/counter.php:137
115
msgid "Statistics"
116
msgstr "Statistiken"
117
118
- #: count-per-day/counter.php:142
119
- #: count-per-day/counter.php:144
120
msgid "Reads at all"
121
msgstr "Besucher gesamt"
122
123
- #: count-per-day/counter.php:145
124
- msgid "Reads currently online"
125
msgstr "Besucher momentan online"
126
127
- #: count-per-day/counter.php:146
128
msgid "Reads today"
129
msgstr "Besucher heute"
130
131
- #: count-per-day/counter.php:147
132
msgid "Reads yesterday"
133
msgstr "Besucher gestern"
134
135
- #: count-per-day/counter.php:148
136
msgid "Reads last week"
137
msgstr "Besucher letzte Woche"
138
139
- #: count-per-day/counter.php:149
140
msgid "Counter starts at"
141
- msgstr "gezählt ab"
142
143
- #: count-per-day/counter.php:150
144
msgid "Reads per day"
145
msgstr "Besucher pro Tag"
146
147
- #: count-per-day/counter.php:155
148
msgid "Reads per month"
149
msgstr "Besucher pro Monat"
150
151
- #: count-per-day/counter.php:158
152
msgid "Reads per post"
153
msgstr "Besucher pro Artikel"
154
155
#~ msgid "Table"
156
#~ msgstr "Tabelle"
157
2
msgstr ""
3
"Project-Id-Version: Count per Day\n"
4
"Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-09-03 20:04+0100\n"
6
"PO-Revision-Date: \n"
7
"Last-Translator: Tom Braider <post@tomsdimension.de>\n"
8
"Language-Team: \n"
12
"X-Poedit-Language: German\n"
13
"X-Poedit-Country: GERMANY\n"
14
"X-Poedit-KeywordsList: __;_e\n"
15
+ "X-Poedit-Basepath: P:\\xampp\\htdocs\\wp\\wp-content\\plugins\\count-per-day\n"
16
+ "X-Poedit-SearchPath-0: .\n"
17
18
+ #: count-per-day/counter-options.php:20
19
msgid "Options updated"
20
msgstr "Einstellungen aktualisiert"
21
22
+ #: count-per-day/counter-options.php:25
23
+ #, php-format
24
+ msgid "Database cleaned. %s rows deleted."
25
+ msgstr "Datenbank aufger&auml;umt. %s Datens&auml;tze gel&ouml;scht."
26
+
27
+ #: count-per-day/counter-options.php:28
28
+ #: count-per-day/counter-options.php:128
29
msgid "UNINSTALL Count per Day"
30
msgstr "DEINSTALLIERE Count per Day"
31
32
+ #: count-per-day/counter-options.php:40
33
+ #: count-per-day/counter-options.php:42
34
#, php-format
35
msgid "Table %s deleted"
36
+ msgstr "Tabelle %s gel&ouml;scht"
37
38
+ #: count-per-day/counter-options.php:44
39
msgid "Options deleted"
40
+ msgstr "Einstellungen gel&ouml;scht"
41
42
+ #: count-per-day/counter-options.php:60
43
+ #: count-per-day/counter-options.php:114
44
msgid "Uninstall"
45
msgstr "Deinstallation"
46
47
+ #: count-per-day/counter-options.php:61
48
msgid "Click here"
49
msgstr "Klick hier"
50
51
+ #: count-per-day/counter-options.php:61
52
msgid "to finish the uninstall and to deactivate \"Count per Day\"."
53
msgstr "um die Deinstallation zu beenden und \"Count per Day\" zu deaktivieren."
54
55
+ #: count-per-day/counter-options.php:68
56
msgid "Options"
57
msgstr "Einstellungen"
58
59
+ #: count-per-day/counter-options.php:73
60
msgid "Online time"
61
msgstr "Onlinezeit"
62
63
+ #: count-per-day/counter-options.php:74
64
+ msgid "Seconds for online counter. Used for \"Visitors online\" on dashboard page."
65
+ msgstr "Sekunden f&uuml;r Onlinecounter. Wird f&uuml;r die Anzeige der \"Besucher momentan online\" im Dashboard verwendet."
66
67
+ #: count-per-day/counter-options.php:76
68
msgid "Loged on Users"
69
msgstr "Angemeldete Benutzer"
70
71
+ #: count-per-day/counter-options.php:77
72
msgid "count too"
73
+ msgstr "auch mit z&auml;hlen"
74
75
+ #: count-per-day/counter-options.php:79
76
msgid "Auto counter"
77
msgstr "Auto-Counter"
78
79
+ #: count-per-day/counter-options.php:80
80
msgid "Counts automatically single-posts and pages, no changes on template needed."
81
+ msgstr "Z&auml;hlt automatisch Besuche auf Single-Posts und Seiten ohne &Auml;nderungen am Template."
82
83
+ #: count-per-day/counter-options.php:82
84
msgid "Bots to ignore"
85
msgstr "Bots ignorieren"
86
87
+ #: count-per-day/counter-options.php:88
88
msgid "Update options"
89
msgstr "Einstellungen aktualisieren"
90
91
+ #: count-per-day/counter-options.php:96
92
+ #: count-per-day/counter-options.php:105
93
+ msgid "Clean the database"
94
+ msgstr "Datenbank aufr&auml;umen"
95
+
96
+ #: count-per-day/counter-options.php:99
97
+ 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."
98
+ msgstr "Du kannst die Counter-Tabelle von \"Spam-Daten\" befreien.<br />Wenn du neue Bots zu der Liste oben hinzuf&uuml;gst bleiben die alten \"Spam-Daten\" erhalten.<br />Hier kannst du den Filter erneut laufen lassen und die Besuche von Bots nachtr&auml;glich l&ouml;schen."
99
+
100
+ #: count-per-day/counter-options.php:116
101
msgid "If \"Count per Day\" only disabled the tables in the database will be preserved."
102
msgstr "Wenn \"Count per Day\" nur deaktiviert wird, bleiben die Tabellen in der Datenbank erhalten."
103
104
+ #: count-per-day/counter-options.php:117
105
msgid "Here you can delete the tables and disable \"Count per Day\"."
106
+ msgstr "Hier kannst du \"Count per Day\" deinstallieren und die Tabellen l&ouml;schen."
107
108
+ #: count-per-day/counter-options.php:120
109
msgid "WARNING"
110
msgstr "WARNUNG"
111
112
+ #: count-per-day/counter-options.php:121
113
msgid "These tables (with ALL counter data) will be deleted."
114
+ msgstr "Diese Tabellen werden mit ALLEN Z&auml;hlerdaten gel&ouml;scht."
115
116
+ #: count-per-day/counter-options.php:123
117
msgid "If \"Count per Day\" re-installed, the counter starts at 0."
118
+ msgstr "Wenn \"Count per Day\" erneut installiert wird, beginnt der Z&auml;hler bei 0."
119
120
+ #: count-per-day/counter-options.php:127
121
msgid "Yes"
122
msgstr "Ja, los!"
123
124
+ #: count-per-day/counter-options.php:128
125
msgid "You are sure to disable Count per Day and delete all data?"
126
+ msgstr "Bist du sicher, dass du Count per Day deaktivieren und alle Daten l&ouml;schen willst?"
127
128
+ #: count-per-day/counter.php:167
129
msgid "Statistics"
130
msgstr "Statistiken"
131
132
+ #: count-per-day/counter.php:172
133
+ #: count-per-day/counter.php:174
134
msgid "Reads at all"
135
msgstr "Besucher gesamt"
136
137
+ #: count-per-day/counter.php:175
138
+ msgid "Visitors currently online"
139
msgstr "Besucher momentan online"
140
141
+ #: count-per-day/counter.php:176
142
msgid "Reads today"
143
msgstr "Besucher heute"
144
145
+ #: count-per-day/counter.php:177
146
msgid "Reads yesterday"
147
msgstr "Besucher gestern"
148
149
+ #: count-per-day/counter.php:178
150
msgid "Reads last week"
151
msgstr "Besucher letzte Woche"
152
153
+ #: count-per-day/counter.php:179
154
msgid "Counter starts at"
155
+ msgstr "gez&auml;hlt ab"
156
157
+ #: count-per-day/counter.php:180
158
msgid "Reads per day"
159
msgstr "Besucher pro Tag"
160
161
+ #: count-per-day/counter.php:185
162
msgid "Reads per month"
163
msgstr "Besucher pro Monat"
164
165
+ #: count-per-day/counter.php:188
166
msgid "Reads per post"
167
msgstr "Besucher pro Artikel"
168
169
+ #~ msgid "Seconds for online counter"
170
+ #~ msgstr "Sekunden f&uuml;r Onlinecounter"
171
#~ msgid "Table"
172
#~ msgstr "Tabelle"
173
locale/it_IT.mo CHANGED
Binary file
locale/it_IT.po CHANGED
@@ -2,9 +2,9 @@ msgid ""
2
msgstr ""
3
"Project-Id-Version: Count per Day in italiano\n"
4
"Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2008-05-29 20:03+0100\n"
6
"PO-Revision-Date: \n"
7
- "Last-Translator: Gianni Diurno (aka gidibao) <gidibao@gmail.com>\n"
8
"Language-Team: Gianni Diurno | http://gidibao.net <gidibao@gmail.com>\n"
9
"MIME-Version: 1.0\n"
10
"Content-Type: text/plain; charset=UTF-8\n"
@@ -12,147 +12,158 @@ msgstr ""
12
"X-Poedit-Language: Italian\n"
13
"X-Poedit-Country: ITALY\n"
14
"X-Poedit-KeywordsList: __;_e\n"
15
- "X-Poedit-Basepath: P:\\xampp\\htdocs\\td\\wp\\wp-content\\plugins\\\n"
16
"X-Poedit-SourceCharset: utf-8\n"
17
- "X-Poedit-SearchPath-0: count-per-day\n"
18
19
- #: count-per-day/counter-options.php:19
20
msgid "Options updated"
21
msgstr "Le opzioni sono state aggiornate"
22
23
- #: count-per-day/counter-options.php:22
24
- #: count-per-day/counter-options.php:105
25
msgid "UNINSTALL Count per Day"
26
msgstr "DISINSTALLA Count per Day"
27
28
- #: count-per-day/counter-options.php:34
29
- #: count-per-day/counter-options.php:36
30
#, php-format
31
msgid "Table %s deleted"
32
- msgstr "La tabella %s é stata cancellata"
33
34
- #: count-per-day/counter-options.php:38
35
msgid "Options deleted"
36
msgstr "Le opzioni sono state cancellate"
37
38
- #: count-per-day/counter-options.php:54
39
- #: count-per-day/counter-options.php:91
40
msgid "Uninstall"
41
msgstr "Disinstalla"
42
43
- #: count-per-day/counter-options.php:55
44
msgid "Click here"
45
msgstr "Clicca qui"
46
47
- #: count-per-day/counter-options.php:55
48
msgid "to finish the uninstall and to deactivate \"Count per Day\"."
49
msgstr "per completare la disinstallazione e disattivare \"Count per Day\"."
50
51
- #: count-per-day/counter-options.php:62
52
msgid "Options"
53
msgstr "Opzioni"
54
55
- #: count-per-day/counter-options.php:67
56
msgid "Online time"
57
msgstr "Durata del collegamento"
58
59
- #: count-per-day/counter-options.php:68
60
- msgid "Seconds for online counter"
61
- msgstr "Il numero dei secondi per il contatore in linea"
62
63
- #: count-per-day/counter-options.php:70
64
msgid "Loged on Users"
65
msgstr "Utenti accreditati"
66
67
- #: count-per-day/counter-options.php:71
68
msgid "count too"
69
msgstr "conteggia anche loro"
70
71
- #: count-per-day/counter-options.php:73
72
msgid "Auto counter"
73
msgstr "Contatore-automatico"
74
75
- #: count-per-day/counter-options.php:74
76
msgid "Counts automatically single-posts and pages, no changes on template needed."
77
- msgstr "Conta in automatico i singoli articoli e le pagine. Non é necessaria alcuna modifica del template."
78
79
- #: count-per-day/counter-options.php:76
80
msgid "Bots to ignore"
81
msgstr "Bots da ignorare"
82
83
- #: count-per-day/counter-options.php:82
84
msgid "Update options"
85
msgstr "Aggiorna le opzioni"
86
87
- #: count-per-day/counter-options.php:93
88
msgid "If \"Count per Day\" only disabled the tables in the database will be preserved."
89
- msgstr "La disattivazione in di \"Count per Day\" non cancellerà le tabelle del database."
90
91
- #: count-per-day/counter-options.php:94
92
msgid "Here you can delete the tables and disable \"Count per Day\"."
93
msgstr "Qui potrai cancellare le tabelle e disattivare \"Count per Day\"."
94
95
- #: count-per-day/counter-options.php:97
96
msgid "WARNING"
97
msgstr "ATTENZIONE"
98
99
- #: count-per-day/counter-options.php:98
100
msgid "These tables (with ALL counter data) will be deleted."
101
msgstr "Queste tabelle (compresi TUTTI i dati) saranno cancellate."
102
103
- #: count-per-day/counter-options.php:100
104
msgid "If \"Count per Day\" re-installed, the counter starts at 0."
105
- msgstr "Qualora desiderassi re-installare \"Count per Day\", ricordati che il contatore ripartirà da 0."
106
107
- #: count-per-day/counter-options.php:104
108
msgid "Yes"
109
- msgstr "Sì"
110
111
- #: count-per-day/counter-options.php:105
112
msgid "You are sure to disable Count per Day and delete all data?"
113
msgstr "Sei certo di volere disattivare Count per Day e cancellare tutti i dati?"
114
115
- #: count-per-day/counter.php:137
116
msgid "Statistics"
117
msgstr "Satistiche"
118
119
- #: count-per-day/counter.php:142
120
- #: count-per-day/counter.php:144
121
msgid "Reads at all"
122
msgstr "generali"
123
124
- #: count-per-day/counter.php:145
125
- msgid "Reads currently online"
126
msgstr "Utenti attualmente in linea"
127
128
- #: count-per-day/counter.php:146
129
msgid "Reads today"
130
msgstr "Oggi"
131
132
- #: count-per-day/counter.php:147
133
msgid "Reads yesterday"
134
msgstr "Ieri"
135
136
- #: count-per-day/counter.php:148
137
msgid "Reads last week"
138
msgstr "La scorsa settimana"
139
140
- #: count-per-day/counter.php:149
141
msgid "Counter starts at"
142
msgstr "Il contatore parte dal"
143
144
- #: count-per-day/counter.php:150
145
msgid "Reads per day"
146
msgstr "per giorno"
147
148
- #: count-per-day/counter.php:155
149
msgid "Reads per month"
150
msgstr "per mese"
151
152
- #: count-per-day/counter.php:158
153
msgid "Reads per post"
154
msgstr "per articolo"
155
156
- #~ msgid "Table"
157
- #~ msgstr "Tabelle"
158
-
2
msgstr ""
3
"Project-Id-Version: Count per Day in italiano\n"
4
"Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-09-03 20:08+0100\n"
6
"PO-Revision-Date: \n"
7
+ "Last-Translator: Tom Braider <post@tomsdimension.de>\n"
8
"Language-Team: Gianni Diurno | http://gidibao.net <gidibao@gmail.com>\n"
9
"MIME-Version: 1.0\n"
10
"Content-Type: text/plain; charset=UTF-8\n"
12
"X-Poedit-Language: Italian\n"
13
"X-Poedit-Country: ITALY\n"
14
"X-Poedit-KeywordsList: __;_e\n"
15
+ "X-Poedit-Basepath: P:\\xampp\\htdocs\\wp\\wp-content\\plugins\\count-per-day\n"
16
"X-Poedit-SourceCharset: utf-8\n"
17
+ "X-Poedit-SearchPath-0: .\n"
18
19
+ #: counter-options.php:20
20
msgid "Options updated"
21
msgstr "Le opzioni sono state aggiornate"
22
23
+ #: counter-options.php:25
24
+ #, php-format
25
+ msgid "Database cleaned. %s rows deleted."
26
+ msgstr "Database svuotato. %s record cancellato."
27
+
28
+ #: counter-options.php:28
29
+ #: counter-options.php:128
30
msgid "UNINSTALL Count per Day"
31
msgstr "DISINSTALLA Count per Day"
32
33
+ #: counter-options.php:40
34
+ #: counter-options.php:42
35
#, php-format
36
msgid "Table %s deleted"
37
+ msgstr "La tabella %s &eacute; stata cancellata"
38
39
+ #: counter-options.php:44
40
msgid "Options deleted"
41
msgstr "Le opzioni sono state cancellate"
42
43
+ #: counter-options.php:60
44
+ #: counter-options.php:114
45
msgid "Uninstall"
46
msgstr "Disinstalla"
47
48
+ #: counter-options.php:61
49
msgid "Click here"
50
msgstr "Clicca qui"
51
52
+ #: counter-options.php:61
53
msgid "to finish the uninstall and to deactivate \"Count per Day\"."
54
msgstr "per completare la disinstallazione e disattivare \"Count per Day\"."
55
56
+ #: counter-options.php:68
57
msgid "Options"
58
msgstr "Opzioni"
59
60
+ #: counter-options.php:73
61
msgid "Online time"
62
msgstr "Durata del collegamento"
63
64
+ #: counter-options.php:74
65
+ msgid "Seconds for online counter. Used for \"Visitors online\" on dashboard page."
66
+ msgstr "Secondi per il counter online. In uso per \"Visitors online\" nella Bacheca."
67
68
+ #: counter-options.php:76
69
msgid "Loged on Users"
70
msgstr "Utenti accreditati"
71
72
+ #: counter-options.php:77
73
msgid "count too"
74
msgstr "conteggia anche loro"
75
76
+ #: counter-options.php:79
77
msgid "Auto counter"
78
msgstr "Contatore-automatico"
79
80
+ #: counter-options.php:80
81
msgid "Counts automatically single-posts and pages, no changes on template needed."
82
+ msgstr "Conta in automatico i singoli articoli e le pagine. Non &eacute; necessaria alcuna modifica del template."
83
84
+ #: counter-options.php:82
85
msgid "Bots to ignore"
86
msgstr "Bots da ignorare"
87
88
+ #: counter-options.php:88
89
msgid "Update options"
90
msgstr "Aggiorna le opzioni"
91
92
+ #: counter-options.php:96
93
+ #: counter-options.php:105
94
+ msgid "Clean the database"
95
+ msgstr "Svuota il database"
96
+
97
+ #: counter-options.php:99
98
+ 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."
99
+ msgstr "Puoi svuotare la tabella del contatore dai \"dati spam\".<br />Aggiungendo dei nuovi bots sopra ai vecchi \"dati spam\" conservati nel database.<br />Qui tu puoi avviare nuovamente il filtro per i bot e cancellare le visite dei bots."
100
+
101
+ #: counter-options.php:116
102
msgid "If \"Count per Day\" only disabled the tables in the database will be preserved."
103
+ msgstr "La disattivazione in s&egrave; di \"Count per Day\" non canceller&agrave; le tabelle del database."
104
105
+ #: counter-options.php:117
106
msgid "Here you can delete the tables and disable \"Count per Day\"."
107
msgstr "Qui potrai cancellare le tabelle e disattivare \"Count per Day\"."
108
109
+ #: counter-options.php:120
110
msgid "WARNING"
111
msgstr "ATTENZIONE"
112
113
+ #: counter-options.php:121
114
msgid "These tables (with ALL counter data) will be deleted."
115
msgstr "Queste tabelle (compresi TUTTI i dati) saranno cancellate."
116
117
+ #: counter-options.php:123
118
msgid "If \"Count per Day\" re-installed, the counter starts at 0."
119
+ msgstr "Qualora desiderassi re-installare \"Count per Day\", ricordati che il contatore ripartir&agrave; da 0."
120
121
+ #: counter-options.php:127
122
msgid "Yes"
123
+ msgstr "S&igrave;"
124
125
+ #: counter-options.php:128
126
msgid "You are sure to disable Count per Day and delete all data?"
127
msgstr "Sei certo di volere disattivare Count per Day e cancellare tutti i dati?"
128
129
+ #: counter.php:167
130
msgid "Statistics"
131
msgstr "Satistiche"
132
133
+ #: counter.php:172
134
+ #: counter.php:174
135
msgid "Reads at all"
136
msgstr "generali"
137
138
+ #: counter.php:175
139
+ msgid "Visitors currently online"
140
msgstr "Utenti attualmente in linea"
141
142
+ #: counter.php:176
143
msgid "Reads today"
144
msgstr "Oggi"
145
146
+ #: counter.php:177
147
msgid "Reads yesterday"
148
msgstr "Ieri"
149
150
+ #: counter.php:178
151
msgid "Reads last week"
152
msgstr "La scorsa settimana"
153
154
+ #: counter.php:179
155
msgid "Counter starts at"
156
msgstr "Il contatore parte dal"
157
158
+ #: counter.php:180
159
msgid "Reads per day"
160
msgstr "per giorno"
161
162
+ #: counter.php:185
163
msgid "Reads per month"
164
msgstr "per mese"
165
166
+ #: counter.php:188
167
msgid "Reads per post"
168
msgstr "per articolo"
169
locale/pt_BR.mo ADDED
Binary file
locale/pt_BR.po ADDED
@@ -0,0 +1,175 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Count per Day\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-09-03 20:03+0100\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Tom Braider <post@tomsdimension.de>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-Language: Portuguese\n"
13
+ "X-Poedit-Country: BRAZIL\n"
14
+ "X-Poedit-KeywordsList: __;_e\n"
15
+ "X-Poedit-Basepath: P:\\xampp\\htdocs\\levelbase_tribune\\wp-content\\plugins\\count-per-day\n"
16
+ "X-Poedit-SourceCharset: utf-8\n"
17
+ "X-Poedit-SearchPath-0: .\n"
18
+
19
+ #: counter-options.php:20
20
+ msgid "Options updated"
21
+ msgstr "Op&ccedil;&otilde;es atualizadas"
22
+
23
+ #: counter-options.php:25
24
+ #, php-format
25
+ msgid "Database cleaned. %s rows deleted."
26
+ msgstr "Banco de dados limpo. %s linhas apagadas."
27
+
28
+ #: counter-options.php:28
29
+ #: counter-options.php:128
30
+ msgid "UNINSTALL Count per Day"
31
+ msgstr "DESINSTALAR o Count per Day"
32
+
33
+ #: counter-options.php:40
34
+ #: counter-options.php:42
35
+ #, php-format
36
+ msgid "Table %s deleted"
37
+ msgstr "Tabela %s apagada"
38
+
39
+ #: counter-options.php:44
40
+ msgid "Options deleted"
41
+ msgstr "Op&ccedil;&otilde;es apagadas"
42
+
43
+ #: counter-options.php:60
44
+ #: counter-options.php:114
45
+ msgid "Uninstall"
46
+ msgstr "Desinstalar"
47
+
48
+ #: counter-options.php:61
49
+ msgid "Click here"
50
+ msgstr "Clique aqui"
51
+
52
+ #: counter-options.php:61
53
+ msgid "to finish the uninstall and to deactivate \"Count per Day\"."
54
+ msgstr "Para terminar a desinstala&ccedil;&atilde;o e desativar o \"Count per Day\". "
55
+
56
+ #: counter-options.php:68
57
+ msgid "Options"
58
+ msgstr "Op&ccedil;&otilde;es"
59
+
60
+ #: counter-options.php:73
61
+ msgid "Online time"
62
+ msgstr "Per&iacute;odo online"
63
+
64
+ #: counter-options.php:74
65
+ msgid "Seconds for online counter. Used for \"Visitors online\" on dashboard page."
66
+ msgstr "Seconds for online counter. Usado no \"Visitantes online\" na p&aacute;gina do painel."
67
+
68
+ #: counter-options.php:76
69
+ msgid "Loged on Users"
70
+ msgstr "Usu&aacute;rios logados"
71
+
72
+ #: counter-options.php:77
73
+ msgid "count too"
74
+ msgstr "contar tamb&eacute;m"
75
+
76
+ #: counter-options.php:79
77
+ msgid "Auto counter"
78
+ msgstr "Autocontador"
79
+
80
+ #: counter-options.php:80
81
+ msgid "Counts automatically single-posts and pages, no changes on template needed."
82
+ msgstr "Conta automaticamente posts e p&aacute;ginas, sem a necessidade de altera&ccedil;&otilde;es em templates."
83
+
84
+ #: counter-options.php:82
85
+ msgid "Bots to ignore"
86
+ msgstr "Bots a serem ignorados"
87
+
88
+ #: counter-options.php:88
89
+ msgid "Update options"
90
+ msgstr "Atualizar op&ccedil;&otilde;es"
91
+
92
+ #: counter-options.php:96
93
+ #: counter-options.php:105
94
+ msgid "Clean the database"
95
+ msgstr "Limpar o banco de dados"
96
+
97
+ #: counter-options.php:99
98
+ 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."
99
+ msgstr "Voc&ecirc; pode limpar os \"dados de spam\" da tabela de contadores. <br />Caso voc&ecirc; adicione novos bots acima, os \"dados de spam\" deles continuar&atilde;o no banco de dados. <br />Para limpar as visitas desses bots, voc&ecirc; pode executar novamente o filtro de bot aqui."
100
+
101
+ #: counter-options.php:116
102
+ msgid "If \"Count per Day\" only disabled the tables in the database will be preserved."
103
+ msgstr "Se o plugin \"Count per Day\" for desativado apenas, as tabelas do banco de dados ser&atilde;o preservadas."
104
+
105
+ #: counter-options.php:117
106
+ msgid "Here you can delete the tables and disable \"Count per Day\"."
107
+ msgstr "A op&ccedil;&atilde;o a seguir permite apagar definitivamente as tabelas do banco de dados, al&eacute;m de desabilitar o plugin."
108
+
109
+ #: counter-options.php:120
110
+ msgid "WARNING"
111
+ msgstr "ATEN&Ccedil;&Atilde;O"
112
+
113
+ #: counter-options.php:121
114
+ msgid "These tables (with ALL counter data) will be deleted."
115
+ msgstr "As seguintes tabelas (incluindo TODOS os dados dos contadores) ser&atilde;o apagadas:"
116
+
117
+ #: counter-options.php:123
118
+ msgid "If \"Count per Day\" re-installed, the counter starts at 0."
119
+ msgstr "Se o \"Count per Day\" for reinstalado, os contadores reiniciar&atilde;o a partir do 0."
120
+
121
+ #: counter-options.php:127
122
+ msgid "Yes"
123
+ msgstr "Sim, quero"
124
+
125
+ #: counter-options.php:128
126
+ msgid "You are sure to disable Count per Day and delete all data?"
127
+ msgstr "Confirma a desativa&ccedil;&atilde;o do Count per Day e a exclus&atilde;o de todos os dados?"
128
+
129
+ #: counter.php:167
130
+ msgid "Statistics"
131
+ msgstr "Estat&iacute;sticas"
132
+
133
+ #: counter.php:172
134
+ #: counter.php:174
135
+ msgid "Reads at all"
136
+ msgstr "Total de visitas"
137
+
138
+ #: counter.php:175
139
+ #, fuzzy
140
+ msgid "Visitors currently online"
141
+ msgstr "Visitantes online"
142
+
143
+ #: counter.php:176
144
+ msgid "Reads today"
145
+ msgstr "Visitas hoje"
146
+
147
+ #: counter.php:177
148
+ msgid "Reads yesterday"
149
+ msgstr "Visitas ontem"
150
+
151
+ #: counter.php:178
152
+ msgid "Reads last week"
153
+ msgstr "Visitas semana passada"
154
+
155
+ #: counter.php:179
156
+ msgid "Counter starts at"
157
+ msgstr "In&iacute;cio da contagem"
158
+
159
+ #: counter.php:180
160
+ msgid "Reads per day"
161
+ msgstr "(m&eacute;dia) de visitas por dia"
162
+
163
+ #: counter.php:185
164
+ msgid "Reads per month"
165
+ msgstr "Visitas por m&ecirc;s"
166
+
167
+ #: counter.php:188
168
+ msgid "Reads per post"
169
+ msgstr "Visitas por post"
170
+
171
+ #~ msgid "Seconds for online counter"
172
+ #~ msgstr "Segundos desde a visita para ser considerado online"
173
+ #~ msgid "Table"
174
+ #~ msgstr "Tabelle"
175
+
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.unicef.org
4
Tags: counter, count, posts, visits, reads
5
Requires at least: 2.0
6
Tested up to: 2.6
7
- Stable tag: 1.2.3
8
9
Visit Counter, shows reads per page, visitors today, yesterday, last week, last months and other statistics.
10
@@ -17,7 +17,7 @@ Visit Counter, shows reads per page, visitors today, yesterday, last week, last
17
18
It counts 1 visit per IP per day. So any reload of the page don't increment the counter.
19
20
- Languages: english, german, italian
21
22
== Installation ==
23
@@ -28,7 +28,7 @@ First activation will create the 2 tables wp _ cpd _ counter and wp _ cpd _ coun
28
29
**Configuration**
30
31
- go to Options Page :)
32
33
If "Auto counter" is on reads on single-posts and pages will count without any changes on template.<br>
34
@@ -110,9 +110,17 @@ _cpdGetUserPerPost( $limit = 0 )_
110
* locale/de_DE.po
111
* locale/it_IT.mo
112
* locale/it_IT.po
113
114
**Changelog**
115
116
_Version 1.2.3_
117
118
+ Bugfix: autocount endless looping
4
Tags: counter, count, posts, visits, reads
5
Requires at least: 2.0
6
Tested up to: 2.6
7
+ Stable tag: 1.3
8
9
Visit Counter, shows reads per page, visitors today, yesterday, last week, last months and other statistics.
10
17
18
It counts 1 visit per IP per day. So any reload of the page don't increment the counter.
19
20
+ Languages: english, german, italian, portuguese
21
22
== Installation ==
23
28
29
**Configuration**
30
31
+ See the Options Page. It's easy. :)
32
33
If "Auto counter" is on reads on single-posts and pages will count without any changes on template.<br>
34
110
* locale/de_DE.po
111
* locale/it_IT.mo
112
* locale/it_IT.po
113
+ * locale/pt_BR.mo
114
+ * locale/pt_BR.po
115
116
**Changelog**
117
118
+ _Version 1.3_
119
+
120
+ + New: you can delete old data if you add a new bot string
121
+ + Bugfix: Bot check was case-sensitive
122
+ + New language: Portuguese, thanks to Filipe
123
+
124
_Version 1.2.3_
125
126
+ Bugfix: autocount endless looping
screenshot-1.png CHANGED
Binary file
screenshot-2.png CHANGED
Binary file