Version Description
- Localization release.
Download this release
Release Info
Developer | peterdog |
Plugin | Stealth Login Page |
Version | 1.1.0 |
Comparing to | |
See all releases |
Version 1.1.0
- includes/display-functions.php +30 -0
- includes/settings-page.php +80 -0
- languages/stealth-login-page-de_DE.mo +0 -0
- languages/stealth-login-page-de_DE.po +141 -0
- languages/stealth-login-page.po +94 -0
- languages/stealth-login-page.pot +94 -0
- plugin.php +60 -0
- readme.txt +78 -0
includes/display-functions.php
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* Check the URL of the WordPress login page for a specific query string.
|
5 |
+
*
|
6 |
+
* assumes login string is
|
7 |
+
* http://yoursite/wp-login.php?question=answer
|
8 |
+
*/
|
9 |
+
|
10 |
+
add_action( 'login_init', 'slp_login_stringcheck' );
|
11 |
+
function slp_login_stringcheck() {
|
12 |
+
|
13 |
+
global $slp_options;
|
14 |
+
|
15 |
+
// set the location a failed attempt goes to
|
16 |
+
$redirect = $slp_options['redirect_url'];
|
17 |
+
$question = $slp_options['question'];
|
18 |
+
$answer = $slp_options['answer'];
|
19 |
+
|
20 |
+
if ( ! isset( $_GET[$question] ) )
|
21 |
+
wp_redirect( esc_url_raw ($redirect), 302 );
|
22 |
+
|
23 |
+
|
24 |
+
// check for correct answer
|
25 |
+
if ( isset( $_GET[$question ] ) ) {
|
26 |
+
|
27 |
+
if ( $_GET[$question] !== $answer )
|
28 |
+
wp_redirect( esc_url_raw ($redirect), 302 );
|
29 |
+
}
|
30 |
+
}
|
includes/settings-page.php
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
add_action('admin_menu', 'slp_plugin_menu');
|
4 |
+
function slp_plugin_menu() {
|
5 |
+
add_options_page( __( 'Stealth Login Page', 'stealth-login-page' ), __( 'Stealth Login Page', 'stealth-login-page' ), 'manage_options', 'stealth-login-page', 'slp_admin' );
|
6 |
+
return;
|
7 |
+
}
|
8 |
+
|
9 |
+
add_action('admin_init', 'slp_register_settings'); // create settings in database
|
10 |
+
function slp_register_settings() {
|
11 |
+
register_setting('slp_settings_group', 'slp_settings');
|
12 |
+
}
|
13 |
+
|
14 |
+
add_action( 'admin_init', 'slp_email_admin' );
|
15 |
+
function slp_email_admin() {
|
16 |
+
global $slp_options;
|
17 |
+
if ( isset( $slp_options['enable'] ) && $slp_options['question'] && $slp_options['answer'] && isset ( $_POST['email-admin'] ) && current_user_can( 'manage_options' ) ) {
|
18 |
+
$to = get_bloginfo( 'admin_email' );
|
19 |
+
$subject = sprintf( __( 'Custom login URL for %s', 'stealth-login-page' ), get_bloginfo( 'name' ) );
|
20 |
+
$message = sprintf( __( 'Your custom login URL for %1$s is %2$s', 'stealth-login-page' ), get_bloginfo( 'name' ), wp_login_url() . '?' . $slp_options['question'] . '=' . $slp_options['answer'] );
|
21 |
+
wp_mail( $to, $subject, $message );
|
22 |
+
}
|
23 |
+
}
|
24 |
+
|
25 |
+
function slp_admin() {
|
26 |
+
|
27 |
+
global $slp_options;
|
28 |
+
|
29 |
+
ob_start(); ?>
|
30 |
+
<div class="wrap">
|
31 |
+
<h2><?php _e( 'Stealth Login Page Options', 'stealth-login-page' ); ?></h2>
|
32 |
+
<form method="post" action="options.php">
|
33 |
+
|
34 |
+
<?php settings_fields('slp_settings_group'); ?>
|
35 |
+
|
36 |
+
<h4><?php _e( 'Enable/Disable Stealth Login Page', 'stealth-login-page' ); ?></h4>
|
37 |
+
|
38 |
+
<input id="slp_settings[enable]" type="checkbox" name="slp_settings[enable]" value="1" <?php checked(1, isset( $slp_options['enable'] ) ); ?> />
|
39 |
+
|
40 |
+
<label class="description" for="slp_settings[enable]"><?php _e( 'Enable Stealth Mode', 'stealth-login-page' ); ?></label>
|
41 |
+
|
42 |
+
<p><?php _e( 'Those attempting to gain access to your login form will be automatcally redirected to a customizble URL. Enter that URL below.', 'stealth-login-page' ); ?></p>
|
43 |
+
|
44 |
+
<label class="description" for="slp_settings[redirect_url]"><?php _e( 'URL to redirect unauthorized attempts to', 'stealth-login-page' ); ?></label>
|
45 |
+
|
46 |
+
<input type="text" id="slp_settings[redirect_url]" name="slp_settings[redirect_url]" value="<?php echo $slp_options['redirect_url']; ?>" />
|
47 |
+
|
48 |
+
<p><?php _e( 'The first part of the new URL string to reach your login form is the "question." It is just an arbitrary word or code. Complexity will not matter much at this time.', 'stealth-login-page' ); ?></p>
|
49 |
+
|
50 |
+
<label class="description" for="slp_settings[question]"><?php _e( 'String used for the "question"', 'stealth-login-page' ); ?></label>
|
51 |
+
|
52 |
+
<input type="text" id="slp_settings[question]" name="slp_settings[question]" value="<?php echo $slp_options['question']; ?>" />
|
53 |
+
|
54 |
+
<p><?php _e( 'The second part of the new URL string to reach your login form is the "answer." It is also just an arbitrary word or code.', 'stealth-login-page' ); ?></p>
|
55 |
+
|
56 |
+
<label class="description" for="slp_settings[answer]"><?php _e( 'String used for the "answer"', 'stealth-login-page' ); ?></label>
|
57 |
+
|
58 |
+
<input type="text" id="slp_settings[answer]" name="slp_settings[answer]" value="<?php echo $slp_options['answer']; ?>" />
|
59 |
+
|
60 |
+
<p>
|
61 |
+
<input id="email-admin" type="checkbox" name="email-admin" value="0" />
|
62 |
+
|
63 |
+
<label class="description" for="email-admin"><?php _e( 'Email login URL to admin', 'stealth-login-page' ); ?></label>
|
64 |
+
</p>
|
65 |
+
|
66 |
+
<p class="submit">
|
67 |
+
<input type="submit" class="button-primary" value="<?php _e( 'Save Settings', 'stealth-login-page' ); ?>" />
|
68 |
+
</p>
|
69 |
+
</form>
|
70 |
+
|
71 |
+
<?php if ( isset( $slp_options['enable'] ) && $slp_options['question'] && $slp_options['answer'] ) { ?>
|
72 |
+
<div class="custom-url">
|
73 |
+
<p><?php _e( 'Your custom login URL is:', 'stealth-login-page' ); ?> <a href="<?php echo wp_login_url() . '?' . $slp_options['question'] . '=' . $slp_options['answer'] ?>"> <?php echo wp_login_url() . '?' . $slp_options['question'] . '=' . $slp_options['answer']; ?></a></p>
|
74 |
+
</div>
|
75 |
+
<?php } ?>
|
76 |
+
|
77 |
+
</div><!-- .wrap -->
|
78 |
+
<?php
|
79 |
+
echo ob_get_clean();
|
80 |
+
}
|
languages/stealth-login-page-de_DE.mo
ADDED
Binary file
|
languages/stealth-login-page-de_DE.po
ADDED
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This German Language File: Copyright (C) 2013 by David Decker of deckerweb.de & genesisthemes.de
|
2 |
+
# This file is distributed under the same license as the Stealth Login Page Plugin package.
|
3 |
+
#
|
4 |
+
# Weitere deutsche Sprachdateien fuer WordPress-Plugins und -Themes sind hier zu finden:
|
5 |
+
# --> http://deckerweb.de/sprachdateien/
|
6 |
+
#
|
7 |
+
msgid ""
|
8 |
+
msgstr ""
|
9 |
+
"Project-Id-Version: Stealth Login Page v1.0.0\n"
|
10 |
+
"Report-Msgid-Bugs-To: http://deckerweb.de/kontakt/\n"
|
11 |
+
"POT-Creation-Date: 2013-04-03 15:44:44+0000\n"
|
12 |
+
"PO-Revision-Date: 2013-04-03 17:52+0100\n"
|
13 |
+
"Last-Translator: David Decker <deckerweb.mobil@googlemail.com>\n"
|
14 |
+
"Language-Team: DECKERWEB -- http://deckerweb.de/kontakt/\n"
|
15 |
+
"MIME-Version: 1.0\n"
|
16 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
17 |
+
"Content-Transfer-Encoding: 8bit\n"
|
18 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
19 |
+
"X-Generator: CSL v1.x\n"
|
20 |
+
"X-Poedit-Language: German\n"
|
21 |
+
"X-Poedit-Country: GERMANY\n"
|
22 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
23 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
|
24 |
+
"X-Poedit-Basepath: ../\n"
|
25 |
+
"X-Textdomain-Support: yes\n"
|
26 |
+
"X-Poedit-SearchPath-0: .\n"
|
27 |
+
|
28 |
+
#@ stealth-login-page
|
29 |
+
#. translators: plugin header field 'Name'
|
30 |
+
#: includes/settings-page.php:5
|
31 |
+
#: plugin.php:0
|
32 |
+
msgid "Stealth Login Page"
|
33 |
+
msgstr "Stealth Anmeldeseite"
|
34 |
+
|
35 |
+
#@ stealth-login-page
|
36 |
+
#: includes/settings-page.php:19
|
37 |
+
#, php-format
|
38 |
+
msgid "Custom login URL for %s"
|
39 |
+
msgstr "Eigene Anmelde-URL für %s"
|
40 |
+
|
41 |
+
#@ stealth-login-page
|
42 |
+
#: includes/settings-page.php:20
|
43 |
+
#, php-format
|
44 |
+
msgid "Your custom login URL for %1$s is %2$s"
|
45 |
+
msgstr "Ihre eigene Anmelde-URL für %1$s lautet: %2$s"
|
46 |
+
|
47 |
+
#@ stealth-login-page
|
48 |
+
#: includes/settings-page.php:31
|
49 |
+
msgid "Stealth Login Page Options"
|
50 |
+
msgstr "Stealth Anmeldeseite Optionen"
|
51 |
+
|
52 |
+
#@ stealth-login-page
|
53 |
+
#: includes/settings-page.php:36
|
54 |
+
msgid "Enable/Disable Stealth Login Page"
|
55 |
+
msgstr "Stealth Anmeldeseite aktivieren/ deaktivieren"
|
56 |
+
|
57 |
+
#@ stealth-login-page
|
58 |
+
#: includes/settings-page.php:40
|
59 |
+
msgid "Enable Stealth Mode"
|
60 |
+
msgstr "Stealth-Modus aktivieren"
|
61 |
+
|
62 |
+
#@ stealth-login-page
|
63 |
+
#: includes/settings-page.php:42
|
64 |
+
msgid "Those attempting to gain access to your login form will be automatcally redirected to a customizble URL. Enter that URL below."
|
65 |
+
msgstr "Wenn jemand auf Ihr Login-Formular zugreifen will, wird er automatisch an diese benutzerdefinierte URL weitergeleitet. Geben Sie diese URL hier an:"
|
66 |
+
|
67 |
+
#@ stealth-login-page
|
68 |
+
#: includes/settings-page.php:44
|
69 |
+
msgid "URL to redirect unauthorized attempts to"
|
70 |
+
msgstr "URL, an die nicht autorisierte Anmeldeversuche weitergeleitet werden"
|
71 |
+
|
72 |
+
#@ stealth-login-page
|
73 |
+
#: includes/settings-page.php:48
|
74 |
+
msgid "The first part of the new URL string to reach your login form is the \"question.\" It is just an arbitrary word or code. Complexity will not matter much at this time."
|
75 |
+
msgstr "Der erste Teil des neuen URL-Strings, um Ihr eigentliches Anmeldeformular zu erreichen, ist die \"Frage\". Dies ist einfach ein beliebiges Wort bzw. Codewort. Komplexität spielt hier wahrlich keine Rolle!"
|
76 |
+
|
77 |
+
#@ stealth-login-page
|
78 |
+
#: includes/settings-page.php:50
|
79 |
+
msgid "String used for the \"question\""
|
80 |
+
msgstr "String, der für die \"Frage\" verwendet wird."
|
81 |
+
|
82 |
+
#@ stealth-login-page
|
83 |
+
#: includes/settings-page.php:54
|
84 |
+
msgid "The second part of the new URL string to reach your login form is the \"answer.\" It is also just an arbitrary word or code."
|
85 |
+
msgstr "Der zweite Teil des neuen, eigentlichen Anmelde-URL, um Ihr Anmeldeformular zu erreichen, ist die \"Antwort\". Dies ist genauso ein beliebiges Wort bzw. Codewort."
|
86 |
+
|
87 |
+
#@ stealth-login-page
|
88 |
+
#: includes/settings-page.php:56
|
89 |
+
msgid "String used for the \"answer\""
|
90 |
+
msgstr "String, der für die \"Antwort\" verwendet wird."
|
91 |
+
|
92 |
+
#@ stealth-login-page
|
93 |
+
#: includes/settings-page.php:63
|
94 |
+
msgid "Email login URL to admin"
|
95 |
+
msgstr "Neue Anmelde-URL via E-Mail an den Administrator senden."
|
96 |
+
|
97 |
+
#@ stealth-login-page
|
98 |
+
#: includes/settings-page.php:67
|
99 |
+
msgid "Save Settings"
|
100 |
+
msgstr "Einstellungen speichern"
|
101 |
+
|
102 |
+
#@ stealth-login-page
|
103 |
+
#: includes/settings-page.php:73
|
104 |
+
msgid "Your custom login URL is:"
|
105 |
+
msgstr "Ihre eigene Anmelde-URL lautet:"
|
106 |
+
|
107 |
+
#@ stealth-login-page
|
108 |
+
#. translators: plugin header field 'PluginURI'
|
109 |
+
#: plugin.php:0
|
110 |
+
msgid "http://www.petersenmediagroup.com/plugins/stealth-login-page"
|
111 |
+
msgstr "http://www.petersenmediagroup.com/plugins/stealth-login-page"
|
112 |
+
|
113 |
+
#@ stealth-login-page
|
114 |
+
#. translators: plugin header field 'Description'
|
115 |
+
#: plugin.php:0
|
116 |
+
msgid "Protect your /wp-admin and wp-login.php pages from being accessed without editing .htaccess"
|
117 |
+
msgstr "Schützen Sie Ihre Admin-Seiten unter /wp-admin sowie wp-login.php vor fremdem Zugriff - ohne die .htaccess-Datei bearbeiten zu müssen."
|
118 |
+
|
119 |
+
#@ stealth-login-page
|
120 |
+
#. translators: plugin header field 'Author'
|
121 |
+
#: plugin.php:0
|
122 |
+
msgid "Jesse Petersen"
|
123 |
+
msgstr "Jesse Petersen"
|
124 |
+
|
125 |
+
#@ stealth-login-page
|
126 |
+
#. translators: plugin header field 'AuthorURI'
|
127 |
+
#: plugin.php:0
|
128 |
+
msgid "http://www.petersenmediagroup.com"
|
129 |
+
msgstr "http://www.petersenmediagroup.com/"
|
130 |
+
|
131 |
+
#@ stealth-login-page
|
132 |
+
#. translators: plugin header field 'Version'
|
133 |
+
#: plugin.php:0
|
134 |
+
msgid "1.0.0"
|
135 |
+
msgstr "1.0.0"
|
136 |
+
|
137 |
+
#@ stealth-login-page
|
138 |
+
#: plugin.php:36
|
139 |
+
msgid "Sorry, you are not allowed to access this page directly."
|
140 |
+
msgstr "Entschuldigung, aber Ihnen ist es nicht erlaubt auf diese Seite direkt zuzugreifen."
|
141 |
+
|
languages/stealth-login-page.po
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This file is distributed under the same license as the Stealth Login Page package.
|
2 |
+
msgid ""
|
3 |
+
msgstr ""
|
4 |
+
"PO-Revision-Date: 2013-04-03 15:50:52+0000\n"
|
5 |
+
"MIME-Version: 1.0\n"
|
6 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
7 |
+
"Content-Transfer-Encoding: 8bit\n"
|
8 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
9 |
+
"X-Generator: GlotPress/0.1\n"
|
10 |
+
"Project-Id-Version: Stealth Login Page\n"
|
11 |
+
|
12 |
+
#: includes/settings-page.php:5 plugin.php:0
|
13 |
+
msgid "Stealth Login Page"
|
14 |
+
msgstr ""
|
15 |
+
|
16 |
+
#: includes/settings-page.php:19
|
17 |
+
msgid "Custom login URL for %s"
|
18 |
+
msgstr ""
|
19 |
+
|
20 |
+
#: includes/settings-page.php:20
|
21 |
+
msgid "Your custom login URL for %1$s is %2$s"
|
22 |
+
msgstr ""
|
23 |
+
|
24 |
+
#: includes/settings-page.php:31
|
25 |
+
msgid "Stealth Login Page Options"
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: includes/settings-page.php:36
|
29 |
+
msgid "Enable/Disable Stealth Login Page"
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
+
#: includes/settings-page.php:40
|
33 |
+
msgid "Enable Stealth Mode"
|
34 |
+
msgstr ""
|
35 |
+
|
36 |
+
#: includes/settings-page.php:42
|
37 |
+
msgid "Those attempting to gain access to your login form will be automatcally redirected to a customizble URL. Enter that URL below."
|
38 |
+
msgstr ""
|
39 |
+
|
40 |
+
#: includes/settings-page.php:44
|
41 |
+
msgid "URL to redirect unauthorized attempts to"
|
42 |
+
msgstr ""
|
43 |
+
|
44 |
+
#: includes/settings-page.php:48
|
45 |
+
msgid "The first part of the new URL string to reach your login form is the \"question.\" It is just an arbitrary word or code. Complexity will not matter much at this time."
|
46 |
+
msgstr ""
|
47 |
+
|
48 |
+
#: includes/settings-page.php:50
|
49 |
+
msgid "String used for the \"question\""
|
50 |
+
msgstr ""
|
51 |
+
|
52 |
+
#: includes/settings-page.php:54
|
53 |
+
msgid "The second part of the new URL string to reach your login form is the \"answer.\" It is also just an arbitrary word or code."
|
54 |
+
msgstr ""
|
55 |
+
|
56 |
+
#: includes/settings-page.php:56
|
57 |
+
msgid "String used for the \"answer\""
|
58 |
+
msgstr ""
|
59 |
+
|
60 |
+
#: includes/settings-page.php:63
|
61 |
+
msgid "Email login URL to admin"
|
62 |
+
msgstr ""
|
63 |
+
|
64 |
+
#: includes/settings-page.php:67
|
65 |
+
msgid "Save Settings"
|
66 |
+
msgstr ""
|
67 |
+
|
68 |
+
#: includes/settings-page.php:73
|
69 |
+
msgid "Your custom login URL is:"
|
70 |
+
msgstr ""
|
71 |
+
|
72 |
+
#: plugin.php:0
|
73 |
+
msgid "http://www.petersenmediagroup.com/plugins/stealth-login-page"
|
74 |
+
msgstr ""
|
75 |
+
|
76 |
+
#: plugin.php:0
|
77 |
+
msgid "Protect your /wp-admin and wp-login.php pages from being accessed without editing .htaccess"
|
78 |
+
msgstr ""
|
79 |
+
|
80 |
+
#: plugin.php:0
|
81 |
+
msgid "Jesse Petersen"
|
82 |
+
msgstr ""
|
83 |
+
|
84 |
+
#: plugin.php:0
|
85 |
+
msgid "http://www.petersenmediagroup.com"
|
86 |
+
msgstr ""
|
87 |
+
|
88 |
+
#: plugin.php:0
|
89 |
+
msgid "1.0.0"
|
90 |
+
msgstr ""
|
91 |
+
|
92 |
+
#: plugin.php:36
|
93 |
+
msgid "Sorry, you are not allowed to access this page directly."
|
94 |
+
msgstr ""
|
languages/stealth-login-page.pot
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This file is distributed under the same license as the Stealth Login Page package.
|
2 |
+
msgid ""
|
3 |
+
msgstr ""
|
4 |
+
"PO-Revision-Date: 2013-04-03 15:50:52+0000\n"
|
5 |
+
"MIME-Version: 1.0\n"
|
6 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
7 |
+
"Content-Transfer-Encoding: 8bit\n"
|
8 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
9 |
+
"X-Generator: GlotPress/0.1\n"
|
10 |
+
"Project-Id-Version: Stealth Login Page\n"
|
11 |
+
|
12 |
+
#: includes/settings-page.php:5 plugin.php:0
|
13 |
+
msgid "Stealth Login Page"
|
14 |
+
msgstr ""
|
15 |
+
|
16 |
+
#: includes/settings-page.php:19
|
17 |
+
msgid "Custom login URL for %s"
|
18 |
+
msgstr ""
|
19 |
+
|
20 |
+
#: includes/settings-page.php:20
|
21 |
+
msgid "Your custom login URL for %1$s is %2$s"
|
22 |
+
msgstr ""
|
23 |
+
|
24 |
+
#: includes/settings-page.php:31
|
25 |
+
msgid "Stealth Login Page Options"
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: includes/settings-page.php:36
|
29 |
+
msgid "Enable/Disable Stealth Login Page"
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
+
#: includes/settings-page.php:40
|
33 |
+
msgid "Enable Stealth Mode"
|
34 |
+
msgstr ""
|
35 |
+
|
36 |
+
#: includes/settings-page.php:42
|
37 |
+
msgid "Those attempting to gain access to your login form will be automatcally redirected to a customizble URL. Enter that URL below."
|
38 |
+
msgstr ""
|
39 |
+
|
40 |
+
#: includes/settings-page.php:44
|
41 |
+
msgid "URL to redirect unauthorized attempts to"
|
42 |
+
msgstr ""
|
43 |
+
|
44 |
+
#: includes/settings-page.php:48
|
45 |
+
msgid "The first part of the new URL string to reach your login form is the \"question.\" It is just an arbitrary word or code. Complexity will not matter much at this time."
|
46 |
+
msgstr ""
|
47 |
+
|
48 |
+
#: includes/settings-page.php:50
|
49 |
+
msgid "String used for the \"question\""
|
50 |
+
msgstr ""
|
51 |
+
|
52 |
+
#: includes/settings-page.php:54
|
53 |
+
msgid "The second part of the new URL string to reach your login form is the \"answer.\" It is also just an arbitrary word or code."
|
54 |
+
msgstr ""
|
55 |
+
|
56 |
+
#: includes/settings-page.php:56
|
57 |
+
msgid "String used for the \"answer\""
|
58 |
+
msgstr ""
|
59 |
+
|
60 |
+
#: includes/settings-page.php:63
|
61 |
+
msgid "Email login URL to admin"
|
62 |
+
msgstr ""
|
63 |
+
|
64 |
+
#: includes/settings-page.php:67
|
65 |
+
msgid "Save Settings"
|
66 |
+
msgstr ""
|
67 |
+
|
68 |
+
#: includes/settings-page.php:73
|
69 |
+
msgid "Your custom login URL is:"
|
70 |
+
msgstr ""
|
71 |
+
|
72 |
+
#: plugin.php:0
|
73 |
+
msgid "http://www.petersenmediagroup.com/plugins/stealth-login-page"
|
74 |
+
msgstr ""
|
75 |
+
|
76 |
+
#: plugin.php:0
|
77 |
+
msgid "Protect your /wp-admin and wp-login.php pages from being accessed without editing .htaccess"
|
78 |
+
msgstr ""
|
79 |
+
|
80 |
+
#: plugin.php:0
|
81 |
+
msgid "Jesse Petersen"
|
82 |
+
msgstr ""
|
83 |
+
|
84 |
+
#: plugin.php:0
|
85 |
+
msgid "http://www.petersenmediagroup.com"
|
86 |
+
msgstr ""
|
87 |
+
|
88 |
+
#: plugin.php:0
|
89 |
+
msgid "1.0.0"
|
90 |
+
msgstr ""
|
91 |
+
|
92 |
+
#: plugin.php:36
|
93 |
+
msgid "Sorry, you are not allowed to access this page directly."
|
94 |
+
msgstr ""
|
plugin.php
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Stealth Login Page
|
4 |
+
Plugin URI: http://www.petersenmediagroup.com/plugins/stealth-login-page
|
5 |
+
Version: 1.1.1
|
6 |
+
Author: Jesse Petersen
|
7 |
+
Author URI: http://www.petersenmediagroup.com
|
8 |
+
Description: Protect your /wp-admin and wp-login.php pages from being accessed without editing .htaccess
|
9 |
+
Text Domain: stealth-login-page
|
10 |
+
Domain Path: /languages/
|
11 |
+
*/
|
12 |
+
/*
|
13 |
+
Copyright 2013 Jesse Petersen
|
14 |
+
|
15 |
+
Thanks to Andrew Norcross (@norcross) for the redirect code (https://gist.github.com/norcross/4342231) and Billy Fairbank (@billyfairbank) for the idea to turn it into a plugin. Last minute thanks for 'mindctrl' (https://github.com/mindctrl) hopping on GitHub and adding more advanced features and correcting my mistakes.
|
16 |
+
|
17 |
+
Thanks to David Decker for DE localization: http://deckerweb.de/kontakt/
|
18 |
+
|
19 |
+
Licenced under the GNU GPL:
|
20 |
+
|
21 |
+
This program is free software; you can redistribute it and/or modify
|
22 |
+
it under the terms of the GNU General Public License as published by
|
23 |
+
the Free Software Foundation; either version 2 of the License, or
|
24 |
+
(at your option) any later version.
|
25 |
+
|
26 |
+
This program is distributed in the hope that it will be useful,
|
27 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
28 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
29 |
+
GNU General Public License for more details.
|
30 |
+
|
31 |
+
You should have received a copy of the GNU General Public License
|
32 |
+
along with this program; if not, write to the Free Software
|
33 |
+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
34 |
+
*/
|
35 |
+
|
36 |
+
/* Prevent direct access to the plugin */
|
37 |
+
if ( !defined( 'ABSPATH' ) ) {
|
38 |
+
wp_die( __( 'Sorry, you are not allowed to access this page directly.', 'stealth-login-page' ) );
|
39 |
+
}
|
40 |
+
|
41 |
+
add_action( 'init', 'slp_load_plugin_translations', 1 );
|
42 |
+
/**
|
43 |
+
* Load translations for this plugin
|
44 |
+
*/
|
45 |
+
function slp_load_plugin_translations() {
|
46 |
+
|
47 |
+
load_plugin_textdomain( 'stealth-login-page', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
|
48 |
+
|
49 |
+
}
|
50 |
+
|
51 |
+
// Global Variables ---------------------- //
|
52 |
+
$slp_prefix = 'slp_';
|
53 |
+
$slp_plugin_name = 'Stealth Login Page';
|
54 |
+
// retrieve plugin settings from options table
|
55 |
+
$slp_options = get_option('slp_settings');
|
56 |
+
|
57 |
+
// Includes ------------------------------ //
|
58 |
+
include('includes/settings-page.php'); // loads the admin settings page
|
59 |
+
if ( $slp_options['enable'] )
|
60 |
+
include('includes/display-functions.php'); // loads the output functions
|
readme.txt
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== Stealth Login Page ===
|
2 |
+
Contributors: peterdog
|
3 |
+
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7T2JDSM64HQV8
|
4 |
+
Tags: login, wp-admin, redirect, security, 302
|
5 |
+
Requires at least: 3.4.2
|
6 |
+
Tested up to: 3.5.1
|
7 |
+
Stable tag: 1.1.1
|
8 |
+
License: GPLv2 or later
|
9 |
+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
+
|
11 |
+
Protect your /wp-admin and wp-login.php pages from being accessed without editing .htaccess
|
12 |
+
|
13 |
+
== Description ==
|
14 |
+
|
15 |
+
Protect your /wp-admin and wp-login.php pages from being accessed by obscuring the WP login form URL without editing any .htaccess files.
|
16 |
+
|
17 |
+
= What it does =
|
18 |
+
|
19 |
+
Without locking down access via IP address or file permissions, this plugin creates a secret, customizable, login URL string. Those attempting to gain access to your login form will be automatcally redirected to a customizable URL.
|
20 |
+
|
21 |
+
= Why it exists =
|
22 |
+
|
23 |
+
When using a login limiting plugin, it is possible that someone is on your network and attempting to login, which will then lock you out because you share the same IP address. This plugin hides your login screen so you don't experience lockdowns when you didn't create the lockdown.
|
24 |
+
|
25 |
+
= NOTE =
|
26 |
+
|
27 |
+
This does NOT replace the need for security "best practices" such as a strong password or a secure hosting environment. This is an additional layer of security, best combined with a login limiter such as <a href="http://wordpress.org/extend/plugins/limit-login-attempts/">Limit Login Attempts</a> or <a href="http://wordpress.org/extend/plugins/login-lockdown/">Login Lockdown</a>.
|
28 |
+
|
29 |
+
== Installation ==
|
30 |
+
|
31 |
+
1. Upload contents of the directory to /wp-content/plugins/ (or use the automatic installer)
|
32 |
+
1. Activate the plugin through the 'Plugins' menu in WordPress
|
33 |
+
1. Configure the settings to create the secret URL string and redirect URL.
|
34 |
+
1. Verify it works by going to your default login form URL.
|
35 |
+
|
36 |
+
== Frequently Asked Questions ==
|
37 |
+
|
38 |
+
= Does this work on MU sites? =
|
39 |
+
|
40 |
+
Absolutely.
|
41 |
+
|
42 |
+
= Are both the redirected folder /wp-admin and the page wp-login.php secured? =
|
43 |
+
|
44 |
+
Yes, as long as you are not actively logged into the site on that computer. You may enter your dashboard normally if you're in an active session. Once the session expires, you're further protected by it automatically redirecting rather than gaining access to the login form since WordPress redirects session timeouts to wp-login.php, unaware of the new URL string.
|
45 |
+
|
46 |
+
= What do I do if I forget my link and can't find the e-mail the plugin sent me? =
|
47 |
+
|
48 |
+
You'll need FTP access to your site. Renaming the stealth-login-page folder in /wp-content/plugins/ will remove the stealth security and allow you back into your dashboard.
|
49 |
+
|
50 |
+
== Screenshots ==
|
51 |
+
|
52 |
+
1. The options page.
|
53 |
+
|
54 |
+
See more [examples](http://www.petersenmediagroup.com/plugins/stealth-login-page/ "Stealth Login Page Plugin URI") here.
|
55 |
+
|
56 |
+
== Changelog ==
|
57 |
+
|
58 |
+
= 1.1.1 =
|
59 |
+
* Bugfix: PHP debug error when activated by not enabled.
|
60 |
+
* Elaborated readme.txt to point out that this does not replace "best practices" for security protocol in other areas. This is simply another layer.
|
61 |
+
|
62 |
+
= 1.1.0 =
|
63 |
+
* Localization release.
|
64 |
+
|
65 |
+
= 1.0.0 =
|
66 |
+
* Initial release.
|
67 |
+
|
68 |
+
== Upgrade Notice ==
|
69 |
+
|
70 |
+
= 1.1.1 =
|
71 |
+
* Bugfix: PHP debug error when activated by not enabled.
|
72 |
+
* Elaborated readme.txt to point out that this does not replace "best practices" for security protocol in other areas. This is simply another layer.
|
73 |
+
|
74 |
+
= 1.1.0 =
|
75 |
+
* Localization release. Added German localization.
|
76 |
+
|
77 |
+
= 1.0.0 =
|
78 |
+
Initial stable release.
|