WPS Hide Login - Version 1.2.4

Version Description

  • Remove: Third party wpserveur
Download this release

Release Info

Developer NicolasKulka
Plugin Icon 128x128 WPS Hide Login
Version 1.2.4
Comparing to
See all releases

Code changes from version 1.2.3.1 to 1.2.4

3rd-party/3rd-party.php DELETED
@@ -1,4 +0,0 @@
1
- <?php
2
- defined( 'ABSPATH' ) || die( 'Cheatin&#8217; uh?' );
3
-
4
- include( plugin_dir_path( __FILE__ ) . 'hosting/wpserveur.php' );
 
 
 
 
3rd-party/hosting/wpserveur.php DELETED
@@ -1,62 +0,0 @@
1
- <?php
2
- defined( 'ABSPATH' ) || die( 'Cheatin&#8217; uh?' );
3
-
4
- if ( ! function_exists( 'wps_hide_login_remove_http' ) ) {
5
- function wps_hide_login_remove_http( $url ) {
6
- $disallowed = array( 'http://', 'https://' );
7
- foreach ( $disallowed as $d ) {
8
- if ( strpos( $url, $d ) === 0 ) {
9
- return str_replace( $d, '', $url );
10
- }
11
- }
12
-
13
- return $url;
14
- }
15
- }
16
-
17
- if ( ! function_exists( 'wps_hide_login_return_pf' ) ) {
18
- function wps_hide_login_return_pf() {
19
- $ip_array = array(
20
- 'pf1' => '212.129.21.7',
21
- 'pf2' => '163.172.241.32',
22
- 'pf3' => '212.83.178.111',
23
- 'pf4' => '212.129.40.192',
24
- 'pf5' => '212.129.45.189',
25
- 'pf999' => '163.172.111.251',
26
- );
27
- $siteurl = get_site_url();
28
- $host = gethostbyname( wps_hide_login_remove_http( $siteurl ) );
29
-
30
- $pf = '';
31
-
32
- if ( in_array( $host, array_values( $ip_array ) ) ) {
33
- $pf = array_search( $host, $ip_array );
34
-
35
- return strtoupper( $pf );
36
- }
37
-
38
- // gestion ip persos
39
- $host_name = gethostname();
40
- if ( strpos( $host_name, 'wps' ) !== false ) {
41
- $pf = preg_replace( "/[^0-9]/", '', $host_name );
42
- $pf = 'PF' . $pf;
43
- }
44
-
45
- return $pf;
46
- }
47
- }
48
-
49
- if ( ! function_exists( 'wpserveur_wps_hide_login_activate' ) ) {
50
- add_action( 'wps_hide_login_activate', 'wpserveur_wps_hide_login_activate' );
51
- function wpserveur_wps_hide_login_activate() {
52
- $pf = wps_hide_login_return_pf();
53
- if ( empty( $pf ) ) {
54
- return false;
55
- }
56
-
57
- $whl_page = get_option( 'whl_page' );
58
- if( empty( $whl_page ) || $whl_page === 'login' ) {
59
- update_option( 'whl_page', 'connecter' );
60
- }
61
- }
62
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: tabrisrp, WPServeur, nicolaskulka
4
  Tags: rename, login, wp-login, wp-login.php, custom login url
5
  Requires at least: 4.1
6
  Tested up to: 4.9
7
- Stable tag: 1.2.3.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -16,10 +16,22 @@ Change wp-login.php to anything you want.
16
 
17
  *WPS Hide Login* est un plugin très léger qui vous permet de changer facilement et en toute sécurité l'url de la page de formulaire de connexion. Il ne renomme pas littéralement ou ne modifie pas les fichiers dans le noyau, ni n'ajoute des règles de réécriture. Il intercepte simplement les demandes de pages et fonctionne sur n'importe quel site WordPress. Le répertoire wp-admin et la page wp-login.php deviennent inaccessibles, vous devez donc ajouter un signet ou vous souvenir de l'URL. Désactiver ce plugin ramène votre site exactement à l'état dans lequel il était auparavant.
18
 
 
 
 
 
 
 
19
  = English =
20
 
21
  *WPS Hide Login* is a very light plugin that lets you easily and safely change the url of the login form page to anything you want. It doesn’t literally rename or change files in core, nor does it add rewrite rules. It simply intercepts page requests and works on any WordPress website. The wp-admin directory and wp-login.php page become inaccessible, so you should bookmark or remember the url. Deactivating this plugin brings your site back exactly to the state it was before.
22
 
 
 
 
 
 
 
23
  = Compatibility =
24
 
25
  = Français =
@@ -124,6 +136,9 @@ First step is to check your .htaccess file and compare it to a regular one, to s
124
 
125
  == Changelog ==
126
 
 
 
 
127
  = 1.2.3.1 =
128
  * Enhancement: Add translations cs_CZ, da_DK, es_ES, it_IT, ru_RU
129
  * Fix: Parse error classes/plugin.php l.530
4
  Tags: rename, login, wp-login, wp-login.php, custom login url
5
  Requires at least: 4.1
6
  Tested up to: 4.9
7
+ Stable tag: 1.2.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
16
 
17
  *WPS Hide Login* est un plugin très léger qui vous permet de changer facilement et en toute sécurité l'url de la page de formulaire de connexion. Il ne renomme pas littéralement ou ne modifie pas les fichiers dans le noyau, ni n'ajoute des règles de réécriture. Il intercepte simplement les demandes de pages et fonctionne sur n'importe quel site WordPress. Le répertoire wp-admin et la page wp-login.php deviennent inaccessibles, vous devez donc ajouter un signet ou vous souvenir de l'URL. Désactiver ce plugin ramène votre site exactement à l'état dans lequel il était auparavant.
18
 
19
+ Ce plugin vous est gentiment proposé par <a href="https://www.wpserveur.net/" target="_blank">WPServeur</a> l'hébergeur spécialisé WordPress.
20
+
21
+ Découvrez également nos autres extensions gratuites :
22
+ - <a href="https://fr.wordpress.org/plugins/wps-limit-login/" target="_blank">WPS Limit Login</a> pour bloquer les attaques par force brute.
23
+ - <a href="https://fr.wordpress.org/plugins/wps-bidouille/" target="_blank">WPS Bidouille</a> pour optimiser votre WordPress et faire le plein d'infos.
24
+
25
  = English =
26
 
27
  *WPS Hide Login* is a very light plugin that lets you easily and safely change the url of the login form page to anything you want. It doesn’t literally rename or change files in core, nor does it add rewrite rules. It simply intercepts page requests and works on any WordPress website. The wp-admin directory and wp-login.php page become inaccessible, so you should bookmark or remember the url. Deactivating this plugin brings your site back exactly to the state it was before.
28
 
29
+ This plugin is kindly proposed by <a href="https://www.wpserveur.net/" target="_blank">WPServeur</a> the specialized WordPress web host.
30
+
31
+ Discover also our other free extensions:
32
+ - <a href="https://wordpress.org/plugins/wps-limit-login/" target="_blank">WPS Limit Login</a> to block brute force attacks.
33
+ - <a href="https://wordpress.org/plugins/wps-bidouille/" target="_blank">WPS Bidouille</a> to optimize your WordPress and get more info.
34
+
35
  = Compatibility =
36
 
37
  = Français =
136
 
137
  == Changelog ==
138
 
139
+ = 1.2.4 =
140
+ * Remove: Third party wpserveur
141
+
142
  = 1.2.3.1 =
143
  * Enhancement: Add translations cs_CZ, da_DK, es_ES, it_IT, ru_RU
144
  * Fix: Parse error classes/plugin.php l.530
wps-hide-login.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WPS Hide Login
4
  Description: Protect your website by changing the login URL and preventing access to wp-login.php page and wp-admin directory while not logged-in
5
  Author: WPServeur, NicolasKulka, tabrisrp
6
- Version: 1.2.3.1
7
  Requires at least: 4.1
8
  Tested up to: 4.9
9
  License: GPLv2 or later
@@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  }
17
 
18
  // Plugin constants
19
- define( 'WPS_HIDE_LOGIN_VERSION', '1.2.3.1' );
20
  define( 'WPS_HIDE_LOGIN_FOLDER', 'wps-hide-login' );
21
 
22
  define( 'WPS_HIDE_LOGIN_URL', plugin_dir_url( __FILE__ ) );
@@ -32,10 +32,6 @@ function wps_hide_login_load_files( $dir, $files, $prefix = '' ) {
32
  }
33
  }
34
 
35
- wps_hide_login_load_files( WPS_HIDE_LOGIN_DIR . '3rd-party/', array(
36
- '3rd-party'
37
- ) );
38
-
39
  // Plugin client classes
40
  wps_hide_login_load_files( WPS_HIDE_LOGIN_DIR . 'classes/', array(
41
  'plugin',
3
  Plugin Name: WPS Hide Login
4
  Description: Protect your website by changing the login URL and preventing access to wp-login.php page and wp-admin directory while not logged-in
5
  Author: WPServeur, NicolasKulka, tabrisrp
6
+ Version: 1.2.4
7
  Requires at least: 4.1
8
  Tested up to: 4.9
9
  License: GPLv2 or later
16
  }
17
 
18
  // Plugin constants
19
+ define( 'WPS_HIDE_LOGIN_VERSION', '1.2.4' );
20
  define( 'WPS_HIDE_LOGIN_FOLDER', 'wps-hide-login' );
21
 
22
  define( 'WPS_HIDE_LOGIN_URL', plugin_dir_url( __FILE__ ) );
32
  }
33
  }
34
 
 
 
 
 
35
  // Plugin client classes
36
  wps_hide_login_load_files( WPS_HIDE_LOGIN_DIR . 'classes/', array(
37
  'plugin',