Search Meter - Version 2.13

Version Description

  • Search Summary and Recent Searches can be downloaded as CSV files.
  • Search Meter is now set up for translation to other languages. For details, go to https://translate.wordpress.org/ (Thanks to Christiaen Franois)
  • All stats are now displayed in the WordPress time zone, and stored in the database as UTC. Previously, they were stored and displayed in the server time zone, which was confusing. The change means that old search statistics may be out by up to 13 hours.
  • Updated licensing, now using GPL3.
Download this release

Release Info

Developer bennettmcelwee
Plugin Icon 128x128 Search Meter
Version 2.13
Comparing to
See all releases

Code changes from version 2.12 to 2.13

LICENSE ADDED
@@ -0,0 +1,674 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU General Public License is a free, copyleft license for
11
+ software and other kinds of works.
12
+
13
+ The licenses for most software and other practical works are designed
14
+ to take away your freedom to share and change the works. By contrast,
15
+ the GNU General Public License is intended to guarantee your freedom to
16
+ share and change all versions of a program--to make sure it remains free
17
+ software for all its users. We, the Free Software Foundation, use the
18
+ GNU General Public License for most of our software; it applies also to
19
+ any other work released this way by its authors. You can apply it to
20
+ your programs, too.
21
+
22
+ When we speak of free software, we are referring to freedom, not
23
+ price. Our General Public Licenses are designed to make sure that you
24
+ have the freedom to distribute copies of free software (and charge for
25
+ them if you wish), that you receive source code or can get it if you
26
+ want it, that you can change the software or use pieces of it in new
27
+ free programs, and that you know you can do these things.
28
+
29
+ To protect your rights, we need to prevent others from denying you
30
+ these rights or asking you to surrender the rights. Therefore, you have
31
+ certain responsibilities if you distribute copies of the software, or if
32
+ you modify it: responsibilities to respect the freedom of others.
33
+
34
+ For example, if you distribute copies of such a program, whether
35
+ gratis or for a fee, you must pass on to the recipients the same
36
+ freedoms that you received. You must make sure that they, too, receive
37
+ or can get the source code. And you must show them these terms so they
38
+ know their rights.
39
+
40
+ Developers that use the GNU GPL protect your rights with two steps:
41
+ (1) assert copyright on the software, and (2) offer you this License
42
+ giving you legal permission to copy, distribute and/or modify it.
43
+
44
+ For the developers' and authors' protection, the GPL clearly explains
45
+ that there is no warranty for this free software. For both users' and
46
+ authors' sake, the GPL requires that modified versions be marked as
47
+ changed, so that their problems will not be attributed erroneously to
48
+ authors of previous versions.
49
+
50
+ Some devices are designed to deny users access to install or run
51
+ modified versions of the software inside them, although the manufacturer
52
+ can do so. This is fundamentally incompatible with the aim of
53
+ protecting users' freedom to change the software. The systematic
54
+ pattern of such abuse occurs in the area of products for individuals to
55
+ use, which is precisely where it is most unacceptable. Therefore, we
56
+ have designed this version of the GPL to prohibit the practice for those
57
+ products. If such problems arise substantially in other domains, we
58
+ stand ready to extend this provision to those domains in future versions
59
+ of the GPL, as needed to protect the freedom of users.
60
+
61
+ Finally, every program is threatened constantly by software patents.
62
+ States should not allow patents to restrict development and use of
63
+ software on general-purpose computers, but in those that do, we wish to
64
+ avoid the special danger that patents applied to a free program could
65
+ make it effectively proprietary. To prevent this, the GPL assures that
66
+ patents cannot be used to render the program non-free.
67
+
68
+ The precise terms and conditions for copying, distribution and
69
+ modification follow.
70
+
71
+ TERMS AND CONDITIONS
72
+
73
+ 0. Definitions.
74
+
75
+ "This License" refers to version 3 of the GNU General Public License.
76
+
77
+ "Copyright" also means copyright-like laws that apply to other kinds of
78
+ works, such as semiconductor masks.
79
+
80
+ "The Program" refers to any copyrightable work licensed under this
81
+ License. Each licensee is addressed as "you". "Licensees" and
82
+ "recipients" may be individuals or organizations.
83
+
84
+ To "modify" a work means to copy from or adapt all or part of the work
85
+ in a fashion requiring copyright permission, other than the making of an
86
+ exact copy. The resulting work is called a "modified version" of the
87
+ earlier work or a work "based on" the earlier work.
88
+
89
+ A "covered work" means either the unmodified Program or a work based
90
+ on the Program.
91
+
92
+ To "propagate" a work means to do anything with it that, without
93
+ permission, would make you directly or secondarily liable for
94
+ infringement under applicable copyright law, except executing it on a
95
+ computer or modifying a private copy. Propagation includes copying,
96
+ distribution (with or without modification), making available to the
97
+ public, and in some countries other activities as well.
98
+
99
+ To "convey" a work means any kind of propagation that enables other
100
+ parties to make or receive copies. Mere interaction with a user through
101
+ a computer network, with no transfer of a copy, is not conveying.
102
+
103
+ An interactive user interface displays "Appropriate Legal Notices"
104
+ to the extent that it includes a convenient and prominently visible
105
+ feature that (1) displays an appropriate copyright notice, and (2)
106
+ tells the user that there is no warranty for the work (except to the
107
+ extent that warranties are provided), that licensees may convey the
108
+ work under this License, and how to view a copy of this License. If
109
+ the interface presents a list of user commands or options, such as a
110
+ menu, a prominent item in the list meets this criterion.
111
+
112
+ 1. Source Code.
113
+
114
+ The "source code" for a work means the preferred form of the work
115
+ for making modifications to it. "Object code" means any non-source
116
+ form of a work.
117
+
118
+ A "Standard Interface" means an interface that either is an official
119
+ standard defined by a recognized standards body, or, in the case of
120
+ interfaces specified for a particular programming language, one that
121
+ is widely used among developers working in that language.
122
+
123
+ The "System Libraries" of an executable work include anything, other
124
+ than the work as a whole, that (a) is included in the normal form of
125
+ packaging a Major Component, but which is not part of that Major
126
+ Component, and (b) serves only to enable use of the work with that
127
+ Major Component, or to implement a Standard Interface for which an
128
+ implementation is available to the public in source code form. A
129
+ "Major Component", in this context, means a major essential component
130
+ (kernel, window system, and so on) of the specific operating system
131
+ (if any) on which the executable work runs, or a compiler used to
132
+ produce the work, or an object code interpreter used to run it.
133
+
134
+ The "Corresponding Source" for a work in object code form means all
135
+ the source code needed to generate, install, and (for an executable
136
+ work) run the object code and to modify the work, including scripts to
137
+ control those activities. However, it does not include the work's
138
+ System Libraries, or general-purpose tools or generally available free
139
+ programs which are used unmodified in performing those activities but
140
+ which are not part of the work. For example, Corresponding Source
141
+ includes interface definition files associated with source files for
142
+ the work, and the source code for shared libraries and dynamically
143
+ linked subprograms that the work is specifically designed to require,
144
+ such as by intimate data communication or control flow between those
145
+ subprograms and other parts of the work.
146
+
147
+ The Corresponding Source need not include anything that users
148
+ can regenerate automatically from other parts of the Corresponding
149
+ Source.
150
+
151
+ The Corresponding Source for a work in source code form is that
152
+ same work.
153
+
154
+ 2. Basic Permissions.
155
+
156
+ All rights granted under this License are granted for the term of
157
+ copyright on the Program, and are irrevocable provided the stated
158
+ conditions are met. This License explicitly affirms your unlimited
159
+ permission to run the unmodified Program. The output from running a
160
+ covered work is covered by this License only if the output, given its
161
+ content, constitutes a covered work. This License acknowledges your
162
+ rights of fair use or other equivalent, as provided by copyright law.
163
+
164
+ You may make, run and propagate covered works that you do not
165
+ convey, without conditions so long as your license otherwise remains
166
+ in force. You may convey covered works to others for the sole purpose
167
+ of having them make modifications exclusively for you, or provide you
168
+ with facilities for running those works, provided that you comply with
169
+ the terms of this License in conveying all material for which you do
170
+ not control copyright. Those thus making or running the covered works
171
+ for you must do so exclusively on your behalf, under your direction
172
+ and control, on terms that prohibit them from making any copies of
173
+ your copyrighted material outside their relationship with you.
174
+
175
+ Conveying under any other circumstances is permitted solely under
176
+ the conditions stated below. Sublicensing is not allowed; section 10
177
+ makes it unnecessary.
178
+
179
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180
+
181
+ No covered work shall be deemed part of an effective technological
182
+ measure under any applicable law fulfilling obligations under article
183
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184
+ similar laws prohibiting or restricting circumvention of such
185
+ measures.
186
+
187
+ When you convey a covered work, you waive any legal power to forbid
188
+ circumvention of technological measures to the extent such circumvention
189
+ is effected by exercising rights under this License with respect to
190
+ the covered work, and you disclaim any intention to limit operation or
191
+ modification of the work as a means of enforcing, against the work's
192
+ users, your or third parties' legal rights to forbid circumvention of
193
+ technological measures.
194
+
195
+ 4. Conveying Verbatim Copies.
196
+
197
+ You may convey verbatim copies of the Program's source code as you
198
+ receive it, in any medium, provided that you conspicuously and
199
+ appropriately publish on each copy an appropriate copyright notice;
200
+ keep intact all notices stating that this License and any
201
+ non-permissive terms added in accord with section 7 apply to the code;
202
+ keep intact all notices of the absence of any warranty; and give all
203
+ recipients a copy of this License along with the Program.
204
+
205
+ You may charge any price or no price for each copy that you convey,
206
+ and you may offer support or warranty protection for a fee.
207
+
208
+ 5. Conveying Modified Source Versions.
209
+
210
+ You may convey a work based on the Program, or the modifications to
211
+ produce it from the Program, in the form of source code under the
212
+ terms of section 4, provided that you also meet all of these conditions:
213
+
214
+ a) The work must carry prominent notices stating that you modified
215
+ it, and giving a relevant date.
216
+
217
+ b) The work must carry prominent notices stating that it is
218
+ released under this License and any conditions added under section
219
+ 7. This requirement modifies the requirement in section 4 to
220
+ "keep intact all notices".
221
+
222
+ c) You must license the entire work, as a whole, under this
223
+ License to anyone who comes into possession of a copy. This
224
+ License will therefore apply, along with any applicable section 7
225
+ additional terms, to the whole of the work, and all its parts,
226
+ regardless of how they are packaged. This License gives no
227
+ permission to license the work in any other way, but it does not
228
+ invalidate such permission if you have separately received it.
229
+
230
+ d) If the work has interactive user interfaces, each must display
231
+ Appropriate Legal Notices; however, if the Program has interactive
232
+ interfaces that do not display Appropriate Legal Notices, your
233
+ work need not make them do so.
234
+
235
+ A compilation of a covered work with other separate and independent
236
+ works, which are not by their nature extensions of the covered work,
237
+ and which are not combined with it such as to form a larger program,
238
+ in or on a volume of a storage or distribution medium, is called an
239
+ "aggregate" if the compilation and its resulting copyright are not
240
+ used to limit the access or legal rights of the compilation's users
241
+ beyond what the individual works permit. Inclusion of a covered work
242
+ in an aggregate does not cause this License to apply to the other
243
+ parts of the aggregate.
244
+
245
+ 6. Conveying Non-Source Forms.
246
+
247
+ You may convey a covered work in object code form under the terms
248
+ of sections 4 and 5, provided that you also convey the
249
+ machine-readable Corresponding Source under the terms of this License,
250
+ in one of these ways:
251
+
252
+ a) Convey the object code in, or embodied in, a physical product
253
+ (including a physical distribution medium), accompanied by the
254
+ Corresponding Source fixed on a durable physical medium
255
+ customarily used for software interchange.
256
+
257
+ b) Convey the object code in, or embodied in, a physical product
258
+ (including a physical distribution medium), accompanied by a
259
+ written offer, valid for at least three years and valid for as
260
+ long as you offer spare parts or customer support for that product
261
+ model, to give anyone who possesses the object code either (1) a
262
+ copy of the Corresponding Source for all the software in the
263
+ product that is covered by this License, on a durable physical
264
+ medium customarily used for software interchange, for a price no
265
+ more than your reasonable cost of physically performing this
266
+ conveying of source, or (2) access to copy the
267
+ Corresponding Source from a network server at no charge.
268
+
269
+ c) Convey individual copies of the object code with a copy of the
270
+ written offer to provide the Corresponding Source. This
271
+ alternative is allowed only occasionally and noncommercially, and
272
+ only if you received the object code with such an offer, in accord
273
+ with subsection 6b.
274
+
275
+ d) Convey the object code by offering access from a designated
276
+ place (gratis or for a charge), and offer equivalent access to the
277
+ Corresponding Source in the same way through the same place at no
278
+ further charge. You need not require recipients to copy the
279
+ Corresponding Source along with the object code. If the place to
280
+ copy the object code is a network server, the Corresponding Source
281
+ may be on a different server (operated by you or a third party)
282
+ that supports equivalent copying facilities, provided you maintain
283
+ clear directions next to the object code saying where to find the
284
+ Corresponding Source. Regardless of what server hosts the
285
+ Corresponding Source, you remain obligated to ensure that it is
286
+ available for as long as needed to satisfy these requirements.
287
+
288
+ e) Convey the object code using peer-to-peer transmission, provided
289
+ you inform other peers where the object code and Corresponding
290
+ Source of the work are being offered to the general public at no
291
+ charge under subsection 6d.
292
+
293
+ A separable portion of the object code, whose source code is excluded
294
+ from the Corresponding Source as a System Library, need not be
295
+ included in conveying the object code work.
296
+
297
+ A "User Product" is either (1) a "consumer product", which means any
298
+ tangible personal property which is normally used for personal, family,
299
+ or household purposes, or (2) anything designed or sold for incorporation
300
+ into a dwelling. In determining whether a product is a consumer product,
301
+ doubtful cases shall be resolved in favor of coverage. For a particular
302
+ product received by a particular user, "normally used" refers to a
303
+ typical or common use of that class of product, regardless of the status
304
+ of the particular user or of the way in which the particular user
305
+ actually uses, or expects or is expected to use, the product. A product
306
+ is a consumer product regardless of whether the product has substantial
307
+ commercial, industrial or non-consumer uses, unless such uses represent
308
+ the only significant mode of use of the product.
309
+
310
+ "Installation Information" for a User Product means any methods,
311
+ procedures, authorization keys, or other information required to install
312
+ and execute modified versions of a covered work in that User Product from
313
+ a modified version of its Corresponding Source. The information must
314
+ suffice to ensure that the continued functioning of the modified object
315
+ code is in no case prevented or interfered with solely because
316
+ modification has been made.
317
+
318
+ If you convey an object code work under this section in, or with, or
319
+ specifically for use in, a User Product, and the conveying occurs as
320
+ part of a transaction in which the right of possession and use of the
321
+ User Product is transferred to the recipient in perpetuity or for a
322
+ fixed term (regardless of how the transaction is characterized), the
323
+ Corresponding Source conveyed under this section must be accompanied
324
+ by the Installation Information. But this requirement does not apply
325
+ if neither you nor any third party retains the ability to install
326
+ modified object code on the User Product (for example, the work has
327
+ been installed in ROM).
328
+
329
+ The requirement to provide Installation Information does not include a
330
+ requirement to continue to provide support service, warranty, or updates
331
+ for a work that has been modified or installed by the recipient, or for
332
+ the User Product in which it has been modified or installed. Access to a
333
+ network may be denied when the modification itself materially and
334
+ adversely affects the operation of the network or violates the rules and
335
+ protocols for communication across the network.
336
+
337
+ Corresponding Source conveyed, and Installation Information provided,
338
+ in accord with this section must be in a format that is publicly
339
+ documented (and with an implementation available to the public in
340
+ source code form), and must require no special password or key for
341
+ unpacking, reading or copying.
342
+
343
+ 7. Additional Terms.
344
+
345
+ "Additional permissions" are terms that supplement the terms of this
346
+ License by making exceptions from one or more of its conditions.
347
+ Additional permissions that are applicable to the entire Program shall
348
+ be treated as though they were included in this License, to the extent
349
+ that they are valid under applicable law. If additional permissions
350
+ apply only to part of the Program, that part may be used separately
351
+ under those permissions, but the entire Program remains governed by
352
+ this License without regard to the additional permissions.
353
+
354
+ When you convey a copy of a covered work, you may at your option
355
+ remove any additional permissions from that copy, or from any part of
356
+ it. (Additional permissions may be written to require their own
357
+ removal in certain cases when you modify the work.) You may place
358
+ additional permissions on material, added by you to a covered work,
359
+ for which you have or can give appropriate copyright permission.
360
+
361
+ Notwithstanding any other provision of this License, for material you
362
+ add to a covered work, you may (if authorized by the copyright holders of
363
+ that material) supplement the terms of this License with terms:
364
+
365
+ a) Disclaiming warranty or limiting liability differently from the
366
+ terms of sections 15 and 16 of this License; or
367
+
368
+ b) Requiring preservation of specified reasonable legal notices or
369
+ author attributions in that material or in the Appropriate Legal
370
+ Notices displayed by works containing it; or
371
+
372
+ c) Prohibiting misrepresentation of the origin of that material, or
373
+ requiring that modified versions of such material be marked in
374
+ reasonable ways as different from the original version; or
375
+
376
+ d) Limiting the use for publicity purposes of names of licensors or
377
+ authors of the material; or
378
+
379
+ e) Declining to grant rights under trademark law for use of some
380
+ trade names, trademarks, or service marks; or
381
+
382
+ f) Requiring indemnification of licensors and authors of that
383
+ material by anyone who conveys the material (or modified versions of
384
+ it) with contractual assumptions of liability to the recipient, for
385
+ any liability that these contractual assumptions directly impose on
386
+ those licensors and authors.
387
+
388
+ All other non-permissive additional terms are considered "further
389
+ restrictions" within the meaning of section 10. If the Program as you
390
+ received it, or any part of it, contains a notice stating that it is
391
+ governed by this License along with a term that is a further
392
+ restriction, you may remove that term. If a license document contains
393
+ a further restriction but permits relicensing or conveying under this
394
+ License, you may add to a covered work material governed by the terms
395
+ of that license document, provided that the further restriction does
396
+ not survive such relicensing or conveying.
397
+
398
+ If you add terms to a covered work in accord with this section, you
399
+ must place, in the relevant source files, a statement of the
400
+ additional terms that apply to those files, or a notice indicating
401
+ where to find the applicable terms.
402
+
403
+ Additional terms, permissive or non-permissive, may be stated in the
404
+ form of a separately written license, or stated as exceptions;
405
+ the above requirements apply either way.
406
+
407
+ 8. Termination.
408
+
409
+ You may not propagate or modify a covered work except as expressly
410
+ provided under this License. Any attempt otherwise to propagate or
411
+ modify it is void, and will automatically terminate your rights under
412
+ this License (including any patent licenses granted under the third
413
+ paragraph of section 11).
414
+
415
+ However, if you cease all violation of this License, then your
416
+ license from a particular copyright holder is reinstated (a)
417
+ provisionally, unless and until the copyright holder explicitly and
418
+ finally terminates your license, and (b) permanently, if the copyright
419
+ holder fails to notify you of the violation by some reasonable means
420
+ prior to 60 days after the cessation.
421
+
422
+ Moreover, your license from a particular copyright holder is
423
+ reinstated permanently if the copyright holder notifies you of the
424
+ violation by some reasonable means, this is the first time you have
425
+ received notice of violation of this License (for any work) from that
426
+ copyright holder, and you cure the violation prior to 30 days after
427
+ your receipt of the notice.
428
+
429
+ Termination of your rights under this section does not terminate the
430
+ licenses of parties who have received copies or rights from you under
431
+ this License. If your rights have been terminated and not permanently
432
+ reinstated, you do not qualify to receive new licenses for the same
433
+ material under section 10.
434
+
435
+ 9. Acceptance Not Required for Having Copies.
436
+
437
+ You are not required to accept this License in order to receive or
438
+ run a copy of the Program. Ancillary propagation of a covered work
439
+ occurring solely as a consequence of using peer-to-peer transmission
440
+ to receive a copy likewise does not require acceptance. However,
441
+ nothing other than this License grants you permission to propagate or
442
+ modify any covered work. These actions infringe copyright if you do
443
+ not accept this License. Therefore, by modifying or propagating a
444
+ covered work, you indicate your acceptance of this License to do so.
445
+
446
+ 10. Automatic Licensing of Downstream Recipients.
447
+
448
+ Each time you convey a covered work, the recipient automatically
449
+ receives a license from the original licensors, to run, modify and
450
+ propagate that work, subject to this License. You are not responsible
451
+ for enforcing compliance by third parties with this License.
452
+
453
+ An "entity transaction" is a transaction transferring control of an
454
+ organization, or substantially all assets of one, or subdividing an
455
+ organization, or merging organizations. If propagation of a covered
456
+ work results from an entity transaction, each party to that
457
+ transaction who receives a copy of the work also receives whatever
458
+ licenses to the work the party's predecessor in interest had or could
459
+ give under the previous paragraph, plus a right to possession of the
460
+ Corresponding Source of the work from the predecessor in interest, if
461
+ the predecessor has it or can get it with reasonable efforts.
462
+
463
+ You may not impose any further restrictions on the exercise of the
464
+ rights granted or affirmed under this License. For example, you may
465
+ not impose a license fee, royalty, or other charge for exercise of
466
+ rights granted under this License, and you may not initiate litigation
467
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
468
+ any patent claim is infringed by making, using, selling, offering for
469
+ sale, or importing the Program or any portion of it.
470
+
471
+ 11. Patents.
472
+
473
+ A "contributor" is a copyright holder who authorizes use under this
474
+ License of the Program or a work on which the Program is based. The
475
+ work thus licensed is called the contributor's "contributor version".
476
+
477
+ A contributor's "essential patent claims" are all patent claims
478
+ owned or controlled by the contributor, whether already acquired or
479
+ hereafter acquired, that would be infringed by some manner, permitted
480
+ by this License, of making, using, or selling its contributor version,
481
+ but do not include claims that would be infringed only as a
482
+ consequence of further modification of the contributor version. For
483
+ purposes of this definition, "control" includes the right to grant
484
+ patent sublicenses in a manner consistent with the requirements of
485
+ this License.
486
+
487
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
488
+ patent license under the contributor's essential patent claims, to
489
+ make, use, sell, offer for sale, import and otherwise run, modify and
490
+ propagate the contents of its contributor version.
491
+
492
+ In the following three paragraphs, a "patent license" is any express
493
+ agreement or commitment, however denominated, not to enforce a patent
494
+ (such as an express permission to practice a patent or covenant not to
495
+ sue for patent infringement). To "grant" such a patent license to a
496
+ party means to make such an agreement or commitment not to enforce a
497
+ patent against the party.
498
+
499
+ If you convey a covered work, knowingly relying on a patent license,
500
+ and the Corresponding Source of the work is not available for anyone
501
+ to copy, free of charge and under the terms of this License, through a
502
+ publicly available network server or other readily accessible means,
503
+ then you must either (1) cause the Corresponding Source to be so
504
+ available, or (2) arrange to deprive yourself of the benefit of the
505
+ patent license for this particular work, or (3) arrange, in a manner
506
+ consistent with the requirements of this License, to extend the patent
507
+ license to downstream recipients. "Knowingly relying" means you have
508
+ actual knowledge that, but for the patent license, your conveying the
509
+ covered work in a country, or your recipient's use of the covered work
510
+ in a country, would infringe one or more identifiable patents in that
511
+ country that you have reason to believe are valid.
512
+
513
+ If, pursuant to or in connection with a single transaction or
514
+ arrangement, you convey, or propagate by procuring conveyance of, a
515
+ covered work, and grant a patent license to some of the parties
516
+ receiving the covered work authorizing them to use, propagate, modify
517
+ or convey a specific copy of the covered work, then the patent license
518
+ you grant is automatically extended to all recipients of the covered
519
+ work and works based on it.
520
+
521
+ A patent license is "discriminatory" if it does not include within
522
+ the scope of its coverage, prohibits the exercise of, or is
523
+ conditioned on the non-exercise of one or more of the rights that are
524
+ specifically granted under this License. You may not convey a covered
525
+ work if you are a party to an arrangement with a third party that is
526
+ in the business of distributing software, under which you make payment
527
+ to the third party based on the extent of your activity of conveying
528
+ the work, and under which the third party grants, to any of the
529
+ parties who would receive the covered work from you, a discriminatory
530
+ patent license (a) in connection with copies of the covered work
531
+ conveyed by you (or copies made from those copies), or (b) primarily
532
+ for and in connection with specific products or compilations that
533
+ contain the covered work, unless you entered into that arrangement,
534
+ or that patent license was granted, prior to 28 March 2007.
535
+
536
+ Nothing in this License shall be construed as excluding or limiting
537
+ any implied license or other defenses to infringement that may
538
+ otherwise be available to you under applicable patent law.
539
+
540
+ 12. No Surrender of Others' Freedom.
541
+
542
+ If conditions are imposed on you (whether by court order, agreement or
543
+ otherwise) that contradict the conditions of this License, they do not
544
+ excuse you from the conditions of this License. If you cannot convey a
545
+ covered work so as to satisfy simultaneously your obligations under this
546
+ License and any other pertinent obligations, then as a consequence you may
547
+ not convey it at all. For example, if you agree to terms that obligate you
548
+ to collect a royalty for further conveying from those to whom you convey
549
+ the Program, the only way you could satisfy both those terms and this
550
+ License would be to refrain entirely from conveying the Program.
551
+
552
+ 13. Use with the GNU Affero General Public License.
553
+
554
+ Notwithstanding any other provision of this License, you have
555
+ permission to link or combine any covered work with a work licensed
556
+ under version 3 of the GNU Affero General Public License into a single
557
+ combined work, and to convey the resulting work. The terms of this
558
+ License will continue to apply to the part which is the covered work,
559
+ but the special requirements of the GNU Affero General Public License,
560
+ section 13, concerning interaction through a network will apply to the
561
+ combination as such.
562
+
563
+ 14. Revised Versions of this License.
564
+
565
+ The Free Software Foundation may publish revised and/or new versions of
566
+ the GNU General Public License from time to time. Such new versions will
567
+ be similar in spirit to the present version, but may differ in detail to
568
+ address new problems or concerns.
569
+
570
+ Each version is given a distinguishing version number. If the
571
+ Program specifies that a certain numbered version of the GNU General
572
+ Public License "or any later version" applies to it, you have the
573
+ option of following the terms and conditions either of that numbered
574
+ version or of any later version published by the Free Software
575
+ Foundation. If the Program does not specify a version number of the
576
+ GNU General Public License, you may choose any version ever published
577
+ by the Free Software Foundation.
578
+
579
+ If the Program specifies that a proxy can decide which future
580
+ versions of the GNU General Public License can be used, that proxy's
581
+ public statement of acceptance of a version permanently authorizes you
582
+ to choose that version for the Program.
583
+
584
+ Later license versions may give you additional or different
585
+ permissions. However, no additional obligations are imposed on any
586
+ author or copyright holder as a result of your choosing to follow a
587
+ later version.
588
+
589
+ 15. Disclaimer of Warranty.
590
+
591
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599
+
600
+ 16. Limitation of Liability.
601
+
602
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610
+ SUCH DAMAGES.
611
+
612
+ 17. Interpretation of Sections 15 and 16.
613
+
614
+ If the disclaimer of warranty and limitation of liability provided
615
+ above cannot be given local legal effect according to their terms,
616
+ reviewing courts shall apply local law that most closely approximates
617
+ an absolute waiver of all civil liability in connection with the
618
+ Program, unless a warranty or assumption of liability accompanies a
619
+ copy of the Program in return for a fee.
620
+
621
+ END OF TERMS AND CONDITIONS
622
+
623
+ How to Apply These Terms to Your New Programs
624
+
625
+ If you develop a new program, and you want it to be of the greatest
626
+ possible use to the public, the best way to achieve this is to make it
627
+ free software which everyone can redistribute and change under these terms.
628
+
629
+ To do so, attach the following notices to the program. It is safest
630
+ to attach them to the start of each source file to most effectively
631
+ state the exclusion of warranty; and each file should have at least
632
+ the "copyright" line and a pointer to where the full notice is found.
633
+
634
+ {one line to give the program's name and a brief idea of what it does.}
635
+ Copyright (C) {year} {name of author}
636
+
637
+ This program is free software: you can redistribute it and/or modify
638
+ it under the terms of the GNU General Public License as published by
639
+ the Free Software Foundation, either version 3 of the License, or
640
+ (at your option) any later version.
641
+
642
+ This program is distributed in the hope that it will be useful,
643
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
644
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645
+ GNU General Public License for more details.
646
+
647
+ You should have received a copy of the GNU General Public License
648
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
649
+
650
+ Also add information on how to contact you by electronic and paper mail.
651
+
652
+ If the program does terminal interaction, make it output a short
653
+ notice like this when it starts in an interactive mode:
654
+
655
+ {project} Copyright (C) {year} {fullname}
656
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657
+ This is free software, and you are welcome to redistribute it
658
+ under certain conditions; type `show c' for details.
659
+
660
+ The hypothetical commands `show w' and `show c' should show the appropriate
661
+ parts of the General Public License. Of course, your program's commands
662
+ might be different; for a GUI interface, you would use an "about box".
663
+
664
+ You should also get your employer (if you work as a programmer) or school,
665
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
666
+ For more information on this, and how to apply and follow the GNU GPL, see
667
+ <http://www.gnu.org/licenses/>.
668
+
669
+ The GNU General Public License does not permit incorporating your program
670
+ into proprietary programs. If your program is a subroutine library, you
671
+ may consider it more useful to permit linking proprietary applications with
672
+ the library. If this is what you want to do, use the GNU Lesser General
673
+ Public License instead of this License. But first, please read
674
+ <http://www.gnu.org/philosophy/why-not-lgpl.html>.
admin.php CHANGED
@@ -1,16 +1,8 @@
1
  <?php
2
  /*
3
- Copyright (C) 2005-15 Bennett McElwee (bennett at thunderguy dotcom)
4
-
5
- This program is free software; you can redistribute it and/or
6
- modify it under the terms of version 2 of the GNU General Public
7
- License as published by the Free Software Foundation.
8
-
9
- This program is distributed in the hope that it will be useful,
10
- but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- GNU General Public License for more details, available at
13
- http://www.gnu.org/copyleft/gpl.html
14
  */
15
 
16
  //////// Parameters
@@ -28,6 +20,9 @@ define('TGUY_SM_OPTIONS_CAPABILITY', 'manage_options');
28
 
29
  add_action('admin_head', 'tguy_sm_stats_css');
30
 
 
 
 
31
  function tguy_sm_stats_css() {
32
  ?>
33
  <style type="text/css">
@@ -37,7 +32,7 @@ function tguy_sm_stats_css() {
37
  padding: 0;
38
  border-bottom: 1px solid #aaaaaa;
39
  }
40
- #search_meter_menu li {
41
  border: 1px solid #cccccc;
42
  border-bottom: none;
43
  line-height: 1.4em;
@@ -174,7 +169,7 @@ add_action('wp_dashboard_setup', 'smcln_sm_dashboard');
174
  // Add the widget to the dashboard
175
  function smcln_sm_dashboard() {
176
  if (smcln_sm_can_view_stats()) {
177
- wp_add_dashboard_widget( 'dashboard_search_meter', 'Search Meter', 'smcln_sm_summary');
178
  }
179
  }
180
 
@@ -182,15 +177,15 @@ function smcln_sm_dashboard() {
182
  function smcln_sm_summary() {
183
  ?>
184
  <div class="sm-stats-table">
185
- <h4>Searches in the Last 7 Days</h4>
186
  <?php tguy_sm_summary_table(7); ?>
187
  </div>
188
  <ul class="subsubsub">
189
- <li><a href="index.php?page=<?php echo plugin_basename(__FILE__); ?>">Full Dashboard</a> |</li>
190
  <?php if (current_user_can(TGUY_SM_OPTIONS_CAPABILITY)) : ?>
191
- <li><a href="options-general.php?page=<?php echo plugin_basename(__FILE__); ?>">Settings</a> |</li>
192
  <?php endif; ?>
193
- <li><a href="http://thunderguy.com/semicolon/donate/">Donate</a></li>
194
  </ul>
195
  <?php
196
  }
@@ -207,8 +202,8 @@ function tguy_sm_add_admin_pages() {
207
  if ($view_stats_capability == '') {
208
  $view_stats_capability = TGUY_SM_DEFAULT_VIEW_STATS_CAPABILITY;
209
  }
210
- add_submenu_page('index.php', 'Search Meter', 'Search Meter', $view_stats_capability, __FILE__, 'tguy_sm_stats_page');
211
- add_options_page('Search Meter', 'Search Meter', TGUY_SM_OPTIONS_CAPABILITY, __FILE__, 'tguy_sm_options_page');
212
  }
213
 
214
 
@@ -240,54 +235,83 @@ function tguy_sm_summary_page() {
240
  <div class="wrap">
241
 
242
  <ul id="search_meter_menu">
243
- <li class="sm-current"><span>Summary</span></li>
244
- <li><a href="index.php?page=<?php echo plugin_basename(__FILE__); ?>&amp;recent=100">Last 100 Searches</a></li>
245
- <li><a href="index.php?page=<?php echo plugin_basename(__FILE__); ?>&amp;recent=500">Last 500 Searches</a></li>
246
  </ul>
247
 
248
- <h2>Search summary</h2>
249
 
250
- <p>These tables show the most popular searches on your blog for the given time periods. <strong>Term</strong> is the text that was searched for; you can click it to see which posts contain that term. (This won't be counted as another search.) <strong>Searches</strong> is the number of times the term was searched for. <strong>Results</strong> is the number of posts that were returned from the <em>last</em> search for that term.</p>
 
 
 
 
 
 
 
 
 
251
 
252
  <div class="sm-stats-table">
253
- <h3>Yesterday and today</h3>
254
  <?php tguy_sm_summary_table(1); ?>
255
  </div>
256
  <div class="sm-stats-table">
257
- <h3>Last 7 days</h3>
258
  <?php tguy_sm_summary_table(7); ?>
259
  </div>
260
  <div class="sm-stats-table">
261
- <h3>Last 30 days</h3>
262
  <?php tguy_sm_summary_table(30); ?>
263
  </div>
264
  <div class="sm-stats-clear"></div>
265
 
266
- <h2>Unsuccessful search summary</h2>
267
 
268
- <p>These tables show only the search terms for which the last search yielded no results. People are searching your blog for these terms; maybe you should give them what they want.</p>
269
 
270
  <div class="sm-stats-table">
271
- <h3>Yesterday and today</h3>
272
  <?php tguy_sm_summary_table(1, false); ?>
273
  </div>
274
  <div class="sm-stats-table">
275
- <h3>Last 7 days</h3>
276
  <?php tguy_sm_summary_table(7, false); ?>
277
  </div>
278
  <div class="sm-stats-table">
279
- <h3>Last 30 days</h3>
280
  <?php tguy_sm_summary_table(30, false); ?>
281
  </div>
282
  <div class="sm-stats-clear"></div>
283
 
284
- <h2>Notes</h2>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
285
 
286
  <?php if (current_user_can(TGUY_SM_OPTIONS_CAPABILITY)) : ?>
287
- <p>To manage your search statistics, go to the <a href="options-general.php?page=<?php echo plugin_basename(__FILE__); ?>">Search Meter Settings</a> page.</p>
 
288
  <?php endif; ?>
289
 
290
- <p>For information and updates, see the <a href="http://thunderguy.com/semicolon/wordpress/search-meter-wordpress-plugin/">Search Meter home page</a>. You can also offer suggestions, request new features or report problems.</p>
 
 
 
 
291
 
292
  <?php if (!$options['sm_disable_donation']) { tguy_sm_show_donation_message(); } ?>
293
 
@@ -322,10 +346,10 @@ function tguy_sm_summary_table($days, $do_include_successes = true) {
322
  ?>
323
  <table cellpadding="3" cellspacing="2">
324
  <tbody>
325
- <tr class="alternate"><th class="sm-text">Term</th><th>Searches</th>
326
  <?php
327
  if ($do_include_successes) {
328
- ?><th>Results</th><?php
329
  }
330
  ?></tr><?php
331
  $class= '';
@@ -347,7 +371,7 @@ function tguy_sm_summary_table($days, $do_include_successes = true) {
347
  </table>
348
  <?php
349
  } else {
350
- ?><p><em>No searches recorded for this period.</em></p><?php
351
  }
352
  }
353
 
@@ -363,27 +387,33 @@ function tguy_sm_recent_page($max_lines, $do_show_details) {
363
  <div class="wrap">
364
 
365
  <ul id="search_meter_menu">
366
- <li><a href="<?php echo $this_url_base ?>">Summary</a></li>
367
  <?php if (100 == $max_lines) : ?>
368
- <li class="sm-current"><span>Last 100 Searches</span></li>
369
  <?php else : ?>
370
- <li><a href="<?php echo $this_url_base ?>&amp;recent=100">Last 100 Searches</a></li>
371
  <?php endif ?>
372
  <?php if (500 == $max_lines) : ?>
373
- <li class="sm-current"><span>Last 500 Searches</span></li>
374
  <?php else : ?>
375
- <li><a href="<?php echo $this_url_base ?>&amp;recent=500">Last 500 Searches</a></li>
376
  <?php endif ?>
377
  </ul>
378
 
379
- <h2>Recent searches</h2>
380
 
381
- <p>This table shows the last <?php echo $max_lines; ?> searches on this blog. <strong>Term</strong> is the text that was searched for; you can click it to see which posts contain that term. (This won't be counted as another search.) <strong>Results</strong> is the number of posts that were returned from the search.
 
 
 
 
 
 
382
  </p>
383
 
384
  <div class="sm-stats-table">
385
  <?php
386
- $query =
387
  "SELECT `datetime`, `terms`, `hits`, `details`
388
  FROM `{$wpdb->prefix}searchmeter_recent`
389
  ORDER BY `datetime` DESC, `terms` ASC
@@ -393,11 +423,11 @@ function tguy_sm_recent_page($max_lines, $do_show_details) {
393
  ?>
394
  <table cellpadding="3" cellspacing="2">
395
  <tbody>
396
- <tr class="alternate"><th class="sm-text">Date &amp; time</th><th class="sm-text">Term</th><th class="sm-number">Results</th>
397
  <?php if ($do_show_details) { ?>
398
- <th class="sm-text">Details</th>
399
  <?php } else if ($is_details_available) { ?>
400
- <th class="sm-text"><a href="<?php echo $this_url_base . $this_url_recent_arg . '&amp;details=1' ?>">Show details</a></th>
401
  <?php } ?>
402
  </tr>
403
  <?php
@@ -405,7 +435,7 @@ function tguy_sm_recent_page($max_lines, $do_show_details) {
405
  foreach ($results as $result) {
406
  ?>
407
  <tr valign="top" class="<?php echo $class ?>">
408
- <td><?php echo $result->datetime ?></td>
409
  <td><a href="<?php echo get_bloginfo('wpurl').'/wp-admin/edit.php?s='.urlencode($result->terms).'&submit=Search' ?>"><?php echo htmlspecialchars($result->terms) ?></a></td>
410
  <td class="sm-number"><?php echo $result->hits ?></td>
411
  <?php if ($do_show_details) : ?>
@@ -420,19 +450,39 @@ function tguy_sm_recent_page($max_lines, $do_show_details) {
420
  </table>
421
  <?php
422
  } else {
423
- ?><p>No searches recorded.</p><?php
424
  }
425
  ?>
426
  </div>
427
  <div class="sm-stats-clear"></div>
428
 
429
- <h2>Notes</h2>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
430
 
431
  <?php if (current_user_can(TGUY_SM_OPTIONS_CAPABILITY)) : ?>
432
- <p>To manage your search statistics, go to the <a href="options-general.php?page=<?php echo plugin_basename(__FILE__); ?>">Search Meter Settings</a> page.</p>
 
433
  <?php endif; ?>
434
 
435
- <p>For information and updates, see the <a href="http://thunderguy.com/semicolon/wordpress/search-meter-wordpress-plugin/">Search Meter home page</a>. You can also offer suggestions, request new features or report problems.</p>
 
 
 
 
436
 
437
  <?php if (!$options['sm_disable_donation']) { tguy_sm_show_donation_message(); } ?>
438
 
@@ -449,10 +499,10 @@ add_filter('plugin_action_links_'.plugin_basename(dirname(__FILE__).'/search-met
449
 
450
  function tguy_sm_settings_link($links) {
451
  if (current_user_can(TGUY_SM_OPTIONS_CAPABILITY)) {
452
- $settings_link = '<a href="options-general.php?page='.plugin_basename(__FILE__).'">Settings</a>';
453
  array_unshift($links, $settings_link);
454
  }
455
- return $links;
456
  }
457
 
458
 
@@ -469,15 +519,15 @@ function tguy_sm_options_page() {
469
  $sm_filter_words = stripslashes($sm_filter_words);
470
  }
471
  $options['sm_filter_words'] = preg_replace('/\\s+/', ' ', trim($sm_filter_words));
472
- $options['sm_ignore_admin_search'] = (bool)($_POST['sm_ignore_admin_search']);
473
- $options['sm_details_verbose'] = (bool)($_POST['sm_details_verbose']);
474
- $options['sm_disable_donation'] = (bool)($_POST['sm_disable_donation']);
475
  update_option('tguy_search_meter', $options);
476
- echo '<div id="message" class="updated fade"><p><strong>Plugin settings saved.</strong></p></div>';
477
  } else if (isset($_POST['tguy_sm_reset'])) {
478
  check_admin_referer('search-meter-reset-stats');
479
  tguy_sm_reset_stats();
480
- echo '<div id="message" class="updated fade"><p><strong>Statistics have been reset.</strong></p></div>';
481
  }
482
  $options = get_option('tguy_search_meter');
483
  $view_stats_capability = tguy_sm_array_value($options, 'sm_view_stats_capability');
@@ -487,7 +537,7 @@ function tguy_sm_options_page() {
487
  ?>
488
  <div class="wrap">
489
 
490
- <h2>Search Meter Settings</h2>
491
 
492
  <form name="searchmeter" action="" method="post">
493
  <?php
@@ -500,31 +550,31 @@ function tguy_sm_options_page() {
500
 
501
  <table class="form-table">
502
  <tr>
503
- <th scope="row">Show statistics to</th>
504
  <td>
505
  <fieldset>
506
- <label title='Users with "read" capability'>
507
  <input type="radio" name="sm_view_stats_capability" value="read"
508
  <?php echo ($view_stats_capability=='read'?"checked=\"checked\"":"") ?> />
509
- All logged-in users</label><br>
510
- <label title='Users with "publish_posts" capability'>
511
- <input type="radio" name="sm_view_stats_capability" value="publish_posts"
512
  <?php echo ($view_stats_capability=='publish_posts'?"checked=\"checked\"":"") ?> />
513
- Post authors and administrators</label><br>
514
- <label title='Users with "manage_options" capability'>
515
- <input type="radio" name="sm_view_stats_capability" value="manage_options"
516
  <?php echo ($view_stats_capability=='manage_options'?"checked=\"checked\"":"") ?> />
517
- Administrators only</label>
518
  </fieldset>
519
  </td>
520
  </tr>
521
  <tr valign="top">
522
- <th scope="row">Search filter</th>
523
  <td>
524
  <fieldset>
525
- <label for="sm_filter_words">When a search term contains any of these words, it will be filtered
526
- and will not show up in the Recent Searches or Popular Searches widgets. This will match inside words,
527
- so &#8220;press&#8221; will match &#8220;WordPress&#8221;.</label>
528
  <textarea name="sm_filter_words" rows="3" cols="40" id="sm_filter_words" class="large-text code"><?php echo esc_html(tguy_sm_array_value($options, 'sm_filter_words')); ?></textarea>
529
  </fieldset>
530
  </td>
@@ -533,7 +583,7 @@ function tguy_sm_options_page() {
533
  <th class="th-full" scope="row" colspan="2">
534
  <label for="sm_ignore_admin_search" title='Administrators are users with "manage_options" capability'>
535
  <input type="checkbox" id="sm_ignore_admin_search" name="sm_ignore_admin_search" <?php echo (tguy_sm_array_value($options, 'sm_ignore_admin_search') ? 'checked="checked"' : '') ?> />
536
- Ignore searches made by logged-in administrators
537
  </label>
538
  </th>
539
  </tr>
@@ -541,7 +591,7 @@ function tguy_sm_options_page() {
541
  <th class="th-full" scope="row" colspan="2">
542
  <label for="sm_details_verbose">
543
  <input type="checkbox" id="sm_details_verbose" name="sm_details_verbose" <?php echo (tguy_sm_array_value($options, 'sm_details_verbose') ? 'checked="checked"' : '') ?> />
544
- Keep detailed information about recent searches (taken from HTTP headers)
545
  </label>
546
  </th>
547
  </tr>
@@ -549,7 +599,7 @@ function tguy_sm_options_page() {
549
  <th class="th-full" scope="row" colspan="2">
550
  <label for="sm_disable_donation">
551
  <input type="checkbox" id="sm_disable_donation" name="sm_disable_donation" <?php echo (tguy_sm_array_value($options, 'sm_disable_donation') ? 'checked="checked"' : '') ?> />
552
- Hide the &#8220;Do you find this plugin useful?&#8221; box
553
  </label>
554
  </th>
555
  </tr>
@@ -560,9 +610,9 @@ function tguy_sm_options_page() {
560
  </p>
561
  </form>
562
 
563
- <h3>Reset statistics</h3>
564
 
565
- <p>Click this button to reset all search statistics. This will delete all information about previous searches.</p>
566
 
567
  <form name="tguy_sm_admin" action="" method="post">
568
  <?php
@@ -571,15 +621,19 @@ function tguy_sm_options_page() {
571
  }
572
  ?>
573
  <p class="submit">
574
- <input name="tguy_sm_reset" class="button-secondary delete" value="Reset Statistics" type="submit" onclick="return confirm('You are about to delete all saved search statistics.\n \'Cancel\' to stop, \'OK\' to delete.');" />
575
  </p>
576
  </form>
577
 
578
- <h3>Notes</h3>
579
 
580
- <p>To see your search statistics, go to the <a href="index.php?page=<?php echo plugin_basename(__FILE__); ?>">Search Meter Dashboard</a>.</p>
581
 
582
- <p>For information and updates, see the <a href="http://thunderguy.com/semicolon/wordpress/search-meter-wordpress-plugin/">Search Meter home page</a>. At that page, you can also offer suggestions, request new features or report problems.</p>
 
 
 
 
583
 
584
  <?php if ( ! tguy_sm_array_value($options, 'sm_disable_donation')) { tguy_sm_show_donation_message(); } ?>
585
 
@@ -594,16 +648,84 @@ function tguy_sm_reset_stats() {
594
  $wpdb->query("DELETE FROM `{$wpdb->prefix}searchmeter_recent`");
595
  }
596
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
597
  function tguy_sm_show_donation_message() {
598
  ?>
599
  <p><div style="margin: 0; padding: 0 2ex 0.25ex 0; float: left;">
600
  <?php tguy_sm_show_donation_button() ?>
601
  </div>
602
- <strong>Do you find this plugin useful?</strong><br />
603
- I write WordPress plugins because I enjoy doing it, but it does take up a lot
604
- of my time. If you think this plugin is useful, please consider donating some appropriate
605
- amount by clicking the <strong>Donate</strong> button. You can also send <strong>Bitcoins</strong>
606
- to address <tt>1542gqyprvQd7gwvtZZ4x25cPeGWVKg45x</tt>. Thanks!</p>
 
 
 
 
 
607
  <?php
608
  }
609
 
@@ -611,7 +733,7 @@ function tguy_sm_show_donation_button() {
611
  // I wish PayPal offered a simple little REST-style URL instead of this monstrosity
612
  ?><form action="https://www.paypal.com/cgi-bin/webscr" method="post" style="margin:0; padding:0;"
613
  ><input name="cmd" value="_s-xclick" type="hidden" style="margin:0; padding:0;"
614
- /><input src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" border="0" type="image" style="margin:0; padding:0;"
615
  /><input name="encrypted" value="-----BEGIN PKCS7-----MIIHXwYJKoZIhvcNAQcEoIIHUDCCB0wCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYA7BglQn0K1FJvdqm+zAop0IFZb02mJnn56wpZYpbqWE6go360iySXAwUS8eMEMSxp2/OUmWh6VQzm07kEP0buqLG0wwi4yOwawTYB2cahVUPadwYA+KyE78xQI4plMGO1LRchjNdVPkjFuD5s0K64SyYOwtCPYOo/Xs1vZPbpH/zELMAkGBSsOAwIaBQAwgdwGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIP5kNv+75+iKAgbhN2BQBAd0BiS1W5qaECVs/v8Jqdoe/SVb+bykh9HucP/8+tYncHVffnDf0TAMxdjlQT65QdNc8T8FGDDhQZN8BwWx2kUwFgxKPBlPvL+KFWcu50jrBsyFsK9zLM260ZR6+aA9ZBdgtMKwCBk/38bo6LmUtZ5PM+LSfJRh3HtFoUKgGndaDYl/9N4vhK2clyt0DaQO3Mum8DTXwb57Aq8pjQPwsUzWl3OqZdZEI+YXJX4xxQIHkKAsSoIIDhzCCA4MwggLsoAMCAQICAQAwDQYJKoZIhvcNAQEFBQAwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMB4XDTA0MDIxMzEwMTMxNVoXDTM1MDIxMzEwMTMxNVowgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDBR07d/ETMS1ycjtkpkvjXZe9k+6CieLuLsPumsJ7QC1odNz3sJiCbs2wC0nLE0uLGaEtXynIgRqIddYCHx88pb5HTXv4SZeuv0Rqq4+axW9PLAAATU8w04qqjaSXgbGLP3NmohqM6bV9kZZwZLR/klDaQGo1u9uDb9lr4Yn+rBQIDAQABo4HuMIHrMB0GA1UdDgQWBBSWn3y7xm8XvVk/UtcKG+wQ1mSUazCBuwYDVR0jBIGzMIGwgBSWn3y7xm8XvVk/UtcKG+wQ1mSUa6GBlKSBkTCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDYwMjA3MTEyOTQ5WjAjBgkqhkiG9w0BCQQxFgQUO31wm3aCiCMdh2XIXxIAeS8LfBIwDQYJKoZIhvcNAQEBBQAEgYB3CtAsDm+ZRBkd/XLEhUx0IbaeyK9ymOT8R5EQfSZnoJ+QP05XWBc8zi21wSOiQ8nH9LtN2MtS4GRBAQFU1vbvGxw6bG2gJfggJ1pDPUOtkFgf1YA8At+m2I6G2E+YWx2/QHdfMo3BpTJWQOUka52wjuTmIX9X6+CFMPokF91f0w==-----END PKCS7-----
616
  " type="hidden" style="margin:0; padding:0;"
617
  /></form><?php
1
  <?php
2
  /*
3
+ Copyright (C) 2005-16 Bennett McElwee (bennett at thunderguy dotcom)
4
+ This software is licensed under the GPL v3. See the included LICENSE file for
5
+ details. If you would like to use it under different terms, contact the author.
 
 
 
 
 
 
 
 
6
  */
7
 
8
  //////// Parameters
20
 
21
  add_action('admin_head', 'tguy_sm_stats_css');
22
 
23
+ // Check for download requests before we output anything else
24
+ add_action('init', 'tguy_sm_download', 10);
25
+
26
  function tguy_sm_stats_css() {
27
  ?>
28
  <style type="text/css">
32
  padding: 0;
33
  border-bottom: 1px solid #aaaaaa;
34
  }
35
+ #search_meter_menu li {
36
  border: 1px solid #cccccc;
37
  border-bottom: none;
38
  line-height: 1.4em;
169
  // Add the widget to the dashboard
170
  function smcln_sm_dashboard() {
171
  if (smcln_sm_can_view_stats()) {
172
+ wp_add_dashboard_widget( 'dashboard_search_meter', __('Search Meter', 'search-meter'), 'smcln_sm_summary');
173
  }
174
  }
175
 
177
  function smcln_sm_summary() {
178
  ?>
179
  <div class="sm-stats-table">
180
+ <h4><?php _e('Searches in the Last 7 Days', 'search-meter') ?></h4>
181
  <?php tguy_sm_summary_table(7); ?>
182
  </div>
183
  <ul class="subsubsub">
184
+ <li><a href="index.php?page=<?php echo plugin_basename(__FILE__); ?>"><?php _e('Full Dashboard', 'search-meter') ?></a> |</li>
185
  <?php if (current_user_can(TGUY_SM_OPTIONS_CAPABILITY)) : ?>
186
+ <li><a href="options-general.php?page=<?php echo plugin_basename(__FILE__); ?>"><?php _e('Settings', 'search-meter') ?></a> |</li>
187
  <?php endif; ?>
188
+ <li><a href="http://thunderguy.com/semicolon/donate/"><?php _e('Donate', 'search-meter') ?></a></li>
189
  </ul>
190
  <?php
191
  }
202
  if ($view_stats_capability == '') {
203
  $view_stats_capability = TGUY_SM_DEFAULT_VIEW_STATS_CAPABILITY;
204
  }
205
+ add_submenu_page('index.php', __('Search Meter', 'search-meter'), __('Search Meter', 'search-meter'), $view_stats_capability, __FILE__, 'tguy_sm_stats_page');
206
+ add_options_page(__('Search Meter', 'search-meter'), __('Search Meter', 'search-meter'), TGUY_SM_OPTIONS_CAPABILITY, __FILE__, 'tguy_sm_options_page');
207
  }
208
 
209
 
235
  <div class="wrap">
236
 
237
  <ul id="search_meter_menu">
238
+ <li class="sm-current"><span><?php _e('Summary', 'search-meter') ?></span></li>
239
+ <li><a href="index.php?page=<?php echo plugin_basename(__FILE__); ?>&amp;recent=100"><?php printf(__('Last %s Searches', 'search-meter'), 100) ?></a></li>
240
+ <li><a href="index.php?page=<?php echo plugin_basename(__FILE__); ?>&amp;recent=500"><?php printf(__('Last %s Searches', 'search-meter'), 500) ?></a></li>
241
  </ul>
242
 
243
+ <h2><?php _e('Search summary', 'search-meter') ?></h2>
244
 
245
+ <p><?php
246
+ _e('These tables show the most popular searches on your blog for the given time periods.', 'search-meter');
247
+ echo ' ';
248
+ printf(__('%s is the text that was searched for; you can click it to see which posts contain that term. (This won\'t be counted as another search.)', 'search-meter'), '<strong>' . __('Term', 'search-meter') . '</strong>');
249
+ echo ' ';
250
+ printf(__('%s is the number of times the term was searched for.', 'search-meter'), '<strong>' . __('Searches', 'search-meter') . '</strong>');
251
+ echo ' ';
252
+ printf(__('%s is the number of posts that were returned from the <em>last</em> search for that term.', 'search-meter'), '<strong>' . __('Results', 'search-meter') . '</strong>');
253
+ ?>
254
+ </p>
255
 
256
  <div class="sm-stats-table">
257
+ <h3><?php _e('Yesterday and today', 'search-meter') ?></h3>
258
  <?php tguy_sm_summary_table(1); ?>
259
  </div>
260
  <div class="sm-stats-table">
261
+ <h3><?php _e('Last 7 days', 'search-meter') ?></h3>
262
  <?php tguy_sm_summary_table(7); ?>
263
  </div>
264
  <div class="sm-stats-table">
265
+ <h3><?php _e('Last 30 days', 'search-meter') ?></h3>
266
  <?php tguy_sm_summary_table(30); ?>
267
  </div>
268
  <div class="sm-stats-clear"></div>
269
 
270
+ <h2><?php _e('Unsuccessful search summary', 'search-meter') ?></h2>
271
 
272
+ <p><?php _e('These tables show only the search terms for which the last search yielded no results. People are searching your blog for these terms; maybe you should give them what they want.', 'search-meter') ?></p>
273
 
274
  <div class="sm-stats-table">
275
+ <h3><?php _e('Yesterday and today', 'search-meter') ?></h3>
276
  <?php tguy_sm_summary_table(1, false); ?>
277
  </div>
278
  <div class="sm-stats-table">
279
+ <h3><?php _e('Last 7 days', 'search-meter') ?></h3>
280
  <?php tguy_sm_summary_table(7, false); ?>
281
  </div>
282
  <div class="sm-stats-table">
283
+ <h3><?php _e('Last 30 days', 'search-meter') ?></h3>
284
  <?php tguy_sm_summary_table(30, false); ?>
285
  </div>
286
  <div class="sm-stats-clear"></div>
287
 
288
+ <h3><?php _e('Download summary', 'search-meter') ?></h3>
289
+
290
+ <p><?php _e('Download your 30-day summary as a CSV file, which can be opened by any spreadsheet program or text editor.', 'search-meter') ?></p>
291
+
292
+ <form name="tguy_sm_admin" action="" method="post">
293
+ <?php
294
+ if (function_exists('wp_nonce_field')) {
295
+ wp_nonce_field('search-meter-download');
296
+ }
297
+ ?>
298
+ <p class="submit">
299
+ <input name="tguy_sm_download_summary" class="button-secondary" value="<?php esc_attr_e('Download Summary', 'search-meter') ?>" type="submit" />
300
+ </p>
301
+ </form>
302
+
303
+ <h2><?php _e('Notes', 'search-meter') ?></h2>
304
 
305
  <?php if (current_user_can(TGUY_SM_OPTIONS_CAPABILITY)) : ?>
306
+ <p><?php printf(__('To manage your search statistics, go to %s.', 'search-meter'), '<a href="options-general.php?page=' . plugin_basename(__FILE__) . '">' . __('Search Meter Settings', 'search-meter') . '</a>');
307
+ echo ' '; ?></p>
308
  <?php endif; ?>
309
 
310
+ <p><?php
311
+ printf(__('For information and updates, see the %s.', 'search-meter'), '<a href="http://thunderguy.com/semicolon/wordpress/search-meter-wordpress-plugin/">' . __('Search Meter home page', 'search-meter') . '</a>');
312
+ echo ' ';
313
+ _e('There you can offer suggestions, request new features or report problems.', 'search-meter');
314
+ ?></p>
315
 
316
  <?php if (!$options['sm_disable_donation']) { tguy_sm_show_donation_message(); } ?>
317
 
346
  ?>
347
  <table cellpadding="3" cellspacing="2">
348
  <tbody>
349
+ <tr class="alternate"><th class="sm-text"><?php _e('Term', 'search-meter') ?></th><th><?php _e('Searches', 'search-meter') ?></th>
350
  <?php
351
  if ($do_include_successes) {
352
+ ?><th><?php _e('Results', 'search-meter') ?></th><?php
353
  }
354
  ?></tr><?php
355
  $class= '';
371
  </table>
372
  <?php
373
  } else {
374
+ ?><p><em><?php _e('No searches recorded for this period.', 'search-meter') ?></em></p><?php
375
  }
376
  }
377
 
387
  <div class="wrap">
388
 
389
  <ul id="search_meter_menu">
390
+ <li><a href="<?php echo $this_url_base ?>"><?php _e('Summary', 'search-meter') ?></a></li>
391
  <?php if (100 == $max_lines) : ?>
392
+ <li class="sm-current"><span><?php printf(__('Last %s Searches', 'search-meter'), 100) ?></span></li>
393
  <?php else : ?>
394
+ <li><a href="<?php echo $this_url_base ?>&amp;recent=100"><?php printf(__('Last %s Searches', 'search-meter'), 100) ?></a></li>
395
  <?php endif ?>
396
  <?php if (500 == $max_lines) : ?>
397
+ <li class="sm-current"><span><?php printf(__('Last %s Searches', 'search-meter'), 500) ?></span></li>
398
  <?php else : ?>
399
+ <li><a href="<?php echo $this_url_base ?>&amp;recent=500"><?php printf(__('Last %s Searches', 'search-meter'), 500) ?></a></li>
400
  <?php endif ?>
401
  </ul>
402
 
403
+ <h2><?php _e('Recent searches', 'search-meter') ?></h2>
404
 
405
+ <p><?php
406
+ printf(__('This table shows the last %s searches on this blog.', 'search-meter'), $max_lines);
407
+ echo ' ';
408
+ printf(__('%s is the text that was searched for; you can click it to see which posts contain that term. (This won\'t be counted as another search.)', 'search-meter'), '<strong>' . __('Term', 'search-meter') . '</strong>');
409
+ echo ' ';
410
+ printf(__('%s is the number of posts that were returned from the search.', 'search-meter'), '<strong>' . __('Results', 'search-meter') . '</strong>');
411
+ ?>
412
  </p>
413
 
414
  <div class="sm-stats-table">
415
  <?php
416
+ $query =
417
  "SELECT `datetime`, `terms`, `hits`, `details`
418
  FROM `{$wpdb->prefix}searchmeter_recent`
419
  ORDER BY `datetime` DESC, `terms` ASC
423
  ?>
424
  <table cellpadding="3" cellspacing="2">
425
  <tbody>
426
+ <tr class="alternate"><th class="sm-text"><?php _e('Date &amp; time', 'search-meter') ?></th><th class="sm-text"><?php _e('Term', 'search-meter') ?></th><th class="sm-number"><?php _e('Results', 'search-meter') ?></th>
427
  <?php if ($do_show_details) { ?>
428
+ <th class="sm-text"><?php _e('Details', 'search-meter') ?></th>
429
  <?php } else if ($is_details_available) { ?>
430
+ <th class="sm-text"><a href="<?php echo $this_url_base . $this_url_recent_arg . '&amp;details=1' ?>"><?php _e('Show details', 'search-meter') ?></a></th>
431
  <?php } ?>
432
  </tr>
433
  <?php
435
  foreach ($results as $result) {
436
  ?>
437
  <tr valign="top" class="<?php echo $class ?>">
438
+ <td><?php echo tguy_sm_format_utc_as_local('Y-m-d H:i:s', $result->datetime) ?></td>
439
  <td><a href="<?php echo get_bloginfo('wpurl').'/wp-admin/edit.php?s='.urlencode($result->terms).'&submit=Search' ?>"><?php echo htmlspecialchars($result->terms) ?></a></td>
440
  <td class="sm-number"><?php echo $result->hits ?></td>
441
  <?php if ($do_show_details) : ?>
450
  </table>
451
  <?php
452
  } else {
453
+ ?><p><?php _e('No searches recorded.', 'search-meter') ?></p><?php
454
  }
455
  ?>
456
  </div>
457
  <div class="sm-stats-clear"></div>
458
 
459
+ <h3><?php _e('Download recent searches', 'search-meter') ?></h3>
460
+
461
+ <p><?php _e('Download your recent searches as a CSV file, which can be opened by any spreadsheet program or text editor.', 'search-meter') ?></p>
462
+
463
+ <form name="tguy_sm_admin" action="" method="post">
464
+ <?php
465
+ if (function_exists('wp_nonce_field')) {
466
+ wp_nonce_field('search-meter-download');
467
+ }
468
+ ?>
469
+ <p class="submit">
470
+ <input name="tguy_sm_download_individual" class="button-secondary" value="<?php esc_attr_e('Download Recent Searches', 'search-meter') ?>" type="submit" />
471
+ </p>
472
+ </form>
473
+
474
+ <h2><?php _e('Notes', 'search-meter') ?></h2>
475
 
476
  <?php if (current_user_can(TGUY_SM_OPTIONS_CAPABILITY)) : ?>
477
+ <p><?php printf(__('To manage your search statistics, go to %s.', 'search-meter'), '<a href="options-general.php?page=' . plugin_basename(__FILE__) . '">' . __('Search Meter Settings', 'search-meter') . '</a>') ?></p>
478
+ echo ' ';
479
  <?php endif; ?>
480
 
481
+ <p><?php
482
+ printf(__('For information and updates, see the %s.', 'search-meter'), '<a href="http://thunderguy.com/semicolon/wordpress/search-meter-wordpress-plugin/">' . __('Search Meter home page', 'search-meter') . '</a>');
483
+ echo ' ';
484
+ _e('There you can offer suggestions, request new features or report problems.', 'search-meter');
485
+ ?></p>
486
 
487
  <?php if (!$options['sm_disable_donation']) { tguy_sm_show_donation_message(); } ?>
488
 
499
 
500
  function tguy_sm_settings_link($links) {
501
  if (current_user_can(TGUY_SM_OPTIONS_CAPABILITY)) {
502
+ $settings_link = '<a href="options-general.php?page='.plugin_basename(__FILE__).'">' . __('Settings', 'search-meter') . '</a>';
503
  array_unshift($links, $settings_link);
504
  }
505
+ return $links;
506
  }
507
 
508
 
519
  $sm_filter_words = stripslashes($sm_filter_words);
520
  }
521
  $options['sm_filter_words'] = preg_replace('/\\s+/', ' ', trim($sm_filter_words));
522
+ $options['sm_ignore_admin_search'] = (bool)tguy_sm_array_value($_POST, 'sm_ignore_admin_search');
523
+ $options['sm_details_verbose'] = (bool)tguy_sm_array_value($_POST, 'sm_details_verbose');
524
+ $options['sm_disable_donation'] = (bool)tguy_sm_array_value($_POST, 'sm_disable_donation');
525
  update_option('tguy_search_meter', $options);
526
+ echo '<div id="message" class="updated fade"><p><strong>' . __('Plugin settings saved.', 'search-meter') . '</strong></p></div>';
527
  } else if (isset($_POST['tguy_sm_reset'])) {
528
  check_admin_referer('search-meter-reset-stats');
529
  tguy_sm_reset_stats();
530
+ echo '<div id="message" class="updated fade"><p><strong>' . __('Statistics have been reset.', 'search-meter') . '</strong></p></div>';
531
  }
532
  $options = get_option('tguy_search_meter');
533
  $view_stats_capability = tguy_sm_array_value($options, 'sm_view_stats_capability');
537
  ?>
538
  <div class="wrap">
539
 
540
+ <h2><?php _e('Search Meter Settings', 'search-meter') ?></h2>
541
 
542
  <form name="searchmeter" action="" method="post">
543
  <?php
550
 
551
  <table class="form-table">
552
  <tr>
553
+ <th scope="row"><?php _e('Show statistics to', 'search-meter') ?></th>
554
  <td>
555
  <fieldset>
556
+ <label title='<?php esc_attr_e('Users with "read" capability', 'search-meter') ?>'>
557
  <input type="radio" name="sm_view_stats_capability" value="read"
558
  <?php echo ($view_stats_capability=='read'?"checked=\"checked\"":"") ?> />
559
+ <?php _e('All logged-in users', 'search-meter') ?></label><br>
560
+ <label title='<?php esc_attr_e('Users with "publish_posts" capability', 'search-meter') ?>'>
561
+ <input type="radio" name="sm_view_stats_capability" value="publish_posts"
562
  <?php echo ($view_stats_capability=='publish_posts'?"checked=\"checked\"":"") ?> />
563
+ <?php _e('Post authors and administrators', 'search-meter') ?></label><br>
564
+ <label title='<?php esc_attr_e('Users with "manage_options" capability', 'search-meter') ?>'>
565
+ <input type="radio" name="sm_view_stats_capability" value="manage_options"
566
  <?php echo ($view_stats_capability=='manage_options'?"checked=\"checked\"":"") ?> />
567
+ <?php _e('Administrators only', 'search-meter') ?></label>
568
  </fieldset>
569
  </td>
570
  </tr>
571
  <tr valign="top">
572
+ <th scope="row"><?php _e('Search filter', 'search-meter') ?></th>
573
  <td>
574
  <fieldset>
575
+ <label for="sm_filter_words"><?php _e('When a search term contains any of these words, it will be filtered
576
+ and will not show up in the Recent Searches or Popular Searches widgets. This will match inside words,
577
+ so &#8220;press&#8221; will match &#8220;WordPress&#8221;.', 'search-meter') ?></label>
578
  <textarea name="sm_filter_words" rows="3" cols="40" id="sm_filter_words" class="large-text code"><?php echo esc_html(tguy_sm_array_value($options, 'sm_filter_words')); ?></textarea>
579
  </fieldset>
580
  </td>
583
  <th class="th-full" scope="row" colspan="2">
584
  <label for="sm_ignore_admin_search" title='Administrators are users with "manage_options" capability'>
585
  <input type="checkbox" id="sm_ignore_admin_search" name="sm_ignore_admin_search" <?php echo (tguy_sm_array_value($options, 'sm_ignore_admin_search') ? 'checked="checked"' : '') ?> />
586
+ <?php _e('Ignore searches made by logged-in administrators', 'search-meter') ?>
587
  </label>
588
  </th>
589
  </tr>
591
  <th class="th-full" scope="row" colspan="2">
592
  <label for="sm_details_verbose">
593
  <input type="checkbox" id="sm_details_verbose" name="sm_details_verbose" <?php echo (tguy_sm_array_value($options, 'sm_details_verbose') ? 'checked="checked"' : '') ?> />
594
+ <?php _e('Keep detailed information about recent searches (taken from HTTP headers)', 'search-meter') ?>
595
  </label>
596
  </th>
597
  </tr>
599
  <th class="th-full" scope="row" colspan="2">
600
  <label for="sm_disable_donation">
601
  <input type="checkbox" id="sm_disable_donation" name="sm_disable_donation" <?php echo (tguy_sm_array_value($options, 'sm_disable_donation') ? 'checked="checked"' : '') ?> />
602
+ <?php _e('Hide the &#8220;Do you find this plugin useful?&#8221; box', 'search-meter') ?>
603
  </label>
604
  </th>
605
  </tr>
610
  </p>
611
  </form>
612
 
613
+ <h3><?php _e('Reset statistics', 'search-meter') ?></h3>
614
 
615
+ <p><?php _e('Click this button to reset all search statistics. This will delete all information about previous searches.', 'search-meter') ?></p>
616
 
617
  <form name="tguy_sm_admin" action="" method="post">
618
  <?php
621
  }
622
  ?>
623
  <p class="submit">
624
+ <input name="tguy_sm_reset" class="button-secondary delete" value="<?php esc_attr_e('Reset Statistics', 'search-meter') ?>" type="submit" onclick="return confirm('You are about to delete all saved search statistics.\n \'Cancel\' to stop, \'OK\' to delete.');" />
625
  </p>
626
  </form>
627
 
628
+ <h3><?php _e('Notes', 'search-meter') ?></h3>
629
 
630
+ <p><?php printf(__('To see your search statistics, go to the %s.', 'search-meter'), '<a href="index.php?page=' . plugin_basename(__FILE__) . '">' . __('Search Meter Dashboard', 'search-meter') . '</a>') ?></p>
631
 
632
+ <p><?php
633
+ printf(__('For information and updates, see the %s.', 'search-meter'), '<a href="http://thunderguy.com/semicolon/wordpress/search-meter-wordpress-plugin/">' . __('Search Meter home page', 'search-meter') . '</a>');
634
+ echo ' ';
635
+ _e('There you can offer suggestions, request new features or report problems.', 'search-meter');
636
+ ?></p>
637
 
638
  <?php if ( ! tguy_sm_array_value($options, 'sm_disable_donation')) { tguy_sm_show_donation_message(); } ?>
639
 
648
  $wpdb->query("DELETE FROM `{$wpdb->prefix}searchmeter_recent`");
649
  }
650
 
651
+ // Service a download request if there is one
652
+ function tguy_sm_download() {
653
+ if (isset($_POST['tguy_sm_download_summary'])) {
654
+ check_admin_referer('search-meter-download');
655
+ tguy_sm_download_summary();
656
+ } else if (isset($_POST['tguy_sm_download_individual'])) {
657
+ check_admin_referer('search-meter-download');
658
+ tguy_sm_download_individual();
659
+ }
660
+ }
661
+ function tguy_sm_download_summary() {
662
+ global $wpdb;
663
+ $results = $wpdb->get_results(
664
+ "SELECT `terms`, `count`, `date`, `last_hits`
665
+ FROM `{$wpdb->prefix}searchmeter`
666
+ ORDER BY `date` ASC, `terms` ASC");
667
+ $results_array = [[__('Date', 'search-meter'), __('Search terms', 'search-meter'), __('Searches', 'search-meter'), __('Results', 'search-meter')]];
668
+ foreach ($results as $result) {
669
+ $results_array[] = [tguy_sm_format_utc_as_local('Y-m-d', $result->date), $result->terms, $result->count, $result->last_hits];
670
+ }
671
+ /* translators: base filename for downloaded summary - lowercase letters, digits, dashes only */
672
+ tguy_sm_download_to_csv($results_array, __('search-summary', 'search-meter'));
673
+ }
674
+
675
+ function tguy_sm_download_individual() {
676
+ global $wpdb;
677
+ $results = $wpdb->get_results(
678
+ "SELECT `terms`, `datetime`, `hits`, `details`
679
+ FROM `{$wpdb->prefix}searchmeter_recent`
680
+ ORDER BY `datetime` ASC");
681
+ $results_array = [[__('Date', 'search-meter'), __('Search terms', 'search-meter'), __('Results', 'search-meter'), __('Details', 'search-meter')]];
682
+ foreach ($results as $result) {
683
+ $results_array[] = [tguy_sm_format_utc_as_local('Y-m-d H:i:s', $result->datetime), $result->terms, $result->hits, $result->details];
684
+ }
685
+ /* translators: base filename for downloaded searches - lowercase letters, digits, dashes only */
686
+ tguy_sm_download_to_csv($results_array, __('recent-searches', 'search-meter'));
687
+ }
688
+
689
+ // Similar to PHP date(), but the timestamp is a string in UTC, and we return a string in Wordpress time zone
690
+ function tguy_sm_format_utc_as_local($format, $timestamp = 'now') {
691
+ $tz = get_option('timezone_string');
692
+ $datetime = date_create($timestamp, new DateTimeZone('UTC'));
693
+ if ($tz) {
694
+ $datetime->setTimezone(new DateTimeZone($tz));
695
+ return $datetime->format($format);
696
+ } else {
697
+ return gmdate($format, $datetime->getTimestamp() + get_option('gmt_offset') * HOUR_IN_SECONDS);
698
+ }
699
+ }
700
+
701
+ function tguy_sm_download_to_csv($array, $filenamebase) {
702
+ header('Last-Modified: ' . current_time('D, d M Y H:i:s', true) . ' GMT');
703
+ header('Content-Type: application/csv');
704
+ header('Content-Disposition: attachment; filename="'.$filenamebase.'-'.current_time('Ymd-His').'.csv";');
705
+
706
+ // see http://www.php.net/manual/en/wrappers.php.php#refsect2-wrappers.php-unknown-unknown-unknown-descriptioq
707
+ $f = fopen('php://output', 'w');
708
+ foreach ($array as $line) {
709
+ fputcsv($f, $line);
710
+ }
711
+ exit;
712
+ }
713
+
714
  function tguy_sm_show_donation_message() {
715
  ?>
716
  <p><div style="margin: 0; padding: 0 2ex 0.25ex 0; float: left;">
717
  <?php tguy_sm_show_donation_button() ?>
718
  </div>
719
+ <strong><?php _e('Do you find this plugin useful?', 'search-meter') ?></strong><br />
720
+
721
+ <?php printf(__(<<<EOS
722
+ I enjoy maintaining Search Meter, but it does take time and effort.
723
+ If you think this plugin is useful, please consider donating some appropriate amount by clicking the <strong>Donate</strong> button.
724
+ You can also send <strong>Bitcoins</strong> to address %s.
725
+ Thanks!
726
+ EOS
727
+ , 'search-meter' ), '<tt>1542gqyprvQd7gwvtZZ4x25cPeGWVKg45x</tt>') ?>
728
+ </p>
729
  <?php
730
  }
731
 
733
  // I wish PayPal offered a simple little REST-style URL instead of this monstrosity
734
  ?><form action="https://www.paypal.com/cgi-bin/webscr" method="post" style="margin:0; padding:0;"
735
  ><input name="cmd" value="_s-xclick" type="hidden" style="margin:0; padding:0;"
736
+ /><input src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" name="submit" alt="<?php esc_attr_e('Make payments with PayPal - it\'s fast, free and secure!', 'search-meter') ?>" border="0" type="image" style="margin:0; padding:0;"
737
  /><input name="encrypted" value="-----BEGIN PKCS7-----MIIHXwYJKoZIhvcNAQcEoIIHUDCCB0wCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYA7BglQn0K1FJvdqm+zAop0IFZb02mJnn56wpZYpbqWE6go360iySXAwUS8eMEMSxp2/OUmWh6VQzm07kEP0buqLG0wwi4yOwawTYB2cahVUPadwYA+KyE78xQI4plMGO1LRchjNdVPkjFuD5s0K64SyYOwtCPYOo/Xs1vZPbpH/zELMAkGBSsOAwIaBQAwgdwGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIP5kNv+75+iKAgbhN2BQBAd0BiS1W5qaECVs/v8Jqdoe/SVb+bykh9HucP/8+tYncHVffnDf0TAMxdjlQT65QdNc8T8FGDDhQZN8BwWx2kUwFgxKPBlPvL+KFWcu50jrBsyFsK9zLM260ZR6+aA9ZBdgtMKwCBk/38bo6LmUtZ5PM+LSfJRh3HtFoUKgGndaDYl/9N4vhK2clyt0DaQO3Mum8DTXwb57Aq8pjQPwsUzWl3OqZdZEI+YXJX4xxQIHkKAsSoIIDhzCCA4MwggLsoAMCAQICAQAwDQYJKoZIhvcNAQEFBQAwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMB4XDTA0MDIxMzEwMTMxNVoXDTM1MDIxMzEwMTMxNVowgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDBR07d/ETMS1ycjtkpkvjXZe9k+6CieLuLsPumsJ7QC1odNz3sJiCbs2wC0nLE0uLGaEtXynIgRqIddYCHx88pb5HTXv4SZeuv0Rqq4+axW9PLAAATU8w04qqjaSXgbGLP3NmohqM6bV9kZZwZLR/klDaQGo1u9uDb9lr4Yn+rBQIDAQABo4HuMIHrMB0GA1UdDgQWBBSWn3y7xm8XvVk/UtcKG+wQ1mSUazCBuwYDVR0jBIGzMIGwgBSWn3y7xm8XvVk/UtcKG+wQ1mSUa6GBlKSBkTCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDYwMjA3MTEyOTQ5WjAjBgkqhkiG9w0BCQQxFgQUO31wm3aCiCMdh2XIXxIAeS8LfBIwDQYJKoZIhvcNAQEBBQAEgYB3CtAsDm+ZRBkd/XLEhUx0IbaeyK9ymOT8R5EQfSZnoJ+QP05XWBc8zi21wSOiQ8nH9LtN2MtS4GRBAQFU1vbvGxw6bG2gJfggJ1pDPUOtkFgf1YA8At+m2I6G2E+YWx2/QHdfMo3BpTJWQOUka52wjuTmIX9X6+CFMPokF91f0w==-----END PKCS7-----
738
  " type="hidden" style="margin:0; padding:0;"
739
  /></form><?php
languages/search-meter-fr_FR.mo ADDED
Binary file
languages/search-meter-fr_FR.po ADDED
@@ -0,0 +1,374 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2016 Search Meter
2
+ # This file is distributed under the same license as the Search Meter package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Search Meter 2.13\n"
6
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/search-meter\n"
7
+ "POT-Creation-Date: 2016-10-07 17:28+1300\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2016-10-10 09:45+1300\n"
12
+ "Language-Team: \n"
13
+ "X-Generator: Poedit 1.8.9\n"
14
+ "Last-Translator: Christiaen François\n"
15
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
16
+ "Language: fr\n"
17
+
18
+ #. Plugin Name of the plugin/theme
19
+ #: admin.php:172 admin.php:205 admin.php:206
20
+ msgid "Search Meter"
21
+ msgstr "Search Meter"
22
+
23
+ #: admin.php:180
24
+ msgid "Searches in the Last 7 Days"
25
+ msgstr "Recherches ces 7 derniers jours"
26
+
27
+ #: admin.php:184
28
+ msgid "Full Dashboard"
29
+ msgstr "Statistiques complètes"
30
+
31
+ #: admin.php:186 admin.php:493
32
+ msgid "Settings"
33
+ msgstr "Paramètres"
34
+
35
+ #: admin.php:188
36
+ msgid "Donate"
37
+ msgstr "Donations"
38
+
39
+ #: admin.php:239 admin.php:240 admin.php:387 admin.php:389 admin.php:392
40
+ #: admin.php:394
41
+ msgid "Last %s Searches"
42
+ msgstr "%s dernières recherches"
43
+
44
+ #: admin.php:243
45
+ msgid "Search summary"
46
+ msgstr "Résumé des recherches"
47
+
48
+ #: admin.php:246
49
+ msgid ""
50
+ "These tables show the most popular searches on your blog for the given time "
51
+ "periods."
52
+ msgstr ""
53
+ "Ces tableaux montrent les recherches les plus populaires sur votre blog pour "
54
+ "les périodes de temps donnés."
55
+
56
+ #: admin.php:247 admin.php:402
57
+ msgid ""
58
+ "%s is the text that was searched for; you can click it to see which posts "
59
+ "contain that term. (This won't be counted as another search.)"
60
+ msgstr ""
61
+ "%s est le texte qui a été recherché. vous pouvez cliquer dessus pour voir quels "
62
+ "messages contiennent ce terme. (Ce ne sera pas considéré comme une autre "
63
+ "recherche.)"
64
+
65
+ #: admin.php:247 admin.php:344 admin.php:402 admin.php:419
66
+ msgid "Term"
67
+ msgstr "Terme"
68
+
69
+ #: admin.php:248
70
+ msgid "%s is the number of times the term was searched for."
71
+ msgstr "%s est le nombre de fois que le terme a été cherché."
72
+
73
+ #: admin.php:248 admin.php:344 admin.php:657
74
+ msgid "Searches"
75
+ msgstr "Recherches"
76
+
77
+ #: admin.php:249
78
+ msgid ""
79
+ "%s is the number of posts that were returned from the <em>last</em> search for "
80
+ "that term."
81
+ msgstr ""
82
+ "%s sont le nombre de postes qui ont été renvoyés par la <em>dernière</em> "
83
+ "recherche de ce terme."
84
+
85
+ #: admin.php:249 admin.php:347 admin.php:403 admin.php:419 admin.php:657
86
+ #: admin.php:671
87
+ msgid "Results"
88
+ msgstr "Résultats"
89
+
90
+ #: admin.php:254 admin.php:272
91
+ msgid "Yesterday and today"
92
+ msgstr "Hier et aujourd'hui"
93
+
94
+ #: admin.php:258 admin.php:276
95
+ msgid "Last 7 days"
96
+ msgstr "7 derniers jours"
97
+
98
+ #: admin.php:262 admin.php:280
99
+ msgid "Last 30 days"
100
+ msgstr "30 derniers jours"
101
+
102
+ #: admin.php:267
103
+ msgid "Unsuccessful search summary"
104
+ msgstr "Résumé des recherches infructueuses"
105
+
106
+ #: admin.php:269
107
+ msgid ""
108
+ "These tables show only the search terms for which the last search yielded no "
109
+ "results. People are searching your blog for these terms; maybe you should give "
110
+ "them what they want."
111
+ msgstr ""
112
+ "Ces tableaux montrent que les termes de recherche pour lesquels la dernière "
113
+ "recherche n'a donné aucun résultat. Les gens sont à la recherche de ces termes; "
114
+ "peut-être vous devriez leur donner ce qu'ils veulent."
115
+
116
+ #: admin.php:285
117
+ msgid "Download summary"
118
+ msgstr ""
119
+
120
+ #: admin.php:287
121
+ msgid ""
122
+ "Download your 30-day summary as a CSV file, which can be opened by any "
123
+ "spreadsheet program or text editor."
124
+ msgstr ""
125
+
126
+ #: admin.php:296
127
+ msgid "Download Summary"
128
+ msgstr ""
129
+
130
+ #: admin.php:300 admin.php:467 admin.php:619
131
+ msgid "Notes"
132
+ msgstr "Notes"
133
+
134
+ #: admin.php:303 admin.php:470
135
+ msgid "To manage your search statistics, go to %s."
136
+ msgstr "Pour gérer vos statistiques de recherche, rendez-vous dans %s."
137
+
138
+ #: admin.php:303 admin.php:470 admin.php:531
139
+ msgid "Search Meter Settings"
140
+ msgstr "Paramètres de Search Meter"
141
+
142
+ #: admin.php:307 admin.php:474 admin.php:624
143
+ msgid "For information and updates, see the %s."
144
+ msgstr "Pour plus d'informations et de mises à jour, consultez la %s."
145
+
146
+ #: admin.php:307 admin.php:474 admin.php:624
147
+ msgid "Search Meter home page"
148
+ msgstr "page d'accueil de Search Meter"
149
+
150
+ #: admin.php:369
151
+ msgid "No searches recorded for this period."
152
+ msgstr "Pas de recherches enregistrée pendant cette période."
153
+
154
+ #: admin.php:385
155
+ msgid "Summary"
156
+ msgstr "Résumé"
157
+
158
+ #: admin.php:398
159
+ msgid "Recent searches"
160
+ msgstr "Recherches récentes"
161
+
162
+ #: admin.php:401
163
+ msgid "This table shows the last %s searches on this blog."
164
+ msgstr "Ce tableau présente les %s dernières recherches sur le site."
165
+
166
+ #: admin.php:403
167
+ msgid "%s is the number of posts that were returned from the search."
168
+ msgstr "%s est le nombre de postes qui ont été renvoyés par la recherche."
169
+
170
+ #: admin.php:419
171
+ msgid "Date &amp; time"
172
+ msgstr "Date"
173
+
174
+ #: admin.php:421 admin.php:671
175
+ msgid "Details"
176
+ msgstr "Détails"
177
+
178
+ #: admin.php:423
179
+ msgid "Show details"
180
+ msgstr "Afficher les détails"
181
+
182
+ #: admin.php:446
183
+ msgid "No searches recorded."
184
+ msgstr "Pas de recherches enregistrée pendant cette période."
185
+
186
+ #: admin.php:452
187
+ msgid "Download recent searches"
188
+ msgstr ""
189
+
190
+ #: admin.php:454
191
+ msgid ""
192
+ "Download your recent searches as a CSV file, which can be opened by any "
193
+ "spreadsheet program or text editor."
194
+ msgstr ""
195
+
196
+ #: admin.php:463
197
+ msgid "Download Recent Searches"
198
+ msgstr ""
199
+
200
+ #: admin.php:517
201
+ msgid "Plugin settings saved."
202
+ msgstr "Paramètres sauvegardés."
203
+
204
+ #: admin.php:521
205
+ msgid "Statistics have been reset."
206
+ msgstr "Statistiques réinitialisées avec succès"
207
+
208
+ #: admin.php:544
209
+ msgid "Show statistics to"
210
+ msgstr "Afficher les statistiques à"
211
+
212
+ #: admin.php:547
213
+ msgid "Users with \"read\" capability"
214
+ msgstr ""
215
+
216
+ #: admin.php:550
217
+ msgid "All logged-in users"
218
+ msgstr "Tous les utilisateurs connectés"
219
+
220
+ #: admin.php:551
221
+ msgid "Users with \"publish_posts\" capability"
222
+ msgstr ""
223
+
224
+ #: admin.php:554
225
+ msgid "Post authors and administrators"
226
+ msgstr "Auteurs et administrateurs"
227
+
228
+ #: admin.php:555
229
+ msgid "Users with \"manage_options\" capability"
230
+ msgstr ""
231
+
232
+ #: admin.php:558
233
+ msgid "Administrators only"
234
+ msgstr "Administrateurs seulement"
235
+
236
+ #: admin.php:563
237
+ msgid "Search filter"
238
+ msgstr "Filtrage des recherches"
239
+
240
+ #: admin.php:566
241
+ msgid ""
242
+ "When a search term contains any of these words, it will be filtered\n"
243
+ "\t\t\t\t\t\tand will not show up in the Recent Searches or Popular Searches "
244
+ "widgets. This will match inside words,\n"
245
+ "\t\t\t\t\t\tso &#8220;press&#8221; will match &#8220;WordPress&#8221;."
246
+ msgstr ""
247
+ "Quand un terme de recherche contient un de ces mots, il sera filtré et ne sera "
248
+ "pas affiché dans les recherches récentes ou le widget des recherches "
249
+ "populaires. Ce filtre recherchera à l'intérieur des mots de sorte que \"press\" "
250
+ "filtre \"Wordpress\"."
251
+
252
+ #: admin.php:577
253
+ msgid "Ignore searches made by logged-in administrators"
254
+ msgstr "Ignorer les recherches effectuées par un administrateur conntecté"
255
+
256
+ #: admin.php:585
257
+ msgid "Keep detailed information about recent searches (taken from HTTP headers)"
258
+ msgstr ""
259
+ "Gardez des informations détaillées sur les recherches récentes (provenant de "
260
+ "l'en-têtes HTTP)"
261
+
262
+ #: admin.php:593
263
+ msgid "Hide the &#8220;Do you find this plugin useful?&#8221; box"
264
+ msgstr "Masquer le panneau &#8220;Trouvez-vous ce plugin utile&#8221;"
265
+
266
+ #: admin.php:604
267
+ msgid "Reset statistics"
268
+ msgstr "Réinitialiser les statistiques"
269
+
270
+ #: admin.php:606
271
+ msgid ""
272
+ "Click this button to reset all search statistics. This will delete all "
273
+ "information about previous searches."
274
+ msgstr ""
275
+ "Cliquez sur ce bouton pour réinitialiser toutes les statistiques de recherche. "
276
+ "Ceci supprimera toutes les informations sur les précédentes recherches "
277
+ "effectuées sur le site."
278
+
279
+ #: admin.php:615
280
+ msgid "Reset Statistics"
281
+ msgstr "Réinitialiser"
282
+
283
+ #: admin.php:621
284
+ msgid "To see your search statistics, go to the %s."
285
+ msgstr "Pour voir vos statistiques de recherche, rendez-vous sur le %s."
286
+
287
+ #: admin.php:621
288
+ msgid "Search Meter Dashboard"
289
+ msgstr "tableau de bord Search Meter"
290
+
291
+ #: admin.php:308 admin.php:475 admin.php:625
292
+ msgid "There you can offer suggestions, request new features or report problems."
293
+ msgstr ""
294
+ "A cette page, vous pouvez également déposer des suggestions, demander de "
295
+ "nouvelles fonctionnalités ou rapporter des problèmes."
296
+
297
+ #: admin.php:657 admin.php:671
298
+ msgid "Date"
299
+ msgstr "Date"
300
+
301
+ #: admin.php:657 admin.php:671
302
+ msgid "Search terms"
303
+ msgstr "Termes de recherche"
304
+
305
+ #. translators: base filename for downloaded summary - lowercase letters,
306
+ #. digits, dashes only
307
+ #: admin.php:662
308
+ msgid "search-summary"
309
+ msgstr ""
310
+
311
+ #. translators: base filename for downloaded searches - lowercase letters,
312
+ #. digits, dashes only
313
+ #: admin.php:676
314
+ msgid "recent-searches"
315
+ msgstr ""
316
+
317
+ #: admin.php:709
318
+ msgid "Do you find this plugin useful?"
319
+ msgstr "Trouvez-vous ce plugin utile?"
320
+
321
+ #: admin.php:726
322
+ msgid "Make payments with PayPal - it's fast, free and secure!"
323
+ msgstr ""
324
+
325
+ #: search-meter.php:172
326
+ msgid "A list of the most popular successful searches in the last month"
327
+ msgstr "Une liste des recherches les plus populaires avec succès le mois dernier"
328
+
329
+ #: search-meter.php:173 search-meter.php:178 search-meter.php:198
330
+ msgid "Popular Searches"
331
+ msgstr "Recherches populaires"
332
+
333
+ #: search-meter.php:204 search-meter.php:244
334
+ msgid "Title:"
335
+ msgstr "Titre:"
336
+
337
+ #: search-meter.php:205 search-meter.php:245
338
+ msgid "Number of searches to show:"
339
+ msgstr "Nombre de recherches à afficher:"
340
+
341
+ #: search-meter.php:206 search-meter.php:246
342
+ msgid "Powered by Search Meter"
343
+ msgstr "Alimenté par Search Meter"
344
+
345
+ #: search-meter.php:212
346
+ msgid "A list of the most recent successful searches on your blog"
347
+ msgstr "Liste des recherches récentes effectuées sur votre blog"
348
+
349
+ #: search-meter.php:213 search-meter.php:218 search-meter.php:238
350
+ msgid "Recent Searches"
351
+ msgstr "Recherches récentes"
352
+
353
+ #: search-meter.php:298
354
+ msgid "Search Meter save count"
355
+ msgstr "Search Meter save count"
356
+
357
+ #. Plugin URI of the plugin/theme
358
+ msgid "http://thunderguy.com/semicolon/wordpress/search-meter-wordpress-plugin/"
359
+ msgstr ""
360
+
361
+ #. Description of the plugin/theme
362
+ msgid ""
363
+ "Keeps track of what your visitors are searching for. After you have activated "
364
+ "this plugin, you can check the Search Meter section in the Dashboard to see "
365
+ "what your visitors are searching for on your blog."
366
+ msgstr ""
367
+
368
+ #. Author of the plugin/theme
369
+ msgid "Bennett McElwee"
370
+ msgstr ""
371
+
372
+ #. Author URI of the plugin/theme
373
+ msgid "http://thunderguy.com/semicolon/"
374
+ msgstr ""
languages/search-meter.pot ADDED
@@ -0,0 +1,353 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2016 Search Meter
2
+ # This file is distributed under the same license as the Search Meter package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Search Meter 2.13\n"
6
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/search-meter\n"
7
+ "POT-Creation-Date: 2016-10-07 04:23:21+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #. #-#-#-#-# search-meter.pot (Search Meter 2.13) #-#-#-#-#
16
+ #. Plugin Name of the plugin/theme
17
+ #: admin.php:172 admin.php:205 admin.php:206
18
+ msgid "Search Meter"
19
+ msgstr ""
20
+
21
+ #: admin.php:180
22
+ msgid "Searches in the Last 7 Days"
23
+ msgstr ""
24
+
25
+ #: admin.php:184
26
+ msgid "Full Dashboard"
27
+ msgstr ""
28
+
29
+ #: admin.php:186 admin.php:493
30
+ msgid "Settings"
31
+ msgstr ""
32
+
33
+ #: admin.php:188
34
+ msgid "Donate"
35
+ msgstr ""
36
+
37
+ #: admin.php:239 admin.php:240 admin.php:387 admin.php:389 admin.php:392
38
+ #: admin.php:394
39
+ msgid "Last %s Searches"
40
+ msgstr ""
41
+
42
+ #: admin.php:243
43
+ msgid "Search summary"
44
+ msgstr ""
45
+
46
+ #: admin.php:246
47
+ msgid ""
48
+ "These tables show the most popular searches on your blog for the given time "
49
+ "periods."
50
+ msgstr ""
51
+
52
+ #: admin.php:247 admin.php:402
53
+ msgid ""
54
+ "%s is the text that was searched for; you can click it to see which posts "
55
+ "contain that term. (This won't be counted as another search.)"
56
+ msgstr ""
57
+
58
+ #: admin.php:247 admin.php:344 admin.php:402 admin.php:419
59
+ msgid "Term"
60
+ msgstr ""
61
+
62
+ #: admin.php:248
63
+ msgid "%s is the number of times the term was searched for."
64
+ msgstr ""
65
+
66
+ #: admin.php:248 admin.php:344 admin.php:657
67
+ msgid "Searches"
68
+ msgstr ""
69
+
70
+ #: admin.php:249
71
+ msgid ""
72
+ "%s is the number of posts that were returned from the <em>last</em> search "
73
+ "for that term."
74
+ msgstr ""
75
+
76
+ #: admin.php:249 admin.php:347 admin.php:403 admin.php:419 admin.php:657
77
+ #: admin.php:671
78
+ msgid "Results"
79
+ msgstr ""
80
+
81
+ #: admin.php:254 admin.php:272
82
+ msgid "Yesterday and today"
83
+ msgstr ""
84
+
85
+ #: admin.php:258 admin.php:276
86
+ msgid "Last 7 days"
87
+ msgstr ""
88
+
89
+ #: admin.php:262 admin.php:280
90
+ msgid "Last 30 days"
91
+ msgstr ""
92
+
93
+ #: admin.php:267
94
+ msgid "Unsuccessful search summary"
95
+ msgstr ""
96
+
97
+ #: admin.php:269
98
+ msgid ""
99
+ "These tables show only the search terms for which the last search yielded no "
100
+ "results. People are searching your blog for these terms; maybe you should "
101
+ "give them what they want."
102
+ msgstr ""
103
+
104
+ #: admin.php:285
105
+ msgid "Download summary"
106
+ msgstr ""
107
+
108
+ #: admin.php:287
109
+ msgid ""
110
+ "Download your 30-day summary as a CSV file, which can be opened by any "
111
+ "spreadsheet program or text editor."
112
+ msgstr ""
113
+
114
+ #: admin.php:296
115
+ msgid "Download Summary"
116
+ msgstr ""
117
+
118
+ #: admin.php:300 admin.php:467 admin.php:619
119
+ msgid "Notes"
120
+ msgstr ""
121
+
122
+ #: admin.php:303 admin.php:470
123
+ msgid "To manage your search statistics, go to %s."
124
+ msgstr ""
125
+
126
+ #: admin.php:303 admin.php:470 admin.php:531
127
+ msgid "Search Meter Settings"
128
+ msgstr ""
129
+
130
+ #: admin.php:307 admin.php:474 admin.php:624
131
+ msgid "For information and updates, see the %s."
132
+ msgstr ""
133
+
134
+ #: admin.php:307 admin.php:474 admin.php:624
135
+ msgid "Search Meter home page"
136
+ msgstr ""
137
+
138
+ #: admin.php:369
139
+ msgid "No searches recorded for this period."
140
+ msgstr ""
141
+
142
+ #: admin.php:385
143
+ msgid "Summary"
144
+ msgstr ""
145
+
146
+ #: admin.php:398
147
+ msgid "Recent searches"
148
+ msgstr ""
149
+
150
+ #: admin.php:401
151
+ msgid "This table shows the last %s searches on this blog."
152
+ msgstr ""
153
+
154
+ #: admin.php:403
155
+ msgid "%s is the number of posts that were returned from the search."
156
+ msgstr ""
157
+
158
+ #: admin.php:419
159
+ msgid "Date &amp; time"
160
+ msgstr ""
161
+
162
+ #: admin.php:421 admin.php:671
163
+ msgid "Details"
164
+ msgstr ""
165
+
166
+ #: admin.php:423
167
+ msgid "Show details"
168
+ msgstr ""
169
+
170
+ #: admin.php:446
171
+ msgid "No searches recorded."
172
+ msgstr ""
173
+
174
+ #: admin.php:452
175
+ msgid "Download recent searches"
176
+ msgstr ""
177
+
178
+ #: admin.php:454
179
+ msgid ""
180
+ "Download your recent searches as a CSV file, which can be opened by any "
181
+ "spreadsheet program or text editor."
182
+ msgstr ""
183
+
184
+ #: admin.php:463
185
+ msgid "Download Recent Searches"
186
+ msgstr ""
187
+
188
+ #: admin.php:517
189
+ msgid "Plugin settings saved."
190
+ msgstr ""
191
+
192
+ #: admin.php:521
193
+ msgid "Statistics have been reset."
194
+ msgstr ""
195
+
196
+ #: admin.php:544
197
+ msgid "Show statistics to"
198
+ msgstr ""
199
+
200
+ #: admin.php:547
201
+ msgid "Users with \"read\" capability"
202
+ msgstr ""
203
+
204
+ #: admin.php:550
205
+ msgid "All logged-in users"
206
+ msgstr ""
207
+
208
+ #: admin.php:551
209
+ msgid "Users with \"publish_posts\" capability"
210
+ msgstr ""
211
+
212
+ #: admin.php:554
213
+ msgid "Post authors and administrators"
214
+ msgstr ""
215
+
216
+ #: admin.php:555
217
+ msgid "Users with \"manage_options\" capability"
218
+ msgstr ""
219
+
220
+ #: admin.php:558
221
+ msgid "Administrators only"
222
+ msgstr ""
223
+
224
+ #: admin.php:563
225
+ msgid "Search filter"
226
+ msgstr ""
227
+
228
+ #: admin.php:566
229
+ msgid ""
230
+ "When a search term contains any of these words, it will be filtered\n"
231
+ "\t\t\t\t\t\tand will not show up in the Recent Searches or Popular Searches "
232
+ "widgets. This will match inside words,\n"
233
+ "\t\t\t\t\t\tso &#8220;press&#8221; will match &#8220;WordPress&#8221;."
234
+ msgstr ""
235
+
236
+ #: admin.php:577
237
+ msgid "Ignore searches made by logged-in administrators"
238
+ msgstr ""
239
+
240
+ #: admin.php:585
241
+ msgid ""
242
+ "Keep detailed information about recent searches (taken from HTTP headers)"
243
+ msgstr ""
244
+
245
+ #: admin.php:593
246
+ msgid "Hide the &#8220;Do you find this plugin useful?&#8221; box"
247
+ msgstr ""
248
+
249
+ #: admin.php:604
250
+ msgid "Reset statistics"
251
+ msgstr ""
252
+
253
+ #: admin.php:606
254
+ msgid ""
255
+ "Click this button to reset all search statistics. This will delete all "
256
+ "information about previous searches."
257
+ msgstr ""
258
+
259
+ #: admin.php:615
260
+ msgid "Reset Statistics"
261
+ msgstr ""
262
+
263
+ #: admin.php:621
264
+ msgid "To see your search statistics, go to the %s."
265
+ msgstr ""
266
+
267
+ #: admin.php:621
268
+ msgid "Search Meter Dashboard"
269
+ msgstr ""
270
+
271
+ #: admin.php:308 admin.php:475 admin.php:625
272
+ msgid "There you can offer suggestions, request new features or report problems."
273
+ msgstr ""
274
+
275
+ #: admin.php:657 admin.php:671
276
+ msgid "Date"
277
+ msgstr ""
278
+
279
+ #: admin.php:657 admin.php:671
280
+ msgid "Search terms"
281
+ msgstr ""
282
+
283
+ #. translators: base filename for downloaded summary - lowercase letters,
284
+ #. digits, dashes only
285
+ #: admin.php:662
286
+ msgid "search-summary"
287
+ msgstr ""
288
+
289
+ #. translators: base filename for downloaded searches - lowercase letters,
290
+ #. digits, dashes only
291
+ #: admin.php:676
292
+ msgid "recent-searches"
293
+ msgstr ""
294
+
295
+ #: admin.php:709
296
+ msgid "Do you find this plugin useful?"
297
+ msgstr ""
298
+
299
+ #: admin.php:726
300
+ msgid "Make payments with PayPal - it's fast, free and secure!"
301
+ msgstr ""
302
+
303
+ #: search-meter.php:172
304
+ msgid "A list of the most popular successful searches in the last month"
305
+ msgstr ""
306
+
307
+ #: search-meter.php:173 search-meter.php:178 search-meter.php:198
308
+ msgid "Popular Searches"
309
+ msgstr ""
310
+
311
+ #: search-meter.php:204 search-meter.php:244
312
+ msgid "Title:"
313
+ msgstr ""
314
+
315
+ #: search-meter.php:205 search-meter.php:245
316
+ msgid "Number of searches to show:"
317
+ msgstr ""
318
+
319
+ #: search-meter.php:206 search-meter.php:246
320
+ msgid "Powered by Search Meter"
321
+ msgstr ""
322
+
323
+ #: search-meter.php:212
324
+ msgid "A list of the most recent successful searches on your blog"
325
+ msgstr ""
326
+
327
+ #: search-meter.php:213 search-meter.php:218 search-meter.php:238
328
+ msgid "Recent Searches"
329
+ msgstr ""
330
+
331
+ #: search-meter.php:298
332
+ msgid "Search Meter save count"
333
+ msgstr ""
334
+
335
+ #. Plugin URI of the plugin/theme
336
+ msgid ""
337
+ "http://thunderguy.com/semicolon/wordpress/search-meter-wordpress-plugin/"
338
+ msgstr ""
339
+
340
+ #. Description of the plugin/theme
341
+ msgid ""
342
+ "Keeps track of what your visitors are searching for. After you have "
343
+ "activated this plugin, you can check the Search Meter section in the "
344
+ "Dashboard to see what your visitors are searching for on your blog."
345
+ msgstr ""
346
+
347
+ #. Author of the plugin/theme
348
+ msgid "Bennett McElwee"
349
+ msgstr ""
350
+
351
+ #. Author URI of the plugin/theme
352
+ msgid "http://thunderguy.com/semicolon/"
353
+ msgstr ""
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://thunderguy.com/semicolon/donate/
4
  Tags: search, meter, search-meter, statistics, widget, admin, keywords, terms, search terms
5
  Requires at least: 3.2
6
  Tested up to: 4.6
7
- Stable tag: 2.11
8
 
9
  Search Meter tracks what your readers are searching for on your blog. View full details of recent searches or stats for the last day, week or month.
10
 
@@ -18,7 +18,7 @@ Search Meter installs easily and requires no configuration. Just install it, act
18
 
19
  = View Statistics =
20
 
21
- To see your search statistics, Log in to WordPress Admin. On your dashboard you will see a Search Meter widget listing search statistics from the last seven days. For more details, go to the Dashboard menu on the left and click Search Meter. You'll see the most popular searches in the last day, week and month. Click "Last 100 Searches" or "Last 500 Searches" to see lists of all recent searches.
22
 
23
  = Manage Statistics =
24
 
@@ -65,10 +65,6 @@ Show a simple list of the 5 most recent successful search terms, hyperlinked to
65
 
66
  == Frequently Asked Questions ==
67
 
68
- = Why don't search terms with spaces work? =
69
-
70
- There is a [bug](http://core.trac.wordpress.org/ticket/13961) in the way WordPress handles spaces in pretty permalinks. The WordPress developers will fix this at some point. Until then, I have written a plugin called [Search Fixer](http://thunderguy.com/semicolon/2011/06/08/search-fixer-wordpress-plugin/) which should improve things.
71
-
72
  = Where can I find out more information? =
73
 
74
  The [Search Meter home page](http://thunderguy.com/semicolon/wordpress/search-meter-wordpress-plugin/) has more information and a form to submit comments and questions.
@@ -78,6 +74,12 @@ The [Search Meter home page](http://thunderguy.com/semicolon/wordpress/search-me
78
  1. The Search Meter administration interface, showing some of the reports available.
79
 
80
  == Changelog ==
 
 
 
 
 
 
81
  = 2.12 =
82
  * When uninstalled, delete all options and data. (Thanks to Scott Allen)
83
  * Track searches made via ajax requests. (Thanks to tliebig)
4
  Tags: search, meter, search-meter, statistics, widget, admin, keywords, terms, search terms
5
  Requires at least: 3.2
6
  Tested up to: 4.6
7
+ Stable tag: 2.12
8
 
9
  Search Meter tracks what your readers are searching for on your blog. View full details of recent searches or stats for the last day, week or month.
10
 
18
 
19
  = View Statistics =
20
 
21
+ To see your search statistics, Log in to WordPress Admin. On your dashboard you will see a Search Meter widget listing search statistics from the last seven days. For more details, go to the Dashboard menu on the left and click Search Meter. You'll see the most popular searches in the last day, week and month. Click "Last 100 Searches" or "Last 500 Searches" to see lists of all recent searches. You can download the statistics as a file that you can open in Excel or a similar program.
22
 
23
  = Manage Statistics =
24
 
65
 
66
  == Frequently Asked Questions ==
67
 
 
 
 
 
68
  = Where can I find out more information? =
69
 
70
  The [Search Meter home page](http://thunderguy.com/semicolon/wordpress/search-meter-wordpress-plugin/) has more information and a form to submit comments and questions.
74
  1. The Search Meter administration interface, showing some of the reports available.
75
 
76
  == Changelog ==
77
+ = 2.13 =
78
+ * Search Summary and Recent Searches can be downloaded as CSV files.
79
+ * Search Meter is now set up for translation to other languages. For details, go to https://translate.wordpress.org/ (Thanks to Christiaen François)
80
+ * All stats are now displayed in the WordPress time zone, and stored in the database as UTC. Previously, they were stored and displayed in the server time zone, which was confusing. The change means that old search statistics may be out by up to 13 hours.
81
+ * Updated licensing, now using GPL3.
82
+
83
  = 2.12 =
84
  * When uninstalled, delete all options and data. (Thanks to Scott Allen)
85
  * Track searches made via ajax requests. (Thanks to tliebig)
search-meter.php CHANGED
@@ -3,12 +3,14 @@
3
  Plugin Name: Search Meter
4
  Plugin URI: http://thunderguy.com/semicolon/wordpress/search-meter-wordpress-plugin/
5
  Description: Keeps track of what your visitors are searching for. After you have activated this plugin, you can check the Search Meter section in the Dashboard to see what your visitors are searching for on your blog.
6
- Version: 2.12
7
  Author: Bennett McElwee
8
  Author URI: http://thunderguy.com/semicolon/
9
  Donate link: http://thunderguy.com/semicolon/donate/
 
 
10
 
11
- $Revision: 1400894 $
12
 
13
 
14
  INSTRUCTIONS
@@ -27,24 +29,19 @@ INSTRUCTIONS
27
  sm_list_recent_searches() template tags.
28
  * For full details, see http://thunderguy.com/semicolon/wordpress/search-meter-wordpress-plugin/
29
 
30
- Thanks to everyone who has suggested improvements. It takes a village to build a plugin.
31
 
32
 
33
  Copyright (C) 2005-16 Bennett McElwee (bennett at thunderguy dotcom)
34
-
35
- This program is free software; you can redistribute it and/or
36
- modify it under the terms of version 2 of the GNU General Public
37
- License as published by the Free Software Foundation.
38
-
39
- This program is distributed in the hope that it will be useful,
40
- but WITHOUT ANY WARRANTY; without even the implied warranty of
41
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42
- GNU General Public License for more details, available at
43
- http://www.gnu.org/copyleft/gpl.html
44
- or by writing to the Free Software Foundation, Inc.,
45
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
46
  */
47
 
 
 
 
 
 
48
  // This is here to avoid E_NOTICE when indexing nonexistent array keys. There's probably a better solution. Suggestions are welcome.
49
  function tguy_sm_array_value(&$array, $key) {
50
  return (is_array($array) && array_key_exists($key, $array)) ? $array[$key] : null;
@@ -78,7 +75,7 @@ function sm_list_popular_searches($before = '', $after = '', $count = 5) {
78
  $results = $wpdb->get_results(
79
  "SELECT `terms`, SUM(`count`) AS countsum
80
  FROM `{$wpdb->prefix}searchmeter`
81
- WHERE DATE_SUB( CURDATE( ) , INTERVAL 30 DAY ) <= `date`
82
  AND 0 < `last_hits`
83
  {$filter_term}
84
  GROUP BY `terms`
@@ -172,15 +169,15 @@ function tguy_sm_register_widgets() {
172
 
173
  class SM_Popular_Searches_Widget extends WP_Widget {
174
  function __construct() {
175
- $widget_ops = array('classname' => 'widget_search_meter', 'description' => __( "A list of the most popular successful searches in the last month"));
176
- parent::__construct('popular_searches', __('Popular Searches'), $widget_ops);
177
  }
178
 
179
  function widget($args, $instance) {
180
  extract($args);
181
- $title = apply_filters('widget_title', empty($instance['popular-searches-title']) ? __('Popular Searches') : $instance['popular-searches-title']);
182
  $count = (int) (empty($instance['popular-searches-number']) ? 5 : $instance['popular-searches-number']);
183
-
184
  echo $before_widget;
185
  if ($title) {
186
  echo $before_title . $title . $after_title;
@@ -188,39 +185,39 @@ class SM_Popular_Searches_Widget extends WP_Widget {
188
  sm_list_popular_searches('', '', sm_constrain_widget_search_count($count));
189
  echo $after_widget;
190
  }
191
-
192
  function update($new_instance, $old_instance){
193
  $instance = $old_instance;
194
  $instance['popular-searches-title'] = strip_tags(stripslashes($new_instance['popular-searches-title']));
195
  $instance['popular-searches-number'] = (int) ($new_instance['popular-searches-number']);
196
  return $instance;
197
  }
198
-
199
  function form($instance){
200
  //Defaults
201
- $instance = wp_parse_args((array) $instance, array('popular-searches-title' => 'Popular Searches', 'popular-searches-number' => 5));
202
-
203
  $title = htmlspecialchars($instance['popular-searches-title']);
204
  $count = htmlspecialchars($instance['popular-searches-number']);
205
-
206
  # Output the options
207
- echo '<p><label for="' . $this->get_field_name('popular-searches-title') . '">' . __('Title:') . ' <input class="widefat" id="' . $this->get_field_id('title') . '" name="' . $this->get_field_name('popular-searches-title') . '" type="text" value="' . $title . '" /></label></p>';
208
- echo '<p><label for="' . $this->get_field_name('popular-searches-number') . '">' . __('Number of searches to show:') . ' <input id="' . $this->get_field_id('popular-searches-number') . '" name="' . $this->get_field_name('popular-searches-number') . '" type="text" value="' . $count . '" size="3" /></label></p>';
209
- echo '<p><small>Powered by Search Meter</small></p>';
210
  }
211
  }
212
 
213
  class SM_Recent_Searches_Widget extends WP_Widget {
214
  function __construct() {
215
- $widget_ops = array('classname' => 'widget_search_meter', 'description' => __( "A list of the most recent successful searches on your blog"));
216
- parent::__construct('recent_searches', __('Recent Searches'), $widget_ops);
217
  }
218
 
219
  function widget($args, $instance) {
220
  extract($args);
221
- $title = apply_filters('widget_title', empty($instance['recent-searches-title']) ? __('Recent Searches') : $instance['recent-searches-title']);
222
  $count = (int) (empty($instance['recent-searches-number']) ? 5 : $instance['recent-searches-number']);
223
-
224
  echo $before_widget;
225
  if ($title) {
226
  echo $before_title . $title . $after_title;
@@ -228,25 +225,25 @@ class SM_Recent_Searches_Widget extends WP_Widget {
228
  sm_list_recent_searches('', '', sm_constrain_widget_search_count($count));
229
  echo $after_widget;
230
  }
231
-
232
  function update($new_instance, $old_instance){
233
  $instance = $old_instance;
234
  $instance['recent-searches-title'] = strip_tags(stripslashes($new_instance['recent-searches-title']));
235
  $instance['recent-searches-number'] = (int) ($new_instance['recent-searches-number']);
236
  return $instance;
237
  }
238
-
239
  function form($instance){
240
  //Defaults
241
- $instance = wp_parse_args((array) $instance, array('recent-searches-title' => 'Recent Searches', 'recent-searches-number' => 5));
242
-
243
  $title = htmlspecialchars($instance['recent-searches-title']);
244
  $count = htmlspecialchars($instance['recent-searches-number']);
245
-
246
  # Output the options
247
- echo '<p><label for="' . $this->get_field_name('recent-searches-title') . '">' . __('Title:') . ' <input class="widefat" id="' . $this->get_field_id('title') . '" name="' . $this->get_field_name('recent-searches-title') . '" type="text" value="' . $title . '" /></label></p>';
248
- echo '<p><label for="' . $this->get_field_name('recent-searches-number') . '">' . __('Number of searches to show:') . ' <input id="' . $this->get_field_id('recent-searches-number') . '" name="' . $this->get_field_name('recent-searches-number') . '" type="text" value="' . $count . '" size="3" /></label></p>';
249
- echo '<p><small>Powered by Search Meter</small></p>';
250
  }
251
  }
252
 
@@ -268,7 +265,7 @@ function tguy_sm_save_search($posts) {
268
  // add_filter('search_meter_record_duplicates', function() { return true; });
269
  // Setting to true will record duplicates (the fact that it's a dupe will be recorded in the
270
  // details). This will mess up the stats, but could be useful for troubleshooting.
271
- $record_duplicates = apply_filters('search_meter_record_duplicates', false);
272
 
273
  if (is_search()
274
  && !is_paged() // not the second or subsequent page of a previously-counted search
@@ -298,7 +295,7 @@ function tguy_sm_save_search($posts) {
298
  $details = '';
299
  if (tguy_sm_array_value($options, 'sm_details_verbose')) {
300
  if ($record_duplicates) {
301
- $details .= "Search Meter save count: $tguy_sm_save_count\n";
302
  }
303
  foreach (array('REQUEST_URI','REQUEST_METHOD','QUERY_STRING','REMOTE_ADDR','HTTP_USER_AGENT','HTTP_REFERER')
304
  as $header) {
@@ -309,33 +306,33 @@ function tguy_sm_save_search($posts) {
309
  // Save the individual search to the DB
310
  $success = $wpdb->query($wpdb->prepare("
311
  INSERT INTO `{$wpdb->prefix}searchmeter_recent` (`terms`,`datetime`,`hits`,`details`)
312
- VALUES (%s, NOW(), %d, %s)",
313
  $search_string,
314
  $hit_count,
315
  $details
316
  ));
317
-
318
  if ($success) {
319
 
320
  $rowcount = $wpdb->get_var(
321
  "SELECT count(`datetime`) as rowcount
322
  FROM `{$wpdb->prefix}searchmeter_recent`");
323
-
324
  // History size can be overridden by a user by adding a line like this to functions.php:
325
  // add_filter('search_meter_history_size', function() { return 50000; });
326
- $history_size = apply_filters('search_meter_history_size', 500);
327
 
328
  // Ensure history table never grows larger than (history size) + 100; truncate it
329
  // to (history size) when it gets too big. (This we way will only truncate the table
330
  // every 100 searches, rather than every time.)
331
- if ($history_size + 100 < $rowcount)
332
  {
333
  // find time of ($history_size)th entry; delete everything before that
334
  $dateZero = $wpdb->get_var($wpdb->prepare(
335
  "SELECT `datetime`
336
  FROM `{$wpdb->prefix}searchmeter_recent`
337
  ORDER BY `datetime` DESC LIMIT %d, 1", $history_size));
338
-
339
  $query = "DELETE FROM `{$wpdb->prefix}searchmeter_recent` WHERE `datetime` < '$dateZero'";
340
  $success = $wpdb->query($query);
341
  }
@@ -345,7 +342,7 @@ function tguy_sm_save_search($posts) {
345
  $suppress = $wpdb->suppress_errors();
346
  $success = $wpdb->query($wpdb->prepare("
347
  INSERT INTO `{$wpdb->prefix}searchmeter` (`terms`,`date`,`count`,`last_hits`)
348
- VALUES (%s, CURDATE(), 1, %d)",
349
  $search_terms,
350
  $hit_count
351
  ));
@@ -355,7 +352,7 @@ function tguy_sm_save_search($posts) {
355
  UPDATE `{$wpdb->prefix}searchmeter` SET
356
  `count` = `count` + 1,
357
  `last_hits` = %d
358
- WHERE `terms` = %s AND `date` = CURDATE()",
359
  $hit_count,
360
  $search_terms
361
  ));
3
  Plugin Name: Search Meter
4
  Plugin URI: http://thunderguy.com/semicolon/wordpress/search-meter-wordpress-plugin/
5
  Description: Keeps track of what your visitors are searching for. After you have activated this plugin, you can check the Search Meter section in the Dashboard to see what your visitors are searching for on your blog.
6
+ Version: 2.13
7
  Author: Bennett McElwee
8
  Author URI: http://thunderguy.com/semicolon/
9
  Donate link: http://thunderguy.com/semicolon/donate/
10
+ Text Domain: search-meter
11
+ Domain Path: /languages
12
 
13
+ $Revision: 1511677 $
14
 
15
 
16
  INSTRUCTIONS
29
  sm_list_recent_searches() template tags.
30
  * For full details, see http://thunderguy.com/semicolon/wordpress/search-meter-wordpress-plugin/
31
 
32
+ Thanks to everyone who has suggested or contributed improvements. It takes a village to build a plugin.
33
 
34
 
35
  Copyright (C) 2005-16 Bennett McElwee (bennett at thunderguy dotcom)
36
+ This software is licensed under the GPL v3. See the included LICENSE file for
37
+ details. If you would like to use it under different terms, contact the author.
 
 
 
 
 
 
 
 
 
 
38
  */
39
 
40
+ add_action( 'plugins_loaded', 'tguy_sm_load_plugin_textdomain' );
41
+ function tguy_sm_load_plugin_textdomain() {
42
+ load_plugin_textdomain('search-meter', FALSE, basename(dirname(__FILE__)) . '/languages/');
43
+ }
44
+
45
  // This is here to avoid E_NOTICE when indexing nonexistent array keys. There's probably a better solution. Suggestions are welcome.
46
  function tguy_sm_array_value(&$array, $key) {
47
  return (is_array($array) && array_key_exists($key, $array)) ? $array[$key] : null;
75
  $results = $wpdb->get_results(
76
  "SELECT `terms`, SUM(`count`) AS countsum
77
  FROM `{$wpdb->prefix}searchmeter`
78
+ WHERE DATE_SUB( UTC_DATE( ) , INTERVAL 30 DAY ) <= `date`
79
  AND 0 < `last_hits`
80
  {$filter_term}
81
  GROUP BY `terms`
169
 
170
  class SM_Popular_Searches_Widget extends WP_Widget {
171
  function __construct() {
172
+ $widget_ops = array('classname' => 'widget_search_meter', 'description' => __( "A list of the most popular successful searches in the last month", 'search-meter'));
173
+ parent::__construct('popular_searches', __('Popular Searches', 'search-meter'), $widget_ops);
174
  }
175
 
176
  function widget($args, $instance) {
177
  extract($args);
178
+ $title = apply_filters('widget_title', empty($instance['popular-searches-title']) ? __('Popular Searches', 'search-meter') : $instance['popular-searches-title']);
179
  $count = (int) (empty($instance['popular-searches-number']) ? 5 : $instance['popular-searches-number']);
180
+
181
  echo $before_widget;
182
  if ($title) {
183
  echo $before_title . $title . $after_title;
185
  sm_list_popular_searches('', '', sm_constrain_widget_search_count($count));
186
  echo $after_widget;
187
  }
188
+
189
  function update($new_instance, $old_instance){
190
  $instance = $old_instance;
191
  $instance['popular-searches-title'] = strip_tags(stripslashes($new_instance['popular-searches-title']));
192
  $instance['popular-searches-number'] = (int) ($new_instance['popular-searches-number']);
193
  return $instance;
194
  }
195
+
196
  function form($instance){
197
  //Defaults
198
+ $instance = wp_parse_args((array) $instance, array('popular-searches-title' => __('Popular Searches', 'search-meter'), 'popular-searches-number' => 5));
199
+
200
  $title = htmlspecialchars($instance['popular-searches-title']);
201
  $count = htmlspecialchars($instance['popular-searches-number']);
202
+
203
  # Output the options
204
+ echo '<p><label for="' . $this->get_field_name('popular-searches-title') . '">' . __('Title:', 'search-meter') . ' <input class="widefat" id="' . $this->get_field_id('title') . '" name="' . $this->get_field_name('popular-searches-title') . '" type="text" value="' . $title . '" /></label></p>';
205
+ echo '<p><label for="' . $this->get_field_name('popular-searches-number') . '">' . __('Number of searches to show:', 'search-meter') . ' <input id="' . $this->get_field_id('popular-searches-number') . '" name="' . $this->get_field_name('popular-searches-number') . '" type="text" value="' . $count . '" size="3" /></label></p>';
206
+ echo '<p><small>' . __('Powered by Search Meter', 'search-meter') . '</small></p>';
207
  }
208
  }
209
 
210
  class SM_Recent_Searches_Widget extends WP_Widget {
211
  function __construct() {
212
+ $widget_ops = array('classname' => 'widget_search_meter', 'description' => __( "A list of the most recent successful searches on your blog", 'search-meter'));
213
+ parent::__construct('recent_searches', __('Recent Searches', 'search-meter'), $widget_ops);
214
  }
215
 
216
  function widget($args, $instance) {
217
  extract($args);
218
+ $title = apply_filters('widget_title', empty($instance['recent-searches-title']) ? __('Recent Searches', 'search-meter') : $instance['recent-searches-title']);
219
  $count = (int) (empty($instance['recent-searches-number']) ? 5 : $instance['recent-searches-number']);
220
+
221
  echo $before_widget;
222
  if ($title) {
223
  echo $before_title . $title . $after_title;
225
  sm_list_recent_searches('', '', sm_constrain_widget_search_count($count));
226
  echo $after_widget;
227
  }
228
+
229
  function update($new_instance, $old_instance){
230
  $instance = $old_instance;
231
  $instance['recent-searches-title'] = strip_tags(stripslashes($new_instance['recent-searches-title']));
232
  $instance['recent-searches-number'] = (int) ($new_instance['recent-searches-number']);
233
  return $instance;
234
  }
235
+
236
  function form($instance){
237
  //Defaults
238
+ $instance = wp_parse_args((array) $instance, array('recent-searches-title' => __('Recent Searches', 'search-meter'), 'recent-searches-number' => 5));
239
+
240
  $title = htmlspecialchars($instance['recent-searches-title']);
241
  $count = htmlspecialchars($instance['recent-searches-number']);
242
+
243
  # Output the options
244
+ echo '<p><label for="' . $this->get_field_name('recent-searches-title') . '">' . __('Title:', 'search-meter') . ' <input class="widefat" id="' . $this->get_field_id('title') . '" name="' . $this->get_field_name('recent-searches-title') . '" type="text" value="' . $title . '" /></label></p>';
245
+ echo '<p><label for="' . $this->get_field_name('recent-searches-number') . '">' . __('Number of searches to show:', 'search-meter') . ' <input id="' . $this->get_field_id('recent-searches-number') . '" name="' . $this->get_field_name('recent-searches-number') . '" type="text" value="' . $count . '" size="3" /></label></p>';
246
+ echo '<p><small>' . __('Powered by Search Meter', 'search-meter') . '</small></p>';
247
  }
248
  }
249
 
265
  // add_filter('search_meter_record_duplicates', function() { return true; });
266
  // Setting to true will record duplicates (the fact that it's a dupe will be recorded in the
267
  // details). This will mess up the stats, but could be useful for troubleshooting.
268
+ $record_duplicates = apply_filters('search_meter_record_duplicates', false);
269
 
270
  if (is_search()
271
  && !is_paged() // not the second or subsequent page of a previously-counted search
295
  $details = '';
296
  if (tguy_sm_array_value($options, 'sm_details_verbose')) {
297
  if ($record_duplicates) {
298
+ $details .= __('Search Meter save count', 'search-meter') . ": $tguy_sm_save_count\n";
299
  }
300
  foreach (array('REQUEST_URI','REQUEST_METHOD','QUERY_STRING','REMOTE_ADDR','HTTP_USER_AGENT','HTTP_REFERER')
301
  as $header) {
306
  // Save the individual search to the DB
307
  $success = $wpdb->query($wpdb->prepare("
308
  INSERT INTO `{$wpdb->prefix}searchmeter_recent` (`terms`,`datetime`,`hits`,`details`)
309
+ VALUES (%s, UTC_TIMESTAMP(), %d, %s)",
310
  $search_string,
311
  $hit_count,
312
  $details
313
  ));
314
+
315
  if ($success) {
316
 
317
  $rowcount = $wpdb->get_var(
318
  "SELECT count(`datetime`) as rowcount
319
  FROM `{$wpdb->prefix}searchmeter_recent`");
320
+
321
  // History size can be overridden by a user by adding a line like this to functions.php:
322
  // add_filter('search_meter_history_size', function() { return 50000; });
323
+ $history_size = apply_filters('search_meter_history_size', 500);
324
 
325
  // Ensure history table never grows larger than (history size) + 100; truncate it
326
  // to (history size) when it gets too big. (This we way will only truncate the table
327
  // every 100 searches, rather than every time.)
328
+ if ($history_size + 100 < $rowcount)
329
  {
330
  // find time of ($history_size)th entry; delete everything before that
331
  $dateZero = $wpdb->get_var($wpdb->prepare(
332
  "SELECT `datetime`
333
  FROM `{$wpdb->prefix}searchmeter_recent`
334
  ORDER BY `datetime` DESC LIMIT %d, 1", $history_size));
335
+
336
  $query = "DELETE FROM `{$wpdb->prefix}searchmeter_recent` WHERE `datetime` < '$dateZero'";
337
  $success = $wpdb->query($query);
338
  }
342
  $suppress = $wpdb->suppress_errors();
343
  $success = $wpdb->query($wpdb->prepare("
344
  INSERT INTO `{$wpdb->prefix}searchmeter` (`terms`,`date`,`count`,`last_hits`)
345
+ VALUES (%s, UTC_DATE(), 1, %d)",
346
  $search_terms,
347
  $hit_count
348
  ));
352
  UPDATE `{$wpdb->prefix}searchmeter` SET
353
  `count` = `count` + 1,
354
  `last_hits` = %d
355
+ WHERE `terms` = %s AND `date` = UTC_DATE()",
356
  $hit_count,
357
  $search_terms
358
  ));
uninstall.php CHANGED
@@ -1,6 +1,10 @@
1
  <?php
2
  /*
3
  Search Meter uninstaller
 
 
 
 
4
  */
5
 
6
  if (!defined( 'WP_UNINSTALL_PLUGIN')) {
@@ -8,7 +12,7 @@ if (!defined( 'WP_UNINSTALL_PLUGIN')) {
8
  }
9
 
10
  delete_option('tguy_search_meter');
11
- delete_site_option('tguy_search_meter');
12
 
13
  global $wpdb;
14
  $wpdb->query("DROP TABLE IF EXISTS {$wpdb->prefix}searchmeter");
1
  <?php
2
  /*
3
  Search Meter uninstaller
4
+
5
+ Copyright (C) 2005-16 Bennett McElwee (bennett at thunderguy dotcom)
6
+ This software is licensed under the GPL v3. See the included LICENSE file for
7
+ details. If you would like to use it under different terms, contact the author.
8
  */
9
 
10
  if (!defined( 'WP_UNINSTALL_PLUGIN')) {
12
  }
13
 
14
  delete_option('tguy_search_meter');
15
+ delete_site_option('tguy_search_meter');
16
 
17
  global $wpdb;
18
  $wpdb->query("DROP TABLE IF EXISTS {$wpdb->prefix}searchmeter");