Initial commit. State 04.2021.

This commit is contained in:
2021-04-22 17:57:16 +02:00
commit 82781cca41
2974 changed files with 975656 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
# Only allow direct access to specific Web-available files.
# Apache 2.2
<IfModule !mod_authz_core.c>
Order Deny,Allow
Deny from all
</IfModule>
# Apache 2.4
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
# Akismet CSS and JS
<FilesMatch "^(form|akismet)\.(css|js)$">
<IfModule !mod_authz_core.c>
Allow from all
</IfModule>
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
</FilesMatch>
# Akismet images
<FilesMatch "^(.+)\.(png|gif)$">
<IfModule !mod_authz_core.c>
Allow from all
</IfModule>
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
</FilesMatch>

View File

@@ -0,0 +1,339 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.

View File

@@ -0,0 +1,375 @@
#submitted-on {
position: relative;
}
#the-comment-list .author .akismet-user-comment-count {
display: inline;
}
#the-comment-list .author a span {
text-decoration: none;
color: #999;
}
#the-comment-list .author a span.akismet-span-link {
text-decoration: inherit;
color: inherit;
}
#the-comment-list .remove_url {
margin-left: 3px;
color: #999;
padding: 2px 3px 2px 0;
}
#the-comment-list .remove_url:hover {
color: #A7301F;
font-weight: bold;
padding: 2px 2px 2px 0;
}
#dashboard_recent_comments .akismet-status {
display: none;
}
.akismet-status {
float: right;
}
.akismet-status a {
color: #AAA;
font-style: italic;
}
span.comment-link a {
text-decoration: underline;
}
span.comment-link:after {
content: " "attr(title) " ";
color: #aaa;
text-decoration: none;
}
.mshot-arrow {
width: 0;
height: 0;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
border-right: 10px solid #5C5C5C;
position: absolute;
left: -6px;
top: 91px;
}
.mshot-container {
background: #5C5C5C;
position: absolute;
top: -94px;
padding: 7px;
width: 450px;
height: 338px;
z-index: 20000;
-moz-border-radius: 6px;
border-radius: 6px;
-webkit-border-radius: 6px;
}
.akismet-mshot {
position: absolute;
z-index: 100;
}
.akismet-mshot .mshot-image {
margin: 0;
height: 338px;
width: 450px;
}
h2.ak-header {
padding: 30px;
background: #649316 url('img/logo-full-2x.png') no-repeat 20px center;
background-size: 185px 33px;
height: 33px;
text-indent: -9999em;
margin-right: 10px;
}
.checkforspam {
display: inline-block !important;
}
.checkforspam-spinner {
display: inline-block;
margin-top: 7px;
}
.config-wrap {
margin-top: 2em;
max-width: 700px;
}
.activate-option {
background: #e3e3e3;
border-radius: 3px;
margin-bottom: 30px;
overflow: hidden;
padding: 20px;
}
.activate-option.clicked {
background: #649316;
color: #fff;
}
.activate-option.clicked:hover {
background: #68802E;
color: #fff;
}
.activate-option .button.button-secondary {
margin: 15px 0;
}
.activate-option p {
margin: 10px 0 10px;
}
.activate-highlight {
background: #fff;
padding: 30px;
margin-right: 10px;
}
.activate-highlight.secondary {
background: #ddd;
padding: 20px 30px;
}
.activate-highlight h3 {
margin: 0 0 0.3em;
}
.activate-highlight p {
color: #777;
}
.activate-highlight .button-primary {
margin-top: 15px;
}
#akismet-enter-api-key .regular-text {
width: 18em;
margin-top: 15px;
}
.right {
float: right;
}
.alert-text {
color: #dd3d36;
}
.success {
color: #649316;
}
.option-description {
float: left;
font-size: 16px;
}
.option-description span {
color: #666;
display: block;
font-size: 14px;
margin-top: 5px;
}
.option-action {
float: right;
}
.key-config-link {
font-size: 14px;
margin-left: 20px;
}
.jetpack-account {
float: left;
font-size: 18px;
margin-right: 40px;
}
.small-heading {
color: #777;
display: block;
font-size: 12px;
font-weight: bold;
margin-bottom: 5px;
text-transform: uppercase;
}
.inline-label {
background: #ddd;
border-radius: 3px;
font-size: 11px;
padding: 3px 8px;
text-transform: uppercase;
}
.inline-label.alert {
background: #e54747;
color: #fff;
}
.jetpack-account .inline-label {
margin-left: 5px;
}
.option-action .manual-key {
margin-top: 7px;
}
.alert {
border: 1px solid #e5e5e5;
padding: 0.4em 1em 1.4em 1em;
border-radius: 3px;
-webkit-border-radius: 3px;
border-width: 1px;
border-style: solid;
}
.alert h3.key-status {
color: #fff;
margin: 1em 0 0.5em 0;
}
.alert.critical {
background-color: #993300;
}
.alert.active {
background-color: #649316;
}
.alert p.key-status {
font-size: 24px;
}
.alert p.description {
color:#fff;
font-size: 14px;
margin: 0 0;
font-style: normal;
}
.alert p.description a,
.alert p.description a,
.alert p.description a,
.alert p.description a {
color: #fff;
}
.new-snapshot {
margin-top: 1em;
padding: 1em;
text-align: center;
}
.new-snapshot.stats {
background: #fff;
border: 1px solid #e5e5e5;
}
.new-snapshot h3 {
background: #f5f5f5;
color: #888;
font-size: 11px;
margin: 0;
padding: 3px;
}
.new-snapspot ul {
font-size: 12px;
width: 100%;
}
.new-snapshot ul li {
color: #999;
float: left;
font-size: 11px;
padding: 0 20px;
text-transform: uppercase;
width: 33%;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
}
.new-snapshot.stats ul li:first-child,
.new-snapshot.stats ul li:nth-child(2) {
border-right:1px dotted #ccc;
}
.new-snapshot.account ul li:nth-child(2) {
border-right: none;
}
.new-snapshot ul li span {
color: #52accc;
display: block;
font-size: 32px;
font-weight: lighter;
line-height: 1.5em;
}
.new-snapshot.stats {
}
.new-snapshot.account,
.new-snapshot.settings {
float: left;
padding: 0;
text-align: left;
width: 50%;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
}
.account-container {
background: #fff;
border: 1px solid #e5e5e5;
margin-right: 0.5em;
}
.settings-container {
background: #fff;
border: 1px solid #e5e5e5;
margin-left: 0.5em;
}
.new-snapshot.account ul li {
width:100%
}
.new-snapshot.account ul li span {
font-size: 14px;
font-weight: normal;
}
.new-snapshot.settings ul li {
border: none;
display: block;
width:100%
}
.new-snapshot.settings ul li span {
display: block;
font-size: 14px;
font-weight: normal;
}
.new-snapshot.settings p.submit {
margin: 0;
text-align: center;
}
.akismet-settings th:first-child {
vertical-align: top;
padding-top: 15px;
}
.akismet-settings th.akismet-api-key {
vertical-align: middle;
padding-top: 0;
}
.akismet-settings input[type=text] {
width: 75%;
}
.akismet-settings span.note{
float: left;
padding-left: 23px;
font-size: 75%;
margin-top: -10px;
}
.clearfix {
clear:both;
}

View File

@@ -0,0 +1,189 @@
jQuery( function ( $ ) {
var mshotRemovalTimer = null;
var mshotSecondTryTimer = null
var mshotThirdTryTimer = null
$( 'a.activate-option' ).click( function(){
var link = $( this );
if ( link.hasClass( 'clicked' ) ) {
link.removeClass( 'clicked' );
}
else {
link.addClass( 'clicked' );
}
$( '.toggle-have-key' ).slideToggle( 'slow', function() {});
return false;
});
$('.akismet-status').each(function () {
var thisId = $(this).attr('commentid');
$(this).prependTo('#comment-' + thisId + ' .column-comment');
});
$('.akismet-user-comment-count').each(function () {
var thisId = $(this).attr('commentid');
$(this).insertAfter('#comment-' + thisId + ' .author strong:first').show();
});
$('#the-comment-list').find('tr.comment, tr[id ^= "comment-"]').find('.column-author a[title]').each(function () {
// Comment author URLs are the only URL with a title attribute in the author column.
var thisTitle = $(this).attr('title');
var thisCommentId = $(this).parents('tr:first').attr('id').split("-");
$(this).attr("id", "author_comment_url_"+ thisCommentId[1]);
if (thisTitle) {
$(this).after(
$( '<a href="#" class="remove_url">x</a>' )
.attr( 'commentid', thisCommentId[1] )
.attr( 'title', WPAkismet.strings['Remove this URL'] )
);
}
});
$('.remove_url').live('click', function () {
var thisId = $(this).attr('commentid');
var data = {
action: 'comment_author_deurl',
_wpnonce: WPAkismet.comment_author_url_nonce,
id: thisId
};
$.ajax({
url: ajaxurl,
type: 'POST',
data: data,
beforeSend: function () {
// Removes "x" link
$("a[commentid='"+ thisId +"']").hide();
// Show temp status
$("#author_comment_url_"+ thisId).html( $( '<span/>' ).text( WPAkismet.strings['Removing...'] ) );
},
success: function (response) {
if (response) {
// Show status/undo link
$("#author_comment_url_"+ thisId)
.attr('cid', thisId)
.addClass('akismet_undo_link_removal')
.html(
$( '<span/>' ).text( WPAkismet.strings['URL removed'] )
)
.append( ' ' )
.append(
$( '<span/>' )
.text( WPAkismet.strings['(undo)'] )
.addClass( 'akismet-span-link' )
);
}
}
});
return false;
});
$('.akismet_undo_link_removal').live('click', function () {
var thisId = $(this).attr('cid');
var thisUrl = $(this).attr('href');
var data = {
action: 'comment_author_reurl',
_wpnonce: WPAkismet.comment_author_url_nonce,
id: thisId,
url: thisUrl
};
$.ajax({
url: ajaxurl,
type: 'POST',
data: data,
beforeSend: function () {
// Show temp status
$("#author_comment_url_"+ thisId).html( $( '<span/>' ).text( WPAkismet.strings['Re-adding...'] ) );
},
success: function (response) {
if (response) {
// Add "x" link
$("a[commentid='"+ thisId +"']").show();
// Show link. Core strips leading http://, so let's do that too.
$("#author_comment_url_"+ thisId).removeClass('akismet_undo_link_removal').text( thisUrl.replace( /^http:\/\/(www\.)?/ig, '' ) );
}
}
});
return false;
});
// Show a preview image of the hovered URL. Applies to author URLs and URLs inside the comments.
$( 'a[id^="author_comment_url"], tr.pingback td.column-author a:first-of-type, table.comments a.comment-link' ).mouseover( function () {
clearTimeout( mshotRemovalTimer );
if ( $( '.akismet-mshot' ).length > 0 ) {
if ( $( '.akismet-mshot:first' ).data( 'link' ) == this ) {
// The preview is already showing for this link.
return;
}
else {
// A new link is being hovered, so remove the old preview.
$( '.akismet-mshot' ).remove();
}
}
clearTimeout( mshotSecondTryTimer );
clearTimeout( mshotThirdTryTimer );
var thisHref = $.URLEncode( $( this ).attr( 'href' ) );
var mShot = $( '<div class="akismet-mshot mshot-container"><div class="mshot-arrow"></div><img src="//s0.wordpress.com/mshots/v1/' + thisHref + '?w=450" width="450" height="338" class="mshot-image" /></div>' );
mShot.data( 'link', this );
var offset = $( this ).offset();
mShot.offset( {
left : Math.min( $( window ).width() - 475, offset.left + $( this ).width() + 10 ), // Keep it on the screen if the link is near the edge of the window.
top: offset.top + ( $( this ).height() / 2 ) - 101 // 101 = top offset of the arrow plus the top border thickness
} );
mshotSecondTryTimer = setTimeout( function () {
mShot.find( '.mshot-image' ).attr( 'src', '//s0.wordpress.com/mshots/v1/'+thisHref+'?w=450&r=2' );
}, 6000 );
mshotThirdTryTimer = setTimeout( function () {
mShot.find( '.mshot-image' ).attr( 'src', '//s0.wordpress.com/mshots/v1/'+thisHref+'?w=450&r=3' );
}, 12000 );
$( 'body' ).append( mShot );
} ).mouseout( function () {
mshotRemovalTimer = setTimeout( function () {
clearTimeout( mshotSecondTryTimer );
clearTimeout( mshotThirdTryTimer );
$( '.akismet-mshot' ).remove();
}, 200 );
} );
$('.checkforspam:not(.button-disabled)').click( function(e) {
$('.checkforspam:not(.button-disabled)').addClass('button-disabled');
$('.checkforspam-spinner').addClass( 'spinner' );
akismet_check_for_spam(0, 100);
e.preventDefault();
});
function akismet_check_for_spam(offset, limit) {
$.post(
ajaxurl,
{
'action': 'akismet_recheck_queue',
'offset': offset,
'limit': limit
},
function(result) {
if (result.processed < limit) {
window.location.reload();
}
else {
akismet_check_for_spam(offset + limit, limit);
}
}
);
}
});
// URL encode plugin
jQuery.extend({URLEncode:function(c){var o='';var x=0;c=c.toString();var r=/(^[a-zA-Z0-9_.]*)/;
while(x<c.length){var m=r.exec(c.substr(x));
if(m!=null && m.length>1 && m[1]!=''){o+=m[1];x+=m[1].length;
}else{if(c[x]==' ')o+='+';else{var d=c.charCodeAt(x);var h=d.toString(16);
o+='%'+(h.length<2?'0':'')+h.toUpperCase();}x++;}}return o;}
});

View File

@@ -0,0 +1,30 @@
var ak_js = document.getElementById( "ak_js" );
if ( ! ak_js ) {
ak_js = document.createElement( 'input' );
ak_js.setAttribute( 'id', 'ak_js' );
ak_js.setAttribute( 'name', 'ak_js' );
ak_js.setAttribute( 'type', 'hidden' );
}
else {
ak_js.parentNode.removeChild( ak_js );
}
ak_js.setAttribute( 'value', ( new Date() ).getTime() );
var commentForm = document.getElementById( 'commentform' );
if ( commentForm ) {
commentForm.appendChild( ak_js );
}
else {
var replyRowContainer = document.getElementById( 'replyrow' );
if ( replyRowContainer ) {
var children = replyRowContainer.getElementsByTagName( 'td' );
if ( children.length > 0 ) {
children[0].appendChild( ak_js );
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@@ -0,0 +1,61 @@
<?php
/**
* @package Akismet
*/
/*
Plugin Name: Akismet
Plugin URI: http://akismet.com/
Description: Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from spam</strong>. It keeps your site protected even while you sleep. To get started: 1) Click the "Activate" link to the left of this description, 2) <a href="http://akismet.com/get/">Sign up for an Akismet plan</a> to get an API key, and 3) Go to your Akismet configuration page, and save your API key.
Version: 3.1.4
Author: Automattic
Author URI: http://automattic.com/wordpress-plugins/
License: GPLv2 or later
Text Domain: akismet
*/
/*
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Copyright 2005-2015 Automattic, Inc.
*/
// Make sure we don't expose any info if called directly
if ( !function_exists( 'add_action' ) ) {
echo 'Hi there! I\'m just a plugin, not much I can do when called directly.';
exit;
}
define( 'AKISMET_VERSION', '3.1.4' );
define( 'AKISMET__MINIMUM_WP_VERSION', '3.2' );
define( 'AKISMET__PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'AKISMET_DELETE_LIMIT', 100000 );
register_activation_hook( __FILE__, array( 'Akismet', 'plugin_activation' ) );
register_deactivation_hook( __FILE__, array( 'Akismet', 'plugin_deactivation' ) );
require_once( AKISMET__PLUGIN_DIR . 'class.akismet.php' );
require_once( AKISMET__PLUGIN_DIR . 'class.akismet-widget.php' );
add_action( 'init', array( 'Akismet', 'init' ) );
if ( is_admin() ) {
require_once( AKISMET__PLUGIN_DIR . 'class.akismet-admin.php' );
add_action( 'init', array( 'Akismet_Admin', 'init' ) );
}
//add wrapper class around deprecated akismet functions that are referenced elsewhere
require_once( AKISMET__PLUGIN_DIR . 'wrapper.php' );

View File

@@ -0,0 +1,978 @@
<?php
class Akismet_Admin {
const NONCE = 'akismet-update-key';
private static $initiated = false;
private static $notices = array();
public static function init() {
if ( ! self::$initiated ) {
self::init_hooks();
}
if ( isset( $_POST['action'] ) && $_POST['action'] == 'enter-key' ) {
self::enter_api_key();
}
}
public static function init_hooks() {
// The standalone stats page was removed in 3.0 for an all-in-one config and stats page.
// Redirect any links that might have been bookmarked or in browser history.
if ( isset( $_GET['page'] ) && 'akismet-stats-display' == $_GET['page'] ) {
wp_safe_redirect( esc_url_raw( self::get_page_url( 'stats' ) ), 301 );
die;
}
self::$initiated = true;
add_action( 'admin_init', array( 'Akismet_Admin', 'admin_init' ) );
add_action( 'admin_menu', array( 'Akismet_Admin', 'admin_menu' ), 5 ); # Priority 5, so it's called before Jetpack's admin_menu.
add_action( 'admin_notices', array( 'Akismet_Admin', 'display_notice' ) );
add_action( 'admin_enqueue_scripts', array( 'Akismet_Admin', 'load_resources' ) );
add_action( 'activity_box_end', array( 'Akismet_Admin', 'dashboard_stats' ) );
add_action( 'rightnow_end', array( 'Akismet_Admin', 'rightnow_stats' ) );
add_action( 'manage_comments_nav', array( 'Akismet_Admin', 'check_for_spam_button' ) );
add_action( 'admin_action_akismet_recheck_queue', array( 'Akismet_Admin', 'recheck_queue' ) );
add_action( 'wp_ajax_akismet_recheck_queue', array( 'Akismet_Admin', 'recheck_queue' ) );
add_action( 'wp_ajax_comment_author_deurl', array( 'Akismet_Admin', 'remove_comment_author_url' ) );
add_action( 'wp_ajax_comment_author_reurl', array( 'Akismet_Admin', 'add_comment_author_url' ) );
add_action( 'jetpack_auto_activate_akismet', array( 'Akismet_Admin', 'connect_jetpack_user' ) );
add_filter( 'plugin_action_links', array( 'Akismet_Admin', 'plugin_action_links' ), 10, 2 );
add_filter( 'comment_row_actions', array( 'Akismet_Admin', 'comment_row_action' ), 10, 2 );
add_filter( 'comment_text', array( 'Akismet_Admin', 'text_add_link_class' ) );
add_filter( 'plugin_action_links_'.plugin_basename( plugin_dir_path( __FILE__ ) . 'akismet.php'), array( 'Akismet_Admin', 'admin_plugin_settings_link' ) );
add_filter( 'wxr_export_skip_commentmeta', array( 'Akismet_Admin', 'exclude_commentmeta_from_export' ), 10, 3 );
}
public static function admin_init() {
load_plugin_textdomain( 'akismet' );
add_meta_box( 'akismet-status', __('Comment History', 'akismet'), array( 'Akismet_Admin', 'comment_status_meta_box' ), 'comment', 'normal' );
}
public static function admin_menu() {
if ( class_exists( 'Jetpack' ) )
add_action( 'jetpack_admin_menu', array( 'Akismet_Admin', 'load_menu' ) );
else
self::load_menu();
}
public static function admin_head() {
if ( !current_user_can( 'manage_options' ) )
return;
}
public static function admin_plugin_settings_link( $links ) {
$settings_link = '<a href="'.esc_url( self::get_page_url() ).'">'.__('Settings', 'akismet').'</a>';
array_unshift( $links, $settings_link );
return $links;
}
public static function load_menu() {
if ( class_exists( 'Jetpack' ) )
$hook = add_submenu_page( 'jetpack', __( 'Akismet' , 'akismet'), __( 'Akismet' , 'akismet'), 'manage_options', 'akismet-key-config', array( 'Akismet_Admin', 'display_page' ) );
else
$hook = add_options_page( __('Akismet', 'akismet'), __('Akismet', 'akismet'), 'manage_options', 'akismet-key-config', array( 'Akismet_Admin', 'display_page' ) );
if ( version_compare( $GLOBALS['wp_version'], '3.3', '>=' ) ) {
add_action( "load-$hook", array( 'Akismet_Admin', 'admin_help' ) );
}
}
public static function load_resources() {
global $hook_suffix;
if ( in_array( $hook_suffix, array(
'index.php', # dashboard
'edit-comments.php',
'comment.php',
'post.php',
'settings_page_akismet-key-config',
'jetpack_page_akismet-key-config',
) ) ) {
wp_register_style( 'akismet.css', AKISMET__PLUGIN_URL . '_inc/akismet.css', array(), AKISMET_VERSION );
wp_enqueue_style( 'akismet.css');
wp_register_script( 'akismet.js', AKISMET__PLUGIN_URL . '_inc/akismet.js', array('jquery','postbox'), AKISMET_VERSION );
wp_enqueue_script( 'akismet.js' );
wp_localize_script( 'akismet.js', 'WPAkismet', array(
'comment_author_url_nonce' => wp_create_nonce( 'comment_author_url_nonce' ),
'strings' => array(
'Remove this URL' => __( 'Remove this URL' , 'akismet'),
'Removing...' => __( 'Removing...' , 'akismet'),
'URL removed' => __( 'URL removed' , 'akismet'),
'(undo)' => __( '(undo)' , 'akismet'),
'Re-adding...' => __( 'Re-adding...' , 'akismet'),
)
) );
}
}
/**
* Add help to the Akismet page
*
* @return false if not the Akismet page
*/
public static function admin_help() {
$current_screen = get_current_screen();
// Screen Content
if ( current_user_can( 'manage_options' ) ) {
if ( !Akismet::get_api_key() || ( isset( $_GET['view'] ) && $_GET['view'] == 'start' ) ) {
//setup page
$current_screen->add_help_tab(
array(
'id' => 'overview',
'title' => __( 'Overview' , 'akismet'),
'content' =>
'<p><strong>' . esc_html__( 'Akismet Setup' , 'akismet') . '</strong></p>' .
'<p>' . esc_html__( 'Akismet filters out spam, so you can focus on more important things.' , 'akismet') . '</p>' .
'<p>' . esc_html__( 'On this page, you are able to set up the Akismet plugin.' , 'akismet') . '</p>',
)
);
$current_screen->add_help_tab(
array(
'id' => 'setup-signup',
'title' => __( 'New to Akismet' , 'akismet'),
'content' =>
'<p><strong>' . esc_html__( 'Akismet Setup' , 'akismet') . '</strong></p>' .
'<p>' . esc_html__( 'You need to enter an API key to activate the Akismet service on your site.' , 'akismet') . '</p>' .
'<p>' . sprintf( __( 'Sign up for an account on %s to get an API Key.' , 'akismet'), '<a href="https://akismet.com/plugin-signup/" target="_blank">Akismet.com</a>' ) . '</p>',
)
);
$current_screen->add_help_tab(
array(
'id' => 'setup-manual',
'title' => __( 'Enter an API Key' , 'akismet'),
'content' =>
'<p><strong>' . esc_html__( 'Akismet Setup' , 'akismet') . '</strong></p>' .
'<p>' . esc_html__( 'If you already have an API key' , 'akismet') . '</p>' .
'<ol>' .
'<li>' . esc_html__( 'Copy and paste the API key into the text field.' , 'akismet') . '</li>' .
'<li>' . esc_html__( 'Click the Use this Key button.' , 'akismet') . '</li>' .
'</ol>',
)
);
}
elseif ( isset( $_GET['view'] ) && $_GET['view'] == 'stats' ) {
//stats page
$current_screen->add_help_tab(
array(
'id' => 'overview',
'title' => __( 'Overview' , 'akismet'),
'content' =>
'<p><strong>' . esc_html__( 'Akismet Stats' , 'akismet') . '</strong></p>' .
'<p>' . esc_html__( 'Akismet filters out spam, so you can focus on more important things.' , 'akismet') . '</p>' .
'<p>' . esc_html__( 'On this page, you are able to view stats on spam filtered on your site.' , 'akismet') . '</p>',
)
);
}
else {
//configuration page
$current_screen->add_help_tab(
array(
'id' => 'overview',
'title' => __( 'Overview' , 'akismet'),
'content' =>
'<p><strong>' . esc_html__( 'Akismet Configuration' , 'akismet') . '</strong></p>' .
'<p>' . esc_html__( 'Akismet filters out spam, so you can focus on more important things.' , 'akismet') . '</p>' .
'<p>' . esc_html__( 'On this page, you are able to enter/remove an API key, view account information and view spam stats.' , 'akismet') . '</p>',
)
);
$current_screen->add_help_tab(
array(
'id' => 'settings',
'title' => __( 'Settings' , 'akismet'),
'content' =>
'<p><strong>' . esc_html__( 'Akismet Configuration' , 'akismet') . '</strong></p>' .
'<p><strong>' . esc_html__( 'API Key' , 'akismet') . '</strong> - ' . esc_html__( 'Enter/remove an API key.' , 'akismet') . '</p>' .
'<p><strong>' . esc_html__( 'Comments' , 'akismet') . '</strong> - ' . esc_html__( 'Show the number of approved comments beside each comment author in the comments list page.' , 'akismet') . '</p>' .
'<p><strong>' . esc_html__( 'Strictness' , 'akismet') . '</strong> - ' . esc_html__( 'Choose to either discard the worst spam automatically or to always put all spam in spam folder.' , 'akismet') . '</p>',
)
);
$current_screen->add_help_tab(
array(
'id' => 'account',
'title' => __( 'Account' , 'akismet'),
'content' =>
'<p><strong>' . esc_html__( 'Akismet Configuration' , 'akismet') . '</strong></p>' .
'<p><strong>' . esc_html__( 'Subscription Type' , 'akismet') . '</strong> - ' . esc_html__( 'The Akismet subscription plan' , 'akismet') . '</p>' .
'<p><strong>' . esc_html__( 'Status' , 'akismet') . '</strong> - ' . esc_html__( 'The subscription status - active, cancelled or suspended' , 'akismet') . '</p>',
)
);
}
}
// Help Sidebar
$current_screen->set_help_sidebar(
'<p><strong>' . esc_html__( 'For more information:' , 'akismet') . '</strong></p>' .
'<p><a href="https://akismet.com/faq/" target="_blank">' . esc_html__( 'Akismet FAQ' , 'akismet') . '</a></p>' .
'<p><a href="https://akismet.com/support/" target="_blank">' . esc_html__( 'Akismet Support' , 'akismet') . '</a></p>'
);
}
public static function enter_api_key() {
if ( function_exists('current_user_can') && !current_user_can('manage_options') )
die(__('Cheatin&#8217; uh?', 'akismet'));
if ( !wp_verify_nonce( $_POST['_wpnonce'], self::NONCE ) )
return false;
foreach( array( 'akismet_strictness', 'akismet_show_user_comments_approved' ) as $option ) {
update_option( $option, isset( $_POST[$option] ) && (int) $_POST[$option] == 1 ? '1' : '0' );
}
if ( defined( 'WPCOM_API_KEY' ) )
return false; //shouldn't have option to save key if already defined
$new_key = preg_replace( '/[^a-f0-9]/i', '', $_POST['key'] );
$old_key = Akismet::get_api_key();
if ( empty( $new_key ) ) {
if ( !empty( $old_key ) ) {
delete_option( 'wordpress_api_key' );
self::$notices[] = 'new-key-empty';
}
}
elseif ( $new_key != $old_key ) {
self::save_key( $new_key );
}
return true;
}
public static function save_key( $api_key ) {
$key_status = Akismet::verify_key( $api_key );
if ( $key_status == 'valid' ) {
$akismet_user = self::get_akismet_user( $api_key );
if ( $akismet_user ) {
if ( in_array( $akismet_user->status, array( 'active', 'active-dunning', 'no-sub' ) ) )
update_option( 'wordpress_api_key', $api_key );
if ( $akismet_user->status == 'active' )
self::$notices['status'] = 'new-key-valid';
else
self::$notices['status'] = $akismet_user->status;
}
else
self::$notices['status'] = 'new-key-invalid';
}
elseif ( in_array( $key_status, array( 'invalid', 'failed' ) ) )
self::$notices['status'] = 'new-key-'.$key_status;
}
public static function dashboard_stats() {
if ( !function_exists('did_action') || did_action( 'rightnow_end' ) )
return; // We already displayed this info in the "Right Now" section
if ( !$count = get_option('akismet_spam_count') )
return;
global $submenu;
echo '<h3>' . esc_html( _x( 'Spam', 'comments' , 'akismet') ) . '</h3>';
echo '<p>'.sprintf( _n(
'<a href="%1$s">Akismet</a> has protected your site from <a href="%2$s">%3$s spam comment</a>.',
'<a href="%1$s">Akismet</a> has protected your site from <a href="%2$s">%3$s spam comments</a>.',
$count
, 'akismet'), 'https://akismet.com/wordpress/', esc_url( add_query_arg( array( 'page' => 'akismet-admin' ), admin_url( isset( $submenu['edit-comments.php'] ) ? 'edit-comments.php' : 'edit.php' ) ) ), number_format_i18n($count) ).'</p>';
}
// WP 2.5+
public static function rightnow_stats() {
if ( $count = get_option('akismet_spam_count') ) {
$intro = sprintf( _n(
'<a href="%1$s">Akismet</a> has protected your site from %2$s spam comment already. ',
'<a href="%1$s">Akismet</a> has protected your site from %2$s spam comments already. ',
$count
, 'akismet'), 'https://akismet.com/wordpress/', number_format_i18n( $count ) );
} else {
$intro = sprintf( __('<a href="%s">Akismet</a> blocks spam from getting to your blog. ', 'akismet'), 'https://akismet.com/wordpress/' );
}
$link = add_query_arg( array( 'comment_status' => 'spam' ), admin_url( 'edit-comments.php' ) );
if ( $queue_count = self::get_spam_count() ) {
$queue_text = sprintf( _n(
'There&#8217;s <a href="%2$s">%1$s comment</a> in your spam queue right now.',
'There are <a href="%2$s">%1$s comments</a> in your spam queue right now.',
$queue_count
, 'akismet'), number_format_i18n( $queue_count ), esc_url( $link ) );
} else {
$queue_text = sprintf( __( "There&#8217;s nothing in your <a href='%s'>spam queue</a> at the moment." , 'akismet'), esc_url( $link ) );
}
$text = $intro . '<br />' . $queue_text;
echo "<p class='akismet-right-now'>$text</p>\n";
}
public static function check_for_spam_button( $comment_status ) {
// The "Check for Spam" button should only appear when the page might be showing
// a comment with comment_approved=0, which means an un-trashed, un-spammed,
// not-yet-moderated comment.
if ( 'all' != $comment_status && 'moderated' != $comment_status ) {
return;
}
if ( function_exists('plugins_url') )
$link = add_query_arg( array( 'action' => 'akismet_recheck_queue' ), admin_url( 'admin.php' ) );
else
$link = add_query_arg( array( 'page' => 'akismet-admin', 'recheckqueue' => 'true', 'noheader' => 'true' ), admin_url( 'edit-comments.php' ) );
echo '</div><div class="alignleft"><a class="button-secondary checkforspam" href="' . esc_url( $link ) . '">' . esc_html__('Check for Spam', 'akismet') . '</a><span class="checkforspam-spinner"></span>';
}
public static function recheck_queue() {
global $wpdb;
Akismet::fix_scheduled_recheck();
if ( ! ( isset( $_GET['recheckqueue'] ) || ( isset( $_REQUEST['action'] ) && 'akismet_recheck_queue' == $_REQUEST['action'] ) ) )
return;
$paginate = '';
if ( isset( $_POST['limit'] ) && isset( $_POST['offset'] ) ) {
$paginate = $wpdb->prepare( " LIMIT %d OFFSET %d", array( $_POST['limit'], $_POST['offset'] ) );
}
$moderation = $wpdb->get_results( "SELECT * FROM {$wpdb->comments} WHERE comment_approved = '0'{$paginate}", ARRAY_A );
foreach ( (array) $moderation as $c ) {
$c['user_ip'] = $c['comment_author_IP'];
$c['user_agent'] = $c['comment_agent'];
$c['referrer'] = '';
$c['blog'] = get_bloginfo('url');
$c['blog_lang'] = get_locale();
$c['blog_charset'] = get_option('blog_charset');
$c['permalink'] = get_permalink($c['comment_post_ID']);
$c['user_role'] = '';
if ( isset( $c['user_ID'] ) )
$c['user_role'] = Akismet::get_user_roles($c['user_ID']);
if ( Akismet::is_test_mode() )
$c['is_test'] = 'true';
add_comment_meta( $c['comment_ID'], 'akismet_rechecking', true );
$response = Akismet::http_post( Akismet::build_query( $c ), 'comment-check' );
if ( 'true' == $response[1] ) {
wp_set_comment_status( $c['comment_ID'], 'spam' );
update_comment_meta( $c['comment_ID'], 'akismet_result', 'true' );
delete_comment_meta( $c['comment_ID'], 'akismet_error' );
delete_comment_meta( $c['comment_ID'], 'akismet_delayed_moderation_email' );
Akismet::update_comment_history( $c['comment_ID'], '', 'recheck-spam' );
} elseif ( 'false' == $response[1] ) {
update_comment_meta( $c['comment_ID'], 'akismet_result', 'false' );
delete_comment_meta( $c['comment_ID'], 'akismet_error' );
delete_comment_meta( $c['comment_ID'], 'akismet_delayed_moderation_email' );
Akismet::update_comment_history( $c['comment_ID'], '', 'recheck-ham' );
// abnormal result: error
} else {
update_comment_meta( $c['comment_ID'], 'akismet_result', 'error' );
Akismet::update_comment_history(
$c['comment_ID'],
'',
'recheck-error',
array( 'response' => substr( $response[1], 0, 50 ) )
);
}
delete_comment_meta( $c['comment_ID'], 'akismet_rechecking' );
}
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
wp_send_json( array(
'processed' => count((array) $moderation),
));
}
else {
$redirect_to = isset( $_SERVER['HTTP_REFERER'] ) ? $_SERVER['HTTP_REFERER'] : admin_url( 'edit-comments.php' );
wp_safe_redirect( $redirect_to );
exit;
}
}
// Adds an 'x' link next to author URLs, clicking will remove the author URL and show an undo link
public static function remove_comment_author_url() {
if ( !empty( $_POST['id'] ) && check_admin_referer( 'comment_author_url_nonce' ) ) {
$comment = get_comment( intval( $_POST['id'] ), ARRAY_A );
if ( $comment && current_user_can( 'edit_comment', $comment['comment_ID'] ) ) {
$comment['comment_author_url'] = '';
do_action( 'comment_remove_author_url' );
print( wp_update_comment( $comment ) );
die();
}
}
}
public static function add_comment_author_url() {
if ( !empty( $_POST['id'] ) && !empty( $_POST['url'] ) && check_admin_referer( 'comment_author_url_nonce' ) ) {
$comment = get_comment( intval( $_POST['id'] ), ARRAY_A );
if ( $comment && current_user_can( 'edit_comment', $comment['comment_ID'] ) ) {
$comment['comment_author_url'] = esc_url( $_POST['url'] );
do_action( 'comment_add_author_url' );
print( wp_update_comment( $comment ) );
die();
}
}
}
public static function comment_row_action( $a, $comment ) {
// failsafe for old WP versions
if ( !function_exists('add_comment_meta') )
return $a;
$akismet_result = get_comment_meta( $comment->comment_ID, 'akismet_result', true );
$akismet_error = get_comment_meta( $comment->comment_ID, 'akismet_error', true );
$user_result = get_comment_meta( $comment->comment_ID, 'akismet_user_result', true);
$comment_status = wp_get_comment_status( $comment->comment_ID );
$desc = null;
if ( $akismet_error ) {
$desc = __( 'Awaiting spam check' , 'akismet');
} elseif ( !$user_result || $user_result == $akismet_result ) {
// Show the original Akismet result if the user hasn't overridden it, or if their decision was the same
if ( $akismet_result == 'true' && $comment_status != 'spam' && $comment_status != 'trash' )
$desc = __( 'Flagged as spam by Akismet' , 'akismet');
elseif ( $akismet_result == 'false' && $comment_status == 'spam' )
$desc = __( 'Cleared by Akismet' , 'akismet');
} else {
$who = get_comment_meta( $comment->comment_ID, 'akismet_user', true );
if ( $user_result == 'true' )
$desc = sprintf( __('Flagged as spam by %s', 'akismet'), $who );
else
$desc = sprintf( __('Un-spammed by %s', 'akismet'), $who );
}
// add a History item to the hover links, just after Edit
if ( $akismet_result ) {
$b = array();
foreach ( $a as $k => $item ) {
$b[ $k ] = $item;
if (
$k == 'edit'
|| ( $k == 'unspam' && $GLOBALS['wp_version'] >= 3.4 )
) {
$b['history'] = '<a href="comment.php?action=editcomment&amp;c='.$comment->comment_ID.'#akismet-status" title="'. esc_attr__( 'View comment history' , 'akismet') . '"> '. esc_html__('History', 'akismet') . '</a>';
}
}
$a = $b;
}
if ( $desc )
echo '<span class="akismet-status" commentid="'.$comment->comment_ID.'"><a href="comment.php?action=editcomment&amp;c='.$comment->comment_ID.'#akismet-status" title="' . esc_attr__( 'View comment history' , 'akismet') . '">'.esc_html( $desc ).'</a></span>';
$show_user_comments = apply_filters( 'akismet_show_user_comments_approved', get_option('akismet_show_user_comments_approved') );
$show_user_comments = $show_user_comments === 'false' ? false : $show_user_comments; //option used to be saved as 'false' / 'true'
if ( $show_user_comments ) {
$comment_count = Akismet::get_user_comments_approved( $comment->user_id, $comment->comment_author_email, $comment->comment_author, $comment->comment_author_url );
$comment_count = intval( $comment_count );
echo '<span class="akismet-user-comment-count" commentid="'.$comment->comment_ID.'" style="display:none;"><br><span class="akismet-user-comment-counts">'. sprintf( esc_html( _n( '%s approved', '%s approved', $comment_count , 'akismet') ), number_format_i18n( $comment_count ) ) . '</span></span>';
}
return $a;
}
public static function comment_status_meta_box( $comment ) {
$history = Akismet::get_comment_history( $comment->comment_ID );
if ( $history ) {
echo '<div class="akismet-history" style="margin: 13px;">';
foreach ( $history as $row ) {
$time = date( 'D d M Y @ h:i:m a', $row['time'] ) . ' GMT';
$message = '';
if ( ! empty( $row['message'] ) ) {
// Old versions of Akismet stored the message as a literal string in the commentmeta.
// New versions don't do that for two reasons:
// 1) Save space.
// 2) The message can be translated into the current language of the blog, not stuck
// in the language of the blog when the comment was made.
$message = $row['message'];
}
// If possible, use a current translation.
switch ( $row['event'] ) {
case 'recheck-spam';
$message = __( 'Akismet re-checked and caught this comment as spam.', 'akismet' );
break;
case 'check-spam':
$message = __( 'Akismet caught this comment as spam.', 'akismet' );
break;
case 'recheck-ham':
$message = __( 'Akismet re-checked and cleared this comment.', 'akismet' );
break;
case 'check-ham':
$message = __( 'Akismet cleared this comment.', 'akismet' );
break;
case 'wp-blacklisted':
$message = __( 'Comment was caught by wp_blacklist_check.', 'akismet' );
break;
case 'report-spam':
if ( isset( $row['user'] ) ) {
$message = sprintf( __( '%s reported this comment as spam.', 'akismet' ), $row['user'] );
}
else if ( ! $message ) {
$message = __( 'This comment was reported as spam.', 'akismet' );
}
break;
case 'report-ham':
if ( isset( $row['user'] ) ) {
$message = sprintf( __( '%s reported this comment as not spam.', 'akismet' ), $row['user'] );
}
else if ( ! $message ) {
$message = __( 'This comment was reported as not spam.', 'akismet' );
}
break;
case 'cron-retry-spam':
$message = __( 'Akismet caught this comment as spam during an automatic retry.' , 'akismet');
break;
case 'cron-retry-ham':
$message = __( 'Akismet cleared this comment during an automatic retry.', 'akismet');
break;
case 'check-error':
if ( isset( $row['meta'], $row['meta']['response'] ) ) {
$message = sprintf( __( 'Akismet was unable to check this comment (response: %s) but will automatically retry later.', 'akismet'), $row['meta']['response'] );
}
break;
case 'recheck-error':
if ( isset( $row['meta'], $row['meta']['response'] ) ) {
$message = sprintf( __( 'Akismet was unable to recheck this comment (response: %s).', 'akismet'), $row['meta']['response'] );
}
break;
default:
if ( preg_match( '/^status-changed/', $row['event'] ) ) {
// Half of these used to be saved without the dash after 'status-changed'.
// See https://plugins.trac.wordpress.org/changeset/1150658/akismet/trunk
$new_status = preg_replace( '/^status-changed-?/', '', $row['event'] );
$message = sprintf( __( 'Comment status was changed to %s', 'akismet' ), $new_status );
}
else if ( preg_match( '/^status-/', $row['event'] ) ) {
$new_status = preg_replace( '/^status-/', '', $row['event'] );
if ( isset( $row['user'] ) ) {
$message = sprintf( __( '%1$s changed the comment status to %2$s.', 'akismet' ), $row['user'], $new_status );
}
}
break;
}
echo '<div style="margin-bottom: 13px;">';
echo '<span style="color: #999;" alt="' . $time . '" title="' . $time . '">' . sprintf( esc_html__('%s ago', 'akismet'), human_time_diff( $row['time'] ) ) . '</span>';
echo ' - ';
echo esc_html( $message );
echo '</div>';
}
echo '</div>';
}
}
public static function plugin_action_links( $links, $file ) {
if ( $file == plugin_basename( AKISMET__PLUGIN_URL . '/akismet.php' ) ) {
$links[] = '<a href="' . esc_url( self::get_page_url() ) . '">'.esc_html__( 'Settings' , 'akismet').'</a>';
}
return $links;
}
public static function text_add_link_callback( $m ) {
// bare link?
if ( $m[4] == $m[2] )
return '<a '.$m[1].' href="'.$m[2].'" '.$m[3].' class="comment-link">'.$m[4].'</a>';
else
return '<span title="'.$m[2].'" class="comment-link"><a '.$m[1].' href="'.$m[2].'" '.$m[3].' class="comment-link">'.$m[4].'</a></span>';
}
public static function text_add_link_class( $comment_text ) {
return preg_replace_callback( '#<a ([^>]*)href="([^"]+)"([^>]*)>(.*?)</a>#i', array( 'Akismet_Admin', 'text_add_link_callback' ), $comment_text );
}
// Total spam in queue
// get_option( 'akismet_spam_count' ) is the total caught ever
public static function get_spam_count( $type = false ) {
global $wpdb;
if ( !$type ) { // total
$count = wp_cache_get( 'akismet_spam_count', 'widget' );
if ( false === $count ) {
if ( function_exists('wp_count_comments') ) {
$count = wp_count_comments();
$count = $count->spam;
} else {
$count = (int) $wpdb->get_var("SELECT COUNT(comment_ID) FROM {$wpdb->comments} WHERE comment_approved = 'spam'");
}
wp_cache_set( 'akismet_spam_count', $count, 'widget', 3600 );
}
return $count;
} elseif ( 'comments' == $type || 'comment' == $type ) { // comments
$type = '';
}
return (int) $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(comment_ID) FROM {$wpdb->comments} WHERE comment_approved = 'spam' AND comment_type = %s", $type ) );
}
// Check connectivity between the WordPress blog and Akismet's servers.
// Returns an associative array of server IP addresses, where the key is the IP address, and value is true (available) or false (unable to connect).
public static function check_server_ip_connectivity() {
$servers = $ips = array();
// Some web hosts may disable this function
if ( function_exists('gethostbynamel') ) {
$ips = gethostbynamel( 'rest.akismet.com' );
if ( $ips && is_array($ips) && count($ips) ) {
$api_key = Akismet::get_api_key();
foreach ( $ips as $ip ) {
$response = Akismet::verify_key( $api_key, $ip );
// even if the key is invalid, at least we know we have connectivity
if ( $response == 'valid' || $response == 'invalid' )
$servers[$ip] = 'connected';
else
$servers[$ip] = $response ? $response : 'unable to connect';
}
}
}
return $servers;
}
// Simpler connectivity check
public static function check_server_connectivity($cache_timeout = 86400) {
$debug = array();
$debug[ 'PHP_VERSION' ] = PHP_VERSION;
$debug[ 'WORDPRESS_VERSION' ] = $GLOBALS['wp_version'];
$debug[ 'AKISMET_VERSION' ] = AKISMET_VERSION;
$debug[ 'AKISMET__PLUGIN_DIR' ] = AKISMET__PLUGIN_DIR;
$debug[ 'SITE_URL' ] = site_url();
$debug[ 'HOME_URL' ] = home_url();
$servers = get_option('akismet_available_servers');
if ( (time() - get_option('akismet_connectivity_time') < $cache_timeout) && $servers !== false ) {
$servers = self::check_server_ip_connectivity();
update_option('akismet_available_servers', $servers);
update_option('akismet_connectivity_time', time());
}
$response = wp_remote_get( 'http://rest.akismet.com/1.1/test' );
$debug[ 'gethostbynamel' ] = function_exists('gethostbynamel') ? 'exists' : 'not here';
$debug[ 'Servers' ] = $servers;
$debug[ 'Test Connection' ] = $response;
Akismet::log( $debug );
if ( $response && 'connected' == wp_remote_retrieve_body( $response ) )
return true;
return false;
}
// Check the server connectivity and store the available servers in an option.
public static function get_server_connectivity($cache_timeout = 86400) {
return self::check_server_connectivity( $cache_timeout );
}
public static function get_number_spam_waiting() {
global $wpdb;
return (int) $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->commentmeta} WHERE meta_key = 'akismet_error'" );
}
public static function get_page_url( $page = 'config' ) {
$args = array( 'page' => 'akismet-key-config' );
if ( $page == 'stats' )
$args = array( 'page' => 'akismet-key-config', 'view' => 'stats' );
elseif ( $page == 'delete_key' )
$args = array( 'page' => 'akismet-key-config', 'view' => 'start', 'action' => 'delete-key', '_wpnonce' => wp_create_nonce( self::NONCE ) );
$url = add_query_arg( $args, class_exists( 'Jetpack' ) ? admin_url( 'admin.php' ) : admin_url( 'options-general.php' ) );
return $url;
}
public static function get_akismet_user( $api_key ) {
$akismet_user = false;
$subscription_verification = Akismet::http_post( Akismet::build_query( array( 'key' => $api_key, 'blog' => get_bloginfo( 'url' ) ) ), 'get-subscription' );
if ( ! empty( $subscription_verification[1] ) ) {
if ( 'invalid' !== $subscription_verification[1] ) {
$akismet_user = json_decode( $subscription_verification[1] );
}
}
return $akismet_user;
}
public static function get_stats( $api_key ) {
$stat_totals = array();
foreach( array( '6-months', 'all' ) as $interval ) {
$response = Akismet::http_post( Akismet::build_query( array( 'blog' => get_bloginfo( 'url' ), 'key' => $api_key, 'from' => $interval ) ), 'get-stats' );
if ( ! empty( $response[1] ) ) {
$stat_totals[$interval] = json_decode( $response[1] );
}
}
return $stat_totals;
}
public static function verify_wpcom_key( $api_key, $user_id, $extra = array() ) {
$akismet_account = Akismet::http_post( Akismet::build_query( array_merge( array(
'user_id' => $user_id,
'api_key' => $api_key,
'get_account_type' => 'true'
), $extra ) ), 'verify-wpcom-key' );
if ( ! empty( $akismet_account[1] ) )
$akismet_account = json_decode( $akismet_account[1] );
Akismet::log( compact( 'akismet_account' ) );
return $akismet_account;
}
public static function connect_jetpack_user() {
if ( $jetpack_user = self::get_jetpack_user() ) {
if ( isset( $jetpack_user['user_id'] ) && isset( $jetpack_user['api_key'] ) ) {
$akismet_user = self::verify_wpcom_key( $jetpack_user['api_key'], $jetpack_user['user_id'], array( 'action' => 'connect_jetpack_user' ) );
if ( is_object( $akismet_user ) ) {
self::save_key( $akismet_user->api_key );
return in_array( $akismet_user->status, array( 'active', 'active-dunning', 'no-sub' ) );
}
}
}
return false;
}
public static function display_alert() {
Akismet::view( 'notice', array(
'type' => 'alert',
'code' => (int) get_option( 'akismet_alert_code' ),
'msg' => get_option( 'akismet_alert_msg' )
) );
}
public static function display_spam_check_warning() {
Akismet::fix_scheduled_recheck();
if ( wp_next_scheduled('akismet_schedule_cron_recheck') > time() && self::get_number_spam_waiting() > 0 ) {
$link_text = apply_filters( 'akismet_spam_check_warning_link_text', sprintf( __( 'Please check your <a href="%s">Akismet configuration</a> and contact your web host if problems persist.', 'akismet'), esc_url( self::get_page_url() ) ) );
Akismet::view( 'notice', array( 'type' => 'spam-check', 'link_text' => $link_text ) );
}
}
public static function display_invalid_version() {
Akismet::view( 'notice', array( 'type' => 'version' ) );
}
public static function display_api_key_warning() {
Akismet::view( 'notice', array( 'type' => 'plugin' ) );
}
public static function display_page() {
if ( !Akismet::get_api_key() || ( isset( $_GET['view'] ) && $_GET['view'] == 'start' ) )
self::display_start_page();
elseif ( isset( $_GET['view'] ) && $_GET['view'] == 'stats' )
self::display_stats_page();
else
self::display_configuration_page();
}
public static function display_start_page() {
if ( isset( $_GET['action'] ) ) {
if ( $_GET['action'] == 'delete-key' ) {
if ( isset( $_GET['_wpnonce'] ) && wp_verify_nonce( $_GET['_wpnonce'], self::NONCE ) )
delete_option( 'wordpress_api_key' );
}
}
if ( $api_key = Akismet::get_api_key() && ( empty( self::$notices['status'] ) || 'existing-key-invalid' != self::$notices['status'] ) ) {
self::display_configuration_page();
return;
}
//the user can choose to auto connect their API key by clicking a button on the akismet done page
//if jetpack, get verified api key by using connected wpcom user id
//if no jetpack, get verified api key by using an akismet token
$akismet_user = false;
if ( isset( $_GET['token'] ) && preg_match('/^(\d+)-[0-9a-f]{20}$/', $_GET['token'] ) )
$akismet_user = self::verify_wpcom_key( '', '', array( 'token' => $_GET['token'] ) );
elseif ( $jetpack_user = self::get_jetpack_user() )
$akismet_user = self::verify_wpcom_key( $jetpack_user['api_key'], $jetpack_user['user_id'] );
if ( isset( $_GET['action'] ) ) {
if ( $_GET['action'] == 'save-key' ) {
if ( is_object( $akismet_user ) ) {
self::save_key( $akismet_user->api_key );
self::display_notice();
self::display_configuration_page();
return;
}
}
}
echo '<h2 class="ak-header">'.esc_html__('Akismet', 'akismet').'</h2>';
self::display_status();
Akismet::view( 'start', compact( 'akismet_user' ) );
}
public static function display_stats_page() {
Akismet::view( 'stats' );
}
public static function display_configuration_page() {
$api_key = Akismet::get_api_key();
$akismet_user = self::get_akismet_user( $api_key );
if ( ! $akismet_user ) {
// This could happen if the user's key became invalid after it was previously valid and successfully set up.
self::$notices['status'] = 'existing-key-invalid';
self::display_start_page();
return;
}
$stat_totals = self::get_stats( $api_key );
// If unset, create the new strictness option using the old discard option to determine its default
if ( get_option( 'akismet_strictness' ) === false )
add_option( 'akismet_strictness', (get_option('akismet_discard_month') === 'true' ? '1' : '0') );
if ( empty( self::$notices ) ) {
//show status
if ( ! empty( $stat_totals['all'] ) && isset( $stat_totals['all']->time_saved ) && $akismet_user->status == 'active' && $akismet_user->account_type == 'free-api-key' ) {
$time_saved = false;
if ( $stat_totals['all']->time_saved > 1800 ) {
$total_in_minutes = round( $stat_totals['all']->time_saved / 60 );
$total_in_hours = round( $total_in_minutes / 60 );
$total_in_days = round( $total_in_hours / 8 );
$cleaning_up = __( 'Cleaning up spam takes time.' , 'akismet');
if ( $total_in_days > 1 )
$time_saved = $cleaning_up . ' ' . sprintf( __( 'Akismet has saved you %s days!' , 'akismet'), number_format_i18n( $total_in_days ) );
elseif ( $total_in_hours > 1 )
$time_saved = $cleaning_up . ' ' . sprintf( __( 'Akismet has saved you %d hours!' , 'akismet'), $total_in_hours );
elseif ( $total_in_minutes >= 30 )
$time_saved = $cleaning_up . ' ' . sprintf( __( 'Akismet has saved you %d minutes!' , 'akismet'), $total_in_minutes );
}
Akismet::view( 'notice', array( 'type' => 'active-notice', 'time_saved' => $time_saved ) );
}
if ( !empty( $akismet_user->limit_reached ) && in_array( $akismet_user->limit_reached, array( 'yellow', 'red' ) ) ) {
Akismet::view( 'notice', array( 'type' => 'limit-reached', 'level' => $akismet_user->limit_reached ) );
}
}
if ( !isset( self::$notices['status'] ) && in_array( $akismet_user->status, array( 'cancelled', 'suspended', 'missing', 'no-sub' ) ) )
Akismet::view( 'notice', array( 'type' => $akismet_user->status ) );
Akismet::log( compact( 'stat_totals', 'akismet_user' ) );
Akismet::view( 'config', compact( 'api_key', 'akismet_user', 'stat_totals' ) );
}
public static function display_notice() {
global $hook_suffix;
if ( in_array( $hook_suffix, array( 'jetpack_page_akismet-key-config', 'settings_page_akismet-key-config', 'edit-comments.php' ) ) && (int) get_option( 'akismet_alert_code' ) > 0 ) {
Akismet::verify_key( Akismet::get_api_key() ); //verify that the key is still in alert state
if ( get_option( 'akismet_alert_code' ) > 0 )
self::display_alert();
}
elseif ( $hook_suffix == 'plugins.php' && !Akismet::get_api_key() ) {
self::display_api_key_warning();
}
elseif ( $hook_suffix == 'edit-comments.php' && wp_next_scheduled( 'akismet_schedule_cron_recheck' ) ) {
self::display_spam_check_warning();
}
elseif ( in_array( $hook_suffix, array( 'jetpack_page_akismet-key-config', 'settings_page_akismet-key-config' ) ) && Akismet::get_api_key() ) {
self::display_status();
}
}
public static function display_status() {
$type = '';
if ( !self::get_server_connectivity() )
$type = 'servers-be-down';
if ( !empty( $type ) )
Akismet::view( 'notice', compact( 'type' ) );
elseif ( !empty( self::$notices ) ) {
foreach ( self::$notices as $type )
Akismet::view( 'notice', compact( 'type' ) );
}
}
private static function get_jetpack_user() {
if ( !class_exists('Jetpack') )
return false;
Jetpack::load_xml_rpc_client();
$xml = new Jetpack_IXR_ClientMulticall( array( 'user_id' => get_current_user_id() ) );
$xml->addCall( 'wpcom.getUserID' );
$xml->addCall( 'akismet.getAPIKey' );
$xml->query();
Akismet::log( compact( 'xml' ) );
if ( !$xml->isError() ) {
$responses = $xml->getResponse();
if ( count( $responses ) > 1 ) {
$api_key = array_shift( $responses[0] );
$user_id = (int) array_shift( $responses[1] );
return compact( 'api_key', 'user_id' );
}
}
return false;
}
/**
* Some commentmeta isn't useful in an export file. Suppress it (when supported).
*
* @param bool $exclude
* @param string $key The meta key
* @param object $meta The meta object
* @return bool Whether to exclude this meta entry from the export.
*/
public static function exclude_commentmeta_from_export( $exclude, $key, $meta ) {
if ( in_array( $key, array( 'akismet_as_submitted', 'akismet_rechecking', 'akismet_delayed_moderation_email' ) ) ) {
return true;
}
return $exclude;
}
}

View File

@@ -0,0 +1,110 @@
<?php
/**
* @package Akismet
*/
class Akismet_Widget extends WP_Widget {
function __construct() {
load_plugin_textdomain( 'akismet' );
parent::__construct(
'akismet_widget',
__( 'Akismet Widget' , 'akismet'),
array( 'description' => __( 'Display the number of spam comments Akismet has caught' , 'akismet') )
);
if ( is_active_widget( false, false, $this->id_base ) ) {
add_action( 'wp_head', array( $this, 'css' ) );
}
}
function css() {
?>
<style type="text/css">
.a-stats {
width: auto;
}
.a-stats a {
background: #7CA821;
background-image:-moz-linear-gradient(0% 100% 90deg,#5F8E14,#7CA821);
background-image:-webkit-gradient(linear,0% 0,0% 100%,from(#7CA821),to(#5F8E14));
border: 1px solid #5F8E14;
border-radius:3px;
color: #CFEA93;
cursor: pointer;
display: block;
font-weight: normal;
height: 100%;
-moz-border-radius:3px;
padding: 7px 0 8px;
text-align: center;
text-decoration: none;
-webkit-border-radius:3px;
width: 100%;
}
.a-stats a:hover {
text-decoration: none;
background-image:-moz-linear-gradient(0% 100% 90deg,#6F9C1B,#659417);
background-image:-webkit-gradient(linear,0% 0,0% 100%,from(#659417),to(#6F9C1B));
}
.a-stats .count {
color: #FFF;
display: block;
font-size: 15px;
line-height: 16px;
padding: 0 13px;
white-space: nowrap;
}
</style>
<?php
}
function form( $instance ) {
if ( $instance ) {
$title = $instance['title'];
}
else {
$title = __( 'Spam Blocked' , 'akismet');
}
?>
<p>
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title:' , 'akismet'); ?></label>
<input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
</p>
<?php
}
function update( $new_instance, $old_instance ) {
$instance['title'] = strip_tags( $new_instance['title'] );
return $instance;
}
function widget( $args, $instance ) {
$count = get_option( 'akismet_spam_count' );
echo $args['before_widget'];
if ( ! empty( $instance['title'] ) ) {
echo $args['before_title'];
echo esc_html( $instance['title'] );
echo $args['after_title'];
}
?>
<div class="a-stats">
<a href="http://akismet.com" target="_blank" title=""><?php printf( _n( '<strong class="count">%1$s spam</strong> blocked by <strong>Akismet</strong>', '<strong class="count">%1$s spam</strong> blocked by <strong>Akismet</strong>', $count , 'akismet'), number_format_i18n( $count ) ); ?></a>
</div>
<?php
echo $args['after_widget'];
}
}
function akismet_register_widgets() {
register_widget( 'Akismet_Widget' );
}
add_action( 'widgets_init', 'akismet_register_widgets' );

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,2 @@
<?php
# Silence is golden.

View File

@@ -0,0 +1,289 @@
=== Akismet ===
Contributors: matt, ryan, andy, mdawaffe, tellyworth, josephscott, lessbloat, eoigal, cfinke, automattic, jgs
Tags: akismet, comments, spam, antispam, anti-spam, anti spam, comment moderation, comment spam, contact form spam, spam comments
Requires at least: 3.2
Tested up to: 4.3
Stable tag: 3.1.4
License: GPLv2 or later
Akismet checks your comments against the Akismet Web service to see if they look like spam or not.
== Description ==
Akismet checks your comments against the Akismet Web service to see if they look like spam or not and lets you review the spam it catches under your blog's "Comments" admin screen.
Major features in Akismet include:
* Automatically checks all comments and filters out the ones that look like spam.
* Each comment has a status history, so you can easily see which comments were caught or cleared by Akismet and which were spammed or unspammed by a moderator.
* URLs are shown in the comment body to reveal hidden or misleading links.
* Moderators can see the number of approved comments for each user.
* A discard feature that outright blocks the worst spam, saving you disk space and speeding up your site.
PS: You'll need an [Akismet.com API key](http://akismet.com/get/) to use it. Keys are free for personal blogs; paid subscriptions are available for businesses and commercial sites.
== Installation ==
Upload the Akismet plugin to your blog, Activate it, then enter your [Akismet.com API key](http://akismet.com/get/).
1, 2, 3: You're done!
== Changelog ==
= 3.1.4 =
*Release Date - 24 September 2015*
* Fixed a bug that was preventing some users from automatically connecting using Jetpack if they didn't have a current Akismet subscription.
* Fixed a bug that could cause comments caught as spam to be placed in the Pending queue.
* Error messages and instructions have been simplified to be more understandable.
* Link previews are enabled for all links inside comments, not just the author's website link.
= 3.1.3 =
*Release Date - 6 July 2015*
* Notify users when their account status changes after previously being successfully set up. This should help any users who are seeing blank Akismet settings screens.
= 3.1.2 =
*Release Date - 7 June 2015*
* Reduced the amount of space Akismet uses in the commentmeta table.
* Fixed a bug where some comments with quotes in the author name weren't getting history entries
* Pre-emptive security improvements to ensure that the Akismet plugin can't be used by attackers to compromise a WordPress installation.
* Better UI for the key entry field: allow whitespace to be included at the beginning or end of the key and strip it out automatically when the form is submitted.
* When deactivating the plugin, notify the Akismet API so the site can be marked as inactive.
* Clearer error messages.
= 3.1.1 =
*Release Date - 17th March, 2015*
* Improvements to the "Remove comment author URL" JavaScript
* Include the pingback pre-check from the 2.6 branch.
= 3.1 =
*Release Date - 11th March, 2015*
* Use HTTPS by default for all requests to Akismet.
* Fix for a situation where Akismet might strip HTML from a comment.
= 3.0.4 =
*Release Date - 11th December, 2014*
* Fix to make .htaccess compatible with Apache 2.4.
* Fix to allow removal of https author URLs.
* Fix to avoid stripping part of the author URL when removing and re-adding.
* Removed the "Check for Spam" button from the "Trash" and "Approved" queues, where it would have no effect.
* Allow automatic API key configuration when Jetpack is installed and connected to a WordPress.com account
= 3.0.3 =
*Release Date - 3rd November, 2014*
* Fix for sending the wrong data to delete_comment action that could have prevented old spam comments from being deleted.
* Added a filter to disable logging of Akismet debugging information.
* Added a filter for the maximum comment age when deleting old spam comments.
* Added a filter for the number per batch when deleting old spam comments.
* Removed the "Check for Spam" button from the Spam folder.
= 3.0.2 =
*Release Date - 18th August, 2014*
* Performance improvements.
* Fixed a bug that could truncate the comment data being sent to Akismet for checking.
= 3.0.1 =
*Release Date - 9th July, 2014*
* Removed dependency on PHP's fsockopen function
* Fix spam/ham reports to work when reported outside of the WP dashboard, e.g., from Notifications or the WP app
* Remove jQuery dependency for comment form JavaScript
* Remove unnecessary data from some Akismet comment meta
* Suspended keys will now result in all comments being put in moderation, not spam.
= 3.0.0 =
*Release Date - 15th April, 2014*
* Move Akismet to Settings menu
* Drop Akismet Stats menu
* Add stats snapshot to Akismet settings
* Add Akismet subscription details and status to Akismet settings
* Add contextual help for each page
* Improve Akismet setup to use Jetpack to automate plugin setup
* Fix "Check for Spam" to use AJAX to avoid page timing out
* Fix Akismet settings page to be responsive
* Drop legacy code
* Tidy up CSS and Javascript
* Replace the old discard setting with a new "discard pervasive spam" feature.
= 2.6.0 =
*Release Date - 18th March, 2014*
* Add ajax paging to the check for spam button to handle large volumes of comments
* Optimize javascript and add localization support
* Fix bug in link to spam comments from right now dashboard widget
* Fix bug with deleting old comments to avoid timeouts dealing with large volumes of comments
* Include X-Pingback-Forwarded-For header in outbound WordPress pingback verifications
* Add pre-check for pingbacks, to stop spam before an outbound verification request is made
= 2.5.9 =
*Release Date - 1st August, 2013*
* Update 'Already have a key' link to redirect page rather than depend on javascript
* Fix some non-translatable strings to be translatable
* Update Activation banner in plugins page to redirect user to Akismet config page
= 2.5.8 =
*Release Date - 20th January, 2013*
* Simplify the activation process for new users
* Remove the reporter_ip parameter
* Minor preventative security improvements
= 2.5.7 =
*Release Date - 13th December, 2012*
* FireFox Stats iframe preview bug
* Fix mshots preview when using https
* Add .htaccess to block direct access to files
* Prevent some PHP notices
* Fix Check For Spam return location when referrer is empty
* Fix Settings links for network admins
* Fix prepare() warnings in WP 3.5
= 2.5.6 =
*Release Date - 26th April, 2012*
* Prevent retry scheduling problems on sites where wp_cron is misbehaving
* Preload mshot previews
* Modernize the widget code
* Fix a bug where comments were not held for moderation during an error condition
* Improve the UX and display when comments are temporarily held due to an error
* Make the Check For Spam button force a retry when comments are held due to an error
* Handle errors caused by an invalid key
* Don't retry comments that are too old
* Improve error messages when verifying an API key
= 2.5.5 =
*Release Date - 11th January, 2012*
* Add nonce check for comment author URL remove action
* Fix the settings link
= 2.5.4 =
*Release Date - 5th January, 2012*
* Limit Akismet CSS and Javascript loading in wp-admin to just the pages that need it
* Added author URL quick removal functionality
* Added mShot preview on Author URL hover
* Added empty index.php to prevent directory listing
* Move wp-admin menu items under Jetpack, if it is installed
* Purge old Akismet comment meta data, default of 15 days
= 2.5.3 =
*Release Date - 8th Febuary, 2011*
* Specify the license is GPL v2 or later
* Fix a bug that could result in orphaned commentmeta entries
* Include hotfix for WordPress 3.0.5 filter issue
= 2.5.2 =
*Release Date - 14th January, 2011*
* Properly format the comment count for author counts
* Look for super admins on multisite installs when looking up user roles
* Increase the HTTP request timeout
* Removed padding for author approved count
* Fix typo in function name
* Set Akismet stats iframe height to fixed 2500px. Better to have one tall scroll bar than two side by side.
= 2.5.1 =
*Release Date - 17th December, 2010*
* Fix a bug that caused the "Auto delete" option to fail to discard comments correctly
* Remove the comment nonce form field from the 'Akismet Configuration' page in favor of using a filter, akismet_comment_nonce
* Fixed padding bug in "author" column of posts screen
* Added margin-top to "cleared by ..." badges on dashboard
* Fix possible error when calling akismet_cron_recheck()
* Fix more PHP warnings
* Clean up XHTML warnings for comment nonce
* Fix for possible condition where scheduled comment re-checks could get stuck
* Clean up the comment meta details after deleting a comment
* Only show the status badge if the comment status has been changed by someone/something other than Akismet
* Show a 'History' link in the row-actions
* Translation fixes
* Reduced font-size on author name
* Moved "flagged by..." notification to top right corner of comment container and removed heavy styling
* Hid "flagged by..." notification while on dashboard
= 2.5.0 =
*Release Date - 7th December, 2010*
* Track comment actions under 'Akismet Status' on the edit comment screen
* Fix a few remaining deprecated function calls ( props Mike Glendinning )
* Use HTTPS for the stats IFRAME when wp-admin is using HTTPS
* Use the WordPress HTTP class if available
* Move the admin UI code to a separate file, only loaded when needed
* Add cron retry feature, to replace the old connectivity check
* Display Akismet status badge beside each comment
* Record history for each comment, and display it on the edit page
* Record the complete comment as originally submitted in comment_meta, to use when reporting spam and ham
* Highlight links in comment content
* New option, "Show the number of comments you've approved beside each comment author."
* New option, "Use a nonce on the comment form."
= 2.4.0 =
*Release Date - 23rd August, 2010*
* Spell out that the license is GPLv2
* Fix PHP warnings
* Fix WordPress deprecated function calls
* Fire the delete_comment action when deleting comments
* Move code specific for older WP versions to legacy.php
* General code clean up
= 2.3.0 =
*Release Date - 5th June, 2010*
* Fix "Are you sure" nonce message on config screen in WPMU
* Fix XHTML compliance issue in sidebar widget
* Change author link; remove some old references to WordPress.com accounts
* Localize the widget title (core ticket #13879)
= 2.2.9 =
*Release Date - 2nd June, 2010*
* Eliminate a potential conflict with some plugins that may cause spurious reports
= 2.2.8 =
*Release Date - 27th May, 2010*
* Fix bug in initial comment check for ipv6 addresses
* Report comments as ham when they are moved from spam to moderation
* Report comments as ham when clicking undo after spam
* Use transition_comment_status action when available instead of older actions for spam/ham submissions
* Better diagnostic messages when PHP network functions are unavailable
* Better handling of comments by logged-in users
= 2.2.7 =
*Release Date - 17th December, 2009*
* Add a new AKISMET_VERSION constant
* Reduce the possibility of over-counting spam when another spam filter plugin is in use
* Disable the connectivity check when the API key is hard-coded for WPMU
= 2.2.6 =
*Release Date - 20th July, 2009*
* Fix a global warning introduced in 2.2.5
* Add changelog and additional readme.txt tags
* Fix an array conversion warning in some versions of PHP
* Support a new WPCOM_API_KEY constant for easier use with WordPress MU
= 2.2.5 =
*Release Date - 13th July, 2009*
* Include a new Server Connectivity diagnostic check, to detect problems caused by firewalls
= 2.2.4 =
*Release Date - 3rd June, 2009*
* Fixed a key problem affecting the stats feature in WordPress MU
* Provide additional blog information in Akismet API calls

View File

@@ -0,0 +1,220 @@
<div class="wrap">
<h2><?php esc_html_e( 'Akismet' , 'akismet');?></h2>
<div class="have-key">
<?php if ( $stat_totals && isset( $stat_totals['all'] ) && (int) $stat_totals['all']->spam > 0 ) : ?>
<div class="new-snapshot stats">
<span style="float:right;margin:10px 15px -5px 0px">
<a href="<?php echo esc_url( Akismet_Admin::get_page_url( 'stats' ) ); ?>" class=""><?php esc_html_e( 'Summaries' , 'akismet');?></a>
</span>
<iframe allowtransparency="true" scrolling="no" frameborder="0" style="width: 100%; height: 215px; overflow: hidden;" src="<?php printf( '//akismet.com/web/1.0/snapshot.php?blog=%s&api_key=%s&height=180&locale=%s', urlencode( get_bloginfo('url') ), Akismet::get_api_key(), get_locale() );?>"></iframe>
<ul>
<li>
<h3><?php esc_html_e( 'Past six months' , 'akismet');?></h3>
<span><?php echo number_format( $stat_totals['6-months']->spam );?></span>
<?php esc_html_e( 'Spam blocked' , 'akismet');?>
</li>
<li>
<h3><?php esc_html_e( 'All time' , 'akismet');?></h3>
<span><?php echo number_format( $stat_totals['all']->spam );?></span>
<?php esc_html_e( 'Spam blocked' , 'akismet');?>
</li>
<li>
<h3><?php esc_html_e( 'Accuracy' , 'akismet');?></h3>
<span><?php echo $stat_totals['all']->accuracy; ?>%</span>
<?php printf(
esc_html(
_n( '%s missed spam, %s false positive', '%s missed spam, %s false positives', $stat_totals['all']->false_positives , 'akismet')
),
number_format( $stat_totals['all']->missed_spam ),
number_format( $stat_totals['all']->false_positives )
); ?>
</li>
</ul>
<div class="clearfix"></div>
</div>
<?php endif;?>
<?php if ( $akismet_user ):?>
<div id="wpcom-stats-meta-box-container" class="metabox-holder"><?php
wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
?>
<script type="text/javascript">
jQuery(document).ready( function($) {
jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed');
if(typeof postboxes !== 'undefined')
postboxes.add_postbox_toggles( 'plugins_page_akismet-key-config' );
});
</script>
<div class="postbox-container" style="width: 55%;margin-right: 10px;">
<div id="normal-sortables" class="meta-box-sortables ui-sortable">
<div id="referrers" class="postbox ">
<div class="handlediv" title="Click to toggle"><br></div>
<h3 class="hndle"><span><?php esc_html_e( 'Settings' , 'akismet');?></span></h3>
<form name="akismet_conf" id="akismet-conf" action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="POST">
<div class="inside">
<table cellspacing="0" class="akismet-settings">
<tbody>
<?php if ( !defined( 'WPCOM_API_KEY' ) ):?>
<tr>
<th class="akismet-api-key" width="10%" align="left" scope="row"><?php esc_html_e('API Key', 'akismet');?></th>
<td width="5%"/>
<td align="left">
<span class="api-key"><input id="key" name="key" type="text" size="15" value="<?php echo esc_attr( get_option('wordpress_api_key') ); ?>" class="regular-text code <?php echo $akismet_user->status;?>"></span>
</td>
</tr>
<?php endif; ?>
<?php if ( isset( $_GET['ssl_status'] ) ) { ?>
<tr>
<th align="left" scope="row"><?php esc_html_e( 'SSL Status', 'akismet' ); ?></th>
<td></td>
<td align="left">
<p>
<?php
if ( ! function_exists( 'wp_http_supports' ) ) {
?><b><?php esc_html_e( 'Disabled.', 'akismet' ); ?></b> <?php printf( esc_html( 'Your WordPress installation does not include the function %s; upgrade to the latest version of WordPress.', 'akismet' ), '<code>wp_http_supports</code>' ); ?><?php
}
else if ( ! wp_http_supports( array( 'ssl' ) ) ) {
?><b><?php esc_html_e( 'Disabled.', 'akismet' ); ?></b> <?php esc_html_e( 'Your Web server cannot make SSL requests; contact your Web host and ask them to add support for SSL requests.', 'akismet' ); ?><?php
}
else {
$ssl_disabled = get_option( 'akismet_ssl_disabled' );
if ( $ssl_disabled ) {
?><b><?php esc_html_e( 'Temporarily disabled.', 'akismet' ); ?></b> <?php esc_html_e( 'Akismet encountered a problem with a previous SSL request and disabled it temporarily. It will begin using SSL for requests again shortly.', 'akismet' ); ?><?php
}
else {
?><b><?php esc_html_e( 'Enabled.', 'akismet' ); ?></b> <?php esc_html_e( 'All systems functional.', 'akismet' ); ?><?php
}
}
?>
</p>
</td>
</tr>
<?php } ?>
<tr>
<th align="left" scope="row"><?php esc_html_e('Comments', 'akismet');?></th>
<td></td>
<td align="left">
<p>
<label for="akismet_show_user_comments_approved" title="<?php esc_attr_e( 'Show approved comments' , 'akismet'); ?>"><input name="akismet_show_user_comments_approved" id="akismet_show_user_comments_approved" value="1" type="checkbox" <?php checked('1', get_option('akismet_show_user_comments_approved')); ?>> <?php esc_html_e('Show the number of approved comments beside each comment author', 'akismet'); ?></label>
</p>
</td>
</tr>
<tr>
<th class="strictness" align="left" scope="row"><?php esc_html_e('Strictness', 'akismet'); ?></th>
<td></td>
<td align="left">
<fieldset><legend class="screen-reader-text"><span><?php esc_html_e('Akismet anti-spam strictness', 'akismet'); ?></span></legend>
<p><label for="akismet_strictness_1"><input type="radio" name="akismet_strictness" id="akismet_strictness_1" value="1" <?php checked('1', get_option('akismet_strictness')); ?> /> <?php esc_html_e('Silently discard the worst and most pervasive spam so I never see it.', 'akismet'); ?></label></p>
<p><label for="akismet_strictness_0"><input type="radio" name="akismet_strictness" id="akismet_strictness_0" value="0" <?php checked('0', get_option('akismet_strictness')); ?> /> <?php esc_html_e('Always put spam in the Spam folder for review.', 'akismet'); ?></label></p>
</fieldset>
<span class="note"><strong><?php esc_html_e('Note:', 'akismet');?></strong>
<?php
$delete_interval = max( 1, intval( apply_filters( 'akismet_delete_comment_interval', 15 ) ) );
printf(
_n(
'Spam in the <a href="%1$s">spam folder</a> older than 1 day is deleted automatically.',
'Spam in the <a href="%1$s">spam folder</a> older than %2$d days is deleted automatically.',
$delete_interval,
'akismet'
),
admin_url( 'edit-comments.php?comment_status=spam' ),
$delete_interval
);
?>
</td>
</tr>
</tbody>
</table>
</div>
<div id="major-publishing-actions">
<?php if ( !defined( 'WPCOM_API_KEY' ) ):?>
<div id="delete-action">
<a class="submitdelete deletion" href="<?php echo esc_url( Akismet_Admin::get_page_url( 'delete_key' ) ); ?>"><?php esc_html_e('Disconnect this account', 'akismet'); ?></a>
</div>
<?php endif; ?>
<?php wp_nonce_field(Akismet_Admin::NONCE) ?>
<div id="publishing-action">
<input type="hidden" name="action" value="enter-key">
<input type="submit" name="submit" id="submit" class="button button-primary" value="<?php esc_attr_e('Save Changes', 'akismet');?>">
</div>
<div class="clear"></div>
</div>
</form>
</div>
</div>
</div>
<div class="postbox-container" style="width:44%;">
<div id="normal-sortables" class="meta-box-sortables ui-sortable">
<div id="referrers" class="postbox ">
<div class="handlediv" title="Click to toggle"><br></div>
<h3 class="hndle"><span><?php esc_html_e( 'Account' , 'akismet');?></span></h3>
<div class="inside">
<table cellspacing="0">
<tbody>
<tr>
<th scope="row" align="left"><?php esc_html_e( 'Subscription Type' , 'akismet');?></th>
<td width="5%"/>
<td align="left">
<span><?php echo $akismet_user->account_name; ?></span>
</td>
</tr>
<tr>
<th scope="row" align="left"><?php esc_html_e( 'Status' , 'akismet');?></th>
<td width="5%"/>
<td align="left">
<span><?php
if ( 'cancelled' == $akismet_user->status ) :
esc_html_e( 'Cancelled', 'akismet' );
elseif ( 'suspended' == $akismet_user->status ) :
esc_html_e( 'Suspended', 'akismet' );
elseif ( 'missing' == $akismet_user->status ) :
esc_html_e( 'Missing', 'akismet' );
elseif ( 'no-sub' == $akismet_user->status ) :
esc_html_e( 'No Subscription Found', 'akismet' );
else :
esc_html_e( 'Active', 'akismet' );
endif; ?></span>
</td>
</tr>
<?php if ( $akismet_user->next_billing_date ) : ?>
<tr>
<th scope="row" align="left"><?php esc_html_e( 'Next Billing Date' , 'akismet');?></th>
<td width="5%"/>
<td align="left">
<span><?php echo date( 'F j, Y', $akismet_user->next_billing_date ); ?></span>
</td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
<div id="major-publishing-actions">
<div id="publishing-action">
<?php Akismet::view( 'get', array( 'text' => ( $akismet_user->account_type == 'free-api-key' && $akismet_user->status == 'active' ? __( 'Upgrade' , 'akismet') : __( 'Change' , 'akismet') ), 'redirect' => 'upgrade' ) ); ?>
</div>
<div class="clear"></div>
</div>
</div>
</div>
</div>
</div>
<?php endif;?>
</div>
</div>

View File

@@ -0,0 +1,6 @@
<form name="akismet_activate" action="https://akismet.com/get/" method="POST" target="_blank">
<input type="hidden" name="passback_url" value="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>"/>
<input type="hidden" name="blog" value="<?php echo esc_url( get_bloginfo('url') ); ?>"/>
<input type="hidden" name="redirect" value="<?php echo isset( $redirect ) ? $redirect : 'plugin-signup'; ?>"/>
<input type="submit" class="<?php echo isset( $classes ) && count( $classes ) > 0 ? implode( ' ', $classes ) : 'button button-primary';?>" value="<?php echo esc_attr( $text ); ?>"/>
</form>

View File

@@ -0,0 +1,119 @@
<?php if ( $type == 'plugin' ) :?>
<div class="updated" style="padding: 0; margin: 0; border: none; background: none;">
<style type="text/css">
.akismet_activate{min-width:825px;border:1px solid #4F800D;padding:5px;margin:15px 0;background:#83AF24;background-image:-webkit-gradient(linear,0% 0,80% 100%,from(#83AF24),to(#4F800D));background-image:-moz-linear-gradient(80% 100% 120deg,#4F800D,#83AF24);-moz-border-radius:3px;border-radius:3px;-webkit-border-radius:3px;position:relative;overflow:hidden}.akismet_activate .aa_a{position:absolute;top:-5px;right:10px;font-size:140px;color:#769F33;font-family:Georgia, "Times New Roman", Times, serif;z-index:1}.akismet_activate .aa_button{font-weight:bold;border:1px solid #029DD6;border-top:1px solid #06B9FD;font-size:15px;text-align:center;padding:9px 0 8px 0;color:#FFF;background:#029DD6;background-image:-webkit-gradient(linear,0% 0,0% 100%,from(#029DD6),to(#0079B1));background-image:-moz-linear-gradient(0% 100% 90deg,#0079B1,#029DD6);-moz-border-radius:2px;border-radius:2px;-webkit-border-radius:2px}.akismet_activate .aa_button:hover{text-decoration:none !important;border:1px solid #029DD6;border-bottom:1px solid #00A8EF;font-size:15px;text-align:center;padding:9px 0 8px 0;color:#F0F8FB;background:#0079B1;background-image:-webkit-gradient(linear,0% 0,0% 100%,from(#0079B1),to(#0092BF));background-image:-moz-linear-gradient(0% 100% 90deg,#0092BF,#0079B1);-moz-border-radius:2px;border-radius:2px;-webkit-border-radius:2px}.akismet_activate .aa_button_border{border:1px solid #006699;-moz-border-radius:2px;border-radius:2px;-webkit-border-radius:2px;background:#029DD6;background-image:-webkit-gradient(linear,0% 0,0% 100%,from(#029DD6),to(#0079B1));background-image:-moz-linear-gradient(0% 100% 90deg,#0079B1,#029DD6)}.akismet_activate .aa_button_container{cursor:pointer;display:inline-block;background:#DEF1B8;padding:5px;-moz-border-radius:2px;border-radius:2px;-webkit-border-radius:2px;width:266px}.akismet_activate .aa_description{position:absolute;top:22px;left:285px;margin-left:25px;color:#E5F2B1;font-size:15px;z-index:1000}.akismet_activate .aa_description strong{color:#FFF;font-weight:normal}
</style>
<form name="akismet_activate" action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="POST">
<div class="akismet_activate">
<div class="aa_a">A</div>
<div class="aa_button_container" onclick="document.akismet_activate.submit();">
<div class="aa_button_border">
<div class="aa_button"><?php esc_html_e('Activate your Akismet account', 'akismet');?></div>
</div>
</div>
<div class="aa_description"><?php _e('<strong>Almost done</strong> - activate Akismet and say goodbye to spam', 'akismet');?></div>
</div>
</form>
</div>
<?php elseif ( $type == 'spam-check' ) :?>
<div id="akismet-warning" class="updated fade">
<p><strong><?php esc_html_e( 'Akismet has detected a problem.', 'akismet' );?></strong></p>
<p><?php printf( __( 'Some comments have not yet been checked for spam by Akismet. They have been temporarily held for moderation and will automatically be rechecked later.', 'akismet' ) ); ?></p>
<?php if ( $link_text ) { ?>
<p><?php echo $link_text; ?></p>
<?php } ?>
</div>
<?php elseif ( $type == 'version' ) :?>
<div id="akismet-warning" class="updated fade"><p><strong><?php printf( esc_html__('Akismet %s requires WordPress 3.0 or higher.', 'akismet'), AKISMET_VERSION);?></strong> <?php printf(__('Please <a href="%1$s">upgrade WordPress</a> to a current version, or <a href="%2$s">downgrade to version 2.4 of the Akismet plugin</a>.', 'akismet'), 'https://codex.wordpress.org/Upgrading_WordPress', 'https://wordpress.org/extend/plugins/akismet/download/');?></p></div>
<?php elseif ( $type == 'alert' ) :?>
<div class='error'>
<p><strong><?php printf( esc_html__( 'Akismet Error Code: %s', 'akismet' ), $code ); ?></strong></p>
<p><?php echo esc_html( $msg ); ?></p>
<p><?php
/* translators: the placeholder is a clickable URL that leads to more information regarding an error code. */
printf( esc_html__( 'For more information: %s' , 'akismet'), '<a href="https://akismet.com/errors/' . $code . '">https://akismet.com/errors/' . $code . '</a>' );
?>
</p>
</div>
<?php elseif ( $type == 'missing-functions' ) :?>
<div class="wrap alert critical">
<h3 class="key-status failed"><?php esc_html_e('Network functions are disabled.', 'akismet'); ?></h3>
<p class="description"><?php printf( __('Your web host or server administrator has disabled PHP&#8217;s <code>gethostbynamel</code> function. <strong>Akismet cannot work correctly until this is fixed.</strong> Please contact your web host or firewall administrator and give them <a href="%s" target="_blank">this information about Akismet&#8217;s system requirements</a>.', 'akismet'), 'http://blog.akismet.com/akismet-hosting-faq/'); ?></p>
</div>
<?php elseif ( $type == 'servers-be-down' ) :?>
<div class="wrap alert critical">
<h3 class="key-status failed"><?php esc_html_e("Akismet can&#8217;t connect to your site.", 'akismet'); ?></h3>
<p class="description"><?php printf( __('Your firewall may be blocking Akismet. Please contact your host and refer to <a href="%s" target="_blank">our guide about firewalls</a>.', 'akismet'), 'http://blog.akismet.com/akismet-hosting-faq/'); ?></p>
</div>
<?php elseif ( $type == 'active-dunning' ) :?>
<div class="wrap alert critical">
<h3 class="key-status"><?php esc_html_e("Please update your payment information.", 'akismet'); ?></h3>
<p class="description"><?php printf( __('We cannot process your payment. Please <a href="%s" target="_blank">update your payment details</a>.', 'akismet'), 'https://akismet.com/account/'); ?></p>
</div>
<?php elseif ( $type == 'cancelled' ) :?>
<div class="wrap alert critical">
<h3 class="key-status"><?php esc_html_e("Your Akismet plan has been cancelled.", 'akismet'); ?></h3>
<p class="description"><?php printf( __('Please visit your <a href="%s" target="_blank">Akismet account page</a> to reactivate your subscription.', 'akismet'), 'https://akismet.com/account/'); ?></p>
</div>
<?php elseif ( $type == 'suspended' ) :?>
<div class="wrap alert critical">
<h3 class="key-status failed"><?php esc_html_e("Your Akismet subscription is suspended.", 'akismet'); ?></h3>
<p class="description"><?php printf( __('Please contact <a href="%s" target="_blank">Akismet support</a> for assistance.', 'akismet'), 'https://akismet.com/contact/'); ?></p>
</div>
<?php elseif ( $type == 'active-notice' && $time_saved ) :?>
<div class="wrap alert active">
<h3 class="key-status"><?php echo esc_html( $time_saved ); ?></h3>
<p class="description"><?php printf( __('You can help us fight spam and upgrade your account by <a href="%s" target="_blank">contributing a token amount</a>.', 'akismet'), 'https://akismet.com/account/upgrade/'); ?></p>
</div>
<?php elseif ( $type == 'missing' ) :?>
<div class="wrap alert critical">
<h3 class="key-status failed"><?php esc_html_e( 'There is a problem with your API key.', 'akismet'); ?></h3>
<p class="description"><?php printf( __('Please contact <a href="%s" target="_blank">Akismet support</a> for assistance.', 'akismet'), 'https://akismet.com/contact/'); ?></p>
</div>
<?php elseif ( $type == 'no-sub' ) :?>
<div class="wrap alert critical">
<h3 class="key-status failed"><?php esc_html_e( 'You don&#8217;t have an Akismet plan.', 'akismet'); ?></h3>
<p class="description">
<?php printf( __( 'In 2012, Akismet began using subscription plans for all accounts (even free ones). A plan has not been assigned to your account, and we&#8217;d appreciate it if you&#8217;d <a href="%s" target="_blank">sign into your account</a> and choose one.', 'akismet'), 'https://akismet.com/account/upgrade/' ); ?>
<br /><br />
<?php printf( __( 'Please <a href="%s" target="_blank">contact our support team</a> with any questions.', 'akismet' ), 'https://akismet.com/contact/' ); ?>
</p>
</div>
<?php elseif ( $type == 'new-key-valid' ) :?>
<div class="wrap alert active">
<h3 class="key-status"><?php esc_html_e('Akismet is now activated. Happy blogging!', 'akismet'); ?></h3>
</div>
<?php elseif ( $type == 'new-key-invalid' ) :?>
<div class="wrap alert critical">
<h3 class="key-status"><?php esc_html_e( 'The key you entered is invalid. Please double-check it.' , 'akismet'); ?></h3>
</div>
<?php elseif ( $type == 'existing-key-invalid' ) :?>
<div class="wrap alert critical">
<h3 class="key-status"><?php esc_html_e( 'Your API key is no longer valid. Please enter a new key or contact support@akismet.com.' , 'akismet'); ?></h3>
</div>
<?php elseif ( $type == 'new-key-failed' ) :?>
<div class="wrap alert critical">
<h3 class="key-status"><?php esc_html_e( 'The API key you entered could not be verified.' , 'akismet'); ?></h3>
<p class="description"><?php printf( __('The connection to akismet.com could not be established. Please refer to <a href="%s" target="_blank">our guide about firewalls</a> and check your server configuration.', 'akismet'), 'http://blog.akismet.com/akismet-hosting-faq/'); ?></p>
</div>
<?php elseif ( $type == 'limit-reached' && in_array( $level, array( 'yellow', 'red' ) ) ) :?>
<div class="wrap alert critical">
<?php if ( $level == 'yellow' ): ?>
<h3 class="key-status failed"><?php esc_html_e( 'You&#8217;re using your Akismet key on more sites than your Pro subscription allows.', 'akismet' ); ?></h3>
<p class="description">
<?php printf( __( 'Your Pro subscription allows the use of Akismet on only one site. Please <a href="%s" target="_blank">purchase additional Pro subscriptions</a> or upgrade to an Enterprise subscription that allows the use of Akismet on unlimited sites.', 'akismet' ), 'http://docs.akismet.com/billing/add-more-sites/' ); ?>
<br /><br />
<?php printf( __( 'Please <a href="%s" target="_blank">contact our support team</a> with any questions.', 'akismet' ), 'https://akismet.com/contact/'); ?>
</p>
<?php elseif ( $level == 'red' ): ?>
<h3 class="key-status failed"><?php esc_html_e( 'You&#8217;re using Akismet on far too many sites for your Pro subscription.', 'akismet' ); ?></h3>
<p class="description">
<?php printf( __( 'To continue your service, <a href="%s" target="_blank">upgrade to an Enterprise subscription</a>, which covers an unlimited number of sites.', 'akismet'), 'https://akismet.com/account/upgrade/' ); ?></p>
<br /><br />
<?php printf( __( 'Please <a href="%s" target="_blank">contact our support team</a> with any questions.', 'akismet' ), 'https://akismet.com/contact/'); ?></p>
</p>
<?php endif; ?>
</div>
<?php endif;?>

View File

@@ -0,0 +1,97 @@
<div class="no-key config-wrap"><?php
if ( $akismet_user && in_array( $akismet_user->status, array( 'active', 'active-dunning', 'no-sub', 'missing', 'cancelled', 'suspended' ) ) ) :
if ( in_array( $akismet_user->status, array( 'no-sub', 'missing' ) ) ) :?>
<p><?php esc_html_e('Akismet eliminates spam from your site. Register below to get started.', 'akismet'); ?></p>
<div class="activate-highlight activate-option">
<div class="option-description">
<strong class="small-heading"><?php esc_html_e('Connected via Jetpack', 'akismet'); ?></strong>
<?php echo esc_html( $akismet_user->user_email ); ?>
</div>
<form name="akismet_activate" id="akismet_activate" action="https://akismet.com/get/" method="post" class="right" target="_blank">
<input type="hidden" name="passback_url" value="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>"/>
<input type="hidden" name="blog" value="<?php echo esc_url( get_bloginfo('url') ); ?>"/>
<input type="hidden" name="auto-connect" value="<?php echo $akismet_user->ID;?>"/>
<input type="hidden" name="redirect" value="plugin-signup"/>
<input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Register for Akismet' , 'akismet'); ?>"/>
</form>
</div>
<?php elseif ( $akismet_user->status == 'cancelled' ) :?>
<p><?php esc_html_e('Akismet eliminates spam from your site.', 'akismet'); ?></p>
<div class="activate-highlight activate-option">
<div class="option-description" style="width:75%;">
<strong class="small-heading"><?php esc_html_e('Connected via Jetpack', 'akismet'); ?></strong>
<?php printf( esc_html__( 'Your subscription for %s is cancelled' , 'akismet'), $akismet_user->user_email ); ?>
</div>
<form name="akismet_activate" id="akismet_activate" action="https://akismet.com/get/" method="post" class="right" target="_blank">
<input type="hidden" name="passback_url" value="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>"/>
<input type="hidden" name="blog" value="<?php echo esc_url( get_bloginfo('url') ); ?>"/>
<input type="hidden" name="user_id" value="<?php echo $akismet_user->ID;?>"/>
<input type="hidden" name="redirect" value="upgrade"/>
<input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Reactivate Akismet' , 'akismet'); ?>"/>
</form>
</div>
<?php elseif ( $akismet_user->status == 'suspended' ) : ?>
<p><?php esc_html_e('Akismet eliminates spam from your site.', 'akismet'); ?></p>
<div class="activate-highlight centered activate-option">
<strong class="small-heading"><?php esc_html_e( 'Connected via Jetpack' , 'akismet'); ?></strong>
<h3 class="alert-text"><?php printf( esc_html__( 'Your subscription for %s is suspended' , 'akismet'), $akismet_user->user_email ); ?></h3>
<p><?php esc_html_e('No worries! Get in touch and we&#8217;ll sort this out.', 'akismet'); ?></p>
<a href="https://akismet.com/contact" class="button button-primary"><?php esc_html_e( 'Contact Akismet support' , 'akismet'); ?></a>
</div>
<?php else : // ask do they want to use akismet account found using jetpack wpcom connection ?>
<p style="margin-right:10px"><?php esc_html_e('Akismet eliminates spam from your site. To set up Akismet, select one of the options below.', 'akismet'); ?></p>
<div class="activate-highlight activate-option">
<div class="option-description">
<strong class="small-heading"><?php esc_html_e('Connected via Jetpack', 'akismet'); ?></strong>
<?php echo esc_html( $akismet_user->user_email ); ?>
</div>
<form name="akismet_use_wpcom_key" action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="post" id="akismet-activate" class="right">
<input type="hidden" name="key" value="<?php echo esc_attr( $akismet_user->api_key );?>"/>
<input type="hidden" name="action" value="enter-key">
<?php wp_nonce_field( Akismet_Admin::NONCE ) ?>
<input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Use this account' , 'akismet'); ?>"/>
</form>
</div>
<?php endif;?>
<div class="activate-highlight secondary activate-option">
<div class="option-description">
<strong><?php esc_html_e('Sign up for a plan with a different email address', 'akismet'); ?></strong>
<p><?php esc_html_e('Use this option to use Akismet independently of your Jetpack connection.', 'akismet'); ?></p>
</div>
<?php Akismet::view( 'get', array( 'text' => __( 'Sign up with a different email address' , 'akismet'), 'classes' => array( 'right', 'button', 'button-secondary' ) ) ); ?>
</div>
<div class="activate-highlight secondary activate-option">
<div class="option-description">
<strong><?php esc_html_e('Enter an API key', 'akismet'); ?></strong>
<p><?php esc_html_e('Already have your key? Enter it here.', 'akismet'); ?></p>
</div>
<form action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="post" id="akismet-enter-api-key" class="right">
<input id="key" name="key" type="text" size="15" value="" class="regular-text code">
<input type="hidden" name="action" value="enter-key">
<?php wp_nonce_field( Akismet_Admin::NONCE ) ?>
<input type="submit" name="submit" id="submit" class="button button-secondary" value="<?php esc_attr_e('Use this key', 'akismet');?>">
</form>
</div>
<?php else :?>
<p><?php esc_html_e('Akismet eliminates spam from your site. To set up Akismet, select one of the options below.', 'akismet'); ?></p>
<div class="activate-highlight activate-option">
<div class="option-description">
<strong><?php esc_html_e( 'Activate Akismet' , 'akismet');?></strong>
<p><?php esc_html_e('Log in or sign up now.', 'akismet'); ?></p>
</div>
<?php Akismet::view( 'get', array( 'text' => __( 'Get your API key' , 'akismet'), 'classes' => array( 'right', 'button', 'button-primary' ) ) ); ?>
</div>
<div class="activate-highlight secondary activate-option">
<div class="option-description">
<strong><?php esc_html_e('Manually enter an API key', 'akismet'); ?></strong>
<p><?php esc_html_e('If you already know your API key.', 'akismet'); ?></p>
</div>
<form action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="post" id="akismet-enter-api-key" class="right">
<input id="key" name="key" type="text" size="15" value="<?php echo esc_attr( Akismet::get_api_key() ); ?>" class="regular-text code">
<input type="hidden" name="action" value="enter-key">
<?php wp_nonce_field( Akismet_Admin::NONCE ); ?>
<input type="submit" name="submit" id="submit" class="button button-secondary" value="<?php esc_attr_e('Use this key', 'akismet');?>">
</form>
</div><?php
endif;?>
</div>

View File

@@ -0,0 +1,4 @@
<div class="wrap">
<h2><?php esc_html_e( 'Akismet Stats' , 'akismet');?><?php if ( !isset( $hide_settings_link ) ): ?> <a href="<?php echo esc_url( Akismet_Admin::get_page_url() );?>" class="add-new-h2"><?php esc_html_e( 'Settings' , 'akismet');?></a><?php endif;?></h2>
<iframe src="<?php echo esc_url( sprintf( '//akismet.com/web/1.0/user-stats.php?blog=%s&api_key=%s&locale=%s', urlencode( get_bloginfo('url') ), Akismet::get_api_key(), get_locale() ) ); ?>" width="100%" height="2500px" frameborder="0" id="akismet-stats-frame"></iframe>
</div>

View File

@@ -0,0 +1,17 @@
<fieldset>
<legend class="screen-reader-text">
<span><?php esc_html_e( 'Akismet anti-spam strictness', 'akismet' ); ?></span>
</legend>
<p>
<label for="akismet_strictness_1">
<input type="radio" name="akismet_strictness" id="akismet_strictness_1" value="1" <?php checked( '1', get_option( 'akismet_strictness' ) ); ?> />
<?php esc_html_e( 'Strict: silently discard the worst and most pervasive spam.', 'akismet' ); ?>
</label>
</p>
<p>
<label for="akismet_strictness_0">
<input type="radio" name="akismet_strictness" id="akismet_strictness_0" value="0" <?php checked( '0', get_option( 'akismet_strictness' ) ); ?> />
<?php esc_html_e( 'Safe: always put spam in the Spam folder for review.', 'akismet' ); ?>
</label>
</p>
</fieldset>

View File

@@ -0,0 +1,213 @@
<?php
global $wpcom_api_key, $akismet_api_host, $akismet_api_port;
$wpcom_api_key = defined( 'WPCOM_API_KEY' ) ? constant( 'WPCOM_API_KEY' ) : '';
$akismet_api_host = Akismet::get_api_key() . '.rest.akismet.com';
$akismet_api_port = 80;
function akismet_test_mode() {
return Akismet::is_test_mode();
}
function akismet_http_post( $request, $host, $path, $port = 80, $ip = null ) {
$path = str_replace( '/1.1/', '', $path );
return Akismet::http_post( $request, $path, $ip );
}
function akismet_microtime() {
return Akismet::_get_microtime();
}
function akismet_delete_old() {
return Akismet::delete_old_comments();
}
function akismet_delete_old_metadata() {
return Akismet::delete_old_comments_meta();
}
function akismet_check_db_comment( $id, $recheck_reason = 'recheck_queue' ) {
return Akismet::check_db_comment( $id, $recheck_reason );
}
function akismet_rightnow() {
if ( !class_exists( 'Akismet_Admin' ) )
return false;
return Akismet_Admin::rightnow_stats();
}
function akismet_admin_init() {
_deprecated_function( __FUNCTION__, '3.0' );
}
function akismet_version_warning() {
_deprecated_function( __FUNCTION__, '3.0' );
}
function akismet_load_js_and_css() {
_deprecated_function( __FUNCTION__, '3.0' );
}
function akismet_nonce_field( $action = -1 ) {
return wp_nonce_field( $action );
}
function akismet_plugin_action_links( $links, $file ) {
return Akismet_Admin::plugin_action_links( $links, $file );
}
function akismet_conf() {
_deprecated_function( __FUNCTION__, '3.0' );
}
function akismet_stats_display() {
_deprecated_function( __FUNCTION__, '3.0' );
}
function akismet_stats() {
return Akismet_Admin::dashboard_stats();
}
function akismet_admin_warnings() {
_deprecated_function( __FUNCTION__, '3.0' );
}
function akismet_comment_row_action( $a, $comment ) {
return Akismet_Admin::comment_row_actions( $a, $comment );
}
function akismet_comment_status_meta_box( $comment ) {
return Akismet_Admin::comment_status_meta_box( $comment );
}
function akismet_comments_columns( $columns ) {
_deprecated_function( __FUNCTION__, '3.0' );
return $columns;
}
function akismet_comment_column_row( $column, $comment_id ) {
_deprecated_function( __FUNCTION__, '3.0' );
}
function akismet_text_add_link_callback( $m ) {
return Akismet_Admin::text_add_link_callback( $m );
}
function akismet_text_add_link_class( $comment_text ) {
return Akismet_Admin::text_add_link_class( $comment_text );
}
function akismet_check_for_spam_button( $comment_status ) {
return Akismet_Admin::check_for_spam_button( $comment_status );
}
function akismet_submit_nonspam_comment( $comment_id ) {
return Akismet::submit_nonspam_comment( $comment_id );
}
function akismet_submit_spam_comment( $comment_id ) {
return Akismet::submit_spam_comment( $comment_id );
}
function akismet_transition_comment_status( $new_status, $old_status, $comment ) {
return Akismet::transition_comment_status( $new_status, $old_status, $comment );
}
function akismet_spam_count( $type = false ) {
return Akismet_Admin::get_spam_count( $type );
}
function akismet_recheck_queue() {
return Akismet_Admin::recheck_queue();
}
function akismet_remove_comment_author_url() {
return Akismet_Admin::remove_comment_author_url();
}
function akismet_add_comment_author_url() {
return Akismet_Admin::add_comment_author_url();
}
function akismet_check_server_connectivity() {
return Akismet_Admin::check_server_connectivity();
}
function akismet_get_server_connectivity( $cache_timeout = 86400 ) {
return Akismet_Admin::get_server_connectivity( $cache_timeout );
}
function akismet_server_connectivity_ok() {
_deprecated_function( __FUNCTION__, '3.0' );
return true;
}
function akismet_admin_menu() {
return Akismet_Admin::admin_menu();
}
function akismet_load_menu() {
return Akismet_Admin::load_menu();
}
function akismet_init() {
_deprecated_function( __FUNCTION__, '3.0' );
}
function akismet_get_key() {
return Akismet::get_api_key();
}
function akismet_check_key_status( $key, $ip = null ) {
return Akismet::check_key_status( $key, $ip );
}
function akismet_update_alert( $response ) {
return Akismet::update_alert( $response );
}
function akismet_verify_key( $key, $ip = null ) {
return Akismet::verify_key( $key, $ip );
}
function akismet_get_user_roles( $user_id ) {
return Akismet::get_user_roles( $user_id );
}
function akismet_result_spam( $approved ) {
return Akismet::comment_is_spam( $approved );
}
function akismet_result_hold( $approved ) {
return Akismet::comment_needs_moderation( $approved );
}
function akismet_get_user_comments_approved( $user_id, $comment_author_email, $comment_author, $comment_author_url ) {
return Akismet::get_user_comments_approved( $user_id, $comment_author_email, $comment_author, $comment_author_url );
}
function akismet_update_comment_history( $comment_id, $message, $event = null ) {
return Akismet::update_comment_history( $comment_id, $message, $event );
}
function akismet_get_comment_history( $comment_id ) {
return Akismet::get_comment_history( $comment_id );
}
function akismet_cmp_time( $a, $b ) {
return Akismet::_cmp_time( $a, $b );
}
function akismet_auto_check_update_meta( $id, $comment ) {
return Akismet::auto_check_update_meta( $id, $comment );
}
function akismet_auto_check_comment( $commentdata ) {
return Akismet::auto_check_comment( $commentdata );
}
function akismet_get_ip_address() {
return Akismet::get_ip_address();
}
function akismet_cron_recheck() {
return Akismet::cron_recheck();
}
function akismet_add_comment_nonce() {
return Akismet::add_comment_nonce( $post_id );
}
function akismet_fix_scheduled_recheck() {
return Akismet::fix_scheduled_recheck();
}
function akismet_spam_comments() {
_deprecated_function( __FUNCTION__, '3.0' );
return array();
}
function akismet_spam_totals() {
_deprecated_function( __FUNCTION__, '3.0' );
return array();
}
function akismet_manage_page() {
_deprecated_function( __FUNCTION__, '3.0' );
}
function akismet_caught() {
_deprecated_function( __FUNCTION__, '3.0' );
}
function redirect_old_akismet_urls() {
_deprecated_function( __FUNCTION__, '3.0' );
}
function akismet_kill_proxy_check( $option ) {
_deprecated_function( __FUNCTION__, '3.0' );
return 0;
}
function akismet_pingback_forwarded_for( $r, $url ) {
return Akismet::pingback_forwarded_for( $r, $url );
}
function akismet_pre_check_pingback( $method ) {
return Akismet::pre_check_pingback( $method );
}

View File

@@ -0,0 +1,82 @@
<?php
/**
* @package Hello_Dolly
* @version 1.6
*/
/*
Plugin Name: Hello Dolly
Plugin URI: http://wordpress.org/plugins/hello-dolly/
Description: This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from <cite>Hello, Dolly</cite> in the upper right of your admin screen on every page.
Author: Matt Mullenweg
Version: 1.6
Author URI: http://ma.tt/
*/
function hello_dolly_get_lyric() {
/** These are the lyrics to Hello Dolly */
$lyrics = "Hello, Dolly
Well, hello, Dolly
It's so nice to have you back where you belong
You're lookin' swell, Dolly
I can tell, Dolly
You're still glowin', you're still crowin'
You're still goin' strong
We feel the room swayin'
While the band's playin'
One of your old favourite songs from way back when
So, take her wrap, fellas
Find her an empty lap, fellas
Dolly'll never go away again
Hello, Dolly
Well, hello, Dolly
It's so nice to have you back where you belong
You're lookin' swell, Dolly
I can tell, Dolly
You're still glowin', you're still crowin'
You're still goin' strong
We feel the room swayin'
While the band's playin'
One of your old favourite songs from way back when
Golly, gee, fellas
Find her a vacant knee, fellas
Dolly'll never go away
Dolly'll never go away
Dolly'll never go away again";
// Here we split it into lines
$lyrics = explode( "\n", $lyrics );
// And then randomly choose a line
return wptexturize( $lyrics[ mt_rand( 0, count( $lyrics ) - 1 ) ] );
}
// This just echoes the chosen line, we'll position it later
function hello_dolly() {
$chosen = hello_dolly_get_lyric();
echo "<p id='dolly'>$chosen</p>";
}
// Now we set that function up to execute when the admin_notices action is called
add_action( 'admin_notices', 'hello_dolly' );
// We need some CSS to position the paragraph
function dolly_css() {
// This makes sure that the positioning is also good for right-to-left languages
$x = is_rtl() ? 'left' : 'right';
echo "
<style type='text/css'>
#dolly {
float: $x;
padding-$x: 15px;
padding-top: 5px;
margin: 0;
font-size: 11px;
}
</style>
";
}
add_action( 'admin_head', 'dolly_css' );
?>

View File

@@ -0,0 +1,2 @@
<?php
// Silence is golden.

View File

@@ -0,0 +1,278 @@
# Limit Login Attempts German Translation
# Copyright (C) 2009 Johan Eenfeldt
# This file is distributed under the same license as the Wordpress package.
# Johan Eenfeldt <johan.eenfeldt@kostdoktorn.se>, 2009.
#
msgid ""
msgstr ""
"Project-Id-Version: limit-login-attempts 1.3\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/limit-login-attempts\n"
"POT-Creation-Date: 2009-01-28 17:17+0000\n"
"PO-Revision-Date: 2009-06-11 18:42+0200\n"
"Last-Translator: Hristo Chakarov <mail@ickata.net>\n"
"Language-Team: iNetStudio <mail@ickata.net>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-Language: Bulgarian\n"
"X-Poedit-Country: BULGARIA\n"
"X-Poedit-KeywordsList: __;_e;_ngettext:1,2\n"
#: limit-login-attempts.php:372
#, php-format
msgid "%d hour"
msgid_plural "%d hours"
msgstr[0] "%d час"
msgstr[1] "%d часа"
#: limit-login-attempts.php:378
#, php-format
msgid "%d minute"
msgid_plural "%d minutes"
msgstr[0] "%d минута"
msgstr[1] "%d минути"
#: limit-login-attempts.php:381
#, php-format
msgid "[%s] Too many failed login attempts"
msgstr "[%s] Твърде много грешни опити за вход"
#: limit-login-attempts.php:383
#, php-format
msgid "%d failed login attempts (%d lockout(s)) from IP: %s"
msgstr "%d грешни опити за вход (%d заключвания) от IP: %s"
#: limit-login-attempts.php:387
#, php-format
msgid "Last user attempted: %s"
msgstr "Последно потребителя е опитал: %s"
#: limit-login-attempts.php:390
#, php-format
msgid "IP was blocked for %s"
msgstr "IP е блокирано за %s."
#: limit-login-attempts.php:445
msgid "<strong>ERROR</strong>: Too many failed login attempts."
msgstr "<strong>ГРЕШКА</strong>: Твърде много грешни опита за вход."
#: limit-login-attempts.php:449
msgid "Please try again later."
msgstr "Моля, опитайте отново по-късно."
#: limit-login-attempts.php:456
#, php-format
msgid "Please try again in %d hour."
msgid_plural "Please try again in %d hours."
msgstr[0] "Моля, опитайте пак след %d час."
msgstr[1] "Моля, опитайте пак след %d часа."
#: limit-login-attempts.php:458
#, php-format
msgid "Please try again in %d minute."
msgid_plural "Please try again in %d minutes."
msgstr[0] "Моля, опитайте пак след %d минута."
msgstr[1] "Моля, опитайте пак след %d минути."
#: limit-login-attempts.php:487
#, php-format
msgid "<strong>%d</strong> attempt remaining."
msgid_plural "<strong>%d</strong> attempts remaining."
msgstr[0] "Имате право на <strong>само %d</strong> опит!"
msgstr[1] "Имате право на още <strong>%d</strong> опита."
#: limit-login-attempts.php:551
msgid "<strong>ERROR</strong>: Incorrect username or password."
msgstr "<strong>ГРЕШКА</strong>: Грешно потребителско име или парола."
#: limit-login-attempts.php:714
msgid "IP|Internet address"
msgstr "IP"
#: limit-login-attempts.php:714
msgid "Tried to log in as"
msgstr "Опитва да влезе като"
#: limit-login-attempts.php:719
#, php-format
msgid "%d lockout"
msgid_plural "%d lockouts"
msgstr[0] "%d заключване"
msgstr[1] "%d заключвания"
#: limit-login-attempts.php:743
msgid "Cleared IP log"
msgstr "IP логът беше зачистен"
#: limit-login-attempts.php:751
msgid "Reset lockout count"
msgstr "Нулирай броя заключвания"
#: limit-login-attempts.php:759
msgid "Cleared current lockouts"
msgstr "Заключванията са изчистени"
#: limit-login-attempts.php:788
msgid "Options changed"
msgstr "Настройките са запазени"
#: limit-login-attempts.php:799
msgid "<strong>NOTE:</strong> Only works in Wordpress 2.7 or later"
msgstr "<strong>ЗАБЕЛЕЖКА:</strong> Работи само с WordPress версия 2.7+"
#: limit-login-attempts.php:815
#, php-format
msgid "It appears the site is reached directly (from your IP: %s)"
msgstr "Изглежда сайтът е достъпен директно (от IP: %s)"
#: limit-login-attempts.php:817
#, php-format
msgid "It appears the site is reached through a proxy server (proxy IP: %s, your IP: %s)"
msgstr "Изглежда сайтът е достъпен през прокси сървър (IP на прокси сървъра: %s, IP на сайта: %s)"
#: limit-login-attempts.php:825
#, php-format
msgid "<strong>Current setting appears to be invalid</strong>. Please make sure it is correct. Further information can be found <a href=\"%s\" title=\"FAQ\">here</a>"
msgstr "<strong>Настройките са невалидни</strong>. Повече информация <a href=\"%s\" title=\"FAQ\">тук</a>"
#: limit-login-attempts.php:833
msgid "Limit Login Attempts Settings"
msgstr "Limit Login Attempts Настройки"
#: limit-login-attempts.php:834
msgid "Statistics"
msgstr "Статистики"
#: limit-login-attempts.php:838
msgid "Total lockouts"
msgstr "Общо заключвания"
#: limit-login-attempts.php:841
msgid "Reset Counter"
msgstr "Нулирай брояча"
#: limit-login-attempts.php:842
#, php-format
msgid "%d lockout since last reset"
msgid_plural "%d lockouts since last reset"
msgstr[0] "%d заключване от последното нулиране"
msgstr[1] "%d заключвания от последното нулиране"
#: limit-login-attempts.php:843
msgid "No lockouts yet"
msgstr "Няма заключвания досега"
#: limit-login-attempts.php:848
msgid "Active lockouts"
msgstr "Активни заключвания"
#: limit-login-attempts.php:850
msgid "Restore Lockouts"
msgstr "Поднови заключванията"
#: limit-login-attempts.php:851
#, php-format
msgid "%d IP is currently blocked from trying to log in"
msgstr "%d IP е блокирано"
#: limit-login-attempts.php:857
msgid "Options"
msgstr "Настройки"
#: limit-login-attempts.php:861
msgid "Lockout"
msgstr "Заключване"
#: limit-login-attempts.php:863
msgid "allowed retries"
msgstr "позволени опити"
#: limit-login-attempts.php:864
msgid "minutes lockout"
msgstr "минути заключване"
#: limit-login-attempts.php:865
msgid "lockouts increase lockout time to"
msgstr "заключвания увеличават времето на заключване на "
#: limit-login-attempts.php:865
msgid "hours"
msgstr "часа"
#: limit-login-attempts.php:866
msgid "hours until retries are reset"
msgstr "часа грешните опити се нулират"
#: limit-login-attempts.php:870
msgid "Site connection"
msgstr "Връзка към сайта"
#: limit-login-attempts.php:876
msgid "Direct connection"
msgstr "Директна връзка"
#: limit-login-attempts.php:881
msgid "From behind a reversy proxy"
msgstr "През Прокси сървър"
#: limit-login-attempts.php:887
msgid "Handle cookie login"
msgstr "Наблюдавай cookie login"
#: limit-login-attempts.php:889
msgid "Yes"
msgstr "Да"
#: limit-login-attempts.php:889
msgid "No"
msgstr "Не"
#: limit-login-attempts.php:894
msgid "Notify on lockout"
msgstr "Уведомявай при заключване"
#: limit-login-attempts.php:896
msgid "Log IP"
msgstr "Log IP"
#: limit-login-attempts.php:897
msgid "Email to admin after"
msgstr "Прати Email до администратора след"
#: limit-login-attempts.php:897
msgid "lockouts"
msgstr "заключвания"
#: limit-login-attempts.php:902
msgid "Change Options"
msgstr "Обнови настройки"
#: limit-login-attempts.php:910
msgid "Lockout log"
msgstr "Лог на заключванията"
#: limit-login-attempts.php:914
msgid "Clear Log"
msgstr "Изчисти лог"
#. Plugin Name of an extension
msgid "Limit Login Attempts"
msgstr "Limit Login Attempts"
#. Plugin URI of an extension
msgid "http://devel.kostdoktorn.se/limit-login-attempts"
msgstr "http://devel.kostdoktorn.se/limit-login-attempts"
#. Description of an extension
msgid "Limit rate of login attempts, including by way of cookies, for each IP."
msgstr "Ограничава броя на опитите за вход, включително тези от cookies, за всяко различно IP."
#. Author of an extension
msgid "Johan Eenfeldt"
msgstr "Johan Eenfeldt"
#. Author URI of an extension
msgid "http://devel.kostdoktorn.se"
msgstr "http://devel.kostdoktorn.se"

View File

@@ -0,0 +1,277 @@
# Limit Login Attempts German Translation
# Copyright (C) 2009 Johan Eenfeldt
# This file is distributed under the same license as the Wordpress package.
# Johan Eenfeldt <johan.eenfeldt@kostdoktorn.se>, 2009.
#
msgid ""
msgstr ""
"Project-Id-Version: limit-login-attempts 1.3\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/limit-login-attempts\n"
"POT-Creation-Date: 2009-01-28 17:17+0000\n"
"PO-Revision-Date: 2009-03-16 21:05+0100\n"
"Last-Translator: Robert Buj <rbuj@wanadoo.es>\n"
"Language-Team: Catalan <rbuj@wanadoo.es>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-Language: Catalan\n"
"X-Poedit-Country: SPAIN\n"
#: limit-login-attempts.php:372
#, php-format
msgid "%d hour"
msgid_plural "%d hours"
msgstr[0] "%d hora"
msgstr[1] "%d hores"
#: limit-login-attempts.php:378
#, php-format
msgid "%d minute"
msgid_plural "%d minutes"
msgstr[0] "%d minut"
msgstr[1] "%d minuts"
#: limit-login-attempts.php:381
#, php-format
msgid "[%s] Too many failed login attempts"
msgstr "[%s] Massa intents d'accés fallits"
#: limit-login-attempts.php:383
#, php-format
msgid "%d failed login attempts (%d lockout(s)) from IP: %s"
msgstr "%d intents d'accedir fallits (%d bloqueig(s)) de de l'IP: %s"
#: limit-login-attempts.php:387
#, php-format
msgid "Last user attempted: %s"
msgstr "Últim intent d'usuari: %s"
#: limit-login-attempts.php:390
#, php-format
msgid "IP was blocked for %s"
msgstr "La IP ha estat bloquejada per %s"
#: limit-login-attempts.php:445
msgid "<strong>ERROR</strong>: Too many failed login attempts."
msgstr "<strong>ERROR</strong>: Massa intents d'accedir fallits."
#: limit-login-attempts.php:449
msgid "Please try again later."
msgstr "Si us plau torneu-ho a intentar més tard."
#: limit-login-attempts.php:456
#, php-format
msgid "Please try again in %d hour."
msgid_plural "Please try again in %d hours."
msgstr[0] "Si us plau torneu-ho a provar d'aquí a %d hora."
msgstr[1] "Si us plau torneu-ho a provar d'aquí a %d hores."
#: limit-login-attempts.php:458
#, php-format
msgid "Please try again in %d minute."
msgid_plural "Please try again in %d minutes."
msgstr[0] "Si us plau torneu-ho a provar d'aquí a %d minut."
msgstr[1] "Si us plau torneu-ho a provar d'aquí a %d minuts."
#: limit-login-attempts.php:487
#, php-format
msgid "<strong>%d</strong> attempt remaining."
msgid_plural "<strong>%d</strong> attempts remaining."
msgstr[0] "<strong>%d</strong> intent restant."
msgstr[1] "<strong>%d</strong> intents restants."
#: limit-login-attempts.php:551
msgid "<strong>ERROR</strong>: Incorrect username or password."
msgstr "<strong>ERROR</strong>: Nom d'usuari o contrasenya incorrectes."
#: limit-login-attempts.php:714
msgid "IP|Internet address"
msgstr "IP|Adreça d'internet"
#: limit-login-attempts.php:714
msgid "Tried to log in as"
msgstr "Heu tractat d'accedir com"
#: limit-login-attempts.php:719
#, php-format
msgid "%d lockout"
msgid_plural "%d lockouts"
msgstr[0] "%d bloqueig"
msgstr[1] "%d bloqueigs"
#: limit-login-attempts.php:743
msgid "Cleared IP log"
msgstr "Netejat el registre IP"
#: limit-login-attempts.php:751
msgid "Reset lockout count"
msgstr "Restablir contador de bloqueig"
#: limit-login-attempts.php:759
msgid "Cleared current lockouts"
msgstr "Netejats els bloqueigs actuals"
#: limit-login-attempts.php:788
msgid "Options changed"
msgstr "Opcions canviades"
#: limit-login-attempts.php:799
msgid "<strong>NOTE:</strong> Only works in Wordpress 2.7 or later"
msgstr "<strong>NOTA:</strong> Només funciona amb Wordpress 2.7 i posteriors"
#: limit-login-attempts.php:815
#, php-format
msgid "It appears the site is reached directly (from your IP: %s)"
msgstr "Pel que sembla, al lloc s'arriba directament (a partir de la vostra IP: %s)"
#: limit-login-attempts.php:817
#, php-format
msgid "It appears the site is reached through a proxy server (proxy IP: %s, your IP: %s)"
msgstr "Pel que sembla, al lloc s'arriba a través d'un servidor intermediari (proxy IP: %s, la vostra IP: %s)"
#: limit-login-attempts.php:825
#, php-format
msgid "<strong>Current setting appears to be invalid</strong>. Please make sure it is correct. Further information can be found <a href=\"%s\" title=\"FAQ\">here</a>"
msgstr "<strong>La configuració actual sembla ser incorrecta</strong>. Si us plau, assegureu-vos que és correcta. Podeu trobar més informació <a href=\"%s\" title=\"FAQ\">aquí</a>"
#: limit-login-attempts.php:833
msgid "Limit Login Attempts Settings"
msgstr "Preferències del límit d'intents d'identificació"
#: limit-login-attempts.php:834
msgid "Statistics"
msgstr "Estadístiques"
#: limit-login-attempts.php:838
msgid "Total lockouts"
msgstr "Bloqueigs totals"
#: limit-login-attempts.php:841
msgid "Reset Counter"
msgstr "Restablir contador"
#: limit-login-attempts.php:842
#, php-format
msgid "%d lockout since last reset"
msgid_plural "%d lockouts since last reset"
msgstr[0] "%d bloqueig des de l'ultim restabliment."
msgstr[1] "%d bloqueigs des de l'ultim restabliment."
#: limit-login-attempts.php:843
msgid "No lockouts yet"
msgstr "Encara sense bloqueigs"
#: limit-login-attempts.php:848
msgid "Active lockouts"
msgstr "Bloqueigs actius"
#: limit-login-attempts.php:850
msgid "Restore Lockouts"
msgstr "Restablir bloqueigs"
#: limit-login-attempts.php:851
#, php-format
msgid "%d IP is currently blocked from trying to log in"
msgstr "La IP %d actualment està bloquejada al tractar d'iniciar la sessió"
#: limit-login-attempts.php:857
msgid "Options"
msgstr "Opcions"
#: limit-login-attempts.php:861
msgid "Lockout"
msgstr "Bloqueig"
#: limit-login-attempts.php:863
msgid "allowed retries"
msgstr "reintents permesos"
#: limit-login-attempts.php:864
msgid "minutes lockout"
msgstr "minuts a bloquejar"
#: limit-login-attempts.php:865
msgid "lockouts increase lockout time to"
msgstr "bloqueigs incrementen el temps a"
#: limit-login-attempts.php:865
msgid "hours"
msgstr "hores"
#: limit-login-attempts.php:866
msgid "hours until retries are reset"
msgstr "hores fins que es restableixen els reintents"
#: limit-login-attempts.php:870
msgid "Site connection"
msgstr "Lloc de connexió"
#: limit-login-attempts.php:876
msgid "Direct connection"
msgstr "Connexió directa"
#: limit-login-attempts.php:881
msgid "From behind a reversy proxy"
msgstr "Des de darrere d'un proxy reversy"
#: limit-login-attempts.php:887
msgid "Handle cookie login"
msgstr "Manejar galletes d'identificació"
#: limit-login-attempts.php:889
msgid "Yes"
msgstr "Si"
#: limit-login-attempts.php:889
msgid "No"
msgstr "No"
#: limit-login-attempts.php:894
msgid "Notify on lockout"
msgstr "Notificar al bloquejar"
#: limit-login-attempts.php:896
msgid "Log IP"
msgstr "Registre IP"
#: limit-login-attempts.php:897
msgid "Email to admin after"
msgstr "Enviar després un correu a l'administrador"
#: limit-login-attempts.php:897
msgid "lockouts"
msgstr "Bloqueigs"
#: limit-login-attempts.php:902
msgid "Change Options"
msgstr "Canviar opcions"
#: limit-login-attempts.php:910
msgid "Lockout log"
msgstr "Registre de bloqueigs"
#: limit-login-attempts.php:914
msgid "Clear Log"
msgstr "Netejar registre"
#. Plugin Name of an extension
msgid "Limit Login Attempts"
msgstr "Límit d'intents d'identificació"
#. Plugin URI of an extension
msgid "http://devel.kostdoktorn.se/limit-login-attempts"
msgstr "http://devel.kostdoktorn.se/limit-login-attempts"
#. Description of an extension
msgid "Limit rate of login attempts, including by way of cookies, for each IP."
msgstr "Limitar la taxa d'intents d'accés, per mitjà de galetes, per a cada IP."
#. Author of an extension
msgid "Johan Eenfeldt"
msgstr "Johan Eenfeldt"
#. Author URI of an extension
msgid "http://devel.kostdoktorn.se"
msgstr "http://devel.kostdoktorn.se"

View File

@@ -0,0 +1,281 @@
msgid ""
msgstr ""
"Project-Id-Version: limit-login-attempts 1.3\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/limit-login-attempts\n"
"POT-Creation-Date: 2009-01-28 17:17+0000\n"
"PO-Revision-Date: \n"
"Last-Translator: Jakub Jedelsky <jakub.jedelsky@gmail.com>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=n==1 ? 0 : n>=2 && n<=4 ? 1 : 2;\n"
"X-Poedit-Language: Czech\n"
"X-Poedit-Country: Czech Republic\n"
"X-Poedit-SourceCharset: utf-8\n"
#: limit-login-attempts.php:372
#, php-format
msgid "%d hour"
msgid_plural "%d hours"
msgstr[0] "%d hodina"
msgstr[1] "%d hodin"
msgstr[2] "%d hodin"
#: limit-login-attempts.php:378
#, php-format
msgid "%d minute"
msgid_plural "%d minutes"
msgstr[0] "%d minuta"
msgstr[1] "%d minuty"
msgstr[2] "%d minut"
#: limit-login-attempts.php:381
#, php-format
msgid "[%s] Too many failed login attempts"
msgstr "[%s] Příliš mnoho chybných pokusů o přihlášení"
#: limit-login-attempts.php:383
#, php-format
msgid "%d failed login attempts (%d lockout(s)) from IP: %s"
msgstr "%d špatných pokusů o přihlášení (zablokováno %d krát) z IP: %s"
#: limit-login-attempts.php:387
#, php-format
msgid "Last user attempted: %s"
msgstr "Poslední chybující uživatel: %s"
#: limit-login-attempts.php:390
#, php-format
msgid "IP was blocked for %s"
msgstr "IP adresa byla zablokována na %s"
#: limit-login-attempts.php:445
msgid "<strong>ERROR</strong>: Too many failed login attempts."
msgstr "<strong>CHYBA:</strong> Příliš mnoho chybných pokusů o přihlášení"
#: limit-login-attempts.php:449
msgid "Please try again later."
msgstr "Prosím, opakujte akci později."
#: limit-login-attempts.php:456
#, php-format
msgid "Please try again in %d hour."
msgid_plural "Please try again in %d hours."
msgstr[0] "Prosím, opakujte akci za %d hodinu."
msgstr[1] "Prosím, opakujte akci za %d hodiny."
msgstr[2] "Prosím, opakujte akci za %d hodin."
#: limit-login-attempts.php:458
#, php-format
msgid "Please try again in %d minute."
msgid_plural "Please try again in %d minutes."
msgstr[0] "Prosím, opakujte akci za %d minutu."
msgstr[1] "Prosím, opakujte akci za %d minuty."
msgstr[2] "Prosím, opakujte akci za %d minut."
#: limit-login-attempts.php:487
#, php-format
msgid "<strong>%d</strong> attempt remaining."
msgid_plural "<strong>%d</strong> attempts remaining."
msgstr[0] "<strong>%d</strong> zbývající pokusů."
msgstr[1] "<strong>%d</strong> zbývající pokusy."
msgstr[2] "<strong>%d</strong> zbývajících pokusů."
#: limit-login-attempts.php:551
msgid "<strong>ERROR</strong>: Incorrect username or password."
msgstr "<strong>CHYBA:</strong> Špatné uživatelské jméno nebo heslo."
#: limit-login-attempts.php:714
msgid "IP|Internet address"
msgstr "IP|Internetové adresy"
#: limit-login-attempts.php:714
msgid "Tried to log in as"
msgstr "Pokus o přihlášení jako"
#: limit-login-attempts.php:719
#, php-format
msgid "%d lockout"
msgid_plural "%d lockouts"
msgstr[0] "%d uzamčení"
msgstr[1] "%d uzamčení"
msgstr[2] "%d uzamčení"
#: limit-login-attempts.php:743
msgid "Cleared IP log"
msgstr "IP log smazán"
#: limit-login-attempts.php:751
msgid "Reset lockout count"
msgstr "aktuální blokování bylo resetováno"
#: limit-login-attempts.php:759
msgid "Cleared current lockouts"
msgstr "Aktuální blokování bylo promazáno"
#: limit-login-attempts.php:788
msgid "Options changed"
msgstr "Nastavení změněno"
#: limit-login-attempts.php:799
msgid "<strong>NOTE:</strong> Only works in Wordpress 2.7 or later"
msgstr "<strong>POZNÁMKA:</strong> Funguje pouze ve verzi Wordpress 2.7 a vyšší"
#: limit-login-attempts.php:815
#, php-format
msgid "It appears the site is reached directly (from your IP: %s)"
msgstr "Zdá se, že web je přímo dosažitelný (z Vaší IP: %s)"
#: limit-login-attempts.php:817
#, php-format
msgid "It appears the site is reached through a proxy server (proxy IP: %s, your IP: %s)"
msgstr "Zdá se, že web je dosažitelný přes proxy server (IP proxy: %s, Vaše IP: %s)"
#: limit-login-attempts.php:825
#, php-format
msgid "<strong>Current setting appears to be invalid</strong>. Please make sure it is correct. Further information can be found <a href=\"%s\" title=\"FAQ\">here</a>"
msgstr "<strong>Aktuální nastavení je zřejmě chybné.</strong> Prosím, ujistěte se o jeho správnosti. Další informace jsou k nalezení <a href=\"%s\" title=\"FAQ\">zde</a> (anglicky)."
#: limit-login-attempts.php:833
msgid "Limit Login Attempts Settings"
msgstr "Nastavení Limit Login Attempts"
#: limit-login-attempts.php:834
msgid "Statistics"
msgstr "Statistiky"
#: limit-login-attempts.php:838
msgid "Total lockouts"
msgstr "Celkem blokováno"
#: limit-login-attempts.php:841
msgid "Reset Counter"
msgstr "Reset počítadla"
#: limit-login-attempts.php:842
#, php-format
msgid "%d lockout since last reset"
msgid_plural "%d lockouts since last reset"
msgstr[0] "%d blokování od posledního resetu"
msgstr[1] "%d blokování od posledního resetu"
msgstr[2] "%d blokování od posledního resetu"
#: limit-login-attempts.php:843
msgid "No lockouts yet"
msgstr "Dosud nebylo nic blokováno"
#: limit-login-attempts.php:848
msgid "Active lockouts"
msgstr "Aktivní blokování"
#: limit-login-attempts.php:850
msgid "Restore Lockouts"
msgstr "Smazat blokování"
#: limit-login-attempts.php:851
#, php-format
msgid "%d IP is currently blocked from trying to log in"
msgstr "IP %d je aktuálně blokována z důvodu chybného přihlášení"
#: limit-login-attempts.php:857
msgid "Options"
msgstr "Nastavení"
#: limit-login-attempts.php:861
msgid "Lockout"
msgstr "Blokování"
#: limit-login-attempts.php:863
msgid "allowed retries"
msgstr "povolených pokusů"
#: limit-login-attempts.php:864
msgid "minutes lockout"
msgstr "minut blokován"
#: limit-login-attempts.php:865
msgid "lockouts increase lockout time to"
msgstr "- počet blokovaných pokusů, po kterém se zvýší čas blokování na"
#: limit-login-attempts.php:865
msgid "hours"
msgstr "hodin"
#: limit-login-attempts.php:866
msgid "hours until retries are reset"
msgstr "- počet hodin, po kterém jsou chybné pokusy o přihlášení resetovány"
#: limit-login-attempts.php:870
msgid "Site connection"
msgstr "Připojení webu"
#: limit-login-attempts.php:876
msgid "Direct connection"
msgstr "Přímé připojení"
#: limit-login-attempts.php:881
msgid "From behind a reversy proxy"
msgstr "Za proxy serverem"
#: limit-login-attempts.php:887
msgid "Handle cookie login"
msgstr "Pracovat s přihlašovacím cookie"
#: limit-login-attempts.php:889
msgid "Yes"
msgstr "Ano"
#: limit-login-attempts.php:889
msgid "No"
msgstr "Ne"
#: limit-login-attempts.php:894
msgid "Notify on lockout"
msgstr "Upozornění na blokování"
#: limit-login-attempts.php:896
msgid "Log IP"
msgstr "Logovat IP"
#: limit-login-attempts.php:897
msgid "Email to admin after"
msgstr "Poslat e-mail administrátorovi po"
#: limit-login-attempts.php:897
msgid "lockouts"
msgstr "pokusech"
#: limit-login-attempts.php:902
msgid "Change Options"
msgstr "Změnit nastavení"
#: limit-login-attempts.php:910
msgid "Lockout log"
msgstr "Log blokování"
#: limit-login-attempts.php:914
msgid "Clear Log"
msgstr "Smazat log"
#. Plugin Name of an extension
msgid "Limit Login Attempts"
msgstr "Limit Login Attempts"
#. Plugin URI of an extension
msgid "http://devel.kostdoktorn.se/limit-login-attempts"
msgstr "http://devel.kostdoktorn.se/limit-login-attempts"
# Popis rozšíření v seznamu pluginů - z nějakého důvodu nefunguje
#. Description of an extension
msgid "Limit rate of login attempts, including by way of cookies, for each IP."
msgstr "Omezení pokusů o přihlášení, mimo jiné prostřednictvím cookies, pro každou IP."
#. Author of an extension
msgid "Johan Eenfeldt"
msgstr "Johan Eenfeldt"
#. Author URI of an extension
msgid "http://devel.kostdoktorn.se"
msgstr "http://devel.kostdoktorn.se"

View File

@@ -0,0 +1,277 @@
# Limit Login Attempts German Translation
# Copyright (C) 2009 Johan Eenfeldt
# This file is distributed under the same license as the Wordpress package.
# Johan Eenfeldt <johan.eenfeldt@kostdoktorn.se>, 2009.
#
msgid ""
msgstr ""
"Project-Id-Version: limit-login-attempts 1.3\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/limit-login-attempts\n"
"POT-Creation-Date: 2009-01-28 17:17+0000\n"
"PO-Revision-Date: 2009-01-28 18:27+0100\n"
"Last-Translator: Johan Eenfeldt <johan.eenfeldt@kostdoktorn.se>\n"
"Language-Team: German <michael@skerwiderski.de>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-Language: German\n"
"X-Poedit-Country: GERMANY\n"
#: limit-login-attempts.php:372
#, php-format
msgid "%d hour"
msgid_plural "%d hours"
msgstr[0] "%d Stunde"
msgstr[1] "%d Stunden"
#: limit-login-attempts.php:378
#, php-format
msgid "%d minute"
msgid_plural "%d minutes"
msgstr[0] "%d Minute"
msgstr[1] "%d Minuten"
#: limit-login-attempts.php:381
#, php-format
msgid "[%s] Too many failed login attempts"
msgstr "[%s] Zu viele ungültige Anmeldeversuche"
#: limit-login-attempts.php:383
#, php-format
msgid "%d failed login attempts (%d lockout(s)) from IP: %s"
msgstr "%d ungültige Anmeldeversuche (%d Sperrung(en)) von IP: %s"
#: limit-login-attempts.php:387
#, php-format
msgid "Last user attempted: %s"
msgstr "Letzter Anmeldeversuch erfolgte mit dem Benutzernamen: %s"
#: limit-login-attempts.php:390
#, php-format
msgid "IP was blocked for %s"
msgstr "IP wurde gesperrt für %s."
#: limit-login-attempts.php:445
msgid "<strong>ERROR</strong>: Too many failed login attempts."
msgstr "<strong>FEHLER</strong>: Zuviele ung&uuml;ltige Anmeldeversuche."
#: limit-login-attempts.php:449
msgid "Please try again later."
msgstr "Bitte versuchen Sie es sp&auml;ter noch einmal."
#: limit-login-attempts.php:456
#, php-format
msgid "Please try again in %d hour."
msgid_plural "Please try again in %d hours."
msgstr[0] "Bitte versuchen Sie es in %d Stunde noch einmal."
msgstr[1] "Bitte versuchen Sie es in %d Stunden noch einmal."
#: limit-login-attempts.php:458
#, php-format
msgid "Please try again in %d minute."
msgid_plural "Please try again in %d minutes."
msgstr[0] "Bitte versuchen Sie es in %d Minute noch einmal."
msgstr[1] "Bitte versuchen Sie es in %d Minuten noch einmal."
#: limit-login-attempts.php:487
#, php-format
msgid "<strong>%d</strong> attempt remaining."
msgid_plural "<strong>%d</strong> attempts remaining."
msgstr[0] "Es ist noch <strong>%d</strong> Anmeldeversuch m&ouml;glich."
msgstr[1] "Es sind noch <strong>%d</strong> Anmeldeversuche m&ouml;glich."
#: limit-login-attempts.php:551
msgid "<strong>ERROR</strong>: Incorrect username or password."
msgstr "<strong>FEHLER</strong>: Ung&uuml;ltiger Benutzername oder Passwort."
#: limit-login-attempts.php:714
msgid "IP|Internet address"
msgstr "IP"
#: limit-login-attempts.php:714
msgid "Tried to log in as"
msgstr "Anmeldeversuch als"
#: limit-login-attempts.php:719
#, php-format
msgid "%d lockout"
msgid_plural "%d lockouts"
msgstr[0] "%d Sperrung"
msgstr[1] "%d Sperrungen"
#: limit-login-attempts.php:743
msgid "Cleared IP log"
msgstr "Protokoll wurde gel&ouml;scht"
#: limit-login-attempts.php:751
msgid "Reset lockout count"
msgstr "Anzahl Sperrungen zur&uuml;cksetzen"
#: limit-login-attempts.php:759
msgid "Cleared current lockouts"
msgstr "Sperrungen wurden deaktiviert"
#: limit-login-attempts.php:788
msgid "Options changed"
msgstr "Einstellungen wurden ge&auml;ndert"
#: limit-login-attempts.php:799
msgid "<strong>NOTE:</strong> Only works in Wordpress 2.7 or later"
msgstr "<strong>Hinweis:</strong> Erst ab Wordpress 2.7 verwendbar"
#: limit-login-attempts.php:815
#, php-format
msgid "It appears the site is reached directly (from your IP: %s)"
msgstr "Der Zugriff auf diese Webseite erfolgt auf direktem Weg (von Ihrer IP: %s)"
#: limit-login-attempts.php:817
#, php-format
msgid "It appears the site is reached through a proxy server (proxy IP: %s, your IP: %s)"
msgstr "Der Zugriff auf diese Webseite erfolgt über einen Proxy Server (IP des Proxy Servers: %s, Ihre IP: %s)"
#: limit-login-attempts.php:825
#, php-format
msgid "<strong>Current setting appears to be invalid</strong>. Please make sure it is correct. Further information can be found <a href=\"%s\" title=\"FAQ\">here</a>"
msgstr "<strong>Die aktuellen Einstellungen sind u.U. nicht korrekt, bzw. nicht konsistent</strong>. Weitere Infos zu den Einstellungen finden Sie <a href=\"%s\" title=\"FAQ\">hier</a>"
#: limit-login-attempts.php:833
msgid "Limit Login Attempts Settings"
msgstr "Limit Login Attempts Einstellungen"
#: limit-login-attempts.php:834
msgid "Statistics"
msgstr "Statistik"
#: limit-login-attempts.php:838
msgid "Total lockouts"
msgstr "Bisher vorgenommene Sperrungen"
#: limit-login-attempts.php:841
msgid "Reset Counter"
msgstr "Z&auml;hler zur&uuml;cksetzen"
#: limit-login-attempts.php:842
#, php-format
msgid "%d lockout since last reset"
msgid_plural "%d lockouts since last reset"
msgstr[0] "%d Sperrung seit letztem Zur&uuml;cksetzen"
msgstr[1] "%d Sperrungen seit letztem Zur&uuml;cksetzen"
#: limit-login-attempts.php:843
msgid "No lockouts yet"
msgstr "Derzeit sind keine Sperrungen aktiv"
#: limit-login-attempts.php:848
msgid "Active lockouts"
msgstr "Aktive Sperrungen"
#: limit-login-attempts.php:850
msgid "Restore Lockouts"
msgstr "Sperrungen aufheben"
#: limit-login-attempts.php:851
#, php-format
msgid "%d IP is currently blocked from trying to log in"
msgstr "%d IP ist derzeit f&uuml;r Anmeldeversuche gesperrt"
#: limit-login-attempts.php:857
msgid "Options"
msgstr "Einstellungen"
#: limit-login-attempts.php:861
msgid "Lockout"
msgstr "Sperrung"
#: limit-login-attempts.php:863
msgid "allowed retries"
msgstr "erlaubte Anmeldeversuche"
#: limit-login-attempts.php:864
msgid "minutes lockout"
msgstr "Minuten Sperrung nach &Uuml;berschreiten der zul&auml;ssigen Anmeldeversuche"
#: limit-login-attempts.php:865
msgid "lockouts increase lockout time to"
msgstr "Sperrungen erh&ouml;hen die insgesamte Sperrzeit um"
#: limit-login-attempts.php:865
msgid "hours"
msgstr "Stunden"
#: limit-login-attempts.php:866
msgid "hours until retries are reset"
msgstr "Stunden bis fehlgeschlagene Anmeldeversuche zur&uuml;ckgesetzt werden"
#: limit-login-attempts.php:870
msgid "Site connection"
msgstr "Verbindungsweg zu dieser Webseite"
#: limit-login-attempts.php:876
msgid "Direct connection"
msgstr "Direkte Verbindung"
#: limit-login-attempts.php:881
msgid "From behind a reversy proxy"
msgstr "&Uuml;ber einen Reverse Proxy Server"
#: limit-login-attempts.php:887
msgid "Handle cookie login"
msgstr "Anmeldungen via Cockies ber&uuml;cksichtigen"
#: limit-login-attempts.php:889
msgid "Yes"
msgstr "Ja"
#: limit-login-attempts.php:889
msgid "No"
msgstr "Nein"
#: limit-login-attempts.php:894
msgid "Notify on lockout"
msgstr "Benachrichtigung im Falle einer Sperrung"
#: limit-login-attempts.php:896
msgid "Log IP"
msgstr "IP protokollieren"
#: limit-login-attempts.php:897
msgid "Email to admin after"
msgstr "Email an den Administrator nach"
#: limit-login-attempts.php:897
msgid "lockouts"
msgstr "Sperrungen"
#: limit-login-attempts.php:902
msgid "Change Options"
msgstr "Einstellungen speichern"
#: limit-login-attempts.php:910
msgid "Lockout log"
msgstr "Protokoll der durchgef&uuml;hrten Sperrungen"
#: limit-login-attempts.php:914
msgid "Clear Log"
msgstr "Protokoll zur&uuml;cksetzen"
#. Plugin Name of an extension
msgid "Limit Login Attempts"
msgstr "Limit Login Attempts"
#. Plugin URI of an extension
msgid "http://devel.kostdoktorn.se/limit-login-attempts"
msgstr "http://devel.kostdoktorn.se/limit-login-attempts"
#. Description of an extension
msgid "Limit rate of login attempts, including by way of cookies, for each IP."
msgstr "Limit rate of login attempts, including by way of cookies, for each IP."
#. Author of an extension
msgid "Johan Eenfeldt"
msgstr "Johan Eenfeldt"
#. Author URI of an extension
msgid "http://devel.kostdoktorn.se"
msgstr "http://devel.kostdoktorn.se"

View File

@@ -0,0 +1,266 @@
# Limit Login Attempts German Translation
# Copyright (C) 2009 Johan Eenfeldt
# This file is distributed under the same license as the Wordpress package.
# Johan Eenfeldt <johan.eenfeldt@kostdoktorn.se>, 2009.
#
msgid ""
msgstr ""
"Project-Id-Version: limit-login-attempts 1.3\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/limit-login-attempts\n"
"POT-Creation-Date: 2011-02-17 15:08:09+00:00\n"
"PO-Revision-Date: 2011-02-20 09:24-0300\n"
"Last-Translator: Marcelo Pedra <marcelo@marcelopedra.com.ar>\n"
"Language-Team: Español <marcelo@ampm-soluciones.com.ar>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-Language: Spanish\n"
"X-Poedit-Country: ARGENTINA\n"
#: limit-login-attempts.php:474
msgid "%d hour"
msgid_plural "%d hours"
msgstr[0] "%d hora"
msgstr[1] "%d horas"
#: limit-login-attempts.php:480
msgid "%d minute"
msgid_plural "%d minutes"
msgstr[0] "%d minuto"
msgstr[1] "%d minutos"
#: limit-login-attempts.php:485
msgid "[%s] Too many failed login attempts"
msgstr "[%s] Demasiados intentos de acceso fallidos"
#: limit-login-attempts.php:487
msgid "%d failed login attempts (%d lockout(s)) from IP: %s"
msgstr "%d intentos de acceso fallidos (%d bloqueo(s)) desde la IP: %s"
#: limit-login-attempts.php:491
msgid "Last user attempted: %s"
msgstr "Ultimo usuario probado: %s"
#: limit-login-attempts.php:494
msgid "IP was blocked for %s"
msgstr "La IP se ha bloqueado para %s"
#: limit-login-attempts.php:551
msgid "<strong>ERROR</strong>: Too many failed login attempts."
msgstr "<strong>ERROR</strong>: Demasiados intentos de acceso fallidos."
#: limit-login-attempts.php:555
msgid "Please try again later."
msgstr "Por favor inténtelo más tarde."
#: limit-login-attempts.php:562
msgid "Please try again in %d hour."
msgid_plural "Please try again in %d hours."
msgstr[0] "Por favor inténtelo dentro de %d hora."
msgstr[1] "Por favor inténtelo dentro de %d horas."
#: limit-login-attempts.php:564
msgid "Please try again in %d minute."
msgid_plural "Please try again in %d minutes."
msgstr[0] "Por favor inténtelo dentro de %d minuto."
msgstr[1] "Por favor inténtelo dentro de %d minutos."
#: limit-login-attempts.php:593
msgid "<strong>%d</strong> attempt remaining."
msgid_plural "<strong>%d</strong> attempts remaining."
msgstr[0] "Le queda <strong>%d</strong> intento más."
msgstr[1] "Le quedan <strong>%d</strong> intentos más."
#: limit-login-attempts.php:658
msgid "<strong>ERROR</strong>: Incorrect username or password."
msgstr "<strong>ERROR</strong>: Nombre de usuario o contraseña incorrectos."
#: limit-login-attempts.php:826
msgctxt "Internet address"
msgid "IP"
msgstr "IP"
#: limit-login-attempts.php:826
msgid "Tried to log in as"
msgstr "Intentó ingresar como"
#: limit-login-attempts.php:831
msgid "%d lockout"
msgid_plural "%d lockouts"
msgstr[0] "%d bloqueo"
msgstr[1] "%d bloqueos"
#: limit-login-attempts.php:860
msgid "Cleared IP log"
msgstr "Direcciones liberadas"
#: limit-login-attempts.php:868
msgid "Reset lockout count"
msgstr "Reiniciar contador de bloqueos"
#: limit-login-attempts.php:876
msgid "Cleared current lockouts"
msgstr "Bloqueos actuales liberados"
#: limit-login-attempts.php:905
msgid "Options changed"
msgstr "Opciones actualizadas"
#: limit-login-attempts.php:923
msgid "It appears the site is reached directly (from your IP: %s)"
msgstr "Al parecer, el sitio está siendo accedido directamente (desde tu IP: %s)"
#: limit-login-attempts.php:925
msgid "It appears the site is reached through a proxy server (proxy IP: %s, your IP: %s)"
msgstr "Al parecer, el sitio está siendo accedido desde un servidor proxy (IP del proxy: %s, tu IP: %s)"
#: limit-login-attempts.php:933
msgid "<strong>Current setting appears to be invalid</strong>. Please make sure it is correct. Further information can be found <a href=\"%s\" title=\"FAQ\">here</a>"
msgstr "<strong>La configuración actual parece ser incorrecta</strong>. Asegúrate de verificarla. Para mayor información, <a href=\"%s\" title=\"FAQ\">click aquí</a>"
#: limit-login-attempts.php:941
msgid "Limit Login Attempts Settings"
msgstr "Preferencias del Limitador de Acceso"
#: limit-login-attempts.php:942
msgid "Statistics"
msgstr "Estadísticas"
#: limit-login-attempts.php:947
msgid "Total lockouts"
msgstr "Bloqueos totales"
#: limit-login-attempts.php:950
msgid "Reset Counter"
msgstr "Reiniciar contador"
#: limit-login-attempts.php:951
msgid "%d lockout since last reset"
msgid_plural "%d lockouts since last reset"
msgstr[0] "%d bloqueo desde el último reinicio."
msgstr[1] "%d bloqueos desde el último reinicio."
#: limit-login-attempts.php:952
msgid "No lockouts yet"
msgstr "Ningún bloqueo hasta ahora"
#: limit-login-attempts.php:957
msgid "Active lockouts"
msgstr "Bloqueos activos"
#: limit-login-attempts.php:959
msgid "Restore Lockouts"
msgstr "Restablecer bloqueos"
#: limit-login-attempts.php:960
msgid "%d IP is currently blocked from trying to log in"
msgstr "La IP %d actualmente tiene restringido el acceso"
#: limit-login-attempts.php:966
msgid "Options"
msgstr "Opciones"
#: limit-login-attempts.php:971
msgid "Lockout"
msgstr "Bloqueo"
#: limit-login-attempts.php:973
msgid "allowed retries"
msgstr "reintentos permitidos"
#: limit-login-attempts.php:974
msgid "minutes lockout"
msgstr "minutos por bloqueo"
#: limit-login-attempts.php:975
msgid "lockouts increase lockout time to"
msgstr "bloqueos incrementan el tiempo a"
#: limit-login-attempts.php:975
msgid "hours"
msgstr "horas"
#: limit-login-attempts.php:976
msgid "hours until retries are reset"
msgstr "horas hasta restablecer los reintentos"
#: limit-login-attempts.php:980
msgid "Site connection"
msgstr "Conexión"
#: limit-login-attempts.php:986
msgid "Direct connection"
msgstr "Connexión directa"
#: limit-login-attempts.php:991
msgid "From behind a reversy proxy"
msgstr "Detrás de un proxy"
#: limit-login-attempts.php:997
msgid "Handle cookie login"
msgstr "Gestionar cookies de login"
#: limit-login-attempts.php:999
msgid "Yes"
msgstr "Sí"
#: limit-login-attempts.php:999
msgid "No"
msgstr "No"
#: limit-login-attempts.php:1003
msgid "Notify on lockout"
msgstr "Notificar al bloquear"
#: limit-login-attempts.php:1005
msgid "Log IP"
msgstr "Registrar IP"
#: limit-login-attempts.php:1006
msgid "Email to admin after"
msgstr "Enviar email al administrador cada"
#: limit-login-attempts.php:1006
msgid "lockouts"
msgstr "bloqueos"
#: limit-login-attempts.php:1011
msgid "Change Options"
msgstr "Cambiar opciones"
#: limit-login-attempts.php:1019
msgid "Lockout log"
msgstr "Registro de bloqueos"
#: limit-login-attempts.php:1024
msgid "Clear Log"
msgstr "Limpiar registro"
#. Plugin Name of the plugin/theme
msgid "Limit Login Attempts"
msgstr "Límitador de intentos de login"
#. Plugin URI of the plugin/theme
msgid "http://devel.kostdoktorn.se/limit-login-attempts"
msgstr "http://devel.kostdoktorn.se/limit-login-attempts"
#. Description of the plugin/theme
msgid "Limit rate of login attempts, including by way of cookies, for each IP."
msgstr "Limita la tasa de intentos de acceso, usando cookies por IP."
#. Author of the plugin/theme
msgid "Johan Eenfeldt"
msgstr "Johan Eenfeldt"
#. Author URI of the plugin/theme
msgid "http://devel.kostdoktorn.se"
msgstr "http://devel.kostdoktorn.se"
#~ msgid "IP|Internet address"
#~ msgstr "IP|Dirección de Internet"
#~ msgid "<strong>NOTE:</strong> Only works in Wordpress 2.7 or later"
#~ msgstr ""
#~ "<strong>NOTA:</strong> Este plugin sólo funciona en Wordpress 2.7 o "
#~ "superior"

View File

@@ -0,0 +1,245 @@
msgid ""
msgstr ""
"Project-Id-Version: limit-login-attempts\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-08-02 10:44+0330\n"
"PO-Revision-Date: \n"
"Last-Translator: mostafa.s1990@gmail.com <mostafa.s1990@gmail.com>\n"
"Language-Team: <mostafa.s1990@gmail.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Poedit-Language: Persian\n"
"X-Poedit-Country: IRAN, ISLAMIC REPUBLIC OF\n"
"X-Poedit-KeywordsList: __;_e\n"
"X-Poedit-Basepath: .\n"
"X-Poedit-SearchPath-0: .\n"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:383
#, php-format
msgid "[%s] Too many failed login attempts"
msgstr "[%s] حملات زیاد برای ورود ناموفق"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:385
#, php-format
msgid "%d failed login attempts (%d lockout(s)) from IP: %s"
msgstr "%d حملات ورود ناموفق (%d تحریم(s)) از آی پی: %s"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:389
#, php-format
msgid "Last user attempted: %s"
msgstr "آخرین حملات کاربر: %s"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:392
#, php-format
msgid "IP was blocked for %s"
msgstr "آی پی شما برای %s قفل شده است"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:447
msgid "<strong>ERROR</strong>: Too many failed login attempts."
msgstr "<strong>خطا</strong>: تلاش نا موفق برای ورود به سایت."
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:451
msgid "Please try again later."
msgstr "لطفا بعدا امتحان کنید."
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:553
msgid "<strong>ERROR</strong>: Incorrect username or password."
msgstr "<strong>خطا</strong>: نام کاربری یا رمز عبور اشتباه است."
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:716
msgid "Tried to log in as"
msgstr "برای ورود سعی کنید"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:745
msgid "Cleared IP log"
msgstr "گزارش آی پی ها پاک شده"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:753
msgid "Reset lockout count"
msgstr "ریست کردن تعداد بن شدگان"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:761
msgid "Cleared current lockouts"
msgstr "پاک کردن تعداد بن شدگان"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:790
msgid "Options changed"
msgstr "تنظیمات ذخیره شد"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:801
msgid "<strong>NOTE:</strong> Only works in Wordpress 2.7 or later"
msgstr "<strong>نکته:</strong> فقط در وردپرس 2.7 یا بالاتر"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:817
#, php-format
msgid "It appears the site is reached directly (from your IP: %s)"
msgstr "به نظر میرسد این سایت از یک پروکسی سرور رسیده است (از آی پی شما: %s)"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:819
#, php-format
msgid "It appears the site is reached through a proxy server (proxy IP: %s, your IP: %s)"
msgstr "به نظر میرسد این سایت از یک پروکسی سرور رسیده است (از آی پی شما: %s)"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:827
#, php-format
msgid "<strong>Current setting appears to be invalid</strong>. Please make sure it is correct. Further information can be found <a href=\"%s\" title=\"FAQ\">here</a>"
msgstr "<strong>تنظیمات فعلی معتبر نیست</strong>لطفا درستی را چک کنید. اطلاعات تکمیلی میتواند در بر داشته باشد در <a href=\"%s\" title=\"FAQ\">اینجا</a>"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:835
msgid "Limit Login Attempts Settings"
msgstr "تنظیمات محافظت از حملات ورودی"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:836
msgid "Statistics"
msgstr "وضعیت"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:840
msgid "Total lockouts"
msgstr "کل تحریم ها"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:843
msgid "Reset Counter"
msgstr "ریست کردن شمارنده"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:845
msgid "No lockouts yet"
msgstr "هم اکنون کاربر تحریمی وجود ندارد"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:850
msgid "Active lockouts"
msgstr "فعال کردن تحریم ها"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:852
msgid "Restore Lockouts"
msgstr "بازگردانی تحریمی ها"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:853
#, php-format
msgid "%d IP is currently blocked from trying to log in"
msgstr "در حال حاظر آی پی شما %d برای ورود به سایت مسدود شده است"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:859
msgid "Options"
msgstr "تنظیمات"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:863
msgid "Lockout"
msgstr "تحریم"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:865
msgid "allowed retries"
msgstr "اجازه retries"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:866
msgid "minutes lockout"
msgstr "دقیقه تحریم"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:867
msgid "lockouts increase lockout time to"
msgstr "افزایش زمان تحریم برای بن شدگان"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:867
msgid "hours"
msgstr "ساعت"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:868
msgid "hours until retries are reset"
msgstr "ریست کردن ساعت بازنشانی ها"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:872
msgid "Site connection"
msgstr "اتصال سایت"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:878
msgid "Direct connection"
msgstr "هدایت اتصال"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:883
msgid "From behind a reversy proxy"
msgstr "از قبل با پروکسی استفاده شده است"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:889
msgid "Handle cookie login"
msgstr "به کار گرفتن کوکی ها برای ورود"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:891
msgid "Yes"
msgstr "بله"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:891
msgid "No"
msgstr "خیر"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:896
msgid "Notify on lockout"
msgstr "آگاهی از تحریم"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:898
msgid "Log IP"
msgstr "گزارش آی پی"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:899
msgid "Email to admin after"
msgstr "رایانامه به مدیر"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:899
msgid "lockouts"
msgstr "تحریم"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:904
msgid "Change Options"
msgstr "ذخیره تغییرات"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:912
msgid "Lockout log"
msgstr "گزارش تحریم"
#: F:\Program
#: Files\AppServ\www\wordpress\wp-content\plugins\limit-login-attempts/limit-login-attempts.php:916
msgid "Clear Log"
msgstr "پاک کردن گزارش"

View File

@@ -0,0 +1,270 @@
msgid ""
msgstr "Project-Id-Version: wp-limit-login-attempts-plugin\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/limit-login-attempts\n"
"POT-Creation-Date: 2009-01-28 17:17+0000\n"
"PO-Revision-Date: 2010-08-12 04:22-0400\n"
"Last-Translator: AriK <ari.kontiainen@gmail.com>\n"
"Language-Team: Finnish\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: crowdin.net\n"
#: limit-login-attempts.php:372
#, php-format
msgid "%d hour"
msgid_plural "%d hours"
msgstr[0] "%d tunti"
msgstr[1] "%d tuntia"
#: limit-login-attempts.php:378
#, php-format
msgid "%d minute"
msgid_plural "%d minutes"
msgstr[0] "%d minuutti(a)"
msgstr[1] "%d minuutti(a)"
#: limit-login-attempts.php:381
#, php-format
msgid "[%s] Too many failed login attempts"
msgstr "[%s] Liikaa epäonnistuneita kirjautumisyrityksiä"
#: limit-login-attempts.php:383
#, php-format
msgid "%d failed login attempts (%d lockout(s)) from IP: %s"
msgstr "%d epäonnistunutta kirjautumisyritystä (%d lukitus(ta)) IP:stä %s"
#: limit-login-attempts.php:387
#, php-format
msgid "Last user attempted: %s"
msgstr "Viimeisin käyttäjä yritti: %s"
#: limit-login-attempts.php:390
#, php-format
msgid "IP was blocked for %s"
msgstr "IP estettiin: %s"
#: limit-login-attempts.php:445
msgid "<strong>ERROR</strong>: Too many failed login attempts."
msgstr "<strong>VIRHE:</strong> Liian monta epäonnistunutta kirjautumisyritystä."
#: limit-login-attempts.php:449
msgid "Please try again later."
msgstr "Yritä myöhemmin uudelleen."
#: limit-login-attempts.php:456
#, php-format
msgid "Please try again in %d hour."
msgid_plural "Please try again in %d hours."
msgstr[0] "Yritä uudelleen %d tunnin kuluttua."
msgstr[1] "Yritä uudelleen %d tunnin kuluttua."
#: limit-login-attempts.php:458
#, php-format
msgid "Please try again in %d minute."
msgid_plural "Please try again in %d minutes."
msgstr[0] "Yritä uudelleen %d minuutin kuluttua."
msgstr[1] "Yritä uudelleen %d minuutin kuluttua."
#: limit-login-attempts.php:487
#, php-format
msgid "<strong>%d</strong> attempt remaining."
msgid_plural "<strong>%d</strong> attempts remaining."
msgstr[0] "<strong>%d</strong> yritys jäljellä."
msgstr[1] "<strong>%d</strong> yritystä jäljellä."
#: limit-login-attempts.php:551
msgid "<strong>ERROR</strong>: Incorrect username or password."
msgstr "<strong>VIRHE:</strong> Virheellinen käyttäjätunnus tai salasana."
#: limit-login-attempts.php:714
msgid "IP|Internet address"
msgstr "IP | Internet-osoite"
#: limit-login-attempts.php:714
msgid "Tried to log in as"
msgstr "Yritti kirjautua tunnuksella"
#: limit-login-attempts.php:719
#, php-format
msgid "%d lockout"
msgid_plural "%d lockouts"
msgstr[0] "%d lukitus"
msgstr[1] "%d lukitusta"
#: limit-login-attempts.php:743
msgid "Cleared IP log"
msgstr "IP loki tyhjennetty"
#: limit-login-attempts.php:751
msgid "Reset lockout count"
msgstr "Nollaa lukitusten laskuri"
#: limit-login-attempts.php:759
msgid "Cleared current lockouts"
msgstr "Lukitusten laskuri nollattu"
#: limit-login-attempts.php:788
msgid "Options changed"
msgstr "Asetuksia muutettu"
#: limit-login-attempts.php:799
msgid "<strong>NOTE:</strong> Only works in Wordpress 2.7 or later"
msgstr "<strong>HUOM:</strong> Toimii vain WordPress 2.7 tai uudemmassa"
#: limit-login-attempts.php:815
#, php-format
msgid "It appears the site is reached directly (from your IP: %s)"
msgstr "Sivustolle näytään tulevan suoraan (IP-osoitteesta: %s)"
#: limit-login-attempts.php:817
#, php-format
msgid "It appears the site is reached through a proxy server (proxy IP: %s, your IP: %s)"
msgstr "Sivustolle näytään tulevan välityspalvelimen kautta (proxy IP: %s, koneen IP: %s)"
#: limit-login-attempts.php:825
#, php-format
msgid "<strong>Current setting appears to be invalid</strong>. Please make sure it is correct. Further information can be found <a href=\"%s\" title=\"FAQ\">here</a>"
msgstr "<strong>Nykyinen asetus saattaa olla virheellinen.</strong> Varmista oikeellisuus. Lisätietoja löytyy <a href=\"%s\" title=\"UKK\">tästä</a>"
#: limit-login-attempts.php:833
msgid "Limit Login Attempts Settings"
msgstr "Limit Login Attempts asetukset"
#: limit-login-attempts.php:834
msgid "Statistics"
msgstr "Tilastotietoa"
#: limit-login-attempts.php:838
msgid "Total lockouts"
msgstr "Lukituksia yhteensä"
#: limit-login-attempts.php:841
msgid "Reset Counter"
msgstr "Nollaa laskuri"
#: limit-login-attempts.php:842
#, php-format
msgid "%d lockout since last reset"
msgid_plural "%d lockouts since last reset"
msgstr[0] "%d lukitus edellisen nollauksen jälkeen"
msgstr[1] "%d lukitusta edellisen nollauksen jälkeen"
#: limit-login-attempts.php:843
msgid "No lockouts yet"
msgstr "Ei lukituksia"
#: limit-login-attempts.php:848
msgid "Active lockouts"
msgstr "Aktiiviset lukitukset"
#: limit-login-attempts.php:850
msgid "Restore Lockouts"
msgstr "Palauta lukitukset"
#: limit-login-attempts.php:851
#, php-format
msgid "%d IP is currently blocked from trying to log in"
msgstr "IP-osoitteesta %d on tällä hetkellä estetty kirjautuminen"
#: limit-login-attempts.php:857
msgid "Options"
msgstr "Asetukset"
#: limit-login-attempts.php:861
msgid "Lockout"
msgstr "Lukitus"
#: limit-login-attempts.php:863
msgid "allowed retries"
msgstr "uudelleenyritystä sallitaan"
#: limit-login-attempts.php:864
msgid "minutes lockout"
msgstr "minuutin lukitus"
#: limit-login-attempts.php:865
msgid "lockouts increase lockout time to"
msgstr "lukitusta lisää lukitusaikaa"
#: limit-login-attempts.php:865
msgid "hours"
msgstr "tuntiin"
#: limit-login-attempts.php:866
msgid "hours until retries are reset"
msgstr "tuntia, kunnes uudelleenyritykset nollataan"
#: limit-login-attempts.php:870
msgid "Site connection"
msgstr "Sivuston yhteys"
#: limit-login-attempts.php:876
msgid "Direct connection"
msgstr "Suora yhteys"
#: limit-login-attempts.php:881
msgid "From behind a reversy proxy"
msgstr "Käänteisen välityspalvelimen (proxy) takana"
#: limit-login-attempts.php:887
msgid "Handle cookie login"
msgstr "Käsittele evästesisäänkirjautuminen"
#: limit-login-attempts.php:889
msgid "Yes"
msgstr "Kyllä"
#: limit-login-attempts.php:889
msgid "No"
msgstr "Ei"
#: limit-login-attempts.php:894
msgid "Notify on lockout"
msgstr "Ilmoita lukituksesta"
#: limit-login-attempts.php:896
msgid "Log IP"
msgstr "Kirjaa IP"
#: limit-login-attempts.php:897
msgid "Email to admin after"
msgstr "Lähetä sähköposti ylläpitäjälle"
#: limit-login-attempts.php:897
msgid "lockouts"
msgstr "lukituksen jälkeen"
#: limit-login-attempts.php:902
msgid "Change Options"
msgstr "Muuta asetuksia"
#: limit-login-attempts.php:910
msgid "Lockout log"
msgstr "Lukitusloki"
#: limit-login-attempts.php:914
msgid "Clear Log"
msgstr "Tyhjennä loki"
#. Plugin Name of an extension
msgid "Limit Login Attempts"
msgstr "Limit Login Attempts"
#. Plugin URI of an extension
msgid "http://devel.kostdoktorn.se/limit-login-attempts"
msgstr "http://devel.kostdoktorn.se/limit-login-attempts"
#. Description of an extension
msgid "Limit rate of login attempts, including by way of cookies, for each IP."
msgstr "Rajaa sisäänkirjautumisten määrää, mukaalukien evästeillä, per IP-osoite."
#. Author of an extension
msgid "Johan Eenfeldt"
msgstr "Johan Eenfeldt"
#. Author URI of an extension
msgid "http://devel.kostdoktorn.se"
msgstr "http://devel.kostdoktorn.se"

View File

@@ -0,0 +1,277 @@
# Limit Login Attempts German Translation
# Copyright (C) 2009 Johan Eenfeldt
# This file is distributed under the same license as the Wordpress package.
# Johan Eenfeldt <johan.eenfeldt@kostdoktorn.se>, 2009.
#
msgid ""
msgstr ""
"Project-Id-Version: limit-login-attempts 1.3\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/limit-login-attempts\n"
"POT-Creation-Date: 2009-01-28 17:17+0000\n"
"PO-Revision-Date: 2010-04-29 17:54+0100\n"
"Last-Translator: ova <djovaweb@gmail.com>\n"
"Language-Team: ova <ova13lastar@gmail.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-Language: French\n"
"X-Poedit-Country: FRANCE\n"
#: limit-login-attempts.php:372
#, php-format
msgid "%d hour"
msgid_plural "%d hours"
msgstr[0] "%d heure"
msgstr[1] "%d heures"
#: limit-login-attempts.php:378
#, php-format
msgid "%d minute"
msgid_plural "%d minutes"
msgstr[0] "%d minute"
msgstr[1] "%d minutes"
#: limit-login-attempts.php:381
#, php-format
msgid "[%s] Too many failed login attempts"
msgstr "[%s] Trop de tentatives de connexions ont échouées"
#: limit-login-attempts.php:383
#, php-format
msgid "%d failed login attempts (%d lockout(s)) from IP: %s"
msgstr "%d tentatives d'accès ont échouées (%d bloqué(s)) depuis l'adresse IP: %s"
#: limit-login-attempts.php:387
#, php-format
msgid "Last user attempted: %s"
msgstr "Dernière tentative de l'utilisateur: %s"
#: limit-login-attempts.php:390
#, php-format
msgid "IP was blocked for %s"
msgstr "L'adresse IP a été bloquée pour %s"
#: limit-login-attempts.php:445
msgid "<strong>ERROR</strong>: Too many failed login attempts."
msgstr "<strong>ERREUR</strong>: Trop de tentatives de connexions ont échouées."
#: limit-login-attempts.php:449
msgid "Please try again later."
msgstr "Merci de retenter de vous connecter plus tard."
#: limit-login-attempts.php:456
#, php-format
msgid "Please try again in %d hour."
msgid_plural "Please try again in %d hours."
msgstr[0] "Merci de retenter de vous connecter dans %d heure."
msgstr[1] "Merci de retenter de vous connecter dans %d heures."
#: limit-login-attempts.php:458
#, php-format
msgid "Please try again in %d minute."
msgid_plural "Please try again in %d minutes."
msgstr[0] "Merci de retenter de vous connecter dans %d minute."
msgstr[1] "Merci de retenter de vous connecter dans %d minutes."
#: limit-login-attempts.php:487
#, php-format
msgid "<strong>%d</strong> attempt remaining."
msgid_plural "<strong>%d</strong> attempts remaining."
msgstr[0] "<strong>%d</strong> tentative restante."
msgstr[1] "<strong>%d</strong> tentatives restantes."
#: limit-login-attempts.php:551
msgid "<strong>ERROR</strong>: Incorrect username or password."
msgstr "<strong>ERREUR</strong>: Nom d'utilisateur ou mot de passe incorrect."
#: limit-login-attempts.php:714
msgid "IP|Internet address"
msgstr "IP|Adresse Internet"
#: limit-login-attempts.php:714
msgid "Tried to log in as"
msgstr "Tentez de vous connecter en tant que"
#: limit-login-attempts.php:719
#, php-format
msgid "%d lockout"
msgid_plural "%d lockouts"
msgstr[0] "%d blocage"
msgstr[1] "%d blocages"
#: limit-login-attempts.php:743
msgid "Cleared IP log"
msgstr "Journal d'IP effacé"
#: limit-login-attempts.php:751
msgid "Reset lockout count"
msgstr "Réinitialiser le nombre de blocage"
#: limit-login-attempts.php:759
msgid "Cleared current lockouts"
msgstr "Effacer les blocages actuels"
#: limit-login-attempts.php:788
msgid "Options changed"
msgstr "Options modifiées"
#: limit-login-attempts.php:799
msgid "<strong>NOTE:</strong> Only works in Wordpress 2.7 or later"
msgstr "<strong>NOTE:</strong> Cette extension ne fonctionne qu'avec la version 2.7 de Wordpress 2.7 ou un version supérieure"
#: limit-login-attempts.php:815
#, php-format
msgid "It appears the site is reached directly (from your IP: %s)"
msgstr "Il semble que le site soit directement accessible (depuis votre IP: %s)"
#: limit-login-attempts.php:817
#, php-format
msgid "It appears the site is reached through a proxy server (proxy IP: %s, your IP: %s)"
msgstr "Il semble que le site soit accessible via un serveur proxy (IP du proxy: %s, votre IP: %s)"
#: limit-login-attempts.php:825
#, php-format
msgid "<strong>Current setting appears to be invalid</strong>. Please make sure it is correct. Further information can be found <a href=\"%s\" title=\"FAQ\">here</a>"
msgstr "<strong>Le réglage actuel semble être invalide</strong>. Merci de vous assurer qu'il est correct. Pour plus d'informations, <a href=\"%s\" title=\"FAQ\">cliquez ici</a>"
#: limit-login-attempts.php:833
msgid "Limit Login Attempts Settings"
msgstr "Paramètres des tentatives d'accès"
#: limit-login-attempts.php:834
msgid "Statistics"
msgstr "Statistiques"
#: limit-login-attempts.php:838
msgid "Total lockouts"
msgstr "Blocages totaux"
#: limit-login-attempts.php:841
msgid "Reset Counter"
msgstr "Réinitialiser le compteur"
#: limit-login-attempts.php:842
#, php-format
msgid "%d lockout since last reset"
msgid_plural "%d lockouts since last reset"
msgstr[0] "%d blocage depuis la dernière réinitialisation."
msgstr[1] "%d blocages depuis la dernière réinitialisation."
#: limit-login-attempts.php:843
msgid "No lockouts yet"
msgstr "Aucun blocage"
#: limit-login-attempts.php:848
msgid "Active lockouts"
msgstr "Blocages actifs"
#: limit-login-attempts.php:850
msgid "Restore Lockouts"
msgstr "Restaurer les blocages"
#: limit-login-attempts.php:851
#, php-format
msgid "%d IP is currently blocked from trying to log in"
msgstr "L'adresse IP %d est actuellement bloquée pour se connecter"
#: limit-login-attempts.php:857
msgid "Options"
msgstr "Options"
#: limit-login-attempts.php:861
msgid "Lockout"
msgstr "Blocage"
#: limit-login-attempts.php:863
msgid "allowed retries"
msgstr "tentatives autorisées"
#: limit-login-attempts.php:864
msgid "minutes lockout"
msgstr "minutes de blocage"
#: limit-login-attempts.php:865
msgid "lockouts increase lockout time to"
msgstr "blocages augmentent le temps de blocage à"
#: limit-login-attempts.php:865
msgid "hours"
msgstr "heures"
#: limit-login-attempts.php:866
msgid "hours until retries are reset"
msgstr "heures jusqu'à ce que les tentatives soient réinitialisées"
#: limit-login-attempts.php:870
msgid "Site connection"
msgstr "Connexion"
#: limit-login-attempts.php:876
msgid "Direct connection"
msgstr "Connexion directe"
#: limit-login-attempts.php:881
msgid "From behind a reversy proxy"
msgstr "Derrière un serveur proxy"
#: limit-login-attempts.php:887
msgid "Handle cookie login"
msgstr "Gérer les cookies de connexion"
#: limit-login-attempts.php:889
msgid "Yes"
msgstr "Oui"
#: limit-login-attempts.php:889
msgid "No"
msgstr "Non"
#: limit-login-attempts.php:894
msgid "Notify on lockout"
msgstr "Notifier lors d'un blocage"
#: limit-login-attempts.php:896
msgid "Log IP"
msgstr "Enregistrer l'adresse IP"
#: limit-login-attempts.php:897
msgid "Email to admin after"
msgstr "Envoyer un email à l'administrateur après"
#: limit-login-attempts.php:897
msgid "lockouts"
msgstr "blocages"
#: limit-login-attempts.php:902
msgid "Change Options"
msgstr "Modifier options"
#: limit-login-attempts.php:910
msgid "Lockout log"
msgstr "Journal de blocage"
#: limit-login-attempts.php:914
msgid "Clear Log"
msgstr "Effacer le journal"
#. Plugin Name of an extension
msgid "Limit Login Attempts"
msgstr "Limiter les tentatives de connexion"
#. Plugin URI of an extension
msgid "http://devel.kostdoktorn.se/limit-login-attempts"
msgstr "http://devel.kostdoktorn.se/limit-login-attempts"
#. Description of an extension
msgid "Limit rate of login attempts, including by way of cookies, for each IP."
msgstr "Limiter le taux de tentatives de connexion, y compris par voie de cookies, pour chaque adresse IP."
#. Author of an extension
msgid "Johan Eenfeldt"
msgstr "Johan Eenfeldt"
#. Author URI of an extension
msgid "http://devel.kostdoktorn.se"
msgstr "http://devel.kostdoktorn.se"

View File

@@ -0,0 +1,277 @@
# Limit Login Attempts German Translation
# Copyright (C) 2009 Johan Eenfeldt
# This file is distributed under the same license as the Wordpress package.
# Johan Eenfeldt <johan.eenfeldt@kostdoktorn.se>, 2009.
#
msgid ""
msgstr ""
"Project-Id-Version: limit-login-attempts 1.3\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/limit-login-attempts\n"
"POT-Creation-Date: 2009-01-28 17:17+0000\n"
"PO-Revision-Date: 2010-01-26 16:08+0100\n"
"Last-Translator: Vereskuti Balint <balint@vereskuti.eu>\n"
"Language-Team: Hungarian <balint@vereskuti.info>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-Language: Hungarian\n"
"X-Poedit-Country: HUNGARY\n"
#: limit-login-attempts.php:372
#, php-format
msgid "%d hour"
msgid_plural "%d hours"
msgstr[0] "%d óra"
msgstr[1] "%d óra"
#: limit-login-attempts.php:378
#, php-format
msgid "%d minute"
msgid_plural "%d minutes"
msgstr[0] "%d perc"
msgstr[1] "%d perc"
#: limit-login-attempts.php:381
#, php-format
msgid "[%s] Too many failed login attempts"
msgstr "[%s] Túl sok hibás bejelentkezési kísérlet"
#: limit-login-attempts.php:383
#, php-format
msgid "%d failed login attempts (%d lockout(s)) from IP: %s"
msgstr "%d hibás bejelentkezési kísérlet (%d kizárás) %s IP-címről"
#: limit-login-attempts.php:387
#, php-format
msgid "Last user attempted: %s"
msgstr "Az utolsó helyes bejelentkezés %s felhasználónévvel."
#: limit-login-attempts.php:390
#, php-format
msgid "IP was blocked for %s"
msgstr "Az IP-cím %s időre kizárásra került."
#: limit-login-attempts.php:445
msgid "<strong>ERROR</strong>: Too many failed login attempts."
msgstr "<strong>HIBA</strong>: Túl sok hibás bejeletkezési kísérlet."
#: limit-login-attempts.php:449
msgid "Please try again later."
msgstr "Próbáljs meg később."
#: limit-login-attempts.php:456
#, php-format
msgid "Please try again in %d hour."
msgid_plural "Please try again in %d hours."
msgstr[0] "Próbálja meg %d óra múlva."
msgstr[1] "Próbálja meg %d óra múlva."
#: limit-login-attempts.php:458
#, php-format
msgid "Please try again in %d minute."
msgid_plural "Please try again in %d minutes."
msgstr[0] "Próbálja meg %d perc múlva."
msgstr[1] "Próbálja meg %d perc múlva."
#: limit-login-attempts.php:487
#, php-format
msgid "<strong>%d</strong> attempt remaining."
msgid_plural "<strong>%d</strong> attempts remaining."
msgstr[0] "Még <strong>%d</strong> bejelentkezési lehetőség maradt."
msgstr[1] "Még <strong>%d</strong> bejelentkezési lehetőség maradt."
#: limit-login-attempts.php:551
msgid "<strong>ERROR</strong>: Incorrect username or password."
msgstr "<strong>HIBA</strong>: Érvénytelen felhasználónév vagy jelszó."
#: limit-login-attempts.php:714
msgid "IP|Internet address"
msgstr "IP"
#: limit-login-attempts.php:714
msgid "Tried to log in as"
msgstr "Bejelentkezés mint"
#: limit-login-attempts.php:719
#, php-format
msgid "%d lockout"
msgid_plural "%d lockouts"
msgstr[0] "%d kizárás"
msgstr[1] "%d kizárás"
#: limit-login-attempts.php:743
msgid "Cleared IP log"
msgstr "IP log törölve"
#: limit-login-attempts.php:751
msgid "Reset lockout count"
msgstr "Kizárási számláló nullázása"
#: limit-login-attempts.php:759
msgid "Cleared current lockouts"
msgstr "A kizárások feloldásra kerültek"
#: limit-login-attempts.php:788
msgid "Options changed"
msgstr "A beállítások megváltoztatásra kerültek"
#: limit-login-attempts.php:799
msgid "<strong>NOTE:</strong> Only works in Wordpress 2.7 or later"
msgstr "<strong>Figyelmeztetés:</strong> Csak a Wordpress 2.7, és annál újabb verziókkal működik!"
#: limit-login-attempts.php:815
#, php-format
msgid "It appears the site is reached directly (from your IP: %s)"
msgstr "Az oldal direkt módon került elérésre (%s IP-címről)"
#: limit-login-attempts.php:817
#, php-format
msgid "It appears the site is reached through a proxy server (proxy IP: %s, your IP: %s)"
msgstr "Az oldal proxy-n keresztül került elérésre (proxy IP: %s, saját IP: %s)"
#: limit-login-attempts.php:825
#, php-format
msgid "<strong>Current setting appears to be invalid</strong>. Please make sure it is correct. Further information can be found <a href=\"%s\" title=\"FAQ\">here</a>"
msgstr "<strong>Helytelenek az aktuális beállítások</strong>. További információk <a href=\"%s\" title=\"FAQ\">itt</a> érhetők el."
#: limit-login-attempts.php:833
msgid "Limit Login Attempts Settings"
msgstr "A Limit Login Attempts beállításai"
#: limit-login-attempts.php:834
msgid "Statistics"
msgstr "Statisztikák"
#: limit-login-attempts.php:838
msgid "Total lockouts"
msgstr "Eddigi kizárások"
#: limit-login-attempts.php:841
msgid "Reset Counter"
msgstr "Számláló nullázása"
#: limit-login-attempts.php:842
#, php-format
msgid "%d lockout since last reset"
msgid_plural "%d lockouts since last reset"
msgstr[0] "%d kizárás az előző nullázás óta"
msgstr[1] "%d kizárás az előző nullázás óta"
#: limit-login-attempts.php:843
msgid "No lockouts yet"
msgstr "Jelenleg nincs aktív kizárás"
#: limit-login-attempts.php:848
msgid "Active lockouts"
msgstr "Aktív kizárás(ok)"
#: limit-login-attempts.php:850
msgid "Restore Lockouts"
msgstr "Kizárások feloldása"
#: limit-login-attempts.php:851
#, php-format
msgid "%d IP is currently blocked from trying to log in"
msgstr "%d IP, melyről bejelentkezni próbál jelenleg kizárva!"
#: limit-login-attempts.php:857
msgid "Options"
msgstr "Beállítások"
#: limit-login-attempts.php:861
msgid "Lockout"
msgstr "Kizárás"
#: limit-login-attempts.php:863
msgid "allowed retries"
msgstr "engedélyezett bejelentkezési lehetőség"
#: limit-login-attempts.php:864
msgid "minutes lockout"
msgstr "perc kizárás az engedélyezett lehetőségek elérése után"
#: limit-login-attempts.php:865
msgid "lockouts increase lockout time to"
msgstr "kizárás ennyivel emeli meg a teljes kizárási időt: "
#: limit-login-attempts.php:865
msgid "hours"
msgstr "óra"
#: limit-login-attempts.php:866
msgid "hours until retries are reset"
msgstr "óra teljen el a hibás bejelentkezések visszaállításáig"
#: limit-login-attempts.php:870
msgid "Site connection"
msgstr "Oldal elérése"
#: limit-login-attempts.php:876
msgid "Direct connection"
msgstr "direkt-elérés"
#: limit-login-attempts.php:881
msgid "From behind a reversy proxy"
msgstr "elérés Reverse Proxy Serveren keresztül"
#: limit-login-attempts.php:887
msgid "Handle cookie login"
msgstr "Cookie-n keresztüli bejelentkezés"
#: limit-login-attempts.php:889
msgid "Yes"
msgstr "Igen"
#: limit-login-attempts.php:889
msgid "No"
msgstr "Nem"
#: limit-login-attempts.php:894
msgid "Notify on lockout"
msgstr "Értesítés kizárásról"
#: limit-login-attempts.php:896
msgid "Log IP"
msgstr "IP logok mentése"
#: limit-login-attempts.php:897
msgid "Email to admin after"
msgstr "Email az adminisztrátornak "
#: limit-login-attempts.php:897
msgid "lockouts"
msgstr "darab kizárás után"
#: limit-login-attempts.php:902
msgid "Change Options"
msgstr "Beállítások mentése"
#: limit-login-attempts.php:910
msgid "Lockout log"
msgstr "Kizárási napló"
#: limit-login-attempts.php:914
msgid "Clear Log"
msgstr "Log törlése"
#. Plugin Name of an extension
msgid "Limit Login Attempts"
msgstr "Limit Login Attempts"
#. Plugin URI of an extension
msgid "http://devel.kostdoktorn.se/limit-login-attempts"
msgstr "http://devel.kostdoktorn.se/limit-login-attempts"
#. Description of an extension
msgid "Limit rate of login attempts, including by way of cookies, for each IP."
msgstr "Bejelentkezések felügyelete - akár cookie-kon kereszütl minden IP-re."
#. Author of an extension
msgid "Johan Eenfeldt"
msgstr "Johan Eenfeldt"
#. Author URI of an extension
msgid "http://devel.kostdoktorn.se"
msgstr "http://devel.kostdoktorn.se"

View File

@@ -0,0 +1,277 @@
# Limit Login Attempts Swedish Translation
# Copyright (C) 2009 Johan Eenfeldt
# This file is distributed under the same license as the Wordpress package.
# Johan Eenfeldt <johan.eenfeldt@kostdoktorn.se>, 2009.
#
msgid ""
msgstr ""
"Project-Id-Version: limit-login-attempts 1.2\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/limit-login-attempts\n"
"POT-Creation-Date: 2009-01-28 17:17+0000\n"
"PO-Revision-Date: 2009-07-15 13:14+0100\n"
"Last-Translator: Rune G <dev@bloggs.be>\n"
"Language-Team: DigitalHverdag <dev@bloggs.be>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-Language: Norwegian Bokmal\n"
"X-Poedit-Country: NORWAY\n"
#: limit-login-attempts.php:372
#, php-format
msgid "%d hour"
msgid_plural "%d hours"
msgstr[0] "%d time"
msgstr[1] "%d timer"
#: limit-login-attempts.php:378
#, php-format
msgid "%d minute"
msgid_plural "%d minutes"
msgstr[0] "%d minutt"
msgstr[1] "%d minutter"
#: limit-login-attempts.php:381
#, php-format
msgid "[%s] Too many failed login attempts"
msgstr "[%s] For mange påloggingsforsøk"
#: limit-login-attempts.php:383
#, php-format
msgid "%d failed login attempts (%d lockout(s)) from IP: %s"
msgstr "%d påloggingsforsøk (stoppet %d gang(er)) fra IP: %s"
#: limit-login-attempts.php:387
#, php-format
msgid "Last user attempted: %s"
msgstr "Siste brukernavn som feilet : %s"
#: limit-login-attempts.php:390
#, php-format
msgid "IP was blocked for %s"
msgstr "IP blokkert i %s"
#: limit-login-attempts.php:445
msgid "<strong>ERROR</strong>: Too many failed login attempts."
msgstr "<strong>Feil</strong>: For mange påloggingsforsøk."
#: limit-login-attempts.php:449
msgid "Please try again later."
msgstr "Prøv igjen senere"
#: limit-login-attempts.php:456
#, php-format
msgid "Please try again in %d hour."
msgid_plural "Please try again in %d hours."
msgstr[0] "Prøv igjen om %d time."
msgstr[1] "Prøv igjen om %d timer."
#: limit-login-attempts.php:458
#, php-format
msgid "Please try again in %d minute."
msgid_plural "Please try again in %d minutes."
msgstr[0] "Prøv igjen om %d minutt."
msgstr[1] "Prøv igjen om %d minutter."
#: limit-login-attempts.php:487
#, php-format
msgid "<strong>%d</strong> attempt remaining."
msgid_plural "<strong>%d</strong> attempts remaining."
msgstr[0] "<strong>%d</strong> forsøk gjenstår."
msgstr[1] "<strong>%d</strong> forsøk gjenstår."
#: limit-login-attempts.php:551
msgid "<strong>ERROR</strong>: Incorrect username or password."
msgstr "<strong>Feil</strong>: Feil brukernavn eller passord."
#: limit-login-attempts.php:714
msgid "IP|Internet address"
msgstr "IP"
#: limit-login-attempts.php:714
msgid "Tried to log in as"
msgstr "Prøvde å logge inn som"
#: limit-login-attempts.php:719
#, php-format
msgid "%d lockout"
msgid_plural "%d lockouts"
msgstr[0] "%d blokkering"
msgstr[1] "%d blokkeringer"
#: limit-login-attempts.php:743
msgid "Cleared IP log"
msgstr "Nullstill IP loggen"
#: limit-login-attempts.php:751
msgid "Reset lockout count"
msgstr "Nullstill antall blokkeringer"
#: limit-login-attempts.php:759
msgid "Cleared current lockouts"
msgstr "Fjernet gjeldende blokkeringer"
#: limit-login-attempts.php:788
msgid "Options changed"
msgstr "Innstillinger endret"
#: limit-login-attempts.php:799
msgid "<strong>NOTE:</strong> Only works in Wordpress 2.7 or later"
msgstr "<strong>NB:</strong> Du må bruker WordPress 2.7 eller nyere"
#: limit-login-attempts.php:815
#, php-format
msgid "It appears the site is reached directly (from your IP: %s)"
msgstr "Det ser ut som om du kan nå bloggen direkte (fra din IP: %s)"
#: limit-login-attempts.php:817
#, php-format
msgid "It appears the site is reached through a proxy server (proxy IP: %s, your IP: %s)"
msgstr "Det ser ut som om bloggen din er bak en proxy server (proxy IP: %s, din IP: %s)"
#: limit-login-attempts.php:825
#, php-format
msgid "<strong>Current setting appears to be invalid</strong>. Please make sure it is correct. Further information can be found <a href=\"%s\" title=\"FAQ\">here</a>"
msgstr "<strong>Dine innstillinger kan være feil</strong>. Sjekk at de er korrekte. Mer informasjon <a href=\"%s\" title=\"FAQ\">her</a>"
#: limit-login-attempts.php:833
msgid "Limit Login Attempts Settings"
msgstr "Limit Login Attempts Innstillinger"
#: limit-login-attempts.php:834
msgid "Statistics"
msgstr "Statistikk"
#: limit-login-attempts.php:838
msgid "Total lockouts"
msgstr "Totalt antall blokkeringer"
#: limit-login-attempts.php:841
msgid "Reset Counter"
msgstr "Nullstill teller"
#: limit-login-attempts.php:842
#, php-format
msgid "%d lockout since last reset"
msgid_plural "%d lockouts since last reset"
msgstr[0] "%d blokkering siden siste nullstilling"
msgstr[1] "%d blokkeringer siden siste nullstilling"
#: limit-login-attempts.php:843
msgid "No lockouts yet"
msgstr "Ingen blokkeringer enda"
#: limit-login-attempts.php:848
msgid "Active lockouts"
msgstr "Aktive blokkeringer"
#: limit-login-attempts.php:850
msgid "Restore Lockouts"
msgstr "Fjern blokkeringer"
#: limit-login-attempts.php:851
#, php-format
msgid "%d IP is currently blocked from trying to log in"
msgstr "%d IP står på blokkeringslisten"
#: limit-login-attempts.php:857
msgid "Options"
msgstr "Innstillinger"
#: limit-login-attempts.php:861
msgid "Lockout"
msgstr "Blokkering"
#: limit-login-attempts.php:863
msgid "allowed retries"
msgstr "Antall påloggingsforsøk"
#: limit-login-attempts.php:864
msgid "minutes lockout"
msgstr "minutters blokkering"
#: limit-login-attempts.php:865
msgid "lockouts increase lockout time to"
msgstr "Blokkeringer øker blokkeringstiden til"
#: limit-login-attempts.php:865
msgid "hours"
msgstr "timer"
#: limit-login-attempts.php:866
msgid "hours until retries are reset"
msgstr "timer til nullstilling"
#: limit-login-attempts.php:870
msgid "Site connection"
msgstr "Blogg forbindelse"
#: limit-login-attempts.php:876
msgid "Direct connection"
msgstr "Direkte forbindelse"
#: limit-login-attempts.php:881
msgid "From behind a reversy proxy"
msgstr "Bak en omvendt proxy"
#: limit-login-attempts.php:887
msgid "Handle cookie login"
msgstr "Behandle pålogginger med cookies"
#: limit-login-attempts.php:889
msgid "Yes"
msgstr "Ja"
#: limit-login-attempts.php:889
msgid "No"
msgstr "Nei"
#: limit-login-attempts.php:894
msgid "Notify on lockout"
msgstr "Gi melding om blokkering"
#: limit-login-attempts.php:896
msgid "Log IP"
msgstr "Logg IP"
#: limit-login-attempts.php:897
msgid "Email to admin after"
msgstr "Send epost til admin etter"
#: limit-login-attempts.php:897
msgid "lockouts"
msgstr "blokkeringer"
#: limit-login-attempts.php:902
msgid "Change Options"
msgstr "Endre innstillinger"
#: limit-login-attempts.php:910
msgid "Lockout log"
msgstr "Blokkerings logg"
#: limit-login-attempts.php:914
msgid "Clear Log"
msgstr "Nullstill loggen"
#. Plugin Name of an extension
msgid "Limit Login Attempts"
msgstr "Begrense påloggingsforsøk"
#. Plugin URI of an extension
msgid "http://devel.kostdoktorn.se/limit-login-attempts"
msgstr "http://devel.kostdoktorn.se/limit-login-attempts"
#. Description of an extension
msgid "Limit rate of login attempts, including by way of cookies, for each IP."
msgstr "Begrenser antall påloggingsforsøk, inkludert forsøk med cookies, for alle IPer"
#. Author of an extension
msgid "Johan Eenfeldt"
msgstr "Johan Eenfeldt"
#. Author URI of an extension
msgid "http://devel.kostdoktorn.se"
msgstr "http://devel.kostdoktorn.se"

View File

@@ -0,0 +1,277 @@
# Limit Login Attempts German Translation
# Copyright (C) 2009 Johan Eenfeldt
# This file is distributed under the same license as the Wordpress package.
# Johan Eenfeldt <johan.eenfeldt@kostdoktorn.se>, 2009.
#
msgid ""
msgstr ""
"Project-Id-Version: limit-login-attempts 1.3\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/limit-login-attempts\n"
"POT-Creation-Date: 2009-01-28 17:17+0000\n"
"PO-Revision-Date: 2010-03-19 13:52+0100\n"
"Last-Translator: BjornW <burobjorn@burobjorn.nl>\n"
"Language-Team: German <michael@skerwiderski.de>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-Language: German\n"
"X-Poedit-Country: GERMANY\n"
#: limit-login-attempts.php:372
#, php-format
msgid "%d hour"
msgid_plural "%d hours"
msgstr[0] "%d uur"
msgstr[1] "%d uren"
#: limit-login-attempts.php:378
#, php-format
msgid "%d minute"
msgid_plural "%d minutes"
msgstr[0] "%d minute"
msgstr[1] "%d minuten"
#: limit-login-attempts.php:381
#, php-format
msgid "[%s] Too many failed login attempts"
msgstr "[%s] Teveel gefaalde login pogingen"
#: limit-login-attempts.php:383
#, php-format
msgid "%d failed login attempts (%d lockout(s)) from IP: %s"
msgstr "%d gefaalde login pogingen (%d blokkades) van IP: %s"
#: limit-login-attempts.php:387
#, php-format
msgid "Last user attempted: %s"
msgstr "Laatste inlogpoging werd gedaan met de gebruikersnaam: %s"
#: limit-login-attempts.php:390
#, php-format
msgid "IP was blocked for %s"
msgstr "IP was geblokkeerd voor %s."
#: limit-login-attempts.php:445
msgid "<strong>ERROR</strong>: Too many failed login attempts."
msgstr "<strong>FOUT</strong>: Teveel gefaalde inlogpogingen."
#: limit-login-attempts.php:449
msgid "Please try again later."
msgstr "Probeer het later nogmaals"
#: limit-login-attempts.php:456
#, php-format
msgid "Please try again in %d hour."
msgid_plural "Please try again in %d hours."
msgstr[0] ".Probeer het over %d uur nogmaals."
msgstr[1] "Probeer het over %d uren nogmaals."
#: limit-login-attempts.php:458
#, php-format
msgid "Please try again in %d minute."
msgid_plural "Please try again in %d minutes."
msgstr[0] "Probeer het over %d minuut nogmaals"
msgstr[1] "Probeer het over %d minuten nogmaals."
#: limit-login-attempts.php:487
#, php-format
msgid "<strong>%d</strong> attempt remaining."
msgid_plural "<strong>%d</strong> attempts remaining."
msgstr[0] "Nog <strong>%d</strong> loginpoging mogelijk."
msgstr[1] "Nog <strong>%d</strong> loginpogingen mogelijk."
#: limit-login-attempts.php:551
msgid "<strong>ERROR</strong>: Incorrect username or password."
msgstr "<strong>FOUT</strong>: Ongeldige gebruikersnaam of wachtwoord."
#: limit-login-attempts.php:714
msgid "IP|Internet address"
msgstr "IP|Internet adres"
#: limit-login-attempts.php:714
msgid "Tried to log in as"
msgstr "Inlogpoging als"
#: limit-login-attempts.php:719
#, php-format
msgid "%d lockout"
msgid_plural "%d lockouts"
msgstr[0] "%d Blokkade"
msgstr[1] "%d Blokkades"
#: limit-login-attempts.php:743
msgid "Cleared IP log"
msgstr "IP log is gewist"
#: limit-login-attempts.php:751
msgid "Reset lockout count"
msgstr "Reset blokkades teller"
#: limit-login-attempts.php:759
msgid "Cleared current lockouts"
msgstr "Actieve blokkades zijn gewist"
#: limit-login-attempts.php:788
msgid "Options changed"
msgstr "Instellingen zijn gewijzigd"
#: limit-login-attempts.php:799
msgid "<strong>NOTE:</strong> Only works in Wordpress 2.7 or later"
msgstr "<strong>NB:</strong> Werkt alleen vanaf Wordpress 2.7 of hogere versie nummers"
#: limit-login-attempts.php:815
#, php-format
msgid "It appears the site is reached directly (from your IP: %s)"
msgstr "Het lijkt erop dat de site direct te bereiken is (van uw IP-adres: %s)"
#: limit-login-attempts.php:817
#, php-format
msgid "It appears the site is reached through a proxy server (proxy IP: %s, your IP: %s)"
msgstr "Het lijkt erop dat de site te bereiken is via een proxy server, (Proxy Server IP adres: %s, Uw IP-adres: %s)"
#: limit-login-attempts.php:825
#, php-format
msgid "<strong>Current setting appears to be invalid</strong>. Please make sure it is correct. Further information can be found <a href=\"%s\" title=\"FAQ\">here</a>"
msgstr "<strong>De huidige instelling lijkt ongeldig te zijn</strong>. Pas deze zo aan dat deze wel geldig is, informatie over hoe u dit kunt doen kunt u vinden in de <a href=\"%s\" title=\"FAQ\">FAQ</a> (in het Engels)."
#: limit-login-attempts.php:833
msgid "Limit Login Attempts Settings"
msgstr "Limit Login Attempts Instellingen"
#: limit-login-attempts.php:834
msgid "Statistics"
msgstr "Statistieken"
#: limit-login-attempts.php:838
msgid "Total lockouts"
msgstr "Totaal aantal blokkades"
#: limit-login-attempts.php:841
msgid "Reset Counter"
msgstr "Teller resetten"
#: limit-login-attempts.php:842
#, php-format
msgid "%d lockout since last reset"
msgid_plural "%d lockouts since last reset"
msgstr[0] "%d Blokkade sinds de laatste reset"
msgstr[1] "%d Blokkades sinds de laatste reset"
#: limit-login-attempts.php:843
msgid "No lockouts yet"
msgstr "Nog geen blokkades actief"
#: limit-login-attempts.php:848
msgid "Active lockouts"
msgstr "Actieve blokkades"
#: limit-login-attempts.php:850
msgid "Restore Lockouts"
msgstr "Blokkades opheffen"
#: limit-login-attempts.php:851
#, php-format
msgid "%d IP is currently blocked from trying to log in"
msgstr "%d IP is op dit moment voor inloggen geblokkeerd"
#: limit-login-attempts.php:857
msgid "Options"
msgstr "Instellingen"
#: limit-login-attempts.php:861
msgid "Lockout"
msgstr "Blokkade"
#: limit-login-attempts.php:863
msgid "allowed retries"
msgstr "mogelijke inlogpogingen"
#: limit-login-attempts.php:864
msgid "minutes lockout"
msgstr "Aantal minuten geblokkeerd na een gefaalde inlogpoging"
#: limit-login-attempts.php:865
msgid "lockouts increase lockout time to"
msgstr "Blokkades verhogen de blokkade tijd naar"
#: limit-login-attempts.php:865
msgid "hours"
msgstr "uren"
#: limit-login-attempts.php:866
msgid "hours until retries are reset"
msgstr "aantal uren voordat het aantal ondernomen pogingen wordt gereset"
#: limit-login-attempts.php:870
msgid "Site connection"
msgstr "Verbinding naar deze website"
#: limit-login-attempts.php:876
msgid "Direct connection"
msgstr "Directe verbinding"
#: limit-login-attempts.php:881
msgid "From behind a reversy proxy"
msgstr "Via een reverse-proxy"
#: limit-login-attempts.php:887
msgid "Handle cookie login"
msgstr "Omgaan met cookie loginverzoeken"
#: limit-login-attempts.php:889
msgid "Yes"
msgstr "Ja"
#: limit-login-attempts.php:889
msgid "No"
msgstr "Nee"
#: limit-login-attempts.php:894
msgid "Notify on lockout"
msgstr "Waarschuwen in het geval van een blokkade"
#: limit-login-attempts.php:896
msgid "Log IP"
msgstr "Log IP adres"
#: limit-login-attempts.php:897
msgid "Email to admin after"
msgstr "Email de beheerder na"
#: limit-login-attempts.php:897
msgid "lockouts"
msgstr "Blokkades"
#: limit-login-attempts.php:902
msgid "Change Options"
msgstr "Instellingen aanpassen"
#: limit-login-attempts.php:910
msgid "Lockout log"
msgstr "Log van blokkades"
#: limit-login-attempts.php:914
msgid "Clear Log"
msgstr "Log wissen"
#. Plugin Name of an extension
msgid "Limit Login Attempts"
msgstr "Limit Login Attempts"
#. Plugin URI of an extension
msgid "http://devel.kostdoktorn.se/limit-login-attempts"
msgstr "http://devel.kostdoktorn.se/limit-login-attempts"
#. Description of an extension
msgid "Limit rate of login attempts, including by way of cookies, for each IP."
msgstr "Beperkt het aantal inlogpogingen, inclusief bij het gebruik van cookies, voor elk IP adres."
#. Author of an extension
msgid "Johan Eenfeldt"
msgstr "Johan Eenfeldt"
#. Author URI of an extension
msgid "http://devel.kostdoktorn.se"
msgstr "http://devel.kostdoktorn.se"

View File

@@ -0,0 +1,278 @@
# Limit Login Attempts German Translation
# Copyright (C) 2009 Johan Eenfeldt
# This file is distributed under the same license as the Wordpress package.
# Johan Eenfeldt <johan.eenfeldt@kostdoktorn.se>, 2009.
#
msgid ""
msgstr ""
"Project-Id-Version: limit-login-attempts 1.5.1\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/limit-login-attempts\n"
"POT-Creation-Date: 2009-01-28 17:17+0000\n"
"PO-Revision-Date: 2010-10-08 15:55-0300\n"
"Last-Translator: Luciano Passuello <lucianop@litemind.com>\n"
"Language-Team: Luciano Passuello <lucianop@litemind.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-Language: Portuguese\n"
"X-Poedit-Country: BRAZIL\n"
"X-Poedit-SourceCharset: utf-8\n"
#: limit-login-attempts.php:372
#, php-format
msgid "%d hour"
msgid_plural "%d hours"
msgstr[0] "%d hora"
msgstr[1] "%d Stunden"
#: limit-login-attempts.php:378
#, php-format
msgid "%d minute"
msgid_plural "%d minutes"
msgstr[0] "%d minuto"
msgstr[1] "%d minutos"
#: limit-login-attempts.php:381
#, php-format
msgid "[%s] Too many failed login attempts"
msgstr "[%s] Muitas tentativas de login mal-sucedidas"
#: limit-login-attempts.php:383
#, php-format
msgid "%d failed login attempts (%d lockout(s)) from IP: %s"
msgstr "%d tentativas de login mal-sucedidas (%d bloqueio(s)) do IP: %s"
#: limit-login-attempts.php:387
#, php-format
msgid "Last user attempted: %s"
msgstr "Último usuário tentou: %s"
#: limit-login-attempts.php:390
#, php-format
msgid "IP was blocked for %s"
msgstr "IP foi bloquado para %s."
#: limit-login-attempts.php:445
msgid "<strong>ERROR</strong>: Too many failed login attempts."
msgstr "<strong>ERRO</strong>: Muitas tentativas de login mal-sucedidas."
#: limit-login-attempts.php:449
msgid "Please try again later."
msgstr "Por favor tente novamente mais tarde."
#: limit-login-attempts.php:456
#, php-format
msgid "Please try again in %d hour."
msgid_plural "Please try again in %d hours."
msgstr[0] "Por favor tente novamente em %d hora."
msgstr[1] "Por favor tente novamente em %d horas."
#: limit-login-attempts.php:458
#, php-format
msgid "Please try again in %d minute."
msgid_plural "Please try again in %d minutes."
msgstr[0] "Por favor tente novamente em %d minuto."
msgstr[1] "Por favor tente novamente em %d minutos."
#: limit-login-attempts.php:487
#, php-format
msgid "<strong>%d</strong> attempt remaining."
msgid_plural "<strong>%d</strong> attempts remaining."
msgstr[0] "<strong>%d</strong> tentativa restante."
msgstr[1] "<strong>%d</strong> tentativas restantes."
#: limit-login-attempts.php:551
msgid "<strong>ERROR</strong>: Incorrect username or password."
msgstr "<strong>ERRO</strong>: Nome ou senha inválidos."
#: limit-login-attempts.php:714
msgid "IP|Internet address"
msgstr "IP"
#: limit-login-attempts.php:714
msgid "Tried to log in as"
msgstr "Tentou entrar como"
#: limit-login-attempts.php:719
#, php-format
msgid "%d lockout"
msgid_plural "%d lockouts"
msgstr[0] "%d bloqueio"
msgstr[1] "%d bloqueios"
#: limit-login-attempts.php:743
msgid "Cleared IP log"
msgstr "Limpou o log de IPs"
#: limit-login-attempts.php:751
msgid "Reset lockout count"
msgstr "Zerar contagem de bloqueios"
#: limit-login-attempts.php:759
msgid "Cleared current lockouts"
msgstr "Limpou bloqueios correntes"
#: limit-login-attempts.php:788
msgid "Options changed"
msgstr "Opções alteradas"
#: limit-login-attempts.php:799
msgid "<strong>NOTE:</strong> Only works in Wordpress 2.7 or later"
msgstr "<strong>NOTA:</strong> Funciona apenas no Wordpress 2.7 ou superior"
#: limit-login-attempts.php:815
#, php-format
msgid "It appears the site is reached directly (from your IP: %s)"
msgstr "Aparentemente o site é acessado diretamente (de seu IP: %s)"
#: limit-login-attempts.php:817
#, php-format
msgid "It appears the site is reached through a proxy server (proxy IP: %s, your IP: %s)"
msgstr "Aparentemente o site é acessado através de um servidor proxy (IP do servidor proxy: %s, seu IP: %s)"
#: limit-login-attempts.php:825
#, php-format
msgid "<strong>Current setting appears to be invalid</strong>. Please make sure it is correct. Further information can be found <a href=\"%s\" title=\"FAQ\">here</a>"
msgstr "<strong>Configurações atuais parecem ser inválidas</strong>. Por favor certifique-se que estão corretas. Informações adicionais podem ser encontradas <a href=\"%s\" title=\"FAQ\">aqui</a>"
#: limit-login-attempts.php:833
msgid "Limit Login Attempts Settings"
msgstr "Configurações do Limit Login Attempts"
#: limit-login-attempts.php:834
msgid "Statistics"
msgstr "Estatísticas"
#: limit-login-attempts.php:838
msgid "Total lockouts"
msgstr "Total de bloqueios"
#: limit-login-attempts.php:841
msgid "Reset Counter"
msgstr "Reiniciar contador"
#: limit-login-attempts.php:842
#, php-format
msgid "%d lockout since last reset"
msgid_plural "%d lockouts since last reset"
msgstr[0] "%d bloqueio desde que o contador foi reiniciado pela última vez"
msgstr[1] "%d bloqueios desde que o contador foi reiniciado pela última vez"
#: limit-login-attempts.php:843
msgid "No lockouts yet"
msgstr "Sem bloqueios ainda"
#: limit-login-attempts.php:848
msgid "Active lockouts"
msgstr "Bloqueios ativos"
#: limit-login-attempts.php:850
msgid "Restore Lockouts"
msgstr "Restaurar bloqueios"
#: limit-login-attempts.php:851
#, php-format
msgid "%d IP is currently blocked from trying to log in"
msgstr "%d IP está atualmente bloqueado de novas tentativas de login"
#: limit-login-attempts.php:857
msgid "Options"
msgstr "Opções"
#: limit-login-attempts.php:861
msgid "Lockout"
msgstr "Bloqueio"
#: limit-login-attempts.php:863
msgid "allowed retries"
msgstr "tentativas permitidas"
#: limit-login-attempts.php:864
msgid "minutes lockout"
msgstr "minutos de bloqueio"
#: limit-login-attempts.php:865
msgid "lockouts increase lockout time to"
msgstr "bloqueios aumentam o tempo de bloqueio para"
#: limit-login-attempts.php:865
msgid "hours"
msgstr "horas"
#: limit-login-attempts.php:866
msgid "hours until retries are reset"
msgstr "horas até o bloqueio expirar"
#: limit-login-attempts.php:870
msgid "Site connection"
msgstr "Conexão ao site"
#: limit-login-attempts.php:876
msgid "Direct connection"
msgstr "Conexão direta"
#: limit-login-attempts.php:881
msgid "From behind a reversy proxy"
msgstr "Através de um proxy reverso"
#: limit-login-attempts.php:887
msgid "Handle cookie login"
msgstr "Monitorar o cookie de login"
#: limit-login-attempts.php:889
msgid "Yes"
msgstr "Sim"
#: limit-login-attempts.php:889
msgid "No"
msgstr "Não"
#: limit-login-attempts.php:894
msgid "Notify on lockout"
msgstr "Notificar em bloqueios"
#: limit-login-attempts.php:896
msgid "Log IP"
msgstr "Registrar IP"
#: limit-login-attempts.php:897
msgid "Email to admin after"
msgstr "Mandar email para o administrador após"
#: limit-login-attempts.php:897
msgid "lockouts"
msgstr "bloqueios"
#: limit-login-attempts.php:902
msgid "Change Options"
msgstr "Modificar Opções"
#: limit-login-attempts.php:910
msgid "Lockout log"
msgstr "Registros de bloqueios"
#: limit-login-attempts.php:914
msgid "Clear Log"
msgstr "Excluir registros"
#. Plugin Name of an extension
msgid "Limit Login Attempts"
msgstr "Limit Login Attempts"
#. Plugin URI of an extension
msgid "http://devel.kostdoktorn.se/limit-login-attempts"
msgstr "http://devel.kostdoktorn.se/limit-login-attempts"
#. Description of an extension
msgid "Limit rate of login attempts, including by way of cookies, for each IP."
msgstr "Limita a frequência de tentativas de logins, incluindo cookies de login, para cada IP."
#. Author of an extension
msgid "Johan Eenfeldt"
msgstr "Johan Eenfeldt"
#. Author URI of an extension
msgid "http://devel.kostdoktorn.se"
msgstr "http://devel.kostdoktorn.se"

View File

@@ -0,0 +1,277 @@
# Limit Login Attempts German Translation
# Copyright (C) 2009 Johan Eenfeldt
# This file is distributed under the same license as the Wordpress package.
# Johan Eenfeldt <johan.eenfeldt@kostdoktorn.se>, 2009.
#
msgid ""
msgstr ""
"Project-Id-Version: limit-login-attempts 1.3\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/limit-login-attempts\n"
"POT-Creation-Date: 2009-01-28 17:17+0000\n"
"PO-Revision-Date: 2009-03-05 00:16+0200\n"
"Last-Translator: Robert Tudor <egipt@egt-design.com>\n"
"Language-Team: German <michael@skerwiderski.de>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-Language: German\n"
"X-Poedit-Country: GERMANY\n"
#: limit-login-attempts.php:372
#, php-format
msgid "%d hour"
msgid_plural "%d hours"
msgstr[0] "%d ora"
msgstr[1] "%d ore"
#: limit-login-attempts.php:378
#, php-format
msgid "%d minute"
msgid_plural "%d minutes"
msgstr[0] "%d Minut"
msgstr[1] "%d Minute"
#: limit-login-attempts.php:381
#, php-format
msgid "[%s] Too many failed login attempts"
msgstr "[%s] Prea multe incercari nereusite"
#: limit-login-attempts.php:383
#, php-format
msgid "%d failed login attempts (%d lockout(s)) from IP: %s"
msgstr "%d incercari de logare nereusite (%d inchidere(i)) de la IP: %s"
#: limit-login-attempts.php:387
#, php-format
msgid "Last user attempted: %s"
msgstr "Ultimul incercare: %s"
#: limit-login-attempts.php:390
#, php-format
msgid "IP was blocked for %s"
msgstr "IP-ul a fost blocat pentru %s."
#: limit-login-attempts.php:445
msgid "<strong>ERROR</strong>: Too many failed login attempts."
msgstr "<strong>EROARE</strong>: Prea multe incercari nereusite."
#: limit-login-attempts.php:449
msgid "Please try again later."
msgstr "Va rugam incercati mai tarziu."
#: limit-login-attempts.php:456
#, php-format
msgid "Please try again in %d hour."
msgid_plural "Please try again in %d hours."
msgstr[0] "Va rugam incercati in %d ora."
msgstr[1] "Va rugam incercati in %d ore"
#: limit-login-attempts.php:458
#, php-format
msgid "Please try again in %d minute."
msgid_plural "Please try again in %d minutes."
msgstr[0] "Va rugam incercati in %d Minut."
msgstr[1] "Va rugam incercati in %d Minute."
#: limit-login-attempts.php:487
#, php-format
msgid "<strong>%d</strong> attempt remaining."
msgid_plural "<strong>%d</strong> attempts remaining."
msgstr[0] "incercare ramasa <strong>%d</strong>"
msgstr[1] "incercari ramasa <strong>%d</strong>"
#: limit-login-attempts.php:551
msgid "<strong>ERROR</strong>: Incorrect username or password."
msgstr "<strong>EROARE</strong>: Nume de utilizator sau parola incorecta."
#: limit-login-attempts.php:714
msgid "IP|Internet address"
msgstr "IP"
#: limit-login-attempts.php:714
msgid "Tried to log in as"
msgstr "A incercat sa se logheze ca"
#: limit-login-attempts.php:719
#, php-format
msgid "%d lockout"
msgid_plural "%d lockouts"
msgstr[0] "%d inchidere"
msgstr[1] "%d inchideri"
#: limit-login-attempts.php:743
msgid "Cleared IP log"
msgstr "Am curatat logul cu IP"
#: limit-login-attempts.php:751
msgid "Reset lockout count"
msgstr "Reseteaza numaratoarea inchiderilor"
#: limit-login-attempts.php:759
msgid "Cleared current lockouts"
msgstr "Am curatat numaratoarea inchiderilor"
#: limit-login-attempts.php:788
msgid "Options changed"
msgstr "Optiuni schimbate"
#: limit-login-attempts.php:799
msgid "<strong>NOTE:</strong> Only works in Wordpress 2.7 or later"
msgstr "<strong>NOTA:</strong> Functioneaza doar in Wordpress 2.7 sau mai nou."
#: limit-login-attempts.php:815
#, php-format
msgid "It appears the site is reached directly (from your IP: %s)"
msgstr "Se pare ca site-ul este accesat direct (de la IP-ul dvs: %s)"
#: limit-login-attempts.php:817
#, php-format
msgid "It appears the site is reached through a proxy server (proxy IP: %s, your IP: %s)"
msgstr "Se pare ca site-ul este accesat printr-un adresa PROXY (IP Proxy: %s, IP dvs.: %s)"
#: limit-login-attempts.php:825
#, php-format
msgid "<strong>Current setting appears to be invalid</strong>. Please make sure it is correct. Further information can be found <a href=\"%s\" title=\"FAQ\">here</a>"
msgstr "<strong>Se pare ca setarile curente sunt invalide</strong>. Verificati corectitudinea lor. Mai multe informatii pot fi gasite <a href=\"%s\" title=\"FAQ\">aici</a>"
#: limit-login-attempts.php:833
msgid "Limit Login Attempts Settings"
msgstr "Setari Limitari Incercari Access"
#: limit-login-attempts.php:834
msgid "Statistics"
msgstr "Statistici"
#: limit-login-attempts.php:838
msgid "Total lockouts"
msgstr "Total inchideri"
#: limit-login-attempts.php:841
msgid "Reset Counter"
msgstr "Reseteaza numaratoarea"
#: limit-login-attempts.php:842
#, php-format
msgid "%d lockout since last reset"
msgid_plural "%d lockouts since last reset"
msgstr[0] "%d inchidere de la ultima resetare"
msgstr[1] "%d inchideri de la ultima resetare"
#: limit-login-attempts.php:843
msgid "No lockouts yet"
msgstr "Nici o inchidere pana acum"
#: limit-login-attempts.php:848
msgid "Active lockouts"
msgstr "Inchideri active"
#: limit-login-attempts.php:850
msgid "Restore Lockouts"
msgstr "Restaureaza inchideri"
#: limit-login-attempts.php:851
#, php-format
msgid "%d IP is currently blocked from trying to log in"
msgstr "IP-ul %d are momentan accesul de intrare blocat."
#: limit-login-attempts.php:857
msgid "Options"
msgstr "Optiuni"
#: limit-login-attempts.php:861
msgid "Lockout"
msgstr "Inchidere"
#: limit-login-attempts.php:863
msgid "allowed retries"
msgstr "incercari permise"
#: limit-login-attempts.php:864
msgid "minutes lockout"
msgstr "inchidere in minute"
#: limit-login-attempts.php:865
msgid "lockouts increase lockout time to"
msgstr "inchiderile maresc timpul in"
#: limit-login-attempts.php:865
msgid "hours"
msgstr "ore"
#: limit-login-attempts.php:866
msgid "hours until retries are reset"
msgstr "ore pana cand incercarile sunt resetate"
#: limit-login-attempts.php:870
msgid "Site connection"
msgstr "Conexie site"
#: limit-login-attempts.php:876
msgid "Direct connection"
msgstr "Conexie directa"
#: limit-login-attempts.php:881
msgid "From behind a reversy proxy"
msgstr "In spatele unui proxy"
#: limit-login-attempts.php:887
msgid "Handle cookie login"
msgstr "Logare tip cookie"
#: limit-login-attempts.php:889
msgid "Yes"
msgstr "Da"
#: limit-login-attempts.php:889
msgid "No"
msgstr "Nu"
#: limit-login-attempts.php:894
msgid "Notify on lockout"
msgstr "Notifica-ma de inchidere"
#: limit-login-attempts.php:896
msgid "Log IP"
msgstr "Logheaza IP"
#: limit-login-attempts.php:897
msgid "Email to admin after"
msgstr "Notifica adminul dupa"
#: limit-login-attempts.php:897
msgid "lockouts"
msgstr "inchideri"
#: limit-login-attempts.php:902
msgid "Change Options"
msgstr "Schimba optiunile"
#: limit-login-attempts.php:910
msgid "Lockout log"
msgstr "Log de inchidere"
#: limit-login-attempts.php:914
msgid "Clear Log"
msgstr "Sterge log"
#. Plugin Name of an extension
msgid "Limit Login Attempts"
msgstr "Limiteaza incercarile de logare"
#. Plugin URI of an extension
msgid "http://devel.kostdoktorn.se/limit-login-attempts"
msgstr "http://devel.kostdoktorn.se/limit-login-attempts"
#. Description of an extension
msgid "Limit rate of login attempts, including by way of cookies, for each IP."
msgstr "Limiteaza ratia incercarilor de logare, incluzand cookie, pentru fiecare IP."
#. Author of an extension
msgid "Johan Eenfeldt"
msgstr "Johan Eenfeldt"
#. Author URI of an extension
msgid "http://devel.kostdoktorn.se"
msgstr "http://devel.kostdoktorn.se"

View File

@@ -0,0 +1,277 @@
# Limit Login Attempts German Translation
# Copyright (C) 2009 Johan Eenfeldt
# This file is distributed under the same license as the Wordpress package.
# Johan Eenfeldt <johan.eenfeldt@kostdoktorn.se>, 2009.
#
msgid ""
msgstr ""
"Project-Id-Version: limit-login-attempts 1.3\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/limit-login-attempts\n"
"POT-Creation-Date: 2009-01-28 17:17+0000\n"
"PO-Revision-Date: 2009-08-03 15:55+0200\n"
"Last-Translator: Studio-XL.com <webmaster@studio-xl.com>\n"
"Language-Team: Catalan <rbuj@wanadoo.es>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-Language: Catalan\n"
"X-Poedit-Country: SPAIN\n"
#: limit-login-attempts.php:372
#, php-format
msgid "%d hour"
msgid_plural "%d hours"
msgstr[0] "%d час"
msgstr[1] "%d часов"
#: limit-login-attempts.php:378
#, php-format
msgid "%d minute"
msgid_plural "%d minutes"
msgstr[0] "%d минута"
msgstr[1] "%d минут"
#: limit-login-attempts.php:381
#, php-format
msgid "[%s] Too many failed login attempts"
msgstr "[%s] Превышен максимальный лимит попыток авторизации"
#: limit-login-attempts.php:383
#, php-format
msgid "%d failed login attempts (%d lockout(s)) from IP: %s"
msgstr "%d неудачных попыток авторизации (%d изоляция(ий)) с адреса IP: %s"
#: limit-login-attempts.php:387
#, php-format
msgid "Last user attempted: %s"
msgstr "Последняя попытка пользователя: %s"
#: limit-login-attempts.php:390
#, php-format
msgid "IP was blocked for %s"
msgstr "IP заблокирован для %s"
#: limit-login-attempts.php:445
msgid "<strong>ERROR</strong>: Too many failed login attempts."
msgstr "<strong>ВНИМАНИЕ</strong>: превышен лимит попыток авторизации."
#: limit-login-attempts.php:449
msgid "Please try again later."
msgstr "Пожалуйста попробуйте позже."
#: limit-login-attempts.php:456
#, php-format
msgid "Please try again in %d hour."
msgid_plural "Please try again in %d hours."
msgstr[0] "Пожалуйста попробуйте через %d час."
msgstr[1] " Пожалуйста попробуйте через %d часов."
#: limit-login-attempts.php:458
#, php-format
msgid "Please try again in %d minute."
msgid_plural "Please try again in %d minutes."
msgstr[0] "Пожалуйста попробуйте через %d минуту."
msgstr[1] "Пожалуйста попробуйте через %d минут."
#: limit-login-attempts.php:487
#, php-format
msgid "<strong>%d</strong> attempt remaining."
msgid_plural "<strong>%d</strong> attempts remaining."
msgstr[0] "<strong>%d</strong> intent restant."
msgstr[1] "Осталось <strong>%d</strong> попыток."
#: limit-login-attempts.php:551
msgid "<strong>ERROR</strong>: Incorrect username or password."
msgstr "<strong>ОШИБКА</strong>: Неверное имя пользователя или пароль."
#: limit-login-attempts.php:714
msgid "IP|Internet address"
msgstr "IP|Интернет-адрес"
#: limit-login-attempts.php:714
msgid "Tried to log in as"
msgstr "Пытался войти как"
#: limit-login-attempts.php:719
#, php-format
msgid "%d lockout"
msgid_plural "%d lockouts"
msgstr[0] "%d изоляция"
msgstr[1] "%d изоляций"
#: limit-login-attempts.php:743
msgid "Cleared IP log"
msgstr "Чистый IP лог"
#: limit-login-attempts.php:751
msgid "Reset lockout count"
msgstr "Сброс счетчика изоляций"
#: limit-login-attempts.php:759
msgid "Cleared current lockouts"
msgstr "Существующие изоляции очищены"
#: limit-login-attempts.php:788
msgid "Options changed"
msgstr "Опции изменены"
#: limit-login-attempts.php:799
msgid "<strong>NOTE:</strong> Only works in Wordpress 2.7 or later"
msgstr "<strong>Внимание:</strong> Работает только в версии Wordpress 2.7 или выше"
#: limit-login-attempts.php:815
#, php-format
msgid "It appears the site is reached directly (from your IP: %s)"
msgstr "Сайт доступен напрямую (с вашего IP: %s)"
#: limit-login-attempts.php:817
#, php-format
msgid "It appears the site is reached through a proxy server (proxy IP: %s, your IP: %s)"
msgstr "Сайт досупен через прокси-сервер (proxy IP: %s, ваш IP: %s)"
#: limit-login-attempts.php:825
#, php-format
msgid "<strong>Current setting appears to be invalid</strong>. Please make sure it is correct. Further information can be found <a href=\"%s\" title=\"FAQ\">here</a>"
msgstr "<strong>Данные настройки недействительны</strong>. Пожалуйста проверьте их. Дополнительная информация доступна <a href=\"%s\" title=\"FAQ\">здесь</a>"
#: limit-login-attempts.php:833
msgid "Limit Login Attempts Settings"
msgstr "Ограничение попыток авторизации"
#: limit-login-attempts.php:834
msgid "Statistics"
msgstr "Статистика"
#: limit-login-attempts.php:838
msgid "Total lockouts"
msgstr "Всего изоляций"
#: limit-login-attempts.php:841
msgid "Reset Counter"
msgstr "Сброс счетчика"
#: limit-login-attempts.php:842
#, php-format
msgid "%d lockout since last reset"
msgid_plural "%d lockouts since last reset"
msgstr[0] "%d изоляция с последнего сброса счетчика."
msgstr[1] "%d изоляций с последнего сброса счетчика."
#: limit-login-attempts.php:843
msgid "No lockouts yet"
msgstr "Пока без изоляций"
#: limit-login-attempts.php:848
msgid "Active lockouts"
msgstr "Активные изоляции"
#: limit-login-attempts.php:850
msgid "Restore Lockouts"
msgstr "Восстановить изоляции"
#: limit-login-attempts.php:851
#, php-format
msgid "%d IP is currently blocked from trying to log in"
msgstr "IP %d в данный момент заблокирован от попыток авторизации"
#: limit-login-attempts.php:857
msgid "Options"
msgstr "Опции"
#: limit-login-attempts.php:861
msgid "Lockout"
msgstr "Изоляция"
#: limit-login-attempts.php:863
msgid "allowed retries"
msgstr "разрешено дополнительных попыток"
#: limit-login-attempts.php:864
msgid "minutes lockout"
msgstr "изоляция в минутах"
#: limit-login-attempts.php:865
msgid "lockouts increase lockout time to"
msgstr "изоляций повысят время изоляции до"
#: limit-login-attempts.php:865
msgid "hours"
msgstr "часов"
#: limit-login-attempts.php:866
msgid "hours until retries are reset"
msgstr "часов до сброса количества попыток"
#: limit-login-attempts.php:870
msgid "Site connection"
msgstr "Подключение к сайту"
#: limit-login-attempts.php:876
msgid "Direct connection"
msgstr "Прямое подключение"
#: limit-login-attempts.php:881
msgid "From behind a reversy proxy"
msgstr "За прокси (reversy proxy)"
#: limit-login-attempts.php:887
msgid "Handle cookie login"
msgstr "Обрабатывать кукис логина"
#: limit-login-attempts.php:889
msgid "Yes"
msgstr "Да"
#: limit-login-attempts.php:889
msgid "No"
msgstr "Нет"
#: limit-login-attempts.php:894
msgid "Notify on lockout"
msgstr "Сообщать об изоляциях"
#: limit-login-attempts.php:896
msgid "Log IP"
msgstr "Записывать IP"
#: limit-login-attempts.php:897
msgid "Email to admin after"
msgstr "Отправлять имейл админу после"
#: limit-login-attempts.php:897
msgid "lockouts"
msgstr "изоляций"
#: limit-login-attempts.php:902
msgid "Change Options"
msgstr "Изменить настройки"
#: limit-login-attempts.php:910
msgid "Lockout log"
msgstr "Лог изоляций"
#: limit-login-attempts.php:914
msgid "Clear Log"
msgstr "Очистить лог"
#. Plugin Name of an extension
msgid "Limit Login Attempts"
msgstr "Ограничение попыток авторизации"
#. Plugin URI of an extension
msgid "http://devel.kostdoktorn.se/limit-login-attempts"
msgstr "http://devel.kostdoktorn.se/limit-login-attempts"
#. Description of an extension
msgid "Limit rate of login attempts, including by way of cookies, for each IP."
msgstr "Лимит количества попыток авторизации, включая поддержку куки, по IP."
#. Author of an extension
msgid "Johan Eenfeldt"
msgstr "Johan Eenfeldt"
#. Author URI of an extension
msgid "http://devel.kostdoktorn.se"
msgstr "http://devel.kostdoktorn.se"

View File

@@ -0,0 +1,270 @@
# Limit Login Attempts Swedish Translation
# Copyright (C) 2009 Johan Eenfeldt
# This file is distributed under the same license as the Wordpress package.
# Johan Eenfeldt <johan.eenfeldt@kostdoktorn.se>, 2009.
#
msgid ""
msgstr ""
"Project-Id-Version: limit-login-attempts 1.2\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/limit-login-attempts\n"
"POT-Creation-Date: 2012-05-20 10:43:32+00:00\n"
"PO-Revision-Date: 2012-05-20 12:51+0100\n"
"Last-Translator: Johan Eenfeldt <johan.eenfeldt@kostdoktorn.se>\n"
"Language-Team: Swedish\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: limit-login-attempts.php:522
msgid "%d hour"
msgid_plural "%d hours"
msgstr[0] "%d timme"
msgstr[1] "%d timmar"
#: limit-login-attempts.php:528
msgid "%d minute"
msgid_plural "%d minutes"
msgstr[0] "%d minut"
msgstr[1] "%d minuter"
#: limit-login-attempts.php:534
msgid "[%s] Failed login attempts from whitelisted IP"
msgstr "[%s] För många misslyckade inloggningar från IP i vitlista"
#: limit-login-attempts.php:538
msgid "[%s] Too many failed login attempts"
msgstr "[%s] För många misslyckade inloggningar"
#: limit-login-attempts.php:543
msgid "%d failed login attempts (%d lockout(s)) from IP: %s"
msgstr "%d misslyckade inloggningar (blockad %d gång(er)) från IP: %s"
#: limit-login-attempts.php:547
msgid "Last user attempted: %s"
msgstr "Misslyckades senast med användare : %s"
#: limit-login-attempts.php:551
msgid "IP was NOT blocked because of external whitelist."
msgstr "IP blockerades INTE på grund av extern vitlista."
#: limit-login-attempts.php:553
msgid "IP was blocked for %s"
msgstr "IP blockerades i %s"
#: limit-login-attempts.php:615
msgid "<strong>ERROR</strong>: Too many failed login attempts."
msgstr "<strong>Fel</strong>: F&ouml;r m&aring;nga misslyckade f&ouml;rs&ouml;k."
#: limit-login-attempts.php:619
msgid "Please try again later."
msgstr "F&ouml;rs&ouml;k igen senare."
#: limit-login-attempts.php:626
msgid "Please try again in %d hour."
msgid_plural "Please try again in %d hours."
msgstr[0] "F&ouml;rs&ouml;k igen om %d timme."
msgstr[1] "F&ouml;rs&ouml;k igen om %d timmar."
#: limit-login-attempts.php:628
msgid "Please try again in %d minute."
msgid_plural "Please try again in %d minutes."
msgstr[0] "F&ouml;rs&ouml;k igen om %d minut."
msgstr[1] "F&ouml;rs&ouml;k igen om %d minuter."
#: limit-login-attempts.php:657
msgid "<strong>%d</strong> attempt remaining."
msgid_plural "<strong>%d</strong> attempts remaining."
msgstr[0] "<strong>%d</strong> f&ouml;rs&ouml;k &aring;terst&aring;r."
msgstr[1] "<strong>%d</strong> f&ouml;rs&ouml;k &aring;terst&aring;r."
#: limit-login-attempts.php:728
msgid "<strong>ERROR</strong>: Incorrect username or password."
msgstr "<strong>Fel</strong>: Felaktigt anv&auml;ndarnamn eller l&ouml;senord."
#: limit-login-attempts.php:896
msgctxt "Internet address"
msgid "IP"
msgstr "IP"
#: limit-login-attempts.php:896
msgid "Tried to log in as"
msgstr "F&ouml;rs&ouml;kte logga in som"
#: limit-login-attempts.php:901
msgid "%d lockout"
msgid_plural "%d lockouts"
msgstr[0] "%d blockering"
msgstr[1] "%d blockeringar"
#: limit-login-attempts.php:930
msgid "Cleared IP log"
msgstr "Rensade IP loggen"
#: limit-login-attempts.php:938
msgid "Reset lockout count"
msgstr "Nollst&auml;llde r&auml;knaren f&ouml;r blockeringar"
#: limit-login-attempts.php:946
msgid "Cleared current lockouts"
msgstr "Tog bort aktuella blockeringar"
#: limit-login-attempts.php:975
msgid "Options changed"
msgstr "Inst&auml;llningar &auml;ndrade"
#: limit-login-attempts.php:993
msgid "It appears the site is reached directly (from your IP: %s)"
msgstr "Sajten tycks vara direktansluten (från din IP: %s)"
#: limit-login-attempts.php:995
msgid "It appears the site is reached through a proxy server (proxy IP: %s, your IP: %s)"
msgstr "Sajten tycks ansluta genom en proxy server (proxy IP: %s, din IP: %s)"
#: limit-login-attempts.php:1003
msgid "<strong>Current setting appears to be invalid</strong>. Please make sure it is correct. Further information can be found <a href=\"%s\" title=\"FAQ\">here</a>"
msgstr "<strong>Nuvarande inställningar kan vara fel</strong>. Säkerställ att de är korrekta. Mer information kan hittas <a href=\"%s\" title=\"FAQ\">här</a>"
#: limit-login-attempts.php:1011
msgid "Limit Login Attempts Settings"
msgstr "Limit Login Attempts Inst&auml;llningar"
#: limit-login-attempts.php:1012
msgid "Statistics"
msgstr "Statistik"
#: limit-login-attempts.php:1017
msgid "Total lockouts"
msgstr "Antal blockeringar"
#: limit-login-attempts.php:1020
msgid "Reset Counter"
msgstr "Nollst&auml;ll r&auml;knare"
#: limit-login-attempts.php:1021
msgid "%d lockout since last reset"
msgid_plural "%d lockouts since last reset"
msgstr[0] "%d blockering sedan r&auml;knaren nollst&auml;lldes"
msgstr[1] "%d blockeringar sedan r&auml;knaren nollst&auml;lldes"
#: limit-login-attempts.php:1022
msgid "No lockouts yet"
msgstr "Inga blockeringar har skett &auml;nnu"
#: limit-login-attempts.php:1027
msgid "Active lockouts"
msgstr "Aktiva blockeringar"
#: limit-login-attempts.php:1029
msgid "Restore Lockouts"
msgstr "Ta bort blockeringar"
#: limit-login-attempts.php:1030
msgid "%d IP is currently blocked from trying to log in"
msgstr "%d IP &auml;r f&ouml;r n&auml;rvarande blockerade fr&aring;n att logga in"
#: limit-login-attempts.php:1036
msgid "Options"
msgstr "Inst&auml;llningar"
#: limit-login-attempts.php:1041
msgid "Lockout"
msgstr "Blockering"
#: limit-login-attempts.php:1043
msgid "allowed retries"
msgstr "till&aring;tna misslyckanden"
#: limit-login-attempts.php:1044
msgid "minutes lockout"
msgstr "minuters blockering"
#: limit-login-attempts.php:1045
msgid "lockouts increase lockout time to"
msgstr "blockeringar &ouml;kar tiden till"
#: limit-login-attempts.php:1045
msgid "hours"
msgstr "timmar"
#: limit-login-attempts.php:1046
msgid "hours until retries are reset"
msgstr "timmar tills misslyckanden nollst&auml;lls"
#: limit-login-attempts.php:1050
msgid "Site connection"
msgstr "Sajten ansluter"
#: limit-login-attempts.php:1056
msgid "Direct connection"
msgstr "Direktansluten"
#: limit-login-attempts.php:1061
msgid "From behind a reversy proxy"
msgstr "Bakom en reverse proxy"
#: limit-login-attempts.php:1067
msgid "Handle cookie login"
msgstr "Hantera inloggning med kakor"
#: limit-login-attempts.php:1069
msgid "Yes"
msgstr "Ja"
#: limit-login-attempts.php:1069
msgid "No"
msgstr "Nej"
#: limit-login-attempts.php:1073
msgid "Notify on lockout"
msgstr "Notifiera om blockering"
#: limit-login-attempts.php:1075
msgid "Log IP"
msgstr "Logga IP"
#: limit-login-attempts.php:1076
msgid "Email to admin after"
msgstr "E-post till administrat&ouml;r efter"
#: limit-login-attempts.php:1076
msgid "lockouts"
msgstr "blockeringar"
#: limit-login-attempts.php:1081
msgid "Change Options"
msgstr "&Auml;ndra Inst&auml;llningar"
#: limit-login-attempts.php:1089
msgid "Lockout log"
msgstr "Log &ouml;ver blockeringar"
#: limit-login-attempts.php:1094
msgid "Clear Log"
msgstr "Rensa Log"
#. Plugin Name of the plugin/theme
msgid "Limit Login Attempts"
msgstr "Limit Login Attempts"
#. Plugin URI of the plugin/theme
msgid "http://devel.kostdoktorn.se/limit-login-attempts"
msgstr "http://devel.kostdoktorn.se/limit-login-attempts"
#. Description of the plugin/theme
msgid "Limit rate of login attempts, including by way of cookies, for each IP."
msgstr "Limit rate of login attempts, including by way of cookies, for each IP."
#. Author of the plugin/theme
msgid "Johan Eenfeldt"
msgstr "Johan Eenfeldt"
#. Author URI of the plugin/theme
msgid "http://devel.kostdoktorn.se"
msgstr "http://devel.kostdoktorn.se"
#~ msgid "IP|Internet address"
#~ msgstr "IP"
#~ msgid "<strong>NOTE:</strong> Only works in Wordpress 2.7 or later"
#~ msgstr "<strong>OBS:</strong> Fungerar endast i WordPress 2.7 eller senare"

View File

@@ -0,0 +1,277 @@
# Limit Login Attempts German Translation
# Copyright (C) 2009 Johan Eenfeldt
# This file is distributed under the same license as the Wordpress package.
# Johan Eenfeldt <johan.eenfeldt@kostdoktorn.se>, 2009.
#
msgid ""
msgstr ""
"Project-Id-Version: limit-login-attempts 1.3\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/limit-login-attempts\n"
"POT-Creation-Date: 2009-01-28 17:17+0000\n"
"PO-Revision-Date: 2009-05-01 19:49+0200\n"
"Last-Translator: canarkadas <durustem@gmail.com>\n"
"Language-Team: German <michael@skerwiderski.de>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-Language: German\n"
"X-Poedit-Country: GERMANY\n"
#: limit-login-attempts.php:372
#, php-format
msgid "%d hour"
msgid_plural "%d hours"
msgstr[0] "%d Saat"
msgstr[1] "%d Saat"
#: limit-login-attempts.php:378
#, php-format
msgid "%d minute"
msgid_plural "%d minutes"
msgstr[0] "%d Dakika"
msgstr[1] "%d Dakika"
#: limit-login-attempts.php:381
#, php-format
msgid "[%s] Too many failed login attempts"
msgstr "[%s] Hatalı giriş denemeleri bilgisi"
#: limit-login-attempts.php:383
#, php-format
msgid "%d failed login attempts (%d lockout(s)) from IP: %s"
msgstr "%d başarısız giriş denemesi. Aynı IP adresi ile yapılan deneme: %s "
#: limit-login-attempts.php:387
#, php-format
msgid "Last user attempted: %s"
msgstr "Denemede kullanılan isim: %s"
#: limit-login-attempts.php:390
#, php-format
msgid "IP was blocked for %s"
msgstr "%s no'lu IP engellendi"
#: limit-login-attempts.php:445
msgid "<strong>ERROR</strong>: Too many failed login attempts."
msgstr "<strong>HATA</strong>: Çok fazla sayıda başarısız giriş denemesi."
#: limit-login-attempts.php:449
msgid "Please try again later."
msgstr "Lütfen daha sonra tekrar deneyin."
#: limit-login-attempts.php:456
#, php-format
msgid "Please try again in %d hour."
msgid_plural "Please try again in %d hours."
msgstr[0] "Lütfen %d saat sonra tekrar deneyin."
msgstr[1] "Lütfen %d saat sonra tekrar deneyin."
#: limit-login-attempts.php:458
#, php-format
msgid "Please try again in %d minute."
msgid_plural "Please try again in %d minutes."
msgstr[0] "Lütfen %d dakika sonra tekrar deneyin."
msgstr[1] "Lütfen %d dakika sonra tekrar deneyin."
#: limit-login-attempts.php:487
#, php-format
msgid "<strong>%d</strong> attempt remaining."
msgid_plural "<strong>%d</strong> attempts remaining."
msgstr[0] "<strong>%d</strong> kez daha giriş yapmayı deneyebilirsiniz."
msgstr[1] "<strong>%d</strong> kez daha giriş yapmayı deneyebilirsiniz."
#: limit-login-attempts.php:551
msgid "<strong>ERROR</strong>: Incorrect username or password."
msgstr "<strong>HATA</ strong>: Yanlış kullanıcı adı veya şifre."
#: limit-login-attempts.php:714
msgid "IP|Internet address"
msgstr "IP No"
#: limit-login-attempts.php:714
msgid "Tried to log in as"
msgstr "İsim ve deneme sayısı"
#: limit-login-attempts.php:719
#, php-format
msgid "%d lockout"
msgid_plural "%d lockouts"
msgstr[0] "%d giriş denemesi"
msgstr[1] "%d giriş denemesi"
#: limit-login-attempts.php:743
msgid "Cleared IP log"
msgstr "IP denemesi yapanların bilgileri silindi"
#: limit-login-attempts.php:751
msgid "Reset lockout count"
msgstr "Giriş denemeleri sayacı sıfırlandı"
#: limit-login-attempts.php:759
msgid "Cleared current lockouts"
msgstr "Giriş denemeleri silindi"
#: limit-login-attempts.php:788
msgid "Options changed"
msgstr "Seçenekler değiştirildi"
#: limit-login-attempts.php:799
msgid "<strong>NOTE:</strong> Only works in Wordpress 2.7 or later"
msgstr "<strong>NOT:</strong> Eklenti sadece Wordpress 2.7 ve daha sonrası ile çalışır."
#: limit-login-attempts.php:815
#, php-format
msgid "It appears the site is reached directly (from your IP: %s)"
msgstr "Sizin IP adresiniz: %s (bu IP ile site gezilebilir)."
#: limit-login-attempts.php:817
#, php-format
msgid "It appears the site is reached through a proxy server (proxy IP: %s, your IP: %s)"
msgstr "Proxy sunucusu kullanıyorsunuz (proxy IP: %s) %s IP adresinizle ile site gezilebilir."
#: limit-login-attempts.php:825
#, php-format
msgid "<strong>Current setting appears to be invalid</strong>. Please make sure it is correct. Further information can be found <a href=\"%s\" title=\"FAQ\">here</a>"
msgstr "<strong>Seçenekler geçersiz</strong>. Girdilerin doğru olduğundan emin olun, daha fazla bilgi için <a href=\"%s\" title=\"FAQ\">bakınız.</a>"
#: limit-login-attempts.php:833
msgid "Limit Login Attempts Settings"
msgstr "Limit Login Attempts Ayarlar"
#: limit-login-attempts.php:834
msgid "Statistics"
msgstr "İstatistik"
#: limit-login-attempts.php:838
msgid "Total lockouts"
msgstr "Tüm giriş denemeleri"
#: limit-login-attempts.php:841
msgid "Reset Counter"
msgstr "Sayacı Sıfırla"
#: limit-login-attempts.php:842
#, php-format
msgid "%d lockout since last reset"
msgid_plural "%d lockouts since last reset"
msgstr[0] "En son sıfırlamadan sonra gerçekleşen giriş denemesi sayısı %d "
msgstr[1] "En son sıfırlamadan sonra gerçekleşen giriş denemesi sayısı %d "
#: limit-login-attempts.php:843
msgid "No lockouts yet"
msgstr "Henüz giriş denemesi yok"
#: limit-login-attempts.php:848
msgid "Active lockouts"
msgstr "Aktif giriş denemesi"
#: limit-login-attempts.php:850
msgid "Restore Lockouts"
msgstr "Giriş denemelerini düzenleyin"
#: limit-login-attempts.php:851
#, php-format
msgid "%d IP is currently blocked from trying to log in"
msgstr "%d no'lu IP halen engelleniyor"
#: limit-login-attempts.php:857
msgid "Options"
msgstr "Tercihler"
#: limit-login-attempts.php:861
msgid "Lockout"
msgstr "Giriş denemeleri"
#: limit-login-attempts.php:863
msgid "allowed retries"
msgstr "Müsaade edilen giriş denemesi sayınızı yazınız."
#: limit-login-attempts.php:864
msgid "minutes lockout"
msgstr "Dakika sonra yeniden giriş denemesi yapılabilsin."
#: limit-login-attempts.php:865
msgid "lockouts increase lockout time to"
msgstr "Defadan fazla giriş denemesi yapılamasın."
#: limit-login-attempts.php:865
msgid "hours"
msgstr "(Saat içinde)"
#: limit-login-attempts.php:866
msgid "hours until retries are reset"
msgstr "Sıfırlamaya kadar yapılabilecek giriş denemesi sayınızı yazınız."
#: limit-login-attempts.php:870
msgid "Site connection"
msgstr "Site bağlantınız"
#: limit-login-attempts.php:876
msgid "Direct connection"
msgstr "Direk bağlantı"
#: limit-login-attempts.php:881
msgid "From behind a reversy proxy"
msgstr "Bir proxy (vekil, aracı sunucu) arkasından"
#: limit-login-attempts.php:887
msgid "Handle cookie login"
msgstr "Çerezler kullanılarak giriş yapılabilsin"
#: limit-login-attempts.php:889
msgid "Yes"
msgstr "Evet"
#: limit-login-attempts.php:889
msgid "No"
msgstr "Hayır"
#: limit-login-attempts.php:894
msgid "Notify on lockout"
msgstr "Giriş denemeleri bildirilsin (Yazacağınız sayı giriş denemesini değil, her IP no'su adına ayrı bir kullanıcıyı ifade eder)"
#: limit-login-attempts.php:896
msgid "Log IP"
msgstr "IP kayıtları dahil"
#: limit-login-attempts.php:897
msgid "Email to admin after"
msgstr "Site yöneticisi"
#: limit-login-attempts.php:897
msgid "lockouts"
msgstr "giriş denemesi olduğunda e-posta ile bilgilendirilsin."
#: limit-login-attempts.php:902
msgid "Change Options"
msgstr "KAYDET"
#: limit-login-attempts.php:910
msgid "Lockout log"
msgstr "Giriş denemesi kayıtları"
#: limit-login-attempts.php:914
msgid "Clear Log"
msgstr "Kayıtları Sil"
#. Plugin Name of an extension
msgid "Limit Login Attempts"
msgstr "Limit Login Attempts"
#. Plugin URI of an extension
msgid "http://devel.kostdoktorn.se/limit-login-attempts"
msgstr "http://devel.kostdoktorn.se/limit-login-attempts"
#. Description of an extension
msgid "Limit rate of login attempts, including by way of cookies, for each IP."
msgstr "Her IP için giriş deneme sayısı (çerezler dahil)."
#. Author of an extension
msgid "Johan Eenfeldt"
msgstr "Johan Eenfeldt"
#. Author URI of an extension
msgid "http://devel.kostdoktorn.se"
msgstr "http://devel.kostdoktorn.se"

View File

@@ -0,0 +1,277 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Johan Eenfeldt
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: Limit Login Attempts v1.5\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/limit-login-attempts\n"
"POT-Creation-Date: 2009-01-28 17:17+0000\n"
"PO-Revision-Date: 2010-07-23 03:16+0800\n"
"Last-Translator: Denny Huang <bigexplorations@bigexplorations.com.tw>\n"
"Language-Team: 小弟的大發現 <bigexplorations@bigexplorations.com.tw>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
"X-Poedit-Language: Chinese\n"
"X-Poedit-Country: TAIWAN\n"
#: limit-login-attempts.php:372
#, php-format
msgid "%d hour"
msgid_plural "%d hours"
msgstr[0] "%d 小時"
msgstr[1] "%d 小時"
#: limit-login-attempts.php:378
#, php-format
msgid "%d minute"
msgid_plural "%d minutes"
msgstr[0] "%d 分鐘"
msgstr[1] "%d 分鐘"
#: limit-login-attempts.php:381
#, php-format
msgid "[%s] Too many failed login attempts"
msgstr "[%s] 嘗試過多次的失敗登入"
#: limit-login-attempts.php:383
#, php-format
msgid "%d failed login attempts (%d lockout(s)) from IP: %s"
msgstr "登入失敗嘗試次數: %d (%d 鎖定) 來自 IP: %s"
#: limit-login-attempts.php:387
#, php-format
msgid "Last user attempted: %s"
msgstr "最後一位使用者嘗試: %s"
#: limit-login-attempts.php:390
#, php-format
msgid "IP was blocked for %s"
msgstr "IP已被封鎖。 原因: %s"
#: limit-login-attempts.php:445
msgid "<strong>ERROR</strong>: Too many failed login attempts."
msgstr "<strong>錯誤</strong>: 嘗試過多次失敗登入"
#: limit-login-attempts.php:449
msgid "Please try again later."
msgstr "請稍候再試."
#: limit-login-attempts.php:456
#, php-format
msgid "Please try again in %d hour."
msgid_plural "Please try again in %d hours."
msgstr[0] "請在%d小時後再重試。"
msgstr[1] "請在%d小時後再重試。"
#: limit-login-attempts.php:458
#, php-format
msgid "Please try again in %d minute."
msgid_plural "Please try again in %d minutes."
msgstr[0] "請在%d分鐘後再重試。"
msgstr[1] "請在%d分鐘後再重試。"
#: limit-login-attempts.php:487
#, php-format
msgid "<strong>%d</strong> attempt remaining."
msgid_plural "<strong>%d</strong> attempts remaining."
msgstr[0] "嘗試次數剩<strong>%d</strong>次."
msgstr[1] "嘗試次數剩<strong>%d</strong>次."
#: limit-login-attempts.php:551
msgid "<strong>ERROR</strong>: Incorrect username or password."
msgstr "<strong>錯誤</strong>: 帳號或密碼錯誤."
#: limit-login-attempts.php:714
msgid "IP|Internet address"
msgstr "IP|網路位址"
#: limit-login-attempts.php:714
msgid "Tried to log in as"
msgstr "嘗試登入為"
#: limit-login-attempts.php:719
#, php-format
msgid "%d lockout"
msgid_plural "%d lockouts"
msgstr[0] "%d 次鎖定"
msgstr[1] "%d 次鎖定"
#: limit-login-attempts.php:743
msgid "Cleared IP log"
msgstr "清除IP紀錄"
#: limit-login-attempts.php:751
msgid "Reset lockout count"
msgstr "重設鎖定計數器"
#: limit-login-attempts.php:759
msgid "Cleared current lockouts"
msgstr "目前鎖定次數已重設"
#: limit-login-attempts.php:788
msgid "Options changed"
msgstr "設定已儲存"
#: limit-login-attempts.php:799
msgid "<strong>NOTE:</strong> Only works in Wordpress 2.7 or later"
msgstr "<strong>注意:</strong> 只在 Wordpress 2.7 或以後版本有效"
#: limit-login-attempts.php:815
#, php-format
msgid "It appears the site is reached directly (from your IP: %s)"
msgstr "網站與您的電腦(IP: %s)似乎是直接連線"
#: limit-login-attempts.php:817
#, php-format
msgid "It appears the site is reached through a proxy server (proxy IP: %s, your IP: %s)"
msgstr "網站似乎是透過代理伺服器(IP:%s)再與您的電腦(IP: %s)連線"
#: limit-login-attempts.php:825
#, php-format
msgid "<strong>Current setting appears to be invalid</strong>. Please make sure it is correct. Further information can be found <a href=\"%s\" title=\"FAQ\">here</a>"
msgstr "<strong>目前設定有些問題</strong>. 請再次檢查. 更多資訊可以在 <a href=\"%s\" title=\"FAQ\">這邊</a>找到"
#: limit-login-attempts.php:833
msgid "Limit Login Attempts Settings"
msgstr "Limit Login Attempts 設定"
#: limit-login-attempts.php:834
msgid "Statistics"
msgstr "數據"
#: limit-login-attempts.php:838
msgid "Total lockouts"
msgstr "總共鎖定次數"
#: limit-login-attempts.php:841
msgid "Reset Counter"
msgstr "重設計數器"
#: limit-login-attempts.php:842
#, php-format
msgid "%d lockout since last reset"
msgid_plural "%d lockouts since last reset"
msgstr[0] "自從上次重設,已有%d次鎖定。"
msgstr[1] "自從上次重設,已有%d次鎖定。"
#: limit-login-attempts.php:843
msgid "No lockouts yet"
msgstr "未有任何鎖定紀錄"
#: limit-login-attempts.php:848
msgid "Active lockouts"
msgstr "解除鎖定"
#: limit-login-attempts.php:850
msgid "Restore Lockouts"
msgstr "還原鎖定"
#: limit-login-attempts.php:851
#, php-format
msgid "%d IP is currently blocked from trying to log in"
msgstr "IP: %d嘗試登入但目前已被阻擋"
#: limit-login-attempts.php:857
msgid "Options"
msgstr "選項"
#: limit-login-attempts.php:861
msgid "Lockout"
msgstr "鎖定"
#: limit-login-attempts.php:863
msgid "allowed retries"
msgstr "允許嘗試次數"
#: limit-login-attempts.php:864
msgid "minutes lockout"
msgstr "分鐘鎖定"
#: limit-login-attempts.php:865
msgid "lockouts increase lockout time to"
msgstr "次鎖定後,將鎖定時間增加為"
#: limit-login-attempts.php:865
msgid "hours"
msgstr "小時"
#: limit-login-attempts.php:866
msgid "hours until retries are reset"
msgstr "小時直到重設登入嘗試"
#: limit-login-attempts.php:870
msgid "Site connection"
msgstr "網站連結"
#: limit-login-attempts.php:876
msgid "Direct connection"
msgstr "直接連線"
#: limit-login-attempts.php:881
msgid "From behind a reversy proxy"
msgstr "透過代理伺服器"
#: limit-login-attempts.php:887
msgid "Handle cookie login"
msgstr "控管Cookie登入"
#: limit-login-attempts.php:889
msgid "Yes"
msgstr "是"
#: limit-login-attempts.php:889
msgid "No"
msgstr "否"
#: limit-login-attempts.php:894
msgid "Notify on lockout"
msgstr "鎖定的提醒"
#: limit-login-attempts.php:896
msgid "Log IP"
msgstr "紀錄 IP"
#: limit-login-attempts.php:897
msgid "Email to admin after"
msgstr "Email 給管理員當超過"
#: limit-login-attempts.php:897
msgid "lockouts"
msgstr "鎖定次數"
#: limit-login-attempts.php:902
msgid "Change Options"
msgstr "儲存設定"
#: limit-login-attempts.php:910
msgid "Lockout log"
msgstr "鎖定紀錄"
#: limit-login-attempts.php:914
msgid "Clear Log"
msgstr "清除記錄"
#. Plugin Name of an extension
msgid "Limit Login Attempts"
msgstr "Limit Login Attempts"
#. Plugin URI of an extension
msgid "http://devel.kostdoktorn.se/limit-login-attempts"
msgstr "http://devel.kostdoktorn.se/limit-login-attempts"
#. Description of an extension
msgid "Limit rate of login attempts, including by way of cookies, for each IP."
msgstr "限制登入嘗試比率(包含Cookies 和 IP) [外掛中文化: <a href=\"http://blog.bigexplorations.com.tw/\" target=\"_blank\" title=\"小弟的大發現\">Denny Huang</a>]"
#. Author of an extension
msgid "Johan Eenfeldt"
msgstr "Johan Eenfeldt"
#. Author URI of an extension
msgid "http://devel.kostdoktorn.se"
msgstr "http://devel.kostdoktorn.se"

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,265 @@
# Copyright (C) 2012 Limit Login Attempts
# This file is distributed under the same license as the Limit Login Attempts package.
msgid ""
msgstr ""
"Project-Id-Version: Limit Login Attempts 1.7.0\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/limit-login-attempts\n"
"POT-Creation-Date: 2012-05-20 10:43:32+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2012-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
#: limit-login-attempts.php:522
msgid "%d hour"
msgid_plural "%d hours"
msgstr[0] ""
msgstr[1] ""
#: limit-login-attempts.php:528
msgid "%d minute"
msgid_plural "%d minutes"
msgstr[0] ""
msgstr[1] ""
#: limit-login-attempts.php:534
msgid "[%s] Failed login attempts from whitelisted IP"
msgstr ""
#: limit-login-attempts.php:538
msgid "[%s] Too many failed login attempts"
msgstr ""
#: limit-login-attempts.php:543
msgid "%d failed login attempts (%d lockout(s)) from IP: %s"
msgstr ""
#: limit-login-attempts.php:547
msgid "Last user attempted: %s"
msgstr ""
#: limit-login-attempts.php:551
msgid "IP was NOT blocked because of external whitelist."
msgstr ""
#: limit-login-attempts.php:553
msgid "IP was blocked for %s"
msgstr ""
#: limit-login-attempts.php:615
msgid "<strong>ERROR</strong>: Too many failed login attempts."
msgstr ""
#: limit-login-attempts.php:619
msgid "Please try again later."
msgstr ""
#: limit-login-attempts.php:626
msgid "Please try again in %d hour."
msgid_plural "Please try again in %d hours."
msgstr[0] ""
msgstr[1] ""
#: limit-login-attempts.php:628
msgid "Please try again in %d minute."
msgid_plural "Please try again in %d minutes."
msgstr[0] ""
msgstr[1] ""
#: limit-login-attempts.php:657
msgid "<strong>%d</strong> attempt remaining."
msgid_plural "<strong>%d</strong> attempts remaining."
msgstr[0] ""
msgstr[1] ""
#: limit-login-attempts.php:728
msgid "<strong>ERROR</strong>: Incorrect username or password."
msgstr ""
#: limit-login-attempts.php:896
msgctxt "Internet address"
msgid "IP"
msgstr ""
#: limit-login-attempts.php:896
msgid "Tried to log in as"
msgstr ""
#: limit-login-attempts.php:901
msgid "%d lockout"
msgid_plural "%d lockouts"
msgstr[0] ""
msgstr[1] ""
#: limit-login-attempts.php:930
msgid "Cleared IP log"
msgstr ""
#: limit-login-attempts.php:938
msgid "Reset lockout count"
msgstr ""
#: limit-login-attempts.php:946
msgid "Cleared current lockouts"
msgstr ""
#: limit-login-attempts.php:975
msgid "Options changed"
msgstr ""
#: limit-login-attempts.php:993
msgid "It appears the site is reached directly (from your IP: %s)"
msgstr ""
#: limit-login-attempts.php:995
msgid ""
"It appears the site is reached through a proxy server (proxy IP: %s, your "
"IP: %s)"
msgstr ""
#: limit-login-attempts.php:1003
msgid ""
"<strong>Current setting appears to be invalid</strong>. Please make sure it "
"is correct. Further information can be found <a href=\"%s\" title=\"FAQ"
"\">here</a>"
msgstr ""
#: limit-login-attempts.php:1011
msgid "Limit Login Attempts Settings"
msgstr ""
#: limit-login-attempts.php:1012
msgid "Statistics"
msgstr ""
#: limit-login-attempts.php:1017
msgid "Total lockouts"
msgstr ""
#: limit-login-attempts.php:1020
msgid "Reset Counter"
msgstr ""
#: limit-login-attempts.php:1021
msgid "%d lockout since last reset"
msgid_plural "%d lockouts since last reset"
msgstr[0] ""
msgstr[1] ""
#: limit-login-attempts.php:1022
msgid "No lockouts yet"
msgstr ""
#: limit-login-attempts.php:1027
msgid "Active lockouts"
msgstr ""
#: limit-login-attempts.php:1029
msgid "Restore Lockouts"
msgstr ""
#: limit-login-attempts.php:1030
msgid "%d IP is currently blocked from trying to log in"
msgstr ""
#: limit-login-attempts.php:1036
msgid "Options"
msgstr ""
#: limit-login-attempts.php:1041
msgid "Lockout"
msgstr ""
#: limit-login-attempts.php:1043
msgid "allowed retries"
msgstr ""
#: limit-login-attempts.php:1044
msgid "minutes lockout"
msgstr ""
#: limit-login-attempts.php:1045
msgid "lockouts increase lockout time to"
msgstr ""
#: limit-login-attempts.php:1045
msgid "hours"
msgstr ""
#: limit-login-attempts.php:1046
msgid "hours until retries are reset"
msgstr ""
#: limit-login-attempts.php:1050
msgid "Site connection"
msgstr ""
#: limit-login-attempts.php:1056
msgid "Direct connection"
msgstr ""
#: limit-login-attempts.php:1061
msgid "From behind a reversy proxy"
msgstr ""
#: limit-login-attempts.php:1067
msgid "Handle cookie login"
msgstr ""
#: limit-login-attempts.php:1069
msgid "Yes"
msgstr ""
#: limit-login-attempts.php:1069
msgid "No"
msgstr ""
#: limit-login-attempts.php:1073
msgid "Notify on lockout"
msgstr ""
#: limit-login-attempts.php:1075
msgid "Log IP"
msgstr ""
#: limit-login-attempts.php:1076
msgid "Email to admin after"
msgstr ""
#: limit-login-attempts.php:1076
msgid "lockouts"
msgstr ""
#: limit-login-attempts.php:1081
msgid "Change Options"
msgstr ""
#: limit-login-attempts.php:1089
msgid "Lockout log"
msgstr ""
#: limit-login-attempts.php:1094
msgid "Clear Log"
msgstr ""
#. Plugin Name of the plugin/theme
msgid "Limit Login Attempts"
msgstr ""
#. Plugin URI of the plugin/theme
msgid "http://devel.kostdoktorn.se/limit-login-attempts"
msgstr ""
#. Description of the plugin/theme
msgid "Limit rate of login attempts, including by way of cookies, for each IP."
msgstr ""
#. Author of the plugin/theme
msgid "Johan Eenfeldt"
msgstr ""
#. Author URI of the plugin/theme
msgid "http://devel.kostdoktorn.se"
msgstr ""

View File

@@ -0,0 +1,186 @@
=== Limit Login Attempts ===
Contributors: johanee
Tags: login, security, authentication
Requires at least: 2.8
Tested up to: 3.3.2
Stable tag: 1.7.1
Limit rate of login attempts, including by way of cookies, for each IP. Fully customizable.
== Description ==
Limit the number of login attempts possible both through normal login as well as using auth cookies.
By default WordPress allows unlimited login attempts either through the login page or by sending special cookies. This allows passwords (or hashes) to be brute-force cracked with relative ease.
Limit Login Attempts blocks an Internet address from making further attempts after a specified limit on retries is reached, making a brute-force attack difficult or impossible.
Features
* Limit the number of retry attempts when logging in (for each IP). Fully customizable
* Limit the number of attempts to log in using auth cookies in same way
* Informs user about remaining retries or lockout time on login page
* Optional logging, optional email notification
* Handles server behind reverse proxy
* It is possible to whitelist IPs using a filter. But you probably shouldn't. :-)
Translations: Bulgarian, Brazilian Portuguese, Catalan, Chinese (Traditional), Czech, Dutch, Finnish, French, German, Hungarian, Norwegian, Persian, Romanian, Russian, Spanish, Swedish, Turkish
Plugin uses standard actions and filters only.
== Installation ==
1. Download and extract plugin files to a wp-content/plugin directory.
2. Activate the plugin through the WordPress admin interface.
3. Customize the settings on the options page, if desired. If your server is located behind a reverse proxy make sure to change this setting.
If you have any questions or problems please make a post here: http://wordpress.org/tags/limit-login-attempts
== Frequently Asked Questions ==
= Why not reset failed attempts on a successful login? =
This is very much by design. Otherwise you could brute force the "admin" password by logging in as your own user every 4th attempt.
= What is this option about site connection and reverse proxy? =
A reverse proxy is a server in between the site and the Internet (perhaps handling caching or load-balancing). This makes getting the correct client IP to block slightly more complicated.
The option default to NOT being behind a proxy -- which should be by far the common case.
= How do I know if my site is behind a reverse proxy? =
You probably are not or you would know. We show a pretty good guess on the option page. Set the option using this unless you are sure you know better.
= Can I whitelist my IP so I don't get locked out? =
First please consider if you really need this. Generally speaking it is not a good idea to have exceptions to your security policies.
That said, there is now a filter which allows you to do it: "limit_login_whitelist_ip".
Example:
function my_ip_whitelist($allow, $ip) {
return ($ip == 'my-ip') ? true : $allow;
}
add_filter('limit_login_whitelist_ip', 'my_ip_whitelist', 10, 2);
Note that we still do notification and logging as usual. This is meant to allow you to be aware of any suspicious activity from whitelisted IPs.
= I locked myself out testing this thing, what do I do? =
Either wait, or:
If you know how to edit / add to PHP files you can use the IP whitelist functionality described above. You should then use the "Restore Lockouts" button on the plugin settings page and remove the whitelist function again.
If you have ftp / ssh access to the site rename the file "wp-content/plugins/limit-login-attempts/limit-login-attempts.php" to deactivate the plugin.
If you have access to the database (for example through phpMyAdmin) you can clear the limit_login_lockouts option in the wordpress options table. In a default setup this would work: "UPDATE wp_options SET option_value = '' WHERE option_name = 'limit_login_lockouts'"
== Screenshots ==
1. Loginscreen after failed login with retries remaining
2. Loginscreen during lockout
3. Administration interface in WordPress 3.0.4
== Changelog ==
= 1.7.1 =
This version fixes a security bug in version 1.6.2 and 1.7.0. Please upgrade immediately.
"Auth cookies" are special cookies set at login that authenticating you to the system. It is how WordPress "remembers" that you are logged in between page loads.
During lockout these are supposed to be cleared, but a change in 1.6.2 broke this. It allowed an attacker to keep trying to break these cookies during a lockout.
Lockout of normal password login attempts still worked as it should, and it appears that all "auth cookie" attempts would keep getting logged.
In theory the "auth cookie" is quite resistant to brute force attack. It contains a cryptographic hash of the user password, and the difficulty to break it is not based on the password strength but instead on the cryptographic operations used and the length of the hash value. In theory it should take many many years to break this hash. As theory and practice does not always agree it is still a good idea to have working lockouts of any such attempts.
= 1.7.0 =
* Added filter that allows whitelisting IP. Please use with care!!
* Update to Spanish translation, thanks to Marcelo Pedra
* Updated Swedish translation
* Tested against WordPress 3.3.2
= 1.6.2 =
* Fix bug where log would not get updated after it had been cleared
* Do plugin setup in 'init' action
* Small update to Spanish translation file, thanks to Marcelo Pedra
* Tested against WordPress 3.2.1
= 1.6.1 =
* (WordPress 3.0+) An invalid cookie can sometimes get sent multiple times before it gets cleared, resulting in multiple failed attempts or even a lockout from a single invalid cookie. Store the latest failed cookie to make sure we only count it as one failed attempt
* Define "Text Domain" correctly
* Include correct Dutch tranlation file. Thanks to Martin1 for noticing. Thanks again to Bjorn Wijers for the translation
* Updated POT file for this version
* Tested against WordPress 3.1-RC4
= 1.6.0 =
* Happy New Year
* Tested against WordPress 3.1-RC1
* Plugin now requires WordPress version 2.8+. Of course you should never ever use anything but the latest version
* Fixed deprecation warnings that had been piling up with the old version requirement. Thanks to Johannes Ruthenberg for the report that prompted this
* Removed auth cookie admin check for version 2.7.
* Make sure relevant values in $_COOKIE get cleared right away on auth cookie validation failure. There are still some problems with cookie auth handling. The lockout can trigger prematurely in rare cases, but fixing it is plugin version 2 stuff unfortunately.
* Changed default time for retries to reset from 24 hours to 12 hours. The security impact is very minor and it means the warning will disappear "overnight"
* Added question to FAQ ("Why not reset failed attempts on a successful login?")
* Updated screenshots
= 1.5.2 =
* Reverted minor cookie-handling cleanup which might somehow be responsible for recently reported cookie related lockouts
* Added version 1.x Brazilian Portuguese translation, thanks to Luciano Passuello
* Added Finnish translation, thanks to Ari Kontiainen
= 1.5.1 =
* Further multisite & WPMU support (again thanks to <erik@erikshosting.com>)
* Better error handling if option variables are damaged
* Added Traditional Chinese translation, thanks to Denny Huang <bigexplorations@bigexplorations.com.tw>
= 1.5 =
* Tested against WordPress 3.0
* Handle 3.0 login page failure "shake"
* Basic multisite support (parts thanks to <erik@erikshosting.com>)
* Added Dutch translation, thanks to Bjorn Wijers <burobjorn@burobjorn.nl>
* Added Hungarian translation, thanks to Bálint Vereskuti <balint@vereskuti.info>
* Added French translation, thanks to oVa <ova13lastar@gmail.com>
= 1.4.1 =
* Added Turkish translation, thanks to Yazan Canarkadas
= 1.4 =
* Protect admin page update using wp_nonce
* Added Czech translation, thanks to Jakub Jedelsky
= 1.3.2 =
* Added Bulgarian translation, thanks to Hristo Chakarov
* Added Norwegian translation, thanks to Rune Gulbrandsøy
* Added Spanish translation, thanks to Marcelo Pedra
* Added Persian translation, thanks to Mostafa Soufi
* Added Russian translation, thanks to Jack Leonid (http://studio-xl.com)
= 1.3.1 =
* Added Catalan translation, thanks to Robert Buj
* Added Romanian translation, thanks to Robert Tudor
= 1.3 =
* Support for getting the correct IP for clients while server is behind reverse proxy, thanks to Michael Skerwiderski
* Added German translation, thanks to Michael Skerwiderski
= 1.2 =
* No longer replaces pluggable function when cookie handling active. Re-implemented using available actions and filters
* Filter error messages during login to avoid information leak regarding available usernames
* Do not show retries or lockout messages except for login (registration, lost password pages). No change in actual enforcement
* Slightly more aggressive in trimming old retries data
= 1.1 =
* Added translation support
* Added Swedish translation
* During lockout, filter out all other login errors
* Minor cleanups
= 1.0 =
* Initial version
== Upgrade Notice ==
= 1.7.1 =
Users of version 1.6.2 and 1.7.0 should upgrade immediately. There was a problem with "auth cookie" lockout enforcement. Lockout of normal password login attempts still worked as it should. Please see plugin Changelog for more information.

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

@@ -0,0 +1,11 @@
# OS generated files #
######################
*/.DS_Store
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db

View File

@@ -0,0 +1,238 @@
msgid ""
msgstr ""
"Project-Id-Version: One-Click Child Theme\n"
"POT-Creation-Date: 2015-04-15 14:53-0000\n"
"PO-Revision-Date: 2015-04-15 14:54-0000\n"
"Last-Translator: Pedro Mendonça <ped.gaspar@gmail.com>\n"
"Language-Team: Pedro Mendonça <ped.gaspar@gmail.com>\n"
"Language: pt_PT\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.7.5\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-SearchPath-0: .\n"
#: one-click-child-theme.php:120
#, php-format
msgid ""
"Theme switched! <a href=\"%s\">Click here to edit the child stylesheet</a>."
msgstr ""
"Tema alterado! <a href=\"%s\">Clique aqui para editar a folha de estilos "
"dependente</a>."
#: one-click-child-theme.php:133
#, php-format
msgid "Failed to create file: %s"
msgstr "Falhou ao criar o ficheiro: %s"
#: one-click-child-theme.php:140
#, php-format
msgid "Failed to edit file: %s"
msgstr "Falhou ao editar o ficheiro: %s"
#: one-click-child-theme.php:146
msgid "Repaired child theme."
msgstr "O tema dependente foi reparado."
#: one-click-child-theme.php:150
msgid "No template file specified."
msgstr "Nenhum ficheiro modelo especificado."
#: one-click-child-theme.php:154
#, php-format
msgid "Template file %s does not exist in parent theme!"
msgstr "Ficheiro modelo %s não existe no tema superior!"
#: one-click-child-theme.php:161
#, php-format
msgid "Template file %s already exists in child theme!"
msgstr "Ficheiro modelo %s já existe no tema dependente!"
#: one-click-child-theme.php:168
#, php-format
msgid "Failed to duplicate file %s!"
msgstr "Falhou ao duplicar o ficheiro %s!"
#: one-click-child-theme.php:175
#, php-format
msgid "<a href=\"%s\">File %s created!</a>"
msgstr "<a href=\"%s\">Ficheiro %s criado!</a>"
#: one-click-child-theme.php:189
#, php-format
msgid "Failed to delete file %s!"
msgstr "Falhou ao apagar o ficheiro %s!"
#: one-click-child-theme.php:196
#, php-format
msgid "404 File not found at %s!"
msgstr "Ficheiro 404 não encontrado em %s!"
#: one-click-child-theme.php:203
#, php-format
msgid "Unrecognized mimetype at %s!"
msgstr "Tipo de media desconhecido em %s!"
#: one-click-child-theme.php:210
#, php-format
msgid "Failed to create file %s!"
msgstr "Falhou ao criar o ficheiro %s!"
#: one-click-child-theme.php:216
msgid "Successfully changed screenshot."
msgstr "Captura de ecrã modificada com sucesso"
#: one-click-child-theme.php:233
msgid "Make a Child Theme"
msgstr "Criar um tema dependente"
#: one-click-child-theme.php:234
msgid "Child Theme"
msgstr "Tema dependente"
#: one-click-child-theme.php:557
msgid "Theme directory already exists!"
msgstr "Directório do tema já existe!"
#: templates/create_child_form.php:16
msgid "Create a Child Theme"
msgstr "Criar um tema dependente"
#: templates/create_child_form.php:18
#, php-format
msgid ""
"Fill out this form to create a child theme based on %s (your current theme)."
msgstr ""
"Preencha este formulário para criar um tema dependente com base no %s (o seu "
"tema actual)."
#: templates/create_child_form.php:25
msgid "Theme Name"
msgstr "Nome do tema"
#: templates/create_child_form.php:28
msgid "Give your theme a name."
msgstr "Dê um nome ao seu tema."
#: templates/create_child_form.php:32
msgid "Description"
msgstr "Descrição"
#: templates/create_child_form.php:35
msgid "Describe your theme."
msgstr "Descreva seu tema."
#: templates/create_child_form.php:39
msgid "Author"
msgstr "Autor"
#: templates/create_child_form.php:42
msgid "Your name."
msgstr "O seu nome."
#: templates/create_child_form.php:47
msgid "Create Child"
msgstr "Criar tema dependente"
#: templates/is_child_already.php:10
#, php-format
msgid "%s is already a child theme"
msgstr "%s já é um tema dependente"
#: templates/is_child_already.php:14
msgid "Child theme needs repair"
msgstr "O tema dependente necessita de reparação"
#: templates/is_child_already.php:15
msgid ""
"Detected outdated child theme mechanism. Click the button below to attempt a "
"one-click repair."
msgstr ""
"Foi detectado um mecanismo desactualizado de tema dependente. Clique no "
"botão abaixo para tentar uma reparação imediata."
#: templates/is_child_already.php:20
msgid "Repair Child Theme"
msgstr "Reparar tema dependente"
#: templates/is_child_already.php:28
msgid "Child files"
msgstr "Ficheiros do tema dependente"
#: templates/is_child_already.php:29
msgid ""
"If you wish to modify the behavior of a template file, select it and click "
"the \"Copy Template\" button below."
msgstr ""
"Se quiser modificar o comportamento de um ficheiro de modelo, seleccione-o e "
"clique no botão \"Copiar modelo\" abaixo."
#: templates/is_child_already.php:35
msgid "Template File"
msgstr "Ficheiro modelo"
#: templates/is_child_already.php:48
msgid "Copy Template"
msgstr "Copiar modelo"
#: templates/is_child_already.php:55
msgid "Screenshot"
msgstr "Captura de ecrã"
#: templates/is_child_already.php:56
msgid ""
"By default One-Click Child Theme uses the parent themes screenshot. You can "
"use WordPress.coms mshot service to replace the current child themes "
"screenshot with a screenshot of your current web sites homepage (if "
"publicly accessible over the web)."
msgstr ""
"Por omissão o One-Click Child Theme utiliza a captura de ecrã do tema "
"superior. Pode utilizar o serviço mshot do WordPress.com para substituir a "
"actual captura de ecrã do tema dependente com uma captura de ecrã da página "
"inicial do seu site (se estiver acessível publicamente na internet)."
#: templates/is_child_already.php:65
msgid "No screenshot"
msgstr "Sem captura de ecrã"
#: templates/is_child_already.php:70
msgid "Current"
msgstr "Actual"
#: templates/is_child_already.php:76
msgid "mShot"
msgstr "mShot"
#: templates/is_child_already.php:81
msgid "Replace Screenshot"
msgstr "Substituir captura de ecrã"
#: templates/is_child_already.php:85
msgid "Grandchild theme?"
msgstr "Tema duplamente dependente?"
#: templates/is_child_already.php:86
msgid ""
"WordPress has no formal support for theme grandchildren. No other actions "
"currently supported in One Click Child Theme."
msgstr ""
"O WordPress não tem suporte formal para temas duplamente dependentes. "
"Actualmente não são suportadas mais acções pelo One Click Child Theme."
#~ msgid ""
#~ "By default One-Click Child theme uses the parent themes screenshot. You "
#~ "can use WordPress.coms mshot service to replace the current child "
#~ "themes screenshot with a screenshot of your current web sites homepage "
#~ "(if publicly accessible over the web)."
#~ msgstr ""
#~ "Por omissão o One-Click Child Theme utiliza a captura de ecrã do tema "
#~ "superior. Pode utilizar o serviço mshot do WordPress.com para substituir "
#~ "a actual captura de ecrã do tema dependente com uma captura de ecrã da "
#~ "página inicial do seu site (se estiver acessível publicamente na "
#~ "internet)."

View File

@@ -0,0 +1,212 @@
msgid ""
msgstr ""
"Project-Id-Version: One-Click Child Theme\n"
"POT-Creation-Date: 2015-04-15 14:53-0000\n"
"PO-Revision-Date: 2015-04-15 14:53-0000\n"
"Last-Translator: Pedro Mendonça <ped.gaspar@gmail.com>\n"
"Language-Team: Andy Fragen <andy@thefragens.com>\n"
"Language: en_US\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.7.5\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-SearchPath-0: .\n"
#: one-click-child-theme.php:120
#, php-format
msgid ""
"Theme switched! <a href=\"%s\">Click here to edit the child stylesheet</a>."
msgstr ""
#: one-click-child-theme.php:133
#, php-format
msgid "Failed to create file: %s"
msgstr ""
#: one-click-child-theme.php:140
#, php-format
msgid "Failed to edit file: %s"
msgstr ""
#: one-click-child-theme.php:146
msgid "Repaired child theme."
msgstr ""
#: one-click-child-theme.php:150
msgid "No template file specified."
msgstr ""
#: one-click-child-theme.php:154
#, php-format
msgid "Template file %s does not exist in parent theme!"
msgstr ""
#: one-click-child-theme.php:161
#, php-format
msgid "Template file %s already exists in child theme!"
msgstr ""
#: one-click-child-theme.php:168
#, php-format
msgid "Failed to duplicate file %s!"
msgstr ""
#: one-click-child-theme.php:175
#, php-format
msgid "<a href=\"%s\">File %s created!</a>"
msgstr ""
#: one-click-child-theme.php:189
#, php-format
msgid "Failed to delete file %s!"
msgstr ""
#: one-click-child-theme.php:196
#, php-format
msgid "404 File not found at %s!"
msgstr ""
#: one-click-child-theme.php:203
#, php-format
msgid "Unrecognized mimetype at %s!"
msgstr ""
#: one-click-child-theme.php:210
#, php-format
msgid "Failed to create file %s!"
msgstr ""
#: one-click-child-theme.php:216
msgid "Successfully changed screenshot."
msgstr ""
#: one-click-child-theme.php:233
msgid "Make a Child Theme"
msgstr ""
#: one-click-child-theme.php:234
msgid "Child Theme"
msgstr ""
#: one-click-child-theme.php:557
msgid "Theme directory already exists!"
msgstr ""
#: templates/create_child_form.php:16
msgid "Create a Child Theme"
msgstr ""
#: templates/create_child_form.php:18
#, php-format
msgid ""
"Fill out this form to create a child theme based on %s (your current theme)."
msgstr ""
#: templates/create_child_form.php:25
msgid "Theme Name"
msgstr ""
#: templates/create_child_form.php:28
msgid "Give your theme a name."
msgstr ""
#: templates/create_child_form.php:32
msgid "Description"
msgstr ""
#: templates/create_child_form.php:35
msgid "Describe your theme."
msgstr ""
#: templates/create_child_form.php:39
msgid "Author"
msgstr ""
#: templates/create_child_form.php:42
msgid "Your name."
msgstr ""
#: templates/create_child_form.php:47
msgid "Create Child"
msgstr ""
#: templates/is_child_already.php:10
#, php-format
msgid "%s is already a child theme"
msgstr ""
#: templates/is_child_already.php:14
msgid "Child theme needs repair"
msgstr ""
#: templates/is_child_already.php:15
msgid ""
"Detected outdated child theme mechanism. Click the button below to attempt a "
"one-click repair."
msgstr ""
#: templates/is_child_already.php:20
msgid "Repair Child Theme"
msgstr ""
#: templates/is_child_already.php:28
msgid "Child files"
msgstr ""
#: templates/is_child_already.php:29
msgid ""
"If you wish to modify the behavior of a template file, select it and click "
"the \"Copy Template\" button below."
msgstr ""
#: templates/is_child_already.php:35
msgid "Template File"
msgstr ""
#: templates/is_child_already.php:48
msgid "Copy Template"
msgstr ""
#: templates/is_child_already.php:55
msgid "Screenshot"
msgstr ""
#: templates/is_child_already.php:56
msgid ""
"By default One-Click Child Theme uses the parent themes screenshot. You can "
"use WordPress.coms mshot service to replace the current child themes "
"screenshot with a screenshot of your current web sites homepage (if "
"publicly accessible over the web)."
msgstr ""
#: templates/is_child_already.php:65
msgid "No screenshot"
msgstr ""
#: templates/is_child_already.php:70
msgid "Current"
msgstr ""
#: templates/is_child_already.php:76
msgid "mShot"
msgstr ""
#: templates/is_child_already.php:81
msgid "Replace Screenshot"
msgstr ""
#: templates/is_child_already.php:85
msgid "Grandchild theme?"
msgstr ""
#: templates/is_child_already.php:86
msgid ""
"WordPress has no formal support for theme grandchildren. No other actions "
"currently supported in One Click Child Theme."
msgstr ""

View File

@@ -0,0 +1,686 @@
<?php
/*
**************************************************************************
Plugin Name: One-Click Child Theme
Plugin URI: http://terrychay.com/wordpress-plugins/one-click-child-theme
Version: 1.6
Description: Easily child theme any theme from wp-admin wp-admin without going into shell or using FTP.
Author: tychay
Author URI: http://terrychay.com/
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: one-click-child-theme
Domain Path: /languages
**************************************************************************/
/* Copyright 2011-2015 terry chay (email : tychay@php.net)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* Performance: One-Click Child Theme is only active in admin page
*/
if (!is_admin()) { return; }
/**
* Load textdomain
*/
function _load_textdomain() {
load_plugin_textdomain( 'one-click-child-theme', false, basename(dirname(__FILE__)) . '/languages' );
}
add_action( 'init', '_load_textdomain' );
/**
* The namespace for the One-Click Child Theme Plugin
*/
class OneClickChildTheme {
/**
* @const string Used for id generation and language text domain.
*/
const _SLUG = 'one-click-child-theme';
/**
* Used for loading in files
* @var string
*/
private $_pluginDir = '';
/**
* This plugin's theme page
*/
private $_themePageUrl = '';
/**
* Theme page name (menu slug)
* @var string
*/
private $_menuId = '';
/**
* action for Create Child form
*/
private $_createChildFormId = '';
/**
* action for Repair Child form
*/
private $_repairChildFormId = '';
/**
* action for Copy Template form
*/
private $_copyTemplateFormId = '';
/**
* action for screenshot generation
*/
private $_mshotSiteFormId = '';
public function __construct() {
$this->_pluginDir = dirname(__FILE__);
$this->_menuId = self::_SLUG . '-page';
$this->_themePageUrl = admin_url('themes.php?page='.$this->_menuId);
$this->_createChildFormId = self::_SLUG.'-create-child';
$this->_repairChildFormId = self::_SLUG.'-repair-child';
$this->_copyTemplateFormId = self::_SLUG.'-copy-template';
$this->_mshotSiteFormId = self::_SLUG.'-mshot-site';
// it has to be buried like this or you get an error:
// "You do not have sufficient permissions to access this page"
add_action( 'admin_menu', array($this,'createAdminMenu') );
// form handling code
add_action( 'admin_post_'.$this->_createChildFormId, array($this,'processCreateForm') );
add_action( 'admin_post_'.$this->_repairChildFormId, array($this,'processRepairChildForm') );
add_action( 'admin_post_'.$this->_copyTemplateFormId, array($this,'processCopyTemplateForm') );
add_action( 'admin_post_'.$this->_mshotSiteFormId, array($this,'processMShotSiteForm') );
// TODO: I could also use the $pagenow global, but is it still there?
if ( basename($_SERVER['PHP_SELF']) == 'themes.php' && !empty($_REQUEST['occt_error']) ) {
add_action( 'admin_notices', array($this,'showErrorNotice'));
}
}
/**
* Handle error and update notices for this theme
*
* There are now four types of notices: success (green), warning (orange), error (red),
* and info (blue).
*
* Put here because there is a redirect between all forms and error notifications and
* add_settings_error() only covers options API errors.
*/
public function showErrorNotice()
{
switch ($_GET['occt_error']) {
case 'child_created': //SUCCESS: child theme created
$type = 'updated'; //fade?
$msg = sprintf(
__('Theme switched! <a href="%s">Click here to edit the child stylesheet</a>.', self::_SLUG),
add_query_arg(
urlencode_deep(array(
'file' => 'style.css',
'theme' => get_stylesheet(),
)),
admin_url('theme-editor.php')
)
);
break;
case 'create_failed': //ERROR: create file failed (probably due to permissions)
$type = 'error';
$msg = sprintf(
__('Failed to create file: %s', self::_SLUG),
esc_html($_GET['filename'])
);
break;
case 'edit_failed': //ERROR: edit file failed (probably do to permissions)
$type = 'error';
$msg = sprintf(
__('Failed to edit file: %s', self::_SLUG),
esc_html($_GET['filename'])
);
break;
case 'repair_success': //SUCCESS: repaired child theme
$type = 'updated fade';
$msg = __('Repaired child theme.', self::_SLUG);
break;
case 'no_template': //ERROR: template file not specified
$type = 'error';
$msg = __('No template file specified.', self::_SLUG);
case 'missing_template': //ERROR: parent theme doesn't have template
$type = 'error';
$msg = sprintf(
__('Template file %s does not exist in parent theme!', self::_SLUG),
esc_html($_GET['filename'])
);
break;
case 'already_template': //ERROR: child theme already has template
$type = 'error';
$msg = sprintf(
__('Template file %s already exists in child theme!', self::_SLUG),
esc_html($_GET['filename'])
);
break;
case 'copy_failed': //ERROR: couldn't duplicate file for some reason
$type = 'error';
$msg = sprintf(
__('Failed to duplicate file %s!', self::_SLUG),
esc_html($_GET['filename'])
);
break;
case 'copy_success': //SUCCESS: template file created
$type = 'updated'; //fade?
$msg = sprintf(
__('<a href="%s">File %s created!</a>', self::_SLUG),
add_query_arg(
urlencode_deep(array(
'file' => $_GET['filename'],
'theme' => get_stylesheet(),
)),
admin_url('theme-editor.php')
),
esc_html($_GET['filename'])
);
break;
case 'delete_failed': //ERROR: couldn't delete file for some reason
$type = 'error';
$msg = sprintf(
__('Failed to delete file %s!', self::_SLUG),
esc_html($_GET['filename'])
);
break;
case 'mshot_404': //ERROR: couldn't find mshot
$type = 'error';
$msg = sprintf(
__('404 File not found at %s!', self::_SLUG),
esc_html($_GET['url'])
);
break;
case 'mshot_mime_wrong': //ERROR: couldn't find mshot
$type = 'error';
$msg = sprintf(
__('Unrecognized mimetype at %s!', self::_SLUG),
esc_html($_GET['url'])
);
break;
case 'mshot_nocreate': //ERROR: couldn't find mshot
$type = 'error';
$msg = sprintf(
__('Failed to create file %s!', self::_SLUG),
esc_html($_GET['filename'])
);
break;
case 'mshot_success': //SUCCESS: screenshot generated
$type = 'updated fade'; //fade?
$msg = __('Successfully changed screenshot.', self::_SLUG);
break;
default: //ERROR: it is a generic error message
$type = 'error';
$msg = esc_html($_GET['occt_error']);
}
printf(
'<div class="%s"><p>%s</p></div>',
$type,
$msg
);
}
/**
* Adds an admin menu for One Click Child Theme in Appearances
*/
public function createAdminMenu() {
add_theme_page(
__('Make a Child Theme', self::_SLUG), //page title
__('Child Theme', self::_SLUG), //menu title
'install_themes', //capability needed to view
$this->_menuId, //menu slug (and page query url)
array( $this, 'showThemePage' ) //callback function
);
}
//
// SHOW THEME PAGE
//
/**
* Show the theme page which has a form allowing you to child theme
* currently selected theme.
*
*/
public function showThemePage()
{
// Form is processed in the admin_post_* hooks
// Handle case where current theme is already a child
if ( is_child_theme() ) {
$this->_showFormAlreadyChild( $this->_child_theme_needs_repair() );
return;
}
// Default behavior: We are not a child theme, but interested in creating one.
// Grab default values from a form fail
$theme_name = ( !empty($_GET['theme_name']) ) ? $_GET['theme_name'] : '';
$description = ( !empty($_GET['description']) ) ? $_GET['description'] : '';
if ( !empty($_GET['author_name']) ) {
$author = $_GET['author_name'];
} else {
global $current_user;
get_currentuserinfo();
$author = $current_user->display_name;
}
// render default behaivor
require $this->_pluginDir.'/templates/create_child_form.php';
}
/**
* Show the "is child already" template.
* @param boolean $child_needs_repair whether or not child theme needs repair
* @todo handle grandchildren
*/
private function _showFormAlreadyChild($child_needs_repair) {
// set template parameters
$current_theme = wp_get_theme();
$child_theme_screenshot_url = ( $screenshot_filename = $this->_scanForScreenshot( get_stylesheet_directory() ) )
? get_stylesheet_directory_uri().'/'.$screenshot_filename
: '';
$mshot_url = $this->_mshotUrl();
// Search for template files.
// Note: since there can be files like {mimetype}.php, we must assume
// that any root level .php files in the template directory are
// templates.
$template_files = glob ( get_template_directory().'/*.php' );
foreach ( $template_files as $index=>$file ) {
$template_files[$index] = basename( $file );
}
// Filter out any files in child already created
$child_theme_dir = get_stylesheet_directory();
foreach ( $template_files as $index=>$filename ) {
if ( file_exists($child_theme_dir.'/'.$filename) ) {
unset($template_files[$index]);
}
}
require $this->_pluginDir.'/templates/is_child_already.php';
}
//
// FORM HANDLING
//
/**
* Handle the create child form.
*/
public function processCreateForm() {
check_admin_referer( $this->_createChildFormId . '-verify' );
$theme_name = $_POST['theme_name'];
$description = ( empty($_POST['description']) )
? ''
: $_POST['description'];
$author_name = ( empty($_POST['author_name']) )
? ''
: $_POST['author_name'];
$result = $this->_make_child_theme( $theme_name, $description, $author_name );
if ( is_wp_error( $result ) ) {
// should show create child form again
$this->_redirect(
$this->_themePageUrl,
$result->get_error_message(),
array(
'theme_name' => $theme_name,
'description' => $description,
'author_name' => $author_name,
)
);
return;
} else {
switch_theme( $result['parent_template'], $result['new_theme'] );
// Redirect to themes page on success
$this->_redirect(
admin_url('themes.php'),
'child_created'
);
}
}
/**
* Handle the repair_child_form form.
*/
public function processRepairChildForm()
{
check_admin_referer( $this->_repairChildFormId . '-verify' );
$child_theme_dir = get_stylesheet_directory();
$functions_file = $child_theme_dir.'/functions.php';
$style_file = $child_theme_dir.'/style.css';
// create functions.php if it doesn't exist yet
if ( !file_exists($functions_file) ) {
if ( !touch($functions_file) ) {
// fixing is hopeless if we can't create the file :-(
$this->_redirect(
$this->_themePageUrl,
'create_failed',
array( 'filename' => $functions_file )
);
return;
}
}
// read in style.css
$style_text = file_get_contents( $style_file );
// prune out old rules
$style_text = preg_replace(
'!@import\s+url\(\s?["\']\.\./.*/style.css["\']\s?\);!ims',
'',
$style_text
);
$style_text = preg_replace(
'!@import\s+url\(\s?["\']'.get_template_directory_uri().'/style.css["\']\s?\);!ims',
'',
$style_text
);
if ( file_put_contents( $style_file, $style_text) === false ) {
$this->_redirect(
$this->_themePageUrl,
'edit_failed',
array( 'filename' => $style_file )
);
return;
}
// modify functions.php to prepend new rules
$functions_text = file_get_contents( $this->_pluginDir.'/templates/functions.php' );
// ^^^ above file has no final carriage return and ending comment so it should
// "smash" the starting '<?php' string in any existing functions.php.
$functions_text .= file_get_contents( $functions_file );
if ( file_put_contents( $functions_file, $functions_text ) === false ) {
$this->_redirect(
$this->_themePageUrl,
'edit_failed',
array( 'filename' => $functions_file )
);
return;
}
$this->_redirect(
$this->_themePageUrl,
'repair_success'
);
}
/**
* Handle the Copy Template form.
*/
public function processCopyTemplateForm() {
check_admin_referer( $this->_copyTemplateFormId . '-verify' );
$filename = ( empty($_POST['filename']) )
? ''
: $_POST['filename'];
if ( !$filename ) {
$this->_redirect(
$this->_themePageUrl,
'no_template'
);
return;
}
$child_theme_dir = get_stylesheet_directory();
$template_dir = get_template_directory();
var_dump('bar');
if ( !file_exists($template_dir.'/'.$filename) ) {
$this->_redirect(
$this->_themePageUrl,
'missing_template',
array( 'filename' => $filename )
);
return;
}
if ( file_exists($child_theme_dir.'/'.$filename) ) {
$this->_redirect(
$this->_themePageUrl,
'already_template',
array( 'filename' => $filename )
);
return;
}
if ( !copy( $template_dir.'/'.$filename, $child_theme_dir.'/'.$filename ) ) {
$this->_redirect(
$this->_themePageUrl,
'copy_failed',
array( 'filename' => $filename )
);
}
$this->_redirect(
$this->_themePageUrl,
'copy_success',
array( 'filename' => $filename )
);
}
/**
* Handle the mshot Screenshot form
*/
public function processMShotSiteForm()
{
check_admin_referer( $this->_mshotSiteFormId . '-verify' );
// delete existing screenshot if it exists
$child_theme_dir = get_stylesheet_directory();
if ( $screenshot_filename = $this->_scanForScreenshot($child_theme_dir) ) {
$screenshot_path = $child_theme_dir.'/'.$screenshot_filename;
if ( !unlink($screenshot_path) ) {
// most likely a directory problem Fail with an error
$this->_redirect(
$this->_themePageUrl,
'delete_failed',
array( 'filename' => $screenshot_path )
);
return;
}
}
$mshot_url = $this->_mshotUrl();
// Get the mshot
$response = wp_remote_get($mshot_url);
if ( $response['code'] == 404 ) {
// The 404 image is gorgeous nowadays, but (if wp.com correctly handled error
// codes for image generation) we'd not let them use it as a theme screenshot.
$this->_redirect(
$this->_themePageUrl,
'mshot_404',
array( 'url' => $mshot_url )
);
}
// Should be 'image/jpeg', but let's hedge our bets
switch ($response['headers']['content-type']) {
case 'image/jpeg':
$screenshot_filename = 'screenshot.jpg';
break;
case 'image/png':
$screenshot_filename = 'screenshot.png';
break;
case 'image/gif':
$screenshot_filename = 'screenshot.gif';
break;
default:
$this->_redirect(
$this->_themePageUrl,
'mshot_mime_wrong',
array( 'url' => $mshot_url )
);
return;
}
$screenshot_path = $child_theme_dir.'/'.$screenshot_filename;
if ( file_put_contents($screenshot_path, $response['body']) === false ) {
$this->_redirect(
$this->_themePageUrl,
'mshot_nocreate',
array( 'filename' => $screenshot_path )
);
return;
}
$this->_redirect(
$this->_themePageUrl,
'mshot_success'
);
}
//
// PRIVATE METHOD
//
/**
* Does the work to make a child theme based on the current theme.
*
* This currently supports the following files:
*
* 1. style.css: Follows the rules outlined in {@link http://codex.wordpress.org/Child_Themes the Codex}
* 2. functions.php: Followed the updated rules outlined in the Codex. Note
* that since WordPress ?.? functions.php hierarchy is automatically
* included.
* 3. rtl.css: right to left language support, if not avaialble in parent, it
* uses TwentyFifteen's rtl
* 4. screenshot.png: screenshot if available in the parent
*
* @author terry chay <tychay@autoamttic.com>
* @author Chris Robinson <http://contempographicdesign.com/> (for screenshot support).
* @return array|WP_Error If successful, it returns a hash contianing
* - new_theme: (directory) name of new theme
* - parent_template: (directory) name of parent template
* - parent_theme: (directory) name of parent theme
* - new_theme_path: full path to the directory cotnaining the new theme
* - new_theme_title: the name of the new theme
*/
private function _make_child_theme( $new_theme_title, $new_theme_description, $new_theme_author ) {
$parent_theme_title = get_current_theme();
$parent_theme_template = get_template(); //Doesn't play nice with the grandkids
$parent_theme_name = get_stylesheet();
$parent_theme_dir = get_stylesheet_directory();
// Turn a theme name into a directory name
$new_theme_name = sanitize_title( $new_theme_title );
$theme_root = get_theme_root();
// Validate theme name
$new_theme_path = $theme_root.'/'.$new_theme_name;
if ( file_exists( $new_theme_path ) ) {
return new WP_Error( 'exists', __( 'Theme directory already exists!', self::_SLUG ) );
}
mkdir( $new_theme_path );
// Make style.css
ob_start();
require $this->_pluginDir.'/templates/child-theme-css.php';
$css = ob_get_clean();
file_put_contents( $new_theme_path.'/style.css', $css );
// "Generate" functions.php
copy( $this->_pluginDir.'/templates/functions.php', $new_theme_path.'/functions.php' );
// RTL support
$rtl_theme = ( file_exists( $parent_theme_dir.'/rtl.css' ) )
? $parent_theme_name
: 'twentyfifteen'; //use the latest default theme rtl file
ob_start();
require $this->_pluginDir.'/templates/rtl-css.php';
$css = ob_get_clean();
file_put_contents( $new_theme_path.'/rtl.css', $css );
// Copy screenshot
if ( $screenshot_filename = $this->_scanForScreenshot( $parent_theme_dir ) ) {
copy(
$parent_theme_dir.'/'.$screenshot_filename,
$new_theme_path.'/'.$screenshot_filename
);
} // removed grandfather screenshot check (use mshot instead, rly)
// Make child theme an allowed theme (network enable theme)
$allowed_themes = get_site_option( 'allowedthemes' );
$allowed_themes[ $new_theme_name ] = true;
update_site_option( 'allowedthemes', $allowed_themes );
return array(
'parent_template' => $parent_theme_template,
'parent_theme' => $parent_theme_name,
'new_theme' => $new_theme_name,
'new_theme_path' => $new_theme_path,
'new_theme_title' => $new_theme_title,
);
}
//
// PRIVATE UTILITY FUNCTIONS
//
/**
* Detect if child theme needs repair.
*
* A child theme needs repair if it is missing a functions.php or the
* style.css still has a rule that points to the parent.
*/
private function _child_theme_needs_repair()
{
$child_theme_dir = get_stylesheet_directory();
if ( !file_exists($child_theme_dir.'/functions.php') ) {
return true;
}
$style_text = file_get_contents( $child_theme_dir.'/style.css' );
// look for relative match (dificult to extract parent theme directory
// so I'll assume any in this path is parent theme)
if ( preg_match(
'!@import\s+url\(\s?["\']\.\./.*/style.css["\']\s?\);!ims',
$style_text
) ) {
return true;
}
// look for absolute match
if ( preg_match(
'!@import\s+url\(\s?["\']'.get_template_directory_uri().'/style.css["\']\s?\);!ims',
$style_text
) ) {
return true;
}
return false;
}
/**
* Handle error redirects (for admin_notices generated by plugin)
*
* Note add_query_arg() is written like shit. Here are it's problems:
*
* 1. doesn't take advantage of built-in parse_url()
* 2. uses urlencode_deep() instead of an array_merge and built-in http_build_query()
* 3. doesn't urlencode() if $arg[0] is an array.
*
* The 3rd one is extremely non-intuitive, but fixing it, would break backward
* compatibility due to double-escaping. I'm hacking around that. :-(
*
* @param string $url The (base) url to redirect to, usually admin_url()
* @param string $error the error code to use
* @param string $args other arguments to add to the query string
* @return null
*/
private function _redirect($url, $error, $args = array()) {
$args['occt_error'] = $error;
$args = urlencode_deep($args);
wp_redirect( add_query_arg( $args, $url ) );
}
/**
* Searches directory for a theme screenshot
*
* @param string $directory directory to search (a theme directory)
* @return string|false 'screenshot.png' (or whatever) or false if there is no screenshot
*/
private function _scanForScreenshot($directory)
{
$screenshots = glob( $directory.'/screenshot.{png,jpg,jpeg,gif}', GLOB_BRACE );
return (empty($screenshots))
? false
: basename($screenshots[0]);
}
/**
* Generate mshot of wordpress homepage.
*
* Recommende image dimensions from https://codex.wordpress.org/Theme_Development#Screenshot
* @todo probably won't work correctly in multisite installs
* @todo remove debugging code
*/
private function _mshotUrl()
{
$scheme = (is_ssl()) ? 'https' : 'http';
return $scheme . '://s.wordpress.com/mshots/v1/'. urlencode(get_site_url()) . '?w=880&h=660';
}
}
new OneClickChildTheme();
// Start this plugin
//add_action( 'admin_init', array('OneClickChildTheme','init'), 12 );

View File

@@ -0,0 +1,225 @@
=== One-Click Child Theme ===
Contributors: tychay
Donate link: http://www.kiva.org/lender/tychay
Tags: theme, child theme, child theme creator, child theme creator, CSS, stylesheet, custom theme, customize theme, shared hosting
Requires at least: 3.0
Tested up to: 4.1.1
Stable tag: trunk
Adds a Theme option to any active theme allowing you to make a child theme.
== Description ==
Please visit the [plugin homepage](http://terrychay.com/wordpress-plugins/one-click-child-theme).
Useful for shared hosts, this allows you to easily create child themes from any
theme just by clicking.
Ever since WordPress 3.0, you shouldnt directly modify CSS of any downloaded
themes because if you update the theme, your changes will be destroyed. Instead, it is recommended that you create a child theme and edit the CSS
there so that updates to the parent theme will be inherited instead of destroy
your changes.
The problem many run into is currently the only way to child theme something
is edit files on the filesystem. This is non-intuitive for shared-hosting
sites with one-click WordPress installs (it usually involves a “shell account”
or learning how to use FTP).
This attempts to get around that issue, by adding a button to the themes page
to allow you to child theme the page. (Its not really one-click, though.)
Inspired by @janeforshort's and @designsimply's WordCamp SF 2011 talk on CSS
theming as requested by @sfgirl for [her blog](http://pintsizedmusings.com/).
== Installation ==
###Installing The Plugin###
Extract all files from the ZIP file, making sure to keep the file structure
intact, and then upload it to `/wp-content/plugins/`. Then just visit your
admin area and activate the plugin. That's it!
**See Also:** ["Installing Plugins" article on the WP Codex](http://codex.wordpress.org/Managing_Plugins#Installing_Plugins)
###Using the plugin###
If you have the capability to install themes in your admin, then the themes menu
will have a new submenu called "Child Theme". Clicking on this gives you a form
that will allow you to create a child theme based on the current active theme.
== Screenshots ==
1. To use the plugin, click one of these two palces in the Appearance section of your `wp_admin`
2. Fill out this form
3. You will see the theme will be successfully child-themed, but will track the parent theme correctly.
== Frequently Asked Questions ==
= I already modified my CSS in the existing theme? How do I use One Click Child Theme to fix this? =
You can wait for the theme to get updated and have it break it, or you can:
1. Go through the steps for installing and running the plugin above to create a child theme
2. Click on the [Appearance &gt; Editor](http://codex.wordpress.org/Appearance_Editor_SubPanel) in your admin dashboard menu (or network admin menu if multi-site).
3. Select the parent theme in the drop down on the right, click `Select` and make sure you are editing the file `style.css` (select on the right).
4. Copy the changes you made, if you managed to remember them.
5. Select the child theme you created to the drop down in the left (you should be editing `style.css`).
6. Paste your changes to the end of the file.
= Your plugin broke my site! =
I didn't think that's possible, but if so, I want to fix it!
First, check what really happened. Is your admin console broken, is the
theme broken (go to a new window and check your blog). If a theme fails to
work and for some reason I didn't catch that error, WordPress should restore
the previous theme (or whatever the default theme is) so your actual blog
should be okay and recoverable. If for some reason it didn't default to the
right theme, go into the Appearance menu and re-enable the parent theme.
Then go to the [support page](https://wordpress.org/support/plugin/one-click-child-theme),
describe what happened (screenshots help too) and anything else and we'll try
our best to help you.
= I can't find this Theme Option button you are alluding to in the documentation? =
I really need to update the screenshot. It's still there, but the location has
changed as WordPress has been upgraded.
1. Go to the `Appearance` tab
2. Click on the Active theme (it should say "Theme Details" when you mouseover)
3. An overlay appears. The Theme option button "Child Theme" is there
= When I go to the Child Theme menu, it says "X is already a child theme" and I can't create a child theme. =
Making grandchildren of themes is non-trivial, so I disabled the form if it is
already a child theme. Instead I offer the ability to repair the Child theme or
copy template files from the parent into the child for editing.
= Can the plugin be deleted after I create a Child Theme with it? =
Yes. The main purpose of the plugin is fulfilled. Congratulations!
(Personally, I'd disable it, instead of delete it.)
Having said that, there are some things that this plugin help with after your
child theme's birth. Think of it as a parenting guide for your new child theme.
= Features like? =
* Repair a child theme created in the old style.
* Copy templates over from your parent theme into your child theme.
* Replace the child theme screenshot with one of your site
When you have an active child theme, click on `Appearance > Child Theme` to
get to these functions.
= What does the "Repair Child Theme" button do? =
WordPress changed the [recommended way of handling parent references in child themes](http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme).
If this plugin detects your child theme was done in the old style, it shows
this button. Clicking on it will make the plugin attempt a repair into the
new style.
= How come the screenshot service just shows a big 404 =
The most likely scenario is your WordPress `site_url` isn't publicly
accessible from the web.
= What's with the debugging/error code on child theme creation? =
You have an old version of this plugin, please update to the latest one.
I wrote this plugin back **during** a talk at WordCamp SF 2011 about CSS
Themeing in order to help the person sitting next to me. I just didn't get to
some things… for years. Sorry about that! The debugging code didn't affect any
behavior — it was a sign of me being lazy and not realizing that the plugin
would have tens of thousands of avid users!
= The theme screenshot service doesn't seem to be working. =
First of all, is the blog accessible from the public Internet? If not, then
that is the problem.
But sometimes, even then, mshots seems a bit on the slow side. The plugin
uses WordPress.coms mShots service. You know, I worked at Automattic for years
on WordPress.com and I still haven't quite figured out mShots. Eventually
I've gotten the animated loading GIF to be replaced by a real retina-ready JPEG
screenshot of my blog homepage. Trust me, when it works, it works great! But
the experience may be a little like trying to get a vending machine to accept
a crumpled dollar bill — Americans know what I mean. Suffice it to say that
you might have to hit reload a couple times, or just fiddle around a bit.
= Why should I use your plugin and not [_insert competitor here_](https://wordpress.org/plugins/search.php?q=child+theme) =
What? People have forked my idea because I left [Automattic](http://automattic.com)
for [Wikimedia](http://wikimediafoundation.org/wiki/Home) three years ago?
This means war! Other plugins, you're going down! Steel yourself for the
pent-up aggression of a pointy-haired boss being kept away from a
programming console for years.
As to why this plugin is the best? OCCT is Coke Classic to every other plugin's
[New Coke](http://en.wikipedia.org/wiki/New_Coke). Experience the original
plugin taste your parents knew and loved! Plus, I have
four-year old screenshots on my theme page, a way cooler plugin icon, and a
baby picture of me and my brother on the banner. Also, this plugin strikes
the right balance of features, is free (no "pro" version and not even a PayPal
link), and (now that I've figured out how to admin the plugin page), I've
been adding volunteers to support it. Even if I sucked into the vortex of
middle management again (isn't going to happen, that s--t is **EVIL**) this
plugin will live forever in the hearts and minds of bloggers everywhere!
Which reminds me, if you want to help out, we're cool with that. Like WordPress
itself, this is a volunteer endeavor. Contact us in the support pages and we'll
hook you up!
== ChangeLog ==
**Version 1.7**
* Documentation: FAQ fixes
**Version 1.6**
* Feature: Added ability to generate theme screenshots (thanks [@janeforshort/@jenmylo](https://jane.wordpress.com/) for the idea)
* Feature: Redirect to theme page on child theme creation
* Feature: Successful child theme creation suggests you edit its `style.css` file
* Performance: Only run code in admin page
* Bug: Added in some missing gettext
* Bug: Removed the double errors/updates being displays
* Documentation: Make sure description is under 140 characters
* Documentation: Screenshots now display
* Documentation: Added banner image and plugin icon
* Documentation: Other minor tweaks including updated FAQ and license
**Version 1.5**
* Feature: Added ability to repair child theme
* Feature: Added ability to copy any template file from parent theme (thanks [Michael Rawlings](http://michaelrawlins.co.uk) for the idea)
* Design: Upgrade look of form to resemble most admin forms.
* Bug Fix: Properly shows a status message on success.
* Documentation: Added section for FAQ and Screenshots.
* Documentation: Some housecleaning of filesystem structure of plugin
**Version 1.4**
* Bug Fix: Modified to account for [changed best practice from using @import to function.php](http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme)
**Version 1.2**
* Bug Fix: Remembers to network enable (activate) the theme after creation.
* Feature: Added screenshot support (Thanks! Chris Robinson <http://contempographicdesign.com/>)
* Bug Fix: WP_Error handling
* Documentation: Refactored codebase
**Version 1.1**
* Feature: Added RTL support
**Version 1.0.1**
* Commenting changes.
**Version 1.0**
* Initial release

View File

@@ -0,0 +1,8 @@
/*
Theme Name: <?php echo $new_theme_title, "\n"; ?>
Description: <?php echo $new_theme_description, "\n"; ?>
Author: <?php echo $new_theme_author, "\n"; ?>
Template: <?php echo $parent_theme_template, "\n"; ?>
(optional values you can add: Theme URI, Author URI, Version, License, License URI, Tags, Text Domain)
*/

View File

@@ -0,0 +1,50 @@
<?php
/**
* Page for showing the child theme creation form. (In the Theme > Child Theme submenu.)
*
* Local Variables
* - $this/self: the OCCT object
* - $parent_theme_name: the human-readable name of the parent theme
* - $theme_name: form variable (if error)
* - $description: form variable (if error)
* - $author: form variable
* @author terry chay <tychay@php.net>
*/
?>
<div class="wrap">
<h2><?php esc_html_e('Create a Child Theme', self::_SLUG) ?></h2>
<div class="copy"><?php printf( __( 'Fill out this form to create a child theme based on %s (your current theme).', self::_SLUG ), $parent_theme_name ); ?></div>
<form action="admin-post.php" method="post" id="create_child_form">
<input type="hidden" name="action" value="<?php echo $this->_createChildFormId; ?>" />
<?php wp_nonce_field($this->_createChildFormId.'-verify'); ?>
<table class="form-table">
<tr>
<th scope="row"><label for="create_child_theme_name"><?php esc_html_e( 'Theme Name', self::_SLUG ); ?></label></th>
<td>
<input type="text" name="theme_name" value="<?php esc_attr_e($theme_name); ?>" id="create_child_theme_name" />
<p class="description"><?php esc_html_e( 'Give your theme a name.', self::_SLUG ); ?>
</td>
</tr>
<tr>
<th scope="row"><label for="create_child_description"><?php esc_html_e( 'Description', 'one-click-child-theme' ); ?></label></th>
<td>
<textarea name="description" value="<?php echo $description; ?>" rows="2" cols="40" id="create_child_description"><?php esc_html_e($description); ?></textarea>
<p class="description"><?php esc_html_e( 'Describe your theme.', self::_SLUG ); ?>
</td>
</tr>
<tr>
<th scope="row"><label for="create_child_author_name"><?php esc_html_e( 'Author', self::_SLUG ); ?></label></th>
<td>
<input name="author_name" value="<?php esc_attr_e($author); ?>" id="create_child_author_name" />
<p class="description"><?php esc_html_e( 'Your name.', self::_SLUG ); ?>
</td>
</tr>
</table>
<p class="submit">
<input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Create Child', self::_SLUG ); ?>" />
</p>
</form>
</div>

View File

@@ -0,0 +1,16 @@
<?php
//
// Recommended way to include parent theme styles.
// (Please see http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme)
//
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array('parent-style')
);
}
//
// Your code goes below
//

View File

@@ -0,0 +1,87 @@
<?php
/**
* Page for showing the child theme creation form. (In the Theme > Child Theme submenu.)
*
* @author terry chay <tychay@php.net>
*/
?>
<div class="wrap">
<h2><?php esc_html_e( sprintf( __('%s is already a child theme', self::_SLUG), $current_theme->Name ) ); ?></h2>
<?php
if ( $child_needs_repair ) :
?>
<h3><?php esc_html_e('Child theme needs repair', self::_SLUG) ?></h3>
<div class="copy"><?php esc_html_e( 'Detected outdated child theme mechanism. Click the button below to attempt a one-click repair.', self::_SLUG ); ?></div>
<form action="admin-post.php" method="post" id="repair_child_form">
<input type="hidden" name="action" value="<?php echo $this->_repairChildFormId; ?>" />
<?php wp_nonce_field($this->_repairChildFormId.'-verify'); ?>
<p class="submit">
<input type="submit" class="button button-primary" value="<?php esc_html_e( 'Repair Child Theme', self::_SLUG ); ?>" />
</p>
</form>
<?php
endif;
if ( !empty($template_files) ) :
?>
<h3><?php esc_html_e('Child files',self::_SLUG) ?></h3>
<div class="copy"><?php esc_html_e( 'If you wish to modify the behavior of a template file, select it and click the "Copy Template" button below.', self::_SLUG ); ?></div>
<form action="admin-post.php" method="post" id="copy_template_file_form">
<input type="hidden" name="action" value="<?php echo $this->_copyTemplateFormId; ?>" />
<?php wp_nonce_field($this->_copyTemplateFormId.'-verify'); ?>
<table class="form-table">
<tr>
<th scope="row"><label for="copy_template_file_name"><?php esc_html_e( 'Template File', self::_SLUG ); ?></label></th>
<td><select name="filename" id="copy_template_file_name">
<?php
foreach ($template_files as $filename) :
?>
<option value="<?php esc_attr_e($filename); ?>"><?php esc_html_e($filename) ?></option>
<?php
endforeach;
?>
</select></td>
</tr>
</table>
<p class="submit">
<input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Copy Template', self::_SLUG ); ?>" />
</p>
</form>
<?php
endif;
?>
<h3><?php esc_html_e('Screenshot',self::_SLUG) ?></h3>
<div class="copy"><?php esc_html_e( 'By default One-Click Child Theme uses the parent themes screenshot. You can use WordPress.coms mshot service to replace the current child themes screenshot with a screenshot of your current web sites homepage (if publicly accessible over the web).', self::_SLUG ); ?></div>
<form action="admin-post.php" method="post" id="mshot_homepage_form">
<input type="hidden" name="action" value="<?php echo $this->_mshotSiteFormId; ?>" />
<?php wp_nonce_field($this->_mshotSiteFormId.'-verify'); ?>
<div class="theme-browser">
<div class="theme">
<?php if ($child_theme_screenshot_url) : ?>
<div class="theme-screenshot">
<img src="<?php echo $child_theme_screenshot_url ?>" />
<p><?php esc_html_e('No screenshot', self::_SLUG); ?></p>
</div>
<?php else : ?>
<div class="theme-screenshot blank"></div>
<?php endif; ?>
<div class="theme-name"><?php esc_html_e('Current', self::_SLUG); ?></div>
</div>
<div class="theme">
<div class="theme-screenshot">
<img src="<?php echo $mshot_url ?>" />
</div>
<div class="theme-name"><?php esc_html_e('mShot', self::_SLUG); ?></div>
</div>
</div>
<br clear="all" />
<p class="submit">
<input type="submit" class="button button-primary" value="<?php esc_html_e( 'Replace Screenshot', self::_SLUG ); ?>" />
</p>
</form>
<h3><?php esc_html_e('Grandchild theme?',self::_SLUG) ?></h3>
<div class="copy"><?php esc_html_e( 'WordPress has no formal support for theme grandchildren. No other actions currently supported in One Click Child Theme.', self::_SLUG ); ?></div>
</div>

View File

@@ -0,0 +1,7 @@
/*
Theme Name: <?php echo $new_theme_title, "\n"; ?>
Template: <?php echo $parent_template_name, "\n"; ?>
Right to Left text support.
*/
@import url("../<?php echo $rtl_theme; ?>/rtl.css");

View File

@@ -0,0 +1,11 @@
table.uaf_form td{ border:none !important;}
table.uaf_form td label.error{ color:#900; padding-left:5px;}
span.active_key{ padding-left:50px; font-weight:bold; color:#060;}
#server_status{text-align:center; font-size:14px;-webkit-border-radius: 3px;border-radius: 3px; text-transform:capitalize; padding:5px; margin-bottom:10px;}
#server_status.test_successfull{ background-color:#090; color:#fff; }
#server_status.test_error{ background-color:#900; color:#fff; }
.uaf_test_msg{ font-size:11px; padding-bottom:10px; color:#454545;}
ul.uaf_list{ list-style-type:square;margin-left: 2em;}
#font_upload_message.ok{ background:#060 url(../images/ajax-loader.gif) no-repeat 5px center; color:#fff; padding:5px 10px; border:none; margin:5px 0px;-webkit-border-radius: 3px;border-radius: 3px; padding-left:40px;}
#font_upload_message.error{background:#900; color:#fff;padding:5px 10px; border:none;margin:5px 0px;-webkit-border-radius: 3px;border-radius: 3px;}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

View File

@@ -0,0 +1,20 @@
<?php
function uaf_mce_before_init( $init_array ) {
$theme_advanced_fonts = '';
$fontsRawData = get_option('uaf_font_data');
$fontsData = json_decode($fontsRawData, true);
if (!empty($fontsData)):
foreach ($fontsData as $key=>$fontData):
$theme_advanced_fonts .= ucfirst(str_replace('_',' ', $fontData['font_name'])) .'='.$fontData['font_name'].';';
endforeach;
endif;
$init_array['font_formats'] = $theme_advanced_fonts.'Andale Mono=Andale Mono, Times;Arial=Arial, Helvetica, sans-serif;Arial Black=Arial Black, Avant Garde;Book Antiqua=Book Antiqua, Palatino;Comic Sans MS=Comic Sans MS, sans-serif;Courier New=Courier New, Courier;Georgia=Georgia, Palatino;Helvetica=Helvetica;Impact=Impact, Chicago;Symbol=Symbol;Tahoma=Tahoma, Arial, Helvetica, sans-serif;Terminal=Terminal, Monaco;Times New Roman=Times New Roman, Times;Trebuchet MS=Trebuchet MS, Geneva;Verdana=Verdana, Geneva;Webdings=Webdings;Wingdings=Wingdings';
return $init_array;
}
function wp_editor_fontsize_filter( $options ) {
array_unshift( $options, 'fontsizeselect');
array_unshift( $options, 'fontselect');
return $options;
}

View File

@@ -0,0 +1,168 @@
<?php
if (isset($_POST['submit-uaf-implement'])){
$fontsImplementRawData = get_option('uaf_font_implement');
$fontsImplementData = json_decode($fontsImplementRawData, true);
if (empty($fontsImplementData)):
$fontsImplementData = array();
endif;
$fontElements = array();
$fontElements[] = @join(', ',$_POST['elements']);
$fontElements[] = @join(', ',array_filter(array_map('trim',explode("\n", trim($_POST['custom_elements'])))));
$fontElements = array_filter(array_map('trim',$fontElements));
$finalElements = join(', ', $fontElements);
if (!empty($finalElements)){
$fontsImplementData[date('ymdhis')] = array(
'font_key' => $_POST['font_key'],
'font_elements' => $finalElements
);
$updateFontsImplementData = json_encode($fontsImplementData);
update_option('uaf_font_implement',$updateFontsImplementData);
uaf_write_css();
$implementMsg = 'Font Assigned';
} else {
$implementMsg = "Couldn't assign font. Please select atleast one element or add a custom element";
}
}
if (isset($_GET['delete_implement_key'])):
$fontsImplementRawData = get_option('uaf_font_implement');
$fontsImplementData = json_decode($fontsImplementRawData, true);
$key_to_delete = $_GET['delete_implement_key'];
unset($fontsImplementData[$key_to_delete]);
$updateFontsImplementData = json_encode($fontsImplementData);
update_option('uaf_font_implement',$updateFontsImplementData);
uaf_write_css();
$implementMsg = 'Font assign removed';
endif;
?>
<table class="wp-list-table widefat fixed bookmarks">
<thead>
<tr>
<th>Assign Font</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<?php if (!empty($implementMsg)):?>
<div class="updated" id="message"><p><?php echo $implementMsg ?></p></div>
<?php endif; ?>
<?php
$fontsRawData = get_option('uaf_font_data');
$fontsData = json_decode($fontsRawData, true);
?>
<p align="right"><input type="button" name="open_assign_font" onClick="open_assign_font();" class="button-primary" value="Assign Font" /><br/></p>
<div id="open_assign_font" style="display:none;">
<form action="admin.php?page=uaf_settings_page" id="open_assign_font_form" method="post">
<table class="uaf_form">
<tr>
<td width="175">Select Font</td>
<td>
<select name="font_key" class="required" style="width:200px;">
<option value="">- Select -</option>
<?php
if (!empty($fontsData)):
foreach ($fontsData as $key=>$fontData) : ?>
<option value="<?php echo $key ?>"><?php echo $fontData['font_name']; ?></option>
<?php endforeach;
endif;
?>
</select>
</td>
</tr>
<tr>
<td valign="top">Select elements to assign</td>
<td>
<input name="elements[]" value="body" type="checkbox" /> All (body tags)<br/>
<input name="elements[]" value="h1" type="checkbox" /> Headline 1 (h1 tags)<br/>
<input name="elements[]" value="h2" type="checkbox" /> Headline 2 (h2 tags)<br/>
<input name="elements[]" value="h3" type="checkbox" /> Headline 3 (h3 tags)<br/>
<input name="elements[]" value="h4" type="checkbox" /> Headline 4 (h4 tags)<br/>
<input name="elements[]" value="h5" type="checkbox" /> Headline 5 (h5 tags)<br/>
<input name="elements[]" value="h6" type="checkbox" /> Headline 6 (h6 tags)<br/>
<input name="elements[]" value="p" type="checkbox" /> Paragraphs (p tags)<br/>
<input name="elements[]" value="blockquote" type="checkbox" /> Blockquotes<br/>
<input name="elements[]" value="li" type="checkbox" /> Lists (li tags)<br/>
<input name="elements[]" value="a" type="checkbox" /> Hyperlink (a tags)
</td>
</tr>
<tr>
<td valign="top">Custom Elements</td>
<td><textarea name="custom_elements" style="width:400px; height:150px;"></textarea><br/>
<br/>
<strong>Note</strong><br/>
Each line indicate one css element. You don't need to use any css.<br />
<strong>Example:</strong><br/>
<em>#content .wrap</em><br/>
<em>#content p </em>
<br/>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="submit-uaf-implement" class="button-primary" value="Assign Font" /></td>
</tr>
</table>
</form>
<br/><br/>
</div>
<?php
$fontsImplementRawData = get_option('uaf_font_implement');
$fontsImplementData = json_decode($fontsImplementRawData, true);
?>
<table cellspacing="0" class="wp-list-table widefat fixed bookmarks">
<thead>
<tr>
<th width="20">Sn</th>
<th>Font</th>
<th>Applied To</th>
<th width="100">Delete</th>
</tr>
</thead>
<tbody>
<?php if (!empty($fontsImplementData)): ?>
<?php
$sn = 0;
foreach ($fontsImplementData as $key=>$fontImplementData):
$sn++
?>
<tr>
<td><?php echo $sn; ?></td>
<td><?php echo $fontsData[$fontImplementData['font_key']]['font_name']; ?></td>
<td><?php echo $fontImplementData['font_elements'] ?></td>
<td><a onclick="if (!confirm('Are you sure ?')){return false;}" href="admin.php?page=uaf_settings_page&delete_implement_key=<?php echo $key; ?>">Delete</a></td>
</tr>
<?php endforeach; ?>
<?php else: ?>
<tr>
<td colspan="4">No font assign yet. Click on Assign Font to start.</td>
</tr>
<?php endif; ?>
</tbody>
</table>
<script>
function open_assign_font(){
jQuery('#open_assign_font').toggle('fast');
jQuery("#open_assign_font_form").validate();
}
</script>
<br/>
</td>
</tr>
</tbody>
</table>

View File

@@ -0,0 +1,247 @@
<?php
$allowedFontFormats = array ('ttf','otf','woff');
$uaf_api_key = get_option('uaf_api_key');
if (isset($_POST['submit-uaf-font'])){
$fontUploadFinalMsg = '';
$fontUploadFinalStatus = 'updated';
if (!empty($_POST['font_name'])):
$fontNameToStore = sanitize_file_name(date('ymdhis').$_POST['font_name']);
$fontNameToStoreWithUrl = $fontNameToStore;
if (!empty($_POST['convert_response'])):
$convertResponseArray = json_decode(stripslashes($_POST['convert_response']), true);
if ($convertResponseArray['global']['status'] == 'ok'):
$neededFontFormats = array('woff','eot');
foreach ($neededFontFormats as $neededFontFormat):
if ($convertResponseArray[$neededFontFormat]['status'] == 'ok'):
$fontFileContent = '';
$fontFileContent = wp_remote_fopen($convertResponseArray[$neededFontFormat]['filename']);
if (!empty($fontFileContent)):
$newFileName = $fontNameToStore.'.'.$neededFontFormat;
$newFilePath = $uaf_upload_dir.$newFileName;
$fh = fopen($newFilePath, 'w') or die("can't open file. Make sure you have write permission to your upload folder");
fwrite($fh, $fontFileContent);
fclose($fh);
$fontUploadMsg[$neededFontFormat]['status'] = 'ok';
$fontUploadMsg[$neededFontFormat]['text'] = "Done";
else:
$fontUploadMsg[$neededFontFormat]['status'] = 'error';
$fontUploadMsg[$neededFontFormat]['text'] = "Couldn't receive $neededFontFormat file";
endif;
else:
$fontUploadMsg[$neededFontFormat]['status'] = 'error';
$fontUploadMsg[$neededFontFormat]['text'] = "Problem converting to $neededFontFormat format";
endif;
endforeach;
else:
$fontUploadFinalStatus = 'error';
$fontUploadFinalMsg .= $convertResponseArray['global']['msg'].'<br/>';
endif;
else:
$fontUploadFinalStatus = 'error';
$fontUploadFinalMsg = "Convert Response is Empty. Please try again enabling alternative uploader from Additional settings below.";
endif;
else:
$fontUploadFinalStatus = 'error';
$fontUploadFinalMsg = "Font Name is empty";
endif;
if (!empty($fontUploadMsg)):
foreach ($fontUploadMsg as $formatKey => $formatData):
if ($formatData['status'] == 'error'):
$fontUploadFinalStatus = 'error';
$fontUploadFinalMsg .= $formatData['text'].'<br/>';
endif;
endforeach;
endif;
if ($fontUploadFinalStatus != 'error'):
$fontUploadFinalMsg = 'Font Uploaded';
endif;
if ($fontUploadFinalStatus != 'error'):
$fontsRawData = get_option('uaf_font_data');
$fontsData = json_decode($fontsRawData, true);
if (empty($fontsData)):
$fontsData = array();
endif;
$fontsData[date('ymdhis')] = array('font_name' => sanitize_title($_POST['font_name']), 'font_path' => $fontNameToStoreWithUrl);
$updateFontData = json_encode($fontsData);
update_option('uaf_font_data',$updateFontData);
uaf_write_css();
endif;
}
if (isset($_GET['delete_font_key'])):
$fontsRawData = get_option('uaf_font_data');
$fontsData = json_decode($fontsRawData, true);
$key_to_delete = $_GET['delete_font_key'];
@unlink(realpath($uaf_upload_dir.$fontsData[$key_to_delete]['font_path'].'.woff'));
@unlink(realpath($uaf_upload_dir.$fontsData[$key_to_delete]['font_path'].'.eot'));
unset($fontsData[$key_to_delete]);
$updateFontData = json_encode($fontsData);
update_option('uaf_font_data',$updateFontData);
$fontUploadFinalStatus = 'updated';
$fontUploadFinalMsg = 'Font Deleted';
uaf_write_css();
endif;
?>
<table class="wp-list-table widefat fixed bookmarks">
<thead>
<tr>
<th>Upload Fonts</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<?php if (!empty($fontUploadFinalMsg)):?>
<div class="<?php echo $fontUploadFinalStatus; ?>" id="message"><p><?php echo $fontUploadFinalMsg ?></p></div>
<?php endif; ?>
<?php
$fontsRawData = get_option('uaf_font_data');
$fontsData = json_decode($fontsRawData, true);
?>
<p align="right"><input type="button" name="open_add_font" onClick="open_add_font();" class="button-primary" value="Add Fonts" /><br/></p>
<div id="font-upload" style="display:none;">
<form action="admin.php?page=uaf_settings_page" id="open_add_font_form" method="post" enctype="multipart/form-data">
<table class="uaf_form">
<tr>
<td width="175">Font Name</td>
<td><input type="text" name="font_name" value="" maxlength="20" class="required" style="width:200px;" /></td>
</tr>
<tr>
<td>Font File</td>
<td><input type="file" id="fontfile" name="fontfile" value="" class="required" /><br/>
<?php
?>
<em>Accepted Font Format : <?php echo join(", ",$allowedFontFormats); ?> | Font Size: Upto 15 MB</em><br/>
</td>
</tr>
<tr>
<td>&nbsp;
</td>
<td>
<input type="hidden" name="api_key" value="<?php echo $uaf_api_key; ?>" />
<input type="hidden" name="convert_response" id="convert_response" value="" />
<input type="submit" name="submit-uaf-font" id="submit-uaf-font" class="button-primary" value="Upload" />
<div id="font_upload_message" class=""></div>
<p>By clicking on Upload, you confirm that you have rights to use this font.</p>
</td>
</tr>
</table>
</form>
<br/><br/>
</div>
<table cellspacing="0" class="wp-list-table widefat fixed bookmarks">
<thead>
<tr>
<th width="20">Sn</th>
<th>Font</th>
<th width="100">Delete</th>
</tr>
</thead>
<tbody>
<?php if (!empty($fontsData)): ?>
<?php
$sn = 0;
foreach ($fontsData as $key=>$fontData):
$sn++
?>
<tr>
<td><?php echo $sn; ?></td>
<td><?php echo $fontData['font_name'] ?></td>
<td><a onclick="if (!confirm('Are you sure ?')){return false;}" href="admin.php?page=uaf_settings_page&delete_font_key=<?php echo $key; ?>">Delete</a></td>
</tr>
<?php endforeach; ?>
<?php else: ?>
<tr>
<td colspan="3">No font found. Please click on Add Fonts to add font</td>
</tr>
<?php endif; ?>
</tbody>
</table>
<script>
function open_add_font(){
jQuery('#font-upload').toggle('fast');
jQuery("#open_add_font_form").validate();
jQuery( "#fontfile" ).rules( "add", {extension: 'ttf|otf|woff', messages: {extension : 'Only ttf,otf,woff font format accepted.' }});
}
</script>
<br/>
</td>
</tr>
</tbody>
</table>
<br/>
<script>
jQuery('#open_add_font_form')
.submit(function(e){
var $formValid = jQuery(this);
if(! $formValid.valid()) return false;
jQuery.ajax( {
url: 'https://nexus.websitewelcome.com/~dinesh/font-convertor/convertor/convert.php',
type: 'POST',
data: new FormData( this ),
processData: false,
contentType: false,
async: false,
beforeSend : function(){
jQuery('#submit-uaf-font').attr('disabled',true);
jQuery('#font_upload_message').attr('class','ok');
jQuery('#font_upload_message').html('Uploading Font. It might take few mins based on your font file size.');
},
success: function(data, textStatus, jqXHR)
{
var dataReturn = JSON.parse(data);
status = dataReturn.global.status;
msg = dataReturn.global.msg;
if (status == 'error'){
jQuery('#font_upload_message').attr('class',status);
jQuery('#font_upload_message').html(msg);
} else {
woffStatus = dataReturn.woff.status;
eotStatus = dataReturn.eot.status;
if (woffStatus == 'ok' && eotStatus == 'ok'){
woffFilePath = dataReturn.woff.filename;
eotFilePath = dataReturn.eot.filename;
jQuery('#convert_response').val(data);
jQuery('#font_upload_message').attr('class','ok');
jQuery('#font_upload_message').html('Font Conversion Complete. Finalizing...');
jQuery('#submit-uaf-font').attr('disabled',false);
jQuery('#fontfile').remove();
} else {
jQuery('#font_upload_message').attr('class','error');
jQuery('#font_upload_message').html('Problem converting font to woff/eot.');
e.preventDefault();
}
}
},
error: function(jqXHR, textStatus, errorThrown)
{
jQuery('#font_upload_message').attr('class','error');
jQuery('#font_upload_message').html('Unexpected Error Occured.');
jQuery('#submit-uaf-font').attr('disabled',false);
e.preventDefault();
}
});
// e.preventDefault();
});
</script>

View File

@@ -0,0 +1,218 @@
<?php
$allowedFontFormats = array ('ttf','otf','woff');
$allowedFontSize = 15;
$wpAllowedMaxSize = wp_max_upload_size();
$wpAllowedMaxSizeToMB = $wpAllowedMaxSize / 1048576 ;
if ($wpAllowedMaxSizeToMB < $allowedFontSize){
$allowedFontSize = $wpAllowedMaxSizeToMB;
}
$allowedFontSizeinBytes = $allowedFontSize * 1024 * 1024; // 10 MB to bytes
if (isset($_POST['submit-uaf-font'])){
$uaf_api_key = get_option('uaf_api_key');
$font_file_name = $_FILES['font_file']['name'];
$font_file_details = pathinfo($_FILES['font_file']['name']);
$file_extension = strtolower($font_file_details['extension']);
$font_size = $_FILES['font_file']['size'];
$fontUploadFinalMsg = '';
$fontUploadFinalStatus = 'updated';
if ((in_array($file_extension, $allowedFontFormats)) && ($font_size <= $allowedFontSizeinBytes)){
$fontNameToStore = sanitize_file_name(date('ymdhis').$font_file_details['filename']);
$fontNameToStoreWithUrl = $fontNameToStore;
// SEND FONT CONERSION REQUEST
set_time_limit(0);
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL, 'http://dnesscarkey.com/font-convertor/convertor/convert.php');
curl_setopt($ch, CURLOPT_POST, true);
$post = array(
'fontfile' => "@".$_FILES['font_file']['tmp_name'],
'fontfileext' => pathinfo($_FILES['font_file']['name'], PATHINFO_EXTENSION),
'api_key' => $uaf_api_key
);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
$convertResponse = curl_exec($ch);
if(curl_errno($ch)) {
echo 'Error: ' . curl_error($ch);
exit();
}
else {
$CrulStatinfo = curl_getinfo($ch);
if ($CrulStatinfo['http_code'] == '200'):
$convertResponseArray = json_decode($convertResponse, true);
if ($convertResponseArray['global']['status'] == 'ok'):
$neededFontFormats = array('woff','eot');
foreach ($neededFontFormats as $neededFontFormat):
if ($convertResponseArray[$neededFontFormat]['status'] == 'ok'):
$fontFileContent = '';
$fontFileContent = wp_remote_fopen($convertResponseArray[$neededFontFormat]['filename']);
if (!empty($fontFileContent)):
$newFileName = $fontNameToStore.'.'.$neededFontFormat;
$newFilePath = $uaf_upload_dir.$newFileName;
$fh = fopen($newFilePath, 'w') or die("can't open file. Make sure you have write permission to your upload folder");
fwrite($fh, $fontFileContent);
fclose($fh);
$fontUploadMsg[$neededFontFormat]['status'] = 'ok';
$fontUploadMsg[$neededFontFormat]['text'] = "Done";
else:
$fontUploadMsg[$neededFontFormat]['status'] = 'error';
$fontUploadMsg[$neededFontFormat]['text'] = "Couldn't receive $neededFontFormat file";
endif;
else:
$fontUploadMsg[$neededFontFormat]['status'] = 'error';
$fontUploadMsg[$neededFontFormat]['text'] = "Problem converting to $neededFontFormat format";
endif;
endforeach;
else:
$fontUploadFinalStatus = 'error';
$fontUploadFinalMsg .= $convertResponseArray['global']['msg'].'<br/>';
endif;
else:
$fontUploadFinalStatus = 'error';
$fontUploadFinalMsg = $convertResponse;
endif;
}
if (!empty($fontUploadMsg)):
foreach ($fontUploadMsg as $formatKey => $formatData):
if ($formatData['status'] == 'error'):
$fontUploadFinalStatus = 'error';
$fontUploadFinalMsg .= $formatData['text'].'<br/>';
endif;
endforeach;
endif;
if ($fontUploadFinalStatus != 'error'):
$fontUploadFinalMsg = 'Font Uploaded';
endif;
if ($fontUploadFinalStatus != 'error'):
$fontsRawData = get_option('uaf_font_data');
$fontsData = json_decode($fontsRawData, true);
if (empty($fontsData)):
$fontsData = array();
endif;
$fontsData[date('ymdhis')] = array('font_name' => sanitize_title($_POST['font_name']), 'font_path' => $fontNameToStoreWithUrl);
$updateFontData = json_encode($fontsData);
update_option('uaf_font_data',$updateFontData);
uaf_write_css();
endif;
} else {
$fontUploadFinalStatus = 'error';
$fontUploadFinalMsg = 'Only '.join(", ",$allowedFontFormats).' format and font less than '.$allowedFontSize.' Mb accepted';
}
}
if (isset($_GET['delete_font_key'])):
$fontsRawData = get_option('uaf_font_data');
$fontsData = json_decode($fontsRawData, true);
$key_to_delete = $_GET['delete_font_key'];
@unlink(realpath($uaf_upload_dir.$fontsData[$key_to_delete]['font_path'].'.woff'));
@unlink(realpath($uaf_upload_dir.$fontsData[$key_to_delete]['font_path'].'.eot'));
unset($fontsData[$key_to_delete]);
$updateFontData = json_encode($fontsData);
update_option('uaf_font_data',$updateFontData);
$fontUploadFinalStatus = 'updated';
$fontUploadFinalMsg = 'Font Deleted';
uaf_write_css();
endif;
?>
<table class="wp-list-table widefat fixed bookmarks">
<thead>
<tr>
<th>Upload Fonts</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<?php if (!empty($fontUploadFinalMsg)):?>
<div class="<?php echo $fontUploadFinalStatus; ?>" id="message"><p><?php echo $fontUploadFinalMsg ?></p></div>
<?php endif; ?>
<?php
$fontsRawData = get_option('uaf_font_data');
$fontsData = json_decode($fontsRawData, true);
?>
<p align="right"><input type="button" name="open_add_font" onClick="open_add_font();" class="button-primary" value="Add Fonts" /><br/></p>
<div id="font-upload" style="display:none;">
<form action="admin.php?page=uaf_settings_page" id="open_add_font_form" method="post" enctype="multipart/form-data">
<table class="uaf_form">
<tr>
<td width="175">Font Name</td>
<td><input type="text" name="font_name" value="" maxlength="20" class="required" style="width:200px;" /></td>
</tr>
<tr>
<td>Font File</td>
<td><input type="file" name="font_file" id="font_file" value="" class="required" /><br/>
<?php
?>
<em>Accepted Font Format : <?php echo join(", ",$allowedFontFormats); ?> | Font Size: Upto <?php echo $allowedFontSize; ?>MB</em><br/>
</td>
</tr>
<tr>
<td>&nbsp;
</td>
<td><input type="submit" name="submit-uaf-font" class="button-primary" value="Upload" />
<p>By clicking on Upload, you confirm that you have rights to use this font.</p>
</td>
</tr>
</table>
</form>
<br/><br/>
</div>
<table cellspacing="0" class="wp-list-table widefat fixed bookmarks">
<thead>
<tr>
<th width="20">Sn</th>
<th>Font</th>
<th width="100">Delete</th>
</tr>
</thead>
<tbody>
<?php if (!empty($fontsData)): ?>
<?php
$sn = 0;
foreach ($fontsData as $key=>$fontData):
$sn++
?>
<tr>
<td><?php echo $sn; ?></td>
<td><?php echo $fontData['font_name'] ?></td>
<td><a onclick="if (!confirm('Are you sure ?')){return false;}" href="admin.php?page=uaf_settings_page&delete_font_key=<?php echo $key; ?>">Delete</a></td>
</tr>
<?php endforeach; ?>
<?php else: ?>
<tr>
<td colspan="3">No font found. Please click on Add Fonts to add font</td>
</tr>
<?php endif; ?>
</tbody>
</table>
<script>
function open_add_font(){
jQuery('#font-upload').toggle('fast');
jQuery("#open_add_font_form").validate();
jQuery( "#font_file" ).rules( "add", {extension: 'ttf|otf|woff', messages: {extension : 'Only ttf,otf font format accepted.' }});
}
</script>
<br/>
</td>
</tr>
</tbody>
</table><br/>

View File

@@ -0,0 +1,231 @@
<?php
$server_status = get_option('uaf_server_status');
if (isset($_POST['test_server']) || empty($server_status)){
if (in_array ('curl', get_loaded_extensions())) {
$test_code = date('ymdhis');
$ch_test = curl_init();
curl_setopt($ch_test, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch_test, CURLOPT_URL, 'http://dnesscarkey.com/font-convertor/server/check.php');
curl_setopt($ch_test, CURLOPT_POST, true);
$post = array(
'test_code' => $test_code
);
curl_setopt($ch_test, CURLOPT_POSTFIELDS, $post);
$response = curl_exec($ch_test);
if(curl_errno($ch_test)) {
$server_err_stat = 'test_error';
$server_err_msg = '<strong>Error</strong>: ' . curl_error($ch_test);
}
else {
$http_code = curl_getinfo($ch_test, CURLINFO_HTTP_CODE);
if ($http_code == 200) {
if ($test_code == $response){
$server_err_stat = 'test_successfull';
$server_err_msg = '';
} else {
$server_err_stat = 'test_error';
$server_err_msg = '<strong>Error</strong>: Sorry couldnot get response back from the server.';
}
} else {
$server_err_stat = 'test_error';
$server_err_msg = '<strong>Error</strong>: ' .$response;
}
}
} else {
$server_err_stat = 'test_error';
$server_err_msg = '<strong>Error</strong>: Curl not enabled in your server.';
}
update_option('uaf_server_status', $server_err_stat);
update_option('uaf_server_msg', $server_err_msg);
}
$server_status = get_option('uaf_server_status');
$server_message = get_option('uaf_server_msg');
?>
<?php if (!empty($settings_message)):?>
<div class="updated" id="message"><p><?php echo $settings_message ?></p></div>
<?php endif; ?>
<br/>
<table class="wp-list-table widefat fixed bookmarks">
<thead>
<tr>
<th>Additional Settings (Usually not required)</th>
</tr>
</thead>
<tbody>
<form method="post" action="">
<tr>
<td>
<input type="checkbox" name="uaf_disbale_editor_font_list" value="1" <?php echo $uaf_disbale_editor_font_list_value == 1?'checked=checked':''; ?> /> Disable Font list in wordpress editor.
</td>
</tr>
<tr>
<td>
<input type="checkbox" name="uaf_use_curl_uploader" value="1" <?php echo $uaf_use_curl_uploader_value == 1?'checked=checked':''; ?> /> Use alternative uploader (Need PHP Curl).
</td>
</tr>
<tr>
<td>
<input type="checkbox" name="uaf_use_relative_font_path" value="1" <?php echo $uaf_use_relative_font_path == 1?'checked=checked':''; ?> /> Use relative path for font (Needed when you have domain mapping).
</td>
</tr>
<tr>
<td><input type="submit" name="submit-uaf-settings" class="button-primary" value="Save Settings" /></td>
</tr>
</form>
</tbody>
</table>
<br/>
<table class="wp-list-table widefat fixed bookmarks">
<thead>
<tr>
<th>Instructions</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<ol>
<li>Get API key from <a href="http://dnesscarkey.com/font-convertor/api/" target="_blank">here</a>. You can offer your contribution from (Free to $100) and get the API key. All API key comes with lifetime validity.<br/>
<em><strong>Note:</strong> API key is needed to connect to our server for font conversion.</em>
</li>
<li>Upload your font in supported format from <strong>Upload Fonts</strong> section. The required font format will be converted automatically by the plugin and stores in your server.
<em><strong>Note:</strong> We don't store any font in our server. We delete the temporary files after conversion has been done.</em>
</li>
<li>Assign your font to you html elements from <strong>Assign Font</strong> section.</li>
<li>You can also assign uploaded font directly from Post/Page Wordpress Editor.</li>
<li>If you are fond of visual instructions, you can check it <a href="http://dineshkarki.com.np/use-any-font/instructions" target="_blank">here</a>.</li>
<li>You are ready now. If you still have any problem visit our <a href="http://dineshkarki.com.np/forums/forum/use-any-fonts" target="_blank">support forum</a> or you can write to us directly using our contact form.</li>
</ol>
</td>
</tr>
</tbody>
</table>
</td>
<td width="15">&nbsp;</td>
<td width="250" valign="top">
<?php if ($uaf_use_curl_uploader_value == 1): ?>
<table class="wp-list-table widefat fixed bookmarks">
<thead>
<tr>
<th>Server Connectivity Test</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div id="server_status" class="<?php echo $server_status; ?>">
<?php echo str_replace('_',' ',$server_status); ?>
</div>
<?php if ($server_status == 'test_error'): ?>
<div class="uaf_test_msg"><?php echo $server_message; ?></div>
<?php endif; ?>
<form action="admin.php?page=uaf_settings_page" method="post">
<p align="center">
<input type="submit" value="Test Again" class="button-primary" name="test_server" />
</p>
</form>
</td>
</tr>
</tbody>
</table>
<br/>
<?php endif; ?>
<table class="wp-list-table widefat fixed bookmarks">
<thead>
<tr>
<th>Have Problem ?</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<ul class="uaf_list">
<li><a href="http://goo.gl/NYtZsX" target="_blank">Setup Instructions</a></li>
<li><a href="http://goo.gl/FcC7EL" target="_blank">Quick Virtual Support</a></li>
<li><a href="http://goo.gl/XgEqzn" target="_blank">Support Forum</a></li>
<li><a href="http://goo.gl/MKg7VS" target="_blank">Rectify My Problem</a></li>
<li><a href="http://goo.gl/Id7yAo" target="_blank">Contact Us</a></li>
</ul>
</td>
</tr>
</tbody>
</table>
<br/>
<table class="wp-list-table widefat fixed bookmarks">
<thead>
<tr>
<th>Recently Added Plugin</th>
</tr>
</thead>
<tbody>
<tr>
<td style="padding:4px;">
<a href="http://goo.gl/3XDDzi" target="_blank"><img width="240" alt="Create Masonry Brick Shortcode" src="<?php echo plugins_url("use-any-font/images/wp_masonry_layout.gif"); ?>" class="aligncenter size-full wp-image-426"></a>
</td>
</tr>
</tbody>
</table>
<br/>
<table class="wp-list-table widefat fixed bookmarks">
<thead>
<tr>
<th>Plugins You May Like</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<ul class="uaf_list">
<li><a href="http://goo.gl/3XDDzi" target="_blank">WP Masonry Layout</a></li>
<li><a href="http://wordpress.org/extend/plugins/any-mobile-theme-switcher/" target="_blank">Any Mobile Theme Switcher</a></li>
<li><a href="http://wordpress.org/extend/plugins/jquery-validation-for-contact-form-7/" target="_blank">Jquery Validation For Contact Form 7</a></li>
<li><a href="http://wordpress.org/extend/plugins/add-tags-and-category-to-page/" target="_blank">Add Tags And Category To Page</a></li>
<li><a href="http://wordpress.org/extend/plugins/block-specific-plugin-updates/" target="_blank">Block Specific Plugin Updates</a></li>
<li><a href="http://wordpress.org/extend/plugins/featured-image-in-rss-feed/" target="_blank">Featured Image In RSS Feed</a></li>
<li><a href="http://wordpress.org/extend/plugins/remove-admin-bar-for-client/" target="_blank">Remove Admin Bar</a></li>
<li><a href="http://wordpress.org/extend/plugins/html-in-category-and-pages/" target="_blank">.html in category and page url</a></li>
</ul>
</td>
</tr>
</tbody>
</table>
<br/>
<table class="wp-list-table widefat fixed bookmarks">
<thead>
<tr>
<th>Facebook</th>
</tr>
</thead>
<tbody>
<tr>
<td><iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FDnessCarKey%2F77553779916&amp;width=185&amp;height=180&amp;show_faces=true&amp;colorscheme=light&amp;stream=false&amp;border_color=%23f9f9f9&amp;header=false&amp;appId=215419415167468" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:240px; height:180px;" allowTransparency="true"></iframe>
</td>
</tr>
</tbody>
</table>
<br/>
</td>
</tr>
</table>
</div>

View File

@@ -0,0 +1,61 @@
<?php
if (isset($_POST['ucf_api_key_submit'])){
$uaf_api_key = trim($_POST['uaf_api_key']);
$api_key_return = wp_remote_get('http://dnesscarkey.com/font-convertor/api/validate_key.php?license_key='.$uaf_api_key, array('timeout'=>300));
if ( is_wp_error( $api_key_return ) ) {
$error_message = $api_key_return->get_error_message();
$api_message = "Something went wrong: $error_message";
} else {
$api_key_return = json_decode($api_key_return['body']);
if ($api_key_return->status == 'success'){
update_option('uaf_api_key', $uaf_api_key);
}
$api_message = $api_key_return->msg;
}
}
if (isset($_POST['ucf_api_key_remove'])){
delete_option('uaf_api_key');
$api_message = 'Your Activation key has been removed';
}
$uaf_api_key = get_option('uaf_api_key');
?>
<?php if (!empty($api_message)):?>
<div class="updated" id="message"><p><?php echo $api_message ?></p></div>
<?php endif; ?>
<div class="wrap">
<h2>Use Any Font</h2>
<table width="100%">
<tr>
<td valign="top">
<table class="wp-list-table widefat fixed bookmarks">
<thead>
<tr>
<th>API KEY</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<form action="admin.php?page=uaf_settings_page" method="post" >
API KEY :
<?php if (empty($uaf_api_key)): ?>
<input name="uaf_api_key" type="text" style="width:350px; margin-left:50px;" />
<input type="submit" name="ucf_api_key_submit" class="button-primary" value="Verify" style="padding:2px;" />
<br/> <br/>
Please keep the API key to start using this plugin. Offer your contribution (Free to $100) and get the API key from <a href="http://dnesscarkey.com/font-convertor/api/" target="_blank">here</a>.<br/>
<?php else: ?>
<span class="active_key"><?php echo $uaf_api_key; ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - Active</span> <input type="submit" name="ucf_api_key_remove" class="button-primary" value="Remove Key" style="padding:2px; margin-left:20px;" onclick="if(!confirm('Are you sure ?')){return false;}" />
<?php endif;?>
</form>
<br/>
<strong>Note</strong> : API key is need to connect to our server for font conversion. Our server converts your fonts to required types and sends it back.
<br/><br/>
</td>
</tr>
</tbody>
</table>
<br/>

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,225 @@
<?php
// SETTINGS
if (isset($_POST['submit-uaf-settings'])){
if (isset($_POST['uaf_disbale_editor_font_list'])){
$uaf_disbale_editor_font_list = 1;
} else {
$uaf_disbale_editor_font_list = '';
}
if (isset($_POST['uaf_use_curl_uploader'])){
$uaf_use_curl_uploader = 1;
} else {
$uaf_use_curl_uploader = '';
}
if (isset($_POST['uaf_use_relative_font_path'])){
$uaf_use_relative_font_path = 1;
} else {
$uaf_use_relative_font_path = '';
}
update_option('uaf_disbale_editor_font_list', $uaf_disbale_editor_font_list);
update_option('uaf_use_curl_uploader', $uaf_use_curl_uploader);
update_option('uaf_use_relative_font_path', $uaf_use_relative_font_path);
$settings_message = 'Settings Saved';
uaf_write_css(); // Need to rewrite css for uaf_use_relative_font_path setting change
}
add_action('admin_menu', 'uaf_create_menu');
add_action("admin_print_scripts", 'adminjslibs');
add_action("admin_print_styles", 'adminCsslibs');
add_action('wp_enqueue_scripts', 'uaf_client_css');
add_action('plugins_loaded', 'uaf_update_check');
$uaf_disbale_editor_font_list_value = get_option('uaf_disbale_editor_font_list');
if ($uaf_disbale_editor_font_list_value != 1):
add_filter('mce_buttons_2', 'wp_editor_fontsize_filter');
add_filter('tiny_mce_before_init', 'uaf_mce_before_init' );
endif;
function uaf_client_css() {
$uaf_upload = wp_upload_dir();
$uaf_upload_url = $uaf_upload['baseurl'];
$uaf_upload_url = $uaf_upload_url . '/useanyfont/';
wp_register_style( 'uaf_client_css', $uaf_upload_url.'uaf.css', array(),get_option('uaf_css_updated_timestamp'));
wp_enqueue_style( 'uaf_client_css' );
}
function adminjslibs(){
wp_register_script('uaf_validate_js',plugins_url("use-any-font/js/jquery.validate.min.js"));
wp_enqueue_script('uaf_validate_js');
}
function adminCsslibs(){
$uaf_upload = wp_upload_dir();
$uaf_upload_url = $uaf_upload['baseurl'];
$uaf_upload_url = $uaf_upload_url . '/useanyfont/';
wp_register_style('uaf-admin-style', plugins_url('use-any-font/css/uaf_admin.css'));
wp_enqueue_style('uaf-admin-style');
wp_register_style('uaf-font-style', $uaf_upload_url.'admin-uaf.css', array(), get_option('uaf_css_updated_timestamp'));
wp_enqueue_style('uaf-font-style');
add_editor_style($uaf_upload_url.'admin-uaf.css');
}
function uaf_create_menu() {
add_menu_page( 'Use Any Font', 'Use Any Font', 'manage_options', 'uaf_settings_page', 'uaf_settings_page', 'dashicons-editor-textcolor');
}
function uaf_create_folder() {
$uaf_upload = wp_upload_dir();
$uaf_upload_dir = $uaf_upload['basedir'];
$uaf_upload_dir = $uaf_upload_dir . '/useanyfont/';
if (! is_dir($uaf_upload_dir)) {
mkdir( $uaf_upload_dir, 0755 );
}
}
function uaf_activate(){
uaf_create_folder(); // CREATE FOLDER
uaf_write_css(); //rewrite css when plugin is activated after update or somethingelse......
}
function uaf_update_check() { // MUST CHANGE WITH EVERY VERSION
$uaf_version_check = get_option('uaf_current_version');
if ($uaf_version_check != '4.3.6'):
update_option('uaf_current_version', '4.3.6');
if ($uaf_version_check < 4.0):
uaf_create_folder();
uaf_move_file_to_newPath();
endif;
uaf_write_css();
endif;
}
function uaf_settings_page() {
$uaf_upload = wp_upload_dir();
$uaf_upload_dir = $uaf_upload['basedir'];
$uaf_upload_dir = $uaf_upload_dir . '/useanyfont/';
$uaf_upload_url = $uaf_upload['baseurl'];
$uaf_upload_url = $uaf_upload_url . '/useanyfont/';
$uaf_disbale_editor_font_list_value = get_option('uaf_disbale_editor_font_list');
$uaf_use_curl_uploader_value = get_option('uaf_use_curl_uploader');
$uaf_use_relative_font_path = get_option('uaf_use_relative_font_path');
include('includes/uaf_header.php');
if ($uaf_use_curl_uploader_value == 1){
include('includes/uaf_font_upload_php.php');
} else {
include('includes/uaf_font_upload_js.php');
}
include('includes/uaf_font_implement.php');
include('includes/uaf_footer.php');
}
// MOVING OLD FONTFILE PATH TO NEW PATH
function uaf_move_file_to_newPath(){
$uaf_upload = wp_upload_dir();
$uaf_upload_dir = $uaf_upload['basedir'];
$uaf_upload_dir = $uaf_upload_dir . '/useanyfont/';
$fontsRawData = get_option('uaf_font_data');
$fontsData = json_decode($fontsRawData, true);
if (!empty($fontsData)):
foreach ($fontsData as $key=>$fontData):
$oldFilePathInfo = pathinfo($fontData['font_path']);
$parsedPath = parse_url($fontData['font_path']);
$relativeFilePath = $_SERVER['DOCUMENT_ROOT'].$parsedPath['path'];
$oldfilename = $oldFilePathInfo['filename'];
if (file_exists($relativeFilePath.'.woff')){
$woffFileContent = file_get_contents($relativeFilePath.'.woff');
$eotFileContent = file_get_contents($relativeFilePath.'.eot');
$fhWoff = fopen($uaf_upload_dir.'/'.$oldfilename.'.woff' , 'w') or die("can't open file. Make sure you have write permission to your upload folder");
fwrite($fhWoff, $woffFileContent);
fclose($fhWoff);
$fhEot = fopen($uaf_upload_dir.'/'.$oldfilename.'.eot' , 'w') or die("can't open file. Make sure you have write permission to your upload folder");
fwrite($fhEot, $eotFileContent);
fclose($fhEot);
$fontsData[$key]['font_path'] = $oldfilename;
}
endforeach;
endif;
$updateFontData = json_encode($fontsData);
update_option('uaf_font_data',$updateFontData);
}
function uaf_write_css(){
$uaf_use_relative_font_path = get_option('uaf_use_relative_font_path'); // Check if user want to use relative font path.
$uaf_upload = wp_upload_dir();
$uaf_upload_dir = $uaf_upload['basedir'];
$uaf_upload_dir = $uaf_upload_dir . '/useanyfont/';
$uaf_upload_url = $uaf_upload['baseurl'];
$uaf_upload_url = $uaf_upload_url . '/useanyfont/';
$uaf_upload_url = preg_replace('#^https?:#', '', $uaf_upload_url);
if ($uaf_use_relative_font_path == 1){ // If user use relative path
$url_parts = parse_url($uaf_upload_url);
$uaf_upload_url = "$url_parts[path]$url_parts[query]$url_parts[fragment]";
}
ob_start();
$fontsRawData = get_option('uaf_font_data');
$fontsData = json_decode($fontsRawData, true);
if (!empty($fontsData)):
foreach ($fontsData as $key=>$fontData): ?>
@font-face {
font-family: '<?php echo $fontData['font_name'] ?>';
font-style: normal;
src: url('<?php echo $uaf_upload_url.$fontData['font_path'] ?>.eot');
src: local('<?php echo $fontData['font_name'] ?>'), url('<?php echo $uaf_upload_url.$fontData['font_path'] ?>.eot') format('embedded-opentype'), url('<?php echo $uaf_upload_url.$fontData['font_path'] ?>.woff') format('woff');
}
<?php
endforeach;
endif;
$fontsImplementRawData = get_option('uaf_font_implement');
$fontsImplementData = json_decode($fontsImplementRawData, true);
if (!empty($fontsImplementData)):
foreach ($fontsImplementData as $key=>$fontImplementData): ?>
<?php echo $fontImplementData['font_elements']; ?>{
font-family: '<?php echo $fontsData[$fontImplementData['font_key']]['font_name']; ?>' !important;
}
<?php
endforeach;
endif;
$uaf_style = ob_get_contents();
$uafStyleSheetPath = $uaf_upload_dir.'/uaf.css';
$fh = fopen($uafStyleSheetPath, 'w') or die("Can't open file");
fwrite($fh, $uaf_style);
fclose($fh);
ob_end_clean();
ob_start();
$fontsRawData = get_option('uaf_font_data');
$fontsData = json_decode($fontsRawData, true);
if (!empty($fontsData)):
foreach ($fontsData as $key=>$fontData): ?>
@font-face {
font-family: '<?php echo $fontData['font_name'] ?>';
font-style: normal;
src: url('<?php echo $uaf_upload_url.$fontData['font_path'] ?>.eot');
src: local('<?php echo $fontData['font_name'] ?>'), url('<?php echo $uaf_upload_url.$fontData['font_path'] ?>.eot') format('embedded-opentype'), url('<?php echo $uaf_upload_url.$fontData['font_path'] ?>.woff') format('woff');
}
<?php
endforeach;
endif;
$uaf_style = ob_get_contents();
$uafStyleSheetPath = $uaf_upload_dir.'/admin-uaf.css';
$fh = fopen($uafStyleSheetPath, 'w') or die("Can't open file");
fwrite($fh, $uaf_style);
fclose($fh);
ob_end_clean();
update_option('uaf_css_updated_timestamp', time()); // Time entry for stylesheet version
}
include('includes/uaf_editor_setup.php');

View File

@@ -0,0 +1,198 @@
=== Use Any Font ===
Contributors: dnesscarkey
Tags: use any font, any font, embed any font, font embed, font uploader, css3 font embed, @font-face embed, font conversion, webfont, ttf, opentype, custom fonts
Requires at least: 3.0
Tested up to: 4.3.1
Stable tag: 4.3.6
Embed any font in your website
== Description ==
Use any font you wish and give your site a elegant look. No css knowledge required.
Click <a href="http://dineshkarki.com.np/use-any-font/demo" target="_blank">here</a> for Use Any Font working demo.
Use Any Font gives you freedom to use any font in your website. It is not like other font embed services which gives you countable number of fonts to select from neither the one that stores your font in remote server. You can use any font if you have its font format (ttf,otf) without being dependent to other's server uptime.
Features
* Quick and easy to setup. No css or any rocket science knowledge needed.
* Support all major browsers including IE 6+, Firefox, Chrome, Safari, IOS, Andriod, Opera and more.
* Font conversion within the plugin interface font uploader.
* Use uploaded font directly from Editor
* Supports font format including ttf, otf, woff. The required fonts are converted automatically.
* Accepts font file upto 15 MB.
* Embed fonts using @font-face css. SEO friendly and quick loading.
* Multiple fonts can be used.
* Faster load time as your custom fonts are stored on your own server.
* Quick font assign interface. You can select pre defined html tags or assign it to custom css.
* <a href="http://dineshkarki.com.np/forums/forum/use-any-fonts" target="_blank">Support Forum</a> to quickly resolve your issues.
* <a href="http://dineshkarki.com.np/rectify-my-problem" target="_blank">Rectify My Problem</a> for personal assitance.
You need API key to connect to our server for font conversion. Our server converts your font and sends it back.
Offer your contribution (Free for 1 font, $10 to $100) and get the API key from <a href="http://dnesscarkey.com/font-convertor/api/" target="_blank">here</a>.
<strong>Installation Video</strong>
[youtube http://www.youtube.com/watch?v=QzGaWIPVwEk]
Note : We don't store your fonts in our server neither any of your information except the API key details. Our server deletes the temporary file after the conversion is done.
We don't respond to support tickets created here. Please visit our <a href="http://dineshkarki.com.np/forums/forum/use-any-fonts" target="_blank">support forum</a> for your issues.
== Installation ==
1. Upload the plugin use-any-font files to the `/wp-content/plugins/` directory
1. Activate the use-any-font plugin through the 'Plugins' menu in WordPress.
1. Get the API key and verify it (Needed to connect to server for font conversion).
1. Select Use Any Font under Settings
1. Upload your font.
1. Assign your font to element.
1. You can also assign the font directly from wordpress page/post editor.
1. Your fonts are working in your site now.
1. You may refer to Screenshots tab for visual instructions.
== Frequently Asked Questions ==
= Which font format does plugin accepts ? =
Currently, ttf, otf, woff font format are accepted.
= What is the max font file size ? =
Font file upto 15MB is acceptable. However, we suggest you to use smaller ones as far as possible. The font file size directly affects your site load time.
= Mentioned 15 MB here but in font upload section it says less. Why ? =
Ya, our plugin accept upto 15 MB font file but your wordpress installation have limitation for file size. Please check this link to increase it http://www.wpbeginner.com/wp-tutorials/how-to-increase-the-maximum-file-upload-size-in-wordpress/
= Does it works with multiple fonts ? =
Ya, it works with multiple fonts. For multiple font conversion request, you need to get the Premium Key.
= Do i need to manually convert fonts ? =
No, you don't need to do it yourself. Just upload your font(supports most of the font format), and the plugin does the rest.
= Font uploaded from Use Any Font is not showing in wordpress editor ? =
Please check screenshot #4 in Screenshots tab.
= I want to disable font list from wordpress editor ? =
Please check screenshot #5 in Screenshots tab.
= I moved my server path and the font is not working now. Why ? =
The plugin is still searching font from your old path. You can delete your old uploaded font and re-upload and re-assign it.
= Where are my fonts stored ? =
All the fonts are stored in your own server. Our server only convert the fonts and sends back.
= Does my font depends upon plugin's server uptime ? =
No, our server is needed during font conversion only. After that all fonts are served from your own server.
= Not working for me. What can i do ? =
You can check our <a href="http://dineshkarki.com.np/forums/forum/use-any-fonts" target="_blank">support forum</a>, or check <a href="http://dineshkarki.com.np/use-any-font/use-any-font-known-issues" target="_blank">known issues</a> or ask to <a href="http://dineshkarki.com.np/rectify-my-problem" target="_blank">Rectify Your Problem</a>
== Screenshots ==
1. Screenshot #1. Use Any Font Demo
1. Screenshot #2. Use Any Font Plugin Setup
1. Screenshot #3. Assign font directly from Wordpress Editor
1. Screenshot #4. Font list not showing in editor.
1. Screenshot #5. Disable font list in editor.
== Changelog ==
= 4.3.6 =
* Fixed validation for PHP uploader
* Sanitize font name
* Test with 4.3.1
= 4.3.5 =
* Fixed host name lookup issue
* Added SSL for font upload path
* Test with 4.3
= 4.3.4 =
* License key trim added.
= 4.3.3 =
* Font convertor url change.
= 4.3.2 =
* Added relative font path settings.
* Added Css version system.
= 4.3.1 =
* Add js extension validation for font file.
= 4.3 =
* Ajax Font Upload
* Fixed Couldn't receive font file for conversion issue.
= 4.2.4 =
* Font size increase to 10 MB
* Fixed js validation issue.
* Add server side validation for font file.
= 4.2.3 =
* Removed rarely used font formats from being upload. They were making font onvertor server down repeatedly.
* Fixed name validation issue
= 4.2.2 =
* Tested to work with wordpress 4.0
* Jquery Validation Plugin Updated
= 4.2.1 =
* Using wp_remote_get inplace of wp_remove_fopen for API Key
= 4.2 =
* Compatible with 3.9
* Fixed font list issue in editor for 3.9
= 4.1.1 =
* Minor update
* Added font formats (dfont, suit)
* Updated FAQ and Screenshots.
* Tested with 3.8.1
= 4.1 =
* Added Support for SSL (https)
* Additional settings to disbale font list in wordpress editor.
* Tested with 3.8
= 4.0 =
* Added Network Site Support
* Assign font directly from Wordpress Editor
= 3.2 =
* Tested with 3.5.2
= 3.1 =
* Minor update
* Add woff and svg font format
= 3.0 =
* Major update
* Supports more font format now.
* Better error handling
* Added hyperlink (a tag) in default element select.
= 2.1 =
* Added file upload validation.
= 2.0 =
* Added server connectivity test.
= 1.1 =
* Fixed font not loading issue when there is space in font file name.
* Added Instructions in Plugin Interface.
= 1.0 =
* First Release

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -0,0 +1,28 @@
<?php
/*
Plugin Name: Use Any Font
Plugin URI: http://dineshkarki.com.np/use-any-font
Description: Embed any font in your website
Author: Dinesh Karki
Version: 4.3.6
Author URI: http://www.dineshkarki.com.np
*/
/* Copyright 2012 Dinesh Karki (email : dnesskarki@gmail.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
include('plugin_interface.php');
register_activation_hook( __FILE__, 'uaf_activate' );
?>

5
wp-content/plugins/wpclef/.gitignore vendored Normal file
View File

@@ -0,0 +1,5 @@
npm-debug.log
node_modules
release
sftp-config.json
build

View File

@@ -0,0 +1,42 @@
# Travis CI Configuration File
# Tell Travis CI we're using PHP
language: php
# PHP version used in first build configuration.
php:
- "5.5"
- "5.4"
- "5.3"
# WordPress version used in first build configuration.
env:
- WP_VERSION=master
- WP_VERSION=3.9.1
- WP_VERSION=3.8.3
# Clones WordPress and configures our testing environment.
before_script:
- export REPO_SLUG=$(basename $(pwd))
- export PLUGIN_SLUG=wpclef
# fix sendmail
- chmod +x tests/setup/fakesendmail.sh
- sudo mkdir -p /var/qmail/bin
- sudo cp tests/setup/fakesendmail.sh /var/qmail/bin/sendmail
- sudo cp tests/setup/fakesendmail.sh /usr/sbin/sendmail
- echo 'sendmail_path = "/usr/sbin/sendmail -t -i "' | sudo tee "/home/travis/.phpenv/versions/`php -r 'echo PHP_VERSION;'`/etc/conf.d/sendmail.ini"
# clone wordpress
- git clone --depth=50 --branch="$WP_VERSION" git://develop.git.wordpress.org/ /tmp/wordpress
- cd ..
- mv "$REPO_SLUG" "/tmp/wordpress/src/wp-content/plugins/$PLUGIN_SLUG"
- cd /tmp/wordpress
- mysql -e "CREATE DATABASE wordpress_tests;" -uroot
- cp wp-tests-config-sample.php wp-tests-config.php
- sed -i "s/youremptytestdbnamehere/wordpress_tests/" wp-tests-config.php
- sed -i "s/yourusernamehere/travis/" wp-tests-config.php
- sed -i "s/yourpasswordhere//" wp-tests-config.php
- cd "/tmp/wordpress/src/wp-content/plugins/$PLUGIN_SLUG"
script: phpunit

View File

@@ -0,0 +1,7 @@
[main]
host = https://www.transifex.com
[wpclef.wpclef]
file_filter = languages/clef-<lang>.po
source_file = languages/wpclef.pot
source_lang = en

View File

@@ -0,0 +1,490 @@
# Full Features Test Checklist
This file presents a master list of WP Clefs features to facilitate systematic testing before major releases. It is designed to utilize GitHubs MarkDown checklists. So, to run a full test, copy-n-paste the raw contents of this file into a [new GitHub Issue](https://github.com/clef/wordpress/issues/new). Then check the boxes as you complete the steps.
**Prerequisites**
1. Love.
1. Time.
1. Basic testing (~ 5-min. run time): requires a WordPress single-site install with at least one user account for [each role](http://codex.wordpress.org/Roles_and_Capabilities).
1. Whole-hog, full-boom testing (~ ∞-min. run time): requires bastic testing prereqs plus two WordPress multi-site installs, one for shared domain setups and one for custom domain setups. All super admin and sub-sites should have at least one active user account for [each role](http://codex.wordpress.org/Roles_and_Capabilities).
1. Cue theme music [track 1](http://www.youtube.com/watch?v=X5AfjAXcBXY), [track 2](http://www.youtube.com/watch?v=Gl83mI69nX4), [track 3](http://www.youtube.com/watch?v=Csy2XRlWMWE), and smile while pondering how fresh-n-clean Clef is. Awwww yeeeeah.
**General Legend:**
- SW: Setup Wizard
- WP: WordPress
- WPC: WP Clef (i.e., the Clef plugin for WordPress)
## Uninstall Process
1. Deactivate plugin.
- [ ] WPC is deactivated, and normal password log in form appears on wp-login.php.
- [ ] WPCs settings are saved in the database (can verify via re-activation: pre-deactivation settings should re-appear).
1. Remove previous version of WPC via WPs plugin uninstaller to ensure a clean install.
- [ ] WPCs files are deleted.
- [ ] WPCs database settings are deleted.
## Install Process
### Activation
1. Clone the repository and checkout the appropriate branch
1. `git clone git://github.com/clef/wordpress.git wpclef`
1. `cd wpclef`
1. `git checkout [INSERT TESTING BRANCH NAME]`
- [ ] Activate WPC via WPs Dashboard > Plugins > Installed Plugins
- [ ] SW loads automatically
### Setup Wizard
- [ ] "Skip setup" link takes you immediately to settings page
#### (A) SW State 1: Not logged in to Clef
- [ ] "Get started" takes you to Clef Wave screen
- [ ] Text Clef App link successfully.
- [ ] Sync Clef Wave and arrive at "One more click!" screen.
#### (B) SW State 2: Logged in to Clef
- [ ] "Get started" takes you to "One-click setup!" screen.
#### (C) SW Tests for Both States
- [ ] Execute "one-click setup" and arrive at "Invite" screen.
- [ ] Send invite e-mail to Everyone.
- [ ] Send invite e-mail to roles >= Contributor.
- [ ] Send invite e-mail to roles >= Author.
- [ ] Send invite e-mail to roles >= Editor.
- [ ] Send invite e-mail to roles >= Administrator.
- [ ] Send invite e-mail to roles >= Super Administrator.
- [ ] E-mail preview text matches actual e-mail.
- [ ] Arrive at "3 tips" screen after send invite or skip invite.
- [ ] Arrive at "Get Waltz" screen.
- [ ] "Try Waltz" loads http://getwaltz.com in new tab.
- [ ] "Go to Clef Settings" loads settings page with graceful slide up.
### Setup Wizard Multi-Site Iterations
#### State 1: Network-wide WPC install on shared domain name
- [ ] Run SW tests (A), (B), and (C) on Super Admin site.
- [ ] Run SW tests (A), (B), and (C) on one sub-site.
#### State 2: Network-wide WPC install with custom domain names
- [ ] Run SW tests (A), (B), and (C) on Super Admin site.
- [ ] Run SW tests (A), (B), and (C) on one sub-site.
#### State 3: Site-specific install on shared domain name
- [ ] Run SW tests (A), (B), and (C) on Super Admin site.
- [ ] Run SW tests (A), (B), and (C) on one sub-site.
#### State 4: Site-specific install on shared domain name
- [ ] Run SW tests (A), (B), and (C) on Super Admin site.
- [ ] Run SW tests (A), (B), and (C) on one sub-site.
## Connect Clef Account Actions
- [ ] Selecting “Disconnect Clef account”
- returns success notification
- loads SW automatically
- [ ] Selecting “Get Started” loads “Connect your Clef account” screen
- [ ] Text the download link to your phone.
- [ ] CB loads Clef Wave and syncs WP user account.
- [ ] Completing the SW sends you to the Dashboard.
## Password Settings and Login Actions
**WP-Login.php Legend**
- CA: Clef App
- CB: Clef button (i.e., “Log in w/ your phone”)
- LE: "Lost your password?" e-mail
- LF: "Lost your password?" form (i.e., wp-login.php?action=lostpassword)
- LL: "Lost your password?" link
- PF: Password form (i.e., the ordinary user/pass form displayed at wp-login.php)
**Settings Page Legend**
- P1: Disable passwords for Clef users
- P2: Disable passwords for all users with roles greater than or equal to
- P3: Disable passwords for all users and hide the password login form
- P4: Allow passwords for API
- O1: Override key
- O2: Generate secure override url link
- O3: Override url button
- O4: Override preview
- SS: "Setting saved" AJAX notification (appears then fades).
- XT: XML-RPC Test. Run this from command line (HT: Jesse): `curl --data '<?xml version="1.0"?><methodCall><methodName>wp.getOptions</methodName><params><param><value><i4>1</i4></value></param><param><value><string>USERNAME</string></value></param><param><value><string>PASSWORD</string></value></param></params></methodCall>' http://YOURWORDPRESSITE/xmlrpc.php`
Start the following tests from fresh install state (i.e., all settings except API keys should be null, false, or “disabled”).
### Disable passwords: P1 = true, P2P4 = null.
- [ ] SS fades.
- [ ] P4 appears.
- [ ] Override settings section appears.
- O1 = null.
- O4 = hidden.
- [ ] selecting 02
- shows SS,
- inserts key in O1,
- and shows O4.
1. Non-Clef user login
- [ ] wp-login.php displays PF + CB with LL.
- [ ] Log in via PF.
1. Non-Clef user reset password
- [ ] LF sends password reset e-mail.
- [ ] Set new password.
1. Clef user login
- [ ] wp-login.php displays PF + CB with LL.
- [ ] Log in via PF returns “passwords have been disabled....”
- [ ] Log in via override.
- [ ] Log in via CB.
- [ ] Log out via CA.
1. Clef user reset password via LF
- [ ] Disabled. Returns “password resets have been disabled....”
1. XML-RPC login
- [ ] Disabled. XT returns “passwords have been disabled....”
### Disable passwords: set P2 = not null, P3P4 = null.
- [ ] wp-login.php displays PF + CB with LL.
#### When any non-null P2 option is selected
- [ ] SS fades.
- [ ] P4 appears.
- [ ] Override settings section appears.
- O1 = null.
- O4 = hidden.
- [ ] selecting 02
- shows SS,
- inserts key in O1,
- and shows O4.
#### P2 = “Contributor”
1. Subscriber role login
- [ ] Log in via PF.
1. Subscriber role reset password
- [ ] LF sends password reset e-mail.
- [ ] Set new password.
1. Contributor role login
- [ ] Log in via PF returns “passwords have been disabled....”
- [ ] Log in via override.
- [ ] Log in via CB.
- [ ] Log out via CA.
1. Contributor role reset password via LF
- [ ] Disabled. Returns “password resets have been disabled....”
1. Author role login
- [ ] Log in via PF returns “passwords have been disabled....”
- [ ] Log in via override.
- [ ] Log in via CB.
- [ ] Log out via CA.
1. Author role reset password via LF
- [ ] Disabled. Returns “password resets have been disabled....”
1. Editor role login
- [ ] Log in via PF returns “passwords have been disabled....”
- [ ] Log in via override.
- [ ] Log in via CB.
- [ ] Log out via CA.
1. Editor role reset password via LF
- [ ] Disabled. Returns “password resets have been disabled....”
1. Administrator role login
- [ ] Log in via PF returns “passwords have been disabled....”
- [ ] Log in via override.
- [ ] Log in via CB.
- [ ] Log out via CA.
1. Administrator role reset password via LF
- [ ] Disabled. Returns “password resets have been disabled....”
1. Super Administrator role login
- [ ] Log in via PF returns “passwords have been disabled....”
- [ ] Log in via override.
- [ ] Log in via CB.
- [ ] Log out via CA.
1. Super Administrator role reset password via LF
- [ ] Disabled. Returns “password resets have been disabled....”
1. XML-RPC login
- [ ] Disabled. XT returns “passwords have been disabled....”
#### P2 = “Author”
1. Subscriber role login
- [ ] Log in via PF.
1. Subscriber role reset password
- [ ] LF sends password reset e-mail.
- [ ] Set new password.
1. Contributor role login
- [ ] Log in via PF.
1. Contributor role reset password
- [ ] LF sends password reset e-mail.
- [ ] Set new password.
1. Author role login
- [ ] Log in via PF returns “passwords have been disabled....”
- [ ] Log in via override.
- [ ] Log in via CB.
- [ ] Log out via CA.
1. Author role reset password via LF
- [ ] Disabled. Returns “password resets have been disabled....”
1. Editor role login
- [ ] Log in via PF returns “passwords have been disabled....”
- [ ] Log in via override.
- [ ] Log in via CB.
- [ ] Log out via CA.
1. Editor role reset password via LF
- [ ] Disabled. Returns “password resets have been disabled....”
1. Administrator role login
- [ ] Log in via PF returns “passwords have been disabled....”
- [ ] Log in via override.
- [ ] Log in via CB.
- [ ] Log out via CA.
1. Administrator role reset password via LF
- [ ] Disabled. Returns “password resets have been disabled....”
1. Super Administrator role login
- [ ] Log in via PF returns “passwords have been disabled....”
- [ ] Log in via override.
- [ ] Log in via CB.
- [ ] Log out via CA.
1. Super Administrator role reset password via LF
- [ ] Disabled. Returns “password resets have been disabled....”
1. XML-RPC login
- [ ] Disabled. XT returns “passwords have been disabled....”
#### P2 = “Editor”
1. Subscriber role login
- [ ] Log in via PF.
1. Subscriber role reset password
- [ ] LF sends password reset e-mail.
- [ ] Set new password.
1. Contributor role login
- [ ] Log in via PF.
1. Contributor role reset password
- [ ] LF sends password reset e-mail.
- [ ] Set new password.
1. Author role login
- [ ] Log in via PF.
1. Author role reset password
- [ ] LF sends password reset e-mail.
- [ ] Set new password.
1. Editor role login
- [ ] Log in via PF returns “passwords have been disabled....”
- [ ] Log in via override.
- [ ] Log in via CB.
- [ ] Log out via CA.
1. Editor role reset password via LF
- [ ] Disabled. Returns error notification.
1. Administrator role login
- [ ] Log in via PF returns “passwords have been disabled....”
- [ ] Log in via override.
- [ ] Log in via CB.
- [ ] Log out via CA.
1. Administrator role reset password via LF
- [ ] Disabled. Returns error notification.
1. Super Administrator role login
- [ ] Log in via PF returns “passwords have been disabled....”
- [ ] Log in via override.
- [ ] Log in via CB.
- [ ] Log out via CA.
1. Super Administrator role reset password via LF
- [ ] Disabled. Returns error notification.
1. XML-RPC login
- [ ] Disabled. XT returns “passwords have been disabled....”
#### P2 = “Administrator”
1. Subscriber role login
- [ ] Log in via PF.
1. Subscriber role reset password
- [ ] LF sends password reset e-mail.
- [ ] Set new password.
1. Contributor role login
- [ ] Log in via PF.
1. Contributor role reset password
- [ ] LF sends password reset e-mail.
- [ ] Set new password.
1. Author role login
- [ ] Log in via PF.
1. Author role reset password
- [ ] LF sends password reset e-mail.
- [ ] Set new password.
1. Editor role login
- [ ] Log in via PF.
1. Editor role reset password
- [ ] LF sends password reset e-mail.
- [ ] Set new password.
1. Administrator role login
- [ ] Log in via PF returns “passwords have been disabled....”
- [ ] Log in via override.
- [ ] Log in via CB.
- [ ] Log out via CA.
1. Administrator role reset password via LF
- [ ] Disabled. Returns error notification.
1. Super Administrator role login
- [ ] Log in via PF returns “passwords have been disabled....”
- [ ] Log in via override.
- [ ] Log in via CB.
- [ ] Log out via CA.
1. Super Administrator role reset password via LF
- [ ] Disabled. Returns error notification.
1. XML-RPC login
- [ ] Disabled. XT returns “passwords have been disabled....”
#### P2 = “Super Administrator”
1. Subscriber role login
- [ ] Log in via PF.
1. Subscriber role reset password
- [ ] LF sends password reset e-mail.
- [ ] Set new password.
1. Contributor role login
- [ ] Log in via PF.
1. Contributor role reset password
- [ ] LF sends password reset e-mail.
- [ ] Set new password.
1. Author role login
- [ ] Log in via PF.
1. Author role reset password
- [ ] LF sends password reset e-mail.
- [ ] Set new password.
1. Editor role login
- [ ] Log in via PF.
1. Editor role reset password
- [ ] LF sends password reset e-mail.
- [ ] Set new password.
1. Administrator role login
- [ ] Log in via PF.
1. Administrator role reset password
- [ ] LF sends password reset e-mail.
- [ ] Set new password.
1. Super Administrator role login
- [ ] Log in via PF returns “passwords have been disabled....”
- [ ] Log in via override.
- [ ] Log in via CB.
- [ ] Log out via CA.
1. Super Administrator role reset password via LF
- [ ] Disabled. Returns error notification.
1. XML-RPC login
- [ ] Disabled. XT returns “passwords have been disabled....”
### Disable passwords: set P3 = true, P4 = null.
- [ ] SS fades.
- [ ] P4 appears.
- [ ] Override settings section appears.
- O1 = null.
- O4 = hidden.
- [ ] selecting 02
- shows SS,
- inserts key in O1,
- and shows O4.
- [ ] wp-login.php displays CB only (no PF and no LL).
- [ ] LF disabled for all users. Returns error notification.
- [ ] Log in via override.
- [ ] Log in via CB.
- [ ] Log out via CA.
### Disable passwords: set P4 = true (assumes P1, P2, and/or P3 are not null).
- [ ] SS fades.
- [ ] Log in via XML-RPC. XT returns success notification.
## Support Clef settings
- [ ] Set to “Badge”
- flashes SS
- and prints `img` and functioning `a` in site footer.
- [ ] Set to “Link”
- Flashes SS
- Prints functioning `a` in site footer.
- [ ] Set to “Disabled”
- Flashes SS
- Removes `img` and/or `a` from site footer.
### Support Clef timed pop ups
1. State 1a: after first login via CB.
- [ ] Selecting “Badge” prints `img` and functioning `a` in site footer and saves the setting (verify on setting page).
1. State 1b: after first login via CB.
- [ ] Selecting “Link” prints functioning `a` in site footer and saves the setting (verify on setting page).
1. State 2: Waltz not installed.
- [ ] After 3 successful logins, show numbered badge in Clef settings menu title.
- [ ] After 3 successful logins, show dismissible Waltz notification on Clef settings page.
- [ ] After 15 successful logins, if Clef settings Waltz notification hasn't been dismissed, show a one-time notification on the Dashboard.
1. State 3: Waltz installed.
- [ ] No Waltz notifications after 3 successful logins.
- [ ] No Waltz notification on Dashboard after 15 successful logins.
## Browser Iterations
### Setup Wizard
- [ ] Successful run through in Chrome.
- [ ] Successful run through in FireFox.
- [ ] Successful run through in Safari.
- [ ] Successful run through in IE.
### AJAX-Powered Settings Page
- [ ] Functioning in Chrome.
- [ ] Functioning in FireFox.
- [ ] Functioning in Safari.
- [ ] Functioning in IE.
## Translations
- [ ] All new translatable text blocks placed in appropriate wrapper functions.
## BruteProtect
- [ ] One-click install & activate successful.
## The End
- [ ] To the precious few who make it this far: [treat yo self](http://www.youtube.com/watch?v=-K4if6QkDbo) to a :boom:.

View File

@@ -0,0 +1,77 @@
# [Clef for WordPress](http://wordpress.org/plugins/wpclef/) [![Build Status](https://travis-ci.org/clef/wordpress.svg?branch=master)](https://travis-ci.org/clef/wordpress)
Welcome to the Clef for WordPress development repository!
Clef is the easy, and secure, way to log in to your WordPress sites. With Clef, you get the benefits of single sign on across all of your WordPress sites with the security of 2-factor authentication and public key cryptography — it's the best of both worlds. Replacing passwords, Clef identifies you with your phone — simply wave it in front of your computer and you're instantly logged in.
## Installation
To install the latest stable build of Clef for WordPress, we recommend you download Clef for WordPress directly from the [WordPress plugin repository](http://wordpress.org/plugins/wpclef/).
To install, contribute to, and test the developer build, you should clone this repository.
## Support
For support, we recommend emailing us directly at [support@getclef.com](mailto:support@getclef.com) or joining our [support chat room](http://www.hipchat.com/go5kUkq90).
## Bugs
If you find an issue, let us know in the issues section!
## Translation
If you're interested in contributing to the Clef plugin for WordPress, translating is an easy way to get started. The easiest way to get involved is to [join the Clef organization on Transifex](https://www.transifex.com/projects/p/wpclef/) and choose a new language to translate for. There's an easy online translation manager and you'll be done in no time!
The following users have contributed to translating Clef (if you've contributed and you're not on this list, let us know):
* @music47ell
* @thobu
* @yeltsin
* Andrew Kurtis @ [WebHostingHub](http://www.webhostinghub.com/)
## Contribution Guidelines
From the [Rubinius](http://rubini.us/) contribution page:
> Writing code and participating should be fun, not an exercise in
> perseverance. Stringent commit polices, for whatever their other
> qualities may bring, also mean longer turnaround times.
Submit a patch and once its accepted, youll get commit access to the
repository. Feel free to fork the repository and send a pull request,
once its merged in youll get added. If not, feel free to bug
[jessepollak](http://github.com/jessepollak) about it.
Also, if youre hacking away, hop in the [Clef support room](https://www.hipchat.com/go5kUkq90). Chances are someone else will be around to answer
questions or bounce ideas off of.
How To Contribute
-----------------
* Clone: `git clone git://github.com/clef/wordpress.git`
* Create a topic branch: `git checkout -b awesome_feature`
* Commit away.
* Keep up to date: `git fetch && git rebase origin/master`.
Once youre ready:
* Fork the project on GitHub
* Add your repository as a remote: `git remote add your_remote your_repo`
* Push up your branch: `git push your_remote awesome_feature`
* Create a Pull Request for the topic branch, asking for review.
Once its accepted:
* If you want access to the core repository feel free to ask! Then you
can change origin to point to the Read+Write URL:
```
git remote set-url origin git@github.com:clef/wordpress.git
```
Otherwise, you can continue to hack away in your own fork.
If youre looking for things to hack on, please check
[GitHub Issues](http://github.com/clef/wordpress/issues).
*thanks to [rubygems](https://github.com/rubygems/rubygems.org) for inspiration of our guidelines*

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,207 @@
/******************************
Styles
*********************************/
.clef-badge-prompt {
position: relative;
min-height: 170px; }
.clef-badge-prompt * {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box; }
.clef-badge-prompt .link-fade {
display: none; }
.clef-badge-prompt .dismiss {
position: absolute;
top: 5px;
right: 10px;
font-weight: bold;
color: #AAA;
font-size: 20px; }
.clef-badge-prompt .dismiss:hover {
color: #888; }
.clef-badge {
width: 100%;
text-align: center;
display: inline-block;
margin: 10px auto; }
.clef-badge * {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box; }
.clef-badge.pretty {
display: block;
overflow: hidden;
text-indent: -579px;
height: 50px;
width: 140px;
background: url("https://bit.ly/clef-wordpress-badge");
background-size: 100% 100%;
opacity: .8; }
.clef-badge.pretty:hover {
opacity: 1; }
.clef-login-form .clef-button-container {
width: 188px;
height: 35px;
margin: auto; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword) .clef-login-container .clef-button-container {
margin-bottom: 30px; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword) .clef-login-container .close-overlay, .clef-login-form:not(.login-action-register):not(.login-action-lostpassword) .clef-login-container .overlay-info, .clef-login-form:not(.login-action-register):not(.login-action-lostpassword) .clef-login-container .open-overlay {
display: none; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-hidden:not(.clef-login-form-embed):not(.clef-override-or-invite) #login form#loginform {
padding: 40px 20px; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-hidden:not(.clef-login-form-embed):not(.clef-override-or-invite) #login form#loginform input, .clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-hidden:not(.clef-login-form-embed):not(.clef-override-or-invite) #login form#loginform label {
display: none; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password):not(.interim-login) #login {
padding-top: 50px; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password) #login {
width: 400px;
max-width: 100%;
margin: auto; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password) #login input, .clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password) #login label {
visibility: hidden; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password) #login form {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
height: 520px;
position: relative !important; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password) #login .clef-embed-wrapper {
margin: auto !important; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password) .clef-login-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: white;
overflow: visible; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password) .clef-login-container .clef-button-container {
padding-top: 5px; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password):not(.clef-closed) p#nav {
display: none; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password).clef-closed #login {
width: 320px; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password).clef-closed #login input, .clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password).clef-closed #login label {
visibility: visible; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password).clef-closed #login form {
height: auto; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password).clef-closed .clef-login-container {
height: 25px;
top: auto;
bottom: 0; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password).clef-closed .clef-button-container {
display: none; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password).clef-closed .overlay-info, .clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password).clef-closed .close-overlay {
display: none; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password).clef-closed .open-overlay {
display: block;
margin: 0; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password) .clef-button-container {
margin: 0 auto;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password) .clef-button-container .spinner-container {
display: none;
text-align: center;
position: absolute;
top: 175px;
left: 0;
width: 100%;
height: 100%; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password) .clef-button-container .spinner-container .spinner {
margin-top: 25px;
display: inline-block;
float: none;
width: 50px;
height: 50px;
background-image: url(../img/loading.gif);
background-size: 100%;
background-position: center;
background-repeat: no-repeat; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password) .overlay-text {
position: absolute;
width: 100%;
bottom: 12px;
margin-top: 5px;
text-align: center;
display: block;
color: #aaa;
cursor: pointer;
text-decoration: none; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password) .overlay-text:hover {
color: #999; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password) .overlay-text:active {
outline: none; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password) .or-container, .clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password) .open-overlay {
display: none; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password) .overlay-info {
display: block;
position: absolute;
bottom: 10px;
left: 0; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password) .overlay-info .info {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
width: 90%;
margin: auto;
border: 1px solid #eee;
padding: 10px;
background: white;
color: #999; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password) .overlay-info .info p {
font-size: 11px;
line-height: 15px; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password) .overlay-info .info p a {
color: #999; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password) .overlay-info .info p:not(:last-child) {
margin-bottom: 5px !important; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password) .overlay-info .open {
height: 15px;
width: 15px;
font-size: 10px;
text-align: center;
line-height: 15px;
border-radius: 15px;
color: #ccc;
border: 1px solid #ccc;
cursor: pointer;
margin-left: 10px;
display: none; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password) .overlay-info .open:hover {
color: #b3b3b3;
border-color: #b3b3b3; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password) .overlay-info.closed .info {
display: none; }
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite):not(.clef-auto-connect-account):not(.clef-show-username-password) .overlay-info.closed .open {
display: block; }
@media screen and (max-width: 400px) {
.clef-login-form:not(.login-action-register):not(.login-action-lostpassword).clef-login-form-embed:not(.clef-override-or-invite) #login {
width: 320px;
padding: 0; } }
.login-action-register.clef-login-form .clef-register-container {
padding-top: 20px; }

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More