Temporary Login Without Password - Version 1.5.14

Version Description

Download this release

Release Info

Developer storeapps
Plugin Icon 128x128 Temporary Login Without Password
Version 1.5.14
Comparing to
See all releases

Code changes from version 1.5.13 to 1.5.14

admin/class-wp-temporary-login-without-password-admin.php CHANGED
@@ -78,15 +78,12 @@ class Wp_Temporary_Login_Without_Password_Admin {
78
  * @since 1.0
79
  */
80
  public function admin_menu() {
81
- $current_user_id = get_current_user_id();
82
- if ( ! Wp_Temporary_Login_Without_Password_Common::is_valid_temporary_login( $current_user_id ) ) {
83
- add_users_page(
84
- __( 'Temporary Logins', 'temporary-login-without-password' ), __( 'Temporary Logins', 'temporary-login-without-password' ), apply_filters( 'tempadmin_user_cap', 'manage_options' ), 'wp-temporary-login-without-password', array(
85
- __class__,
86
- 'admin_settings',
87
- )
88
- );
89
- }
90
  }
91
 
92
  /**
@@ -98,26 +95,36 @@ class Wp_Temporary_Login_Without_Password_Admin {
98
  */
99
  public static function admin_settings() {
100
 
101
- $active_tab = ! empty( $_GET['tab'] ) ? $_GET['tab'] : 'home';
102
- $_template_file = WTLWP_PLUGIN_DIR . '/templates/admin-settings.php';
103
- $wtlwp_generated_url = ! empty( $_REQUEST['wtlwp_generated_url'] ) ? $_REQUEST['wtlwp_generated_url'] : '';
104
- $user_email = ! empty( $_REQUEST['user_email'] ) ? sanitize_email( $_REQUEST['user_email'] ) : '';
105
- $tlwp_settings = maybe_unserialize( get_option( 'tlwp_settings', array() ) );
106
- $action = ! empty( $_GET['action'] ) ? $_GET['action'] : '';
107
- $user_id = ! empty( $_GET['user_id'] ) ? $_GET['user_id'] : '';
108
- $do_update = ( 'update' === $action ) ? 1 : 0;
109
 
110
- if ( ! empty( $user_id ) ) {
111
- $temporary_user_data = Wp_Temporary_Login_Without_Password_Common::get_temporary_logins_data( $user_id );
 
 
112
  }
113
 
114
- if ( ! empty( $wtlwp_generated_url ) ) {
115
- $mailto_link = Wp_Temporary_Login_Without_Password_Common::generate_mailto_link( $user_email, $wtlwp_generated_url );
116
- }
 
 
 
 
 
 
 
 
 
 
117
 
118
- $default_role = ( ! empty( $tlwp_settings ) && isset( $tlwp_settings['default_role'] ) ) ? $tlwp_settings['default_role'] : 'administrator';
119
- $default_expiry_time = ( ! empty( $tlwp_settings ) && isset( $tlwp_settings['default_expiry_time'] ) ) ? $tlwp_settings['default_expiry_time'] : 'week';
120
- $visible_roles = ( ! empty( $tlwp_settings ) && isset( $tlwp_settings['visible_roles'] ) ) ? $tlwp_settings['visible_roles'] : array();
 
 
 
 
 
121
 
122
  include $_template_file;
123
  }
@@ -200,18 +207,18 @@ class Wp_Temporary_Login_Without_Password_Admin {
200
 
201
  $data = $_POST['tlwp_settings_data'];
202
 
203
- $default_role = isset( $data['default_role'] ) ? $data['default_role'] : 'administrator';
204
- $default_expiry_time = isset( $data['default_expiry_time'] ) ? $data['default_expiry_time'] : 'week';
205
- $visible_roles = isset( $data['visible_roles'] ) ? $data['visible_roles'] : array();
206
 
207
  if ( ! in_array( $default_role, $visible_roles ) ) {
208
  $visible_roles[] = $default_role;
209
  }
210
 
211
  $tlwp_settings = array(
212
- 'default_role' => $default_role,
213
  'default_expiry_time' => $default_expiry_time,
214
- 'visible_roles' => $visible_roles
215
  );
216
 
217
  $update = update_option( 'tlwp_settings', maybe_serialize( $tlwp_settings ), true );
@@ -527,9 +534,9 @@ class Wp_Temporary_Login_Without_Password_Admin {
527
 
528
  $reviewurl = 'https://wordpress.org/support/plugin/temporary-login-without-password/reviews/';
529
 
530
- $current_page_url = "//".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
531
 
532
- $nobugurl = add_query_arg( 'tlwp_nobug', 1, $current_page_url);
533
 
534
  echo '<div class="notice notice-warning">';
535
 
78
  * @since 1.0
79
  */
80
  public function admin_menu() {
81
+ add_users_page(
82
+ __( 'Temporary Logins', 'temporary-login-without-password' ), __( 'Temporary Logins', 'temporary-login-without-password' ), apply_filters( 'tempadmin_user_cap', 'manage_options' ), 'wp-temporary-login-without-password', array(
83
+ __class__,
84
+ 'admin_settings',
85
+ )
86
+ );
 
 
 
87
  }
88
 
89
  /**
95
  */
96
  public static function admin_settings() {
97
 
98
+ $_template_file = WTLWP_PLUGIN_DIR . '/templates/admin-settings.php';
 
 
 
 
 
 
 
99
 
100
+ $is_temporary_login = false;
101
+ $current_user_id = get_current_user_id();
102
+ if ( Wp_Temporary_Login_Without_Password_Common::is_valid_temporary_login( $current_user_id ) ) {
103
+ $is_temporary_login = true;
104
  }
105
 
106
+ $active_tab = ! empty( $_GET['tab'] ) ? $_GET['tab'] : ( $is_temporary_login ? 'system-info' : 'home' );
107
+
108
+ if ( ! $is_temporary_login ) {
109
+ $wtlwp_generated_url = ! empty( $_REQUEST['wtlwp_generated_url'] ) ? $_REQUEST['wtlwp_generated_url'] : '';
110
+ $user_email = ! empty( $_REQUEST['user_email'] ) ? sanitize_email( $_REQUEST['user_email'] ) : '';
111
+ $tlwp_settings = maybe_unserialize( get_option( 'tlwp_settings', array() ) );
112
+ $action = ! empty( $_GET['action'] ) ? $_GET['action'] : '';
113
+ $user_id = ! empty( $_GET['user_id'] ) ? $_GET['user_id'] : '';
114
+ $do_update = ( 'update' === $action ) ? 1 : 0;
115
+
116
+ if ( ! empty( $user_id ) ) {
117
+ $temporary_user_data = Wp_Temporary_Login_Without_Password_Common::get_temporary_logins_data( $user_id );
118
+ }
119
 
120
+ if ( ! empty( $wtlwp_generated_url ) ) {
121
+ $mailto_link = Wp_Temporary_Login_Without_Password_Common::generate_mailto_link( $user_email, $wtlwp_generated_url );
122
+ }
123
+
124
+ $default_role = ( ! empty( $tlwp_settings ) && isset( $tlwp_settings['default_role'] ) ) ? $tlwp_settings['default_role'] : 'administrator';
125
+ $default_expiry_time = ( ! empty( $tlwp_settings ) && isset( $tlwp_settings['default_expiry_time'] ) ) ? $tlwp_settings['default_expiry_time'] : 'week';
126
+ $visible_roles = ( ! empty( $tlwp_settings ) && isset( $tlwp_settings['visible_roles'] ) ) ? $tlwp_settings['visible_roles'] : array();
127
+ }
128
 
129
  include $_template_file;
130
  }
207
 
208
  $data = $_POST['tlwp_settings_data'];
209
 
210
+ $default_role = isset( $data['default_role'] ) ? $data['default_role'] : 'administrator';
211
+ $default_expiry_time = isset( $data['default_expiry_time'] ) ? $data['default_expiry_time'] : 'week';
212
+ $visible_roles = isset( $data['visible_roles'] ) ? $data['visible_roles'] : array();
213
 
214
  if ( ! in_array( $default_role, $visible_roles ) ) {
215
  $visible_roles[] = $default_role;
216
  }
217
 
218
  $tlwp_settings = array(
219
+ 'default_role' => $default_role,
220
  'default_expiry_time' => $default_expiry_time,
221
+ 'visible_roles' => $visible_roles
222
  );
223
 
224
  $update = update_option( 'tlwp_settings', maybe_serialize( $tlwp_settings ), true );
534
 
535
  $reviewurl = 'https://wordpress.org/support/plugin/temporary-login-without-password/reviews/';
536
 
537
+ $current_page_url = "//" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
538
 
539
+ $nobugurl = add_query_arg( 'tlwp_nobug', 1, $current_page_url );
540
 
541
  echo '<div class="notice notice-warning">';
542
 
includes/class-wp-temporary-login-without-password-common.php CHANGED
@@ -708,7 +708,7 @@ class Wp_Temporary_Login_Without_Password_Common {
708
  * @return array
709
  */
710
  public static function get_blocked_pages() {
711
- $blocked_pages = array( 'wp-temporary-login-without-password', 'user-new.php', 'user-edit.php', 'profile.php' );
712
  $blocked_pages = apply_filters( 'wtlwp_restricted_pages_for_temporary_users', $blocked_pages );
713
 
714
  return $blocked_pages;
708
  * @return array
709
  */
710
  public static function get_blocked_pages() {
711
+ $blocked_pages = array( 'user-new.php', 'user-edit.php', 'profile.php' );
712
  $blocked_pages = apply_filters( 'wtlwp_restricted_pages_for_temporary_users', $blocked_pages );
713
 
714
  return $blocked_pages;
includes/class-wp-temporary-login-without-password.php CHANGED
@@ -62,6 +62,8 @@ class Wp_Temporary_Login_Without_Password {
62
  require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wp-temporary-login-without-password-common.php';
63
  require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wp-temporary-login-without-password-layout.php';
64
 
 
 
65
  $this->loader = new Wp_Temporary_Login_Without_Password_Loader();
66
  }
67
 
62
  require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wp-temporary-login-without-password-common.php';
63
  require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wp-temporary-login-without-password-layout.php';
64
 
65
+ require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wtlwp-system-info.php';
66
+
67
  $this->loader = new Wp_Temporary_Login_Without_Password_Loader();
68
  }
69
 
includes/class-wtlwp-system-info.php ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Created by PhpStorm.
5
+ * User: malayladu
6
+ * Date: 2019-01-11
7
+ * Time: 14:59
8
+ */
9
+ class Wtlwp_Sytem_Info {
10
+
11
+ /**
12
+ *
13
+ */
14
+ public function get_info( $space ) {
15
+
16
+ global $wpdb;
17
+
18
+ $settings = array(
19
+ 'SITE_URL' => site_url(),
20
+ 'HOME_URL' => home_url(),
21
+ '--',
22
+ 'TLWP Version' => WTLWP_PLUGIN_VERSION,
23
+ 'WordPress Version' => get_bloginfo( 'version' ),
24
+ 'Permalink Structure' => get_option( 'permalink_structure' ),
25
+ '--',
26
+ 'PHP Version' => PHP_VERSION,
27
+ 'MySQL Version' => $wpdb->db_version(),
28
+ 'Web Server Info' => $_SERVER['SERVER_SOFTWARE'],
29
+ 'User Agent' => $_SERVER['HTTP_USER_AGENT'],
30
+ 'Multi-site' => is_multisite() ? 'Yes' : 'No',
31
+ '--',
32
+ 'PHP Memory Limit' => ini_get( 'memory_limit' ),
33
+ 'PHP Post Max Size' => ini_get( 'post_max_size' ),
34
+ 'PHP Upload Max File size' => ini_get( 'upload_max_filesize' ),
35
+ 'PHP Time Limit' => ini_get( 'max_execution_time' ) . ' sec',
36
+ '--',
37
+ 'WP_DEBUG' => defined( 'WP_DEBUG' ) ? ( WP_DEBUG ? 'Enabled' : 'Disabled' ) : 'Not set',
38
+ 'DISPLAY ERRORS' => ( ini_get( 'display_errors' ) ) ? 'On (' . ini_get( 'display_errors' ) . ')' : 'N/A',
39
+ '--',
40
+ 'WP Table Prefix' => 'Length: ' . strlen( $wpdb->prefix ) . ' Status:' . ( strlen( $wpdb->prefix ) > 16 ? ' ERROR: Too Long' : ' Acceptable' ),
41
+ 'WP DB Charset/Collate' => $wpdb->get_charset_collate(),
42
+ '--',
43
+ 'Session' => isset( $_SESSION ) ? 'Enabled' : 'Disabled',
44
+ 'Session Name' => esc_html( ini_get( 'session.name' ) ),
45
+ 'Cookie Path' => esc_html( ini_get( 'session.cookie_path' ) ),
46
+ 'Save Path' => esc_html( ini_get( 'session.save_path' ) ),
47
+ 'Use Cookies' => ini_get( 'session.use_cookies' ) ? 'On' : 'Off',
48
+ 'Use Only Cookies' => ini_get( 'session.use_only_cookies' ) ? 'On' : 'Off',
49
+ '--',
50
+ 'WordPress Memory Limit' => ( size_format( (int) WP_MEMORY_LIMIT * 1048576 ) ),
51
+ 'WordPress Upload Size' => ( size_format( wp_max_upload_size() ) ),
52
+ 'Filesystem Method' => get_filesystem_method(),
53
+ 'SSL SUPPORT' => extension_loaded( 'openssl' ) ? 'SSL extension loaded' : 'SSL extension NOT loaded',
54
+ 'MB String' => extension_loaded( 'mbstring' ) ? 'MB String extensions loaded' : 'MB String extensions NOT loaded',
55
+ '--',
56
+ 'ACTIVE PLUGINS' => "<br />",
57
+ 'INACTIVE PLUGINS' => '<br />',
58
+ '--',
59
+ 'CURRENT THEME' => '',
60
+ );
61
+
62
+ $plugins = $this->get_plugins();
63
+
64
+ $settings['ACTIVE PLUGINS'] .= $plugins['ACTIVE PLUGINS'];
65
+ $settings['INACTIVE PLUGINS'] .= $plugins['INACTIVE PLUGINS'];
66
+ $settings['CURRENT THEME'] .= $this->get_current_theme();
67
+
68
+
69
+ return apply_filters( 'wtlwp_system_info', $settings );
70
+
71
+ }
72
+
73
+ function get_plugins() {
74
+
75
+ $plugins = array(
76
+ 'INACTIVE PLUGINS' => '',
77
+ 'ACTIVE PLUGINS' => ''
78
+ );
79
+
80
+ $all_plugins = get_plugins();
81
+ $active_plugins = get_option( 'active_plugins', array() );
82
+
83
+ foreach ( $all_plugins as $plugin_path => $plugin ) {
84
+ // If the plugin isn't active, don't show it.
85
+ if ( ! in_array( $plugin_path, $active_plugins ) ) {
86
+ $plugins['INACTIVE PLUGINS'] .= $plugin['Name'] . ': ' . $plugin['Version'] . "<br />" . str_repeat( ' ', 30 );
87
+ } else {
88
+ $plugins['ACTIVE PLUGINS'] .= $plugin['Name'] . ': ' . $plugin['Version'] . "<br />" . str_repeat( ' ', 30 );
89
+ }
90
+ }
91
+
92
+ return $plugins;
93
+ }
94
+
95
+ function get_current_theme() {
96
+
97
+ $current_theme = '';
98
+ if ( function_exists( 'wp_get_theme' ) ) {
99
+ $theme_data = wp_get_theme();
100
+ $current_theme = $theme_data->Name . ': ' . $theme_data->Version . "<br />" . str_repeat( ' ', 30 ) . $theme_data->get( 'Author' ) . ' (' . $theme_data->get( 'AuthorURI' ) . ')';
101
+ } else if ( function_exists( 'get_theme_data' ) ) {
102
+ $theme_data = get_theme_data( get_stylesheet_directory() . '/style.css' );
103
+ $current_theme = $theme_data['Name'] . ': ' . $theme_data['Version'] . "<br />" . str_repeat( ' ', 30 ) . $theme_data['Author'] . ' (' . $theme_data['AuthorURI'] . ')';
104
+ }
105
+
106
+ return $current_theme;
107
+
108
+ }
109
+
110
+ function render_system_info_page() {
111
+
112
+ $space = 30;
113
+ $information = $this->get_info( $space );
114
+ $output = "### <b>System Info </b>###<br /><br />";
115
+
116
+ foreach ( $information as $name => $value ) {
117
+ if ( $value == '--' ) {
118
+ $output .= "<br />";
119
+ continue;
120
+ }
121
+
122
+ $length = $space - strlen( $name );
123
+ $output .= "<b>" . $name . "</b>" . str_repeat( ' ', $length ) . $value . "<br />";
124
+ }
125
+
126
+ $output .= "### End System Info ###<br />";
127
+
128
+ return $output;
129
+ }
130
+
131
+
132
+ }
languages/temporary-login-without-password.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Project-Id-Version: PACKAGE VERSION\n"
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2018-08-08 12:11+0000\n"
7
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
8
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
9
  "Language-Team: \n"
@@ -14,142 +14,138 @@ msgstr ""
14
  "Content-Transfer-Encoding: 8bit\n"
15
  "X-Generator: Loco https://localise.biz/"
16
 
17
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:84
18
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:10
19
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:17
20
  msgid "Temporary Logins"
21
  msgstr ""
22
 
23
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:384
24
  msgid "User creation failed"
25
  msgstr ""
26
 
27
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:385
28
  msgid "You do not have permission to create a temporary login"
29
  msgstr ""
30
 
31
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:386
32
  msgid "Email is already in use"
33
  msgstr ""
34
 
35
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:387
36
  msgid "Please enter valid email address. Email field should not be empty"
37
  msgstr ""
38
 
39
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:388
40
  msgid "Please enter valid email address"
41
  msgstr ""
42
 
43
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:389
44
  msgid "User you are trying to delete is not temporary"
45
  msgstr ""
46
 
47
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:390
48
  msgid "Nonce failed"
49
  msgstr ""
50
 
51
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:391
52
  msgid "Invalid action"
53
  msgstr ""
54
 
55
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:392
56
  msgid "Unknown error occured"
57
  msgstr ""
58
 
59
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:393
60
  msgid "Login created successfully!"
61
  msgstr ""
62
 
63
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:394
64
  msgid "Login updated successfully!"
65
  msgstr ""
66
 
67
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:395
68
  msgid "Login deleted successfully!"
69
  msgstr ""
70
 
71
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:396
72
  msgid "Login disabled successfully!"
73
  msgstr ""
74
 
75
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:397
76
  msgid "Login enabled successfully!"
77
  msgstr ""
78
 
79
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:398
80
  msgid "Settings have been updated successfully"
81
  msgstr ""
82
 
83
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:399
84
  msgid "Success!"
85
  msgstr ""
86
 
87
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:472
88
  #, php-format
89
  msgid ""
90
  "If you like <strong>Temporary Login Without Password</strong> plugin, please "
91
  "leave us a %s rating. A huge thanks in advance!"
92
  msgstr ""
93
 
94
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:472
95
  msgid "Thank You :) "
96
  msgstr ""
97
 
98
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:474
99
  #, php-format
100
  msgid "Thank you for using %s."
101
  msgstr ""
102
 
103
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:603
104
  msgid "Temporary Access"
105
  msgstr ""
106
 
107
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:165
108
  msgid "One Hour"
109
  msgstr ""
110
 
111
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:166
112
  msgid "Three Hours"
113
  msgstr ""
114
 
115
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:167
116
  msgid "One Day"
117
  msgstr ""
118
 
119
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:168
120
  msgid "Three Days"
121
  msgstr ""
122
 
123
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:169
124
  msgid "One Week"
125
  msgstr ""
126
 
127
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:170
128
  msgid "One Month"
129
  msgstr ""
130
 
131
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:171
132
  msgid "Custom Date"
133
  msgstr ""
134
 
135
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:180
136
- msgid "No Option Found"
137
- msgstr ""
138
-
139
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:647
140
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:684
141
  msgid "Expired"
142
  msgstr ""
143
 
144
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:845
145
  msgid "Hello,"
146
  msgstr ""
147
 
148
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:846
149
  msgid "Click the following link to log into the system:"
150
  msgstr ""
151
 
152
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:847
153
  msgid "Temporary Login Link"
154
  msgstr ""
155
 
@@ -222,27 +218,31 @@ msgstr ""
222
  msgid "Authentication failed"
223
  msgstr ""
224
 
225
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/public/class-wp-temporary-login-without-password-public.php:122
226
  msgid "You don't have permission to access this page"
227
  msgstr ""
228
 
229
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:11
230
  msgid "Settings"
231
  msgstr ""
232
 
233
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:18
 
 
 
 
234
  msgid "Create New"
235
  msgstr ""
236
 
237
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:40
238
  msgid "Here's a temporary login link"
239
  msgstr ""
240
 
241
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:43
242
  msgid "Click To Copy"
243
  msgstr ""
244
 
245
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:47
246
  msgid ""
247
  "User can directly login to WordPress admin panel without username and "
248
  "password by opening this link."
3
  msgstr ""
4
  "Project-Id-Version: PACKAGE VERSION\n"
5
  "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2019-01-11 11:16+0000\n"
7
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
8
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
9
  "Language-Team: \n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
  "X-Generator: Loco https://localise.biz/"
16
 
17
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:82
18
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:11
19
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:20
20
  msgid "Temporary Logins"
21
  msgstr ""
22
 
23
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:391
24
  msgid "User creation failed"
25
  msgstr ""
26
 
27
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:392
28
  msgid "You do not have permission to create a temporary login"
29
  msgstr ""
30
 
31
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:393
32
  msgid "Email is already in use"
33
  msgstr ""
34
 
35
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:394
36
  msgid "Please enter valid email address. Email field should not be empty"
37
  msgstr ""
38
 
39
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:395
40
  msgid "Please enter valid email address"
41
  msgstr ""
42
 
43
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:396
44
  msgid "User you are trying to delete is not temporary"
45
  msgstr ""
46
 
47
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:397
48
  msgid "Nonce failed"
49
  msgstr ""
50
 
51
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:398
52
  msgid "Invalid action"
53
  msgstr ""
54
 
55
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:399
56
  msgid "Unknown error occured"
57
  msgstr ""
58
 
59
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:400
60
  msgid "Login created successfully!"
61
  msgstr ""
62
 
63
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:401
64
  msgid "Login updated successfully!"
65
  msgstr ""
66
 
67
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:402
68
  msgid "Login deleted successfully!"
69
  msgstr ""
70
 
71
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:403
72
  msgid "Login disabled successfully!"
73
  msgstr ""
74
 
75
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:404
76
  msgid "Login enabled successfully!"
77
  msgstr ""
78
 
79
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:405
80
  msgid "Settings have been updated successfully"
81
  msgstr ""
82
 
83
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:406
84
  msgid "Success!"
85
  msgstr ""
86
 
87
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:479
88
  #, php-format
89
  msgid ""
90
  "If you like <strong>Temporary Login Without Password</strong> plugin, please "
91
  "leave us a %s rating. A huge thanks in advance!"
92
  msgstr ""
93
 
94
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:479
95
  msgid "Thank You :) "
96
  msgstr ""
97
 
98
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:481
99
  #, php-format
100
  msgid "Thank you for using %s."
101
  msgstr ""
102
 
103
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:612
104
  msgid "Temporary Access"
105
  msgstr ""
106
 
107
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:169
108
  msgid "One Hour"
109
  msgstr ""
110
 
111
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:170
112
  msgid "Three Hours"
113
  msgstr ""
114
 
115
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:171
116
  msgid "One Day"
117
  msgstr ""
118
 
119
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:172
120
  msgid "Three Days"
121
  msgstr ""
122
 
123
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:173
124
  msgid "One Week"
125
  msgstr ""
126
 
127
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:174
128
  msgid "One Month"
129
  msgstr ""
130
 
131
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:175
132
  msgid "Custom Date"
133
  msgstr ""
134
 
135
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:662
136
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:699
 
 
 
 
137
  msgid "Expired"
138
  msgstr ""
139
 
140
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:860
141
  msgid "Hello,"
142
  msgstr ""
143
 
144
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:861
145
  msgid "Click the following link to log into the system:"
146
  msgstr ""
147
 
148
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:862
149
  msgid "Temporary Login Link"
150
  msgstr ""
151
 
218
  msgid "Authentication failed"
219
  msgstr ""
220
 
221
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/public/class-wp-temporary-login-without-password-public.php:137
222
  msgid "You don't have permission to access this page"
223
  msgstr ""
224
 
225
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:12
226
  msgid "Settings"
227
  msgstr ""
228
 
229
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:14
230
+ msgid "System Info"
231
+ msgstr ""
232
+
233
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:21
234
  msgid "Create New"
235
  msgstr ""
236
 
237
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:43
238
  msgid "Here's a temporary login link"
239
  msgstr ""
240
 
241
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:46
242
  msgid "Click To Copy"
243
  msgstr ""
244
 
245
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:50
246
  msgid ""
247
  "User can directly login to WordPress admin panel without username and "
248
  "password by opening this link."
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: storeapps, niravmehta, malayladu
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CPTHCDC382KVA
4
  Tags: temporary access, developer access, admin login, temporary login, passwordless login, customer login, secure login, access, admin, log in, login, login security, protection, user login, user login, wordpress admin login, wordpress login, wp-admin, wp-login, expiration, login, Login Without Password, user, WordPress Admin, wp-admin, developer login
5
  Requires at least: 3.0.1
6
- Tested up to: 5.0.2
7
- Stable tag: 1.5.13
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -58,7 +58,6 @@ No. temporary user can't login with username & password.
58
 
59
  No. at this moment it's not possible to do this.
60
 
61
-
62
  == Screenshots ==
63
 
64
  1. Create a new Temporary Login.
@@ -68,6 +67,10 @@ No. at this moment it's not possible to do this.
68
 
69
  == Changelog ==
70
 
 
 
 
 
71
  **1.5.13 [2018-11-19]**
72
 
73
  * Update: Now, temporary user can be redirected to any page without using redirect_to query params.
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CPTHCDC382KVA
4
  Tags: temporary access, developer access, admin login, temporary login, passwordless login, customer login, secure login, access, admin, log in, login, login security, protection, user login, user login, wordpress admin login, wordpress login, wp-admin, wp-login, expiration, login, Login Without Password, user, WordPress Admin, wp-admin, developer login
5
  Requires at least: 3.0.1
6
+ Tested up to: 5.0.3
7
+ Stable tag: 1.5.14
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
58
 
59
  No. at this moment it's not possible to do this.
60
 
 
61
  == Screenshots ==
62
 
63
  1. Create a new Temporary Login.
67
 
68
  == Changelog ==
69
 
70
+ **1.5.14 [2019-01-14]**
71
+
72
+ * Update: Added System info page and allow temporary user to access system info page
73
+
74
  **1.5.13 [2018-11-19]**
75
 
76
  * Update: Now, temporary user can be redirected to any page without using redirect_to query params.
templates/admin-settings.php CHANGED
@@ -7,11 +7,14 @@
7
 
8
  ?>
9
  <h2 class="nav-tab-wrapper">
10
- <a href="<?php echo esc_url( admin_url( 'users.php?page=wp-temporary-login-without-password&tab=home' ) ); ?>" class="nav-tab <?php echo 'home' === $active_tab ? 'nav-tab-active' : ''; ?>"><?php echo esc_html__( 'Temporary Logins', 'temporary-login-without-password' ); ?></a>
11
- <a href="<?php echo esc_url( admin_url( 'users.php?page=wp-temporary-login-without-password&tab=settings' ) ); ?>" class="nav-tab <?php echo 'settings' === $active_tab ? 'nav-tab-active' : ''; ?>"><?php echo esc_html__( 'Settings', 'temporary-login-without-password' ); ?></a>
 
 
 
12
  </h2>
13
 
14
- <?php if ( 'home' === $active_tab ) { ?>
15
  <div class="wrap wtlwp-settings-wrap" id="temporary-logins">
16
  <h2>
17
  <?php echo esc_html__( 'Temporary Logins', 'temporary-login-without-password' ); ?>
@@ -63,10 +66,13 @@
63
  <!-- List All Generated Logins End -->
64
  </div>
65
  </div>
66
- <?php } elseif ( 'settings' === $active_tab ) { ?>
67
-
68
  <div class="wrap list-wtlwp-logins" id="wtlwp-logins-settings">
69
  <?php include WTLWP_PLUGIN_DIR . '/templates/temporary-logins-settings.php'; ?>
70
  </div>
71
 
72
- <?php } ?>
 
 
 
 
7
 
8
  ?>
9
  <h2 class="nav-tab-wrapper">
10
+ <?php if(! $is_temporary_login) { ?>
11
+ <a href="<?php echo esc_url( admin_url( 'users.php?page=wp-temporary-login-without-password&tab=home' ) ); ?>" class="nav-tab <?php echo 'home' === $active_tab ? 'nav-tab-active' : ''; ?>"><?php echo esc_html__( 'Temporary Logins', 'temporary-login-without-password' ); ?></a>
12
+ <a href="<?php echo esc_url( admin_url( 'users.php?page=wp-temporary-login-without-password&tab=settings' ) ); ?>" class="nav-tab <?php echo 'settings' === $active_tab ? 'nav-tab-active' : ''; ?>"><?php echo esc_html__( 'Settings', 'temporary-login-without-password' ); ?></a>
13
+ <?php } ?>
14
+ <a href="<?php echo esc_url( admin_url( 'users.php?page=wp-temporary-login-without-password&tab=system-info' ) ); ?>" class="nav-tab <?php echo 'system-info' === $active_tab ? 'nav-tab-active' : ''; ?>"><?php echo esc_html__( 'System Info', 'temporary-login-without-password' ); ?></a>
15
  </h2>
16
 
17
+ <?php if ( 'home' === $active_tab && !$is_temporary_login ) { ?>
18
  <div class="wrap wtlwp-settings-wrap" id="temporary-logins">
19
  <h2>
20
  <?php echo esc_html__( 'Temporary Logins', 'temporary-login-without-password' ); ?>
66
  <!-- List All Generated Logins End -->
67
  </div>
68
  </div>
69
+ <?php } elseif ( 'settings' === $active_tab && !$is_temporary_login) { ?>
 
70
  <div class="wrap list-wtlwp-logins" id="wtlwp-logins-settings">
71
  <?php include WTLWP_PLUGIN_DIR . '/templates/temporary-logins-settings.php'; ?>
72
  </div>
73
 
74
+ <?php } else { ?>
75
+ <div class="wrap tlwp-sytem-info" id="tlwp-system-info">
76
+ <?php include WTLWP_PLUGIN_DIR . '/templates/system-info.php'; ?>
77
+ </div>
78
+ <?php } ?>
templates/system-info.php ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Created by PhpStorm.
4
+ * User: malayladu
5
+ * Date: 2019-01-11
6
+ * Time: 14:57
7
+ */
8
+
9
+ $system_info = new Wtlwp_Sytem_Info();
10
+
11
+ ?>
12
+
13
+ <button class="wtlwp-click-to-copy-btn" data-clipboard-action="copy" data-clipboard-target="#tlwp-system-info-data">Click To Copy</button>
14
+ <div class="wrap wtlwp-form" id="tlwp-system-info-data">
15
+ <?php
16
+ echo $system_info->render_system_info_page();
17
+ ?>
18
+ </div>
19
+
20
+ <br />
temporary-login-without-password.php CHANGED
@@ -3,11 +3,11 @@
3
  * Plugin Name: Temporary Login Without Password
4
  * Plugin URI: http://www.storeapps.org/create-secure-login-without-password-for-wordpress/
5
  * Description: Create a temporary login link with any role using which one can access to your sytem without username and password for limited period of time.
6
- * Version: 1.5.13
7
  * Author: StoreApps
8
  * Author URI: https://storeapps.org
9
  * Requires at least: 3.0.1
10
- * Tested up to: 5.0.2
11
  * License: GPLv3
12
  * License URI: http://www.gnu.org/licenses/gpl-3.0.html
13
  * Text Domain: temporary-login-without-password
@@ -26,7 +26,7 @@ if ( ! defined( 'WPINC' ) ) {
26
  * Define constants
27
  */
28
  define( 'WTLWP_PLUGIN_DIR', dirname( __FILE__ ) );
29
- define( 'WTLWP_PLUGIN_VERSION', '1.5.13' );
30
  define( 'WTLWP_PLUGIN_BASE_NAME', plugin_basename( __FILE__ ) );
31
 
32
  /**
3
  * Plugin Name: Temporary Login Without Password
4
  * Plugin URI: http://www.storeapps.org/create-secure-login-without-password-for-wordpress/
5
  * Description: Create a temporary login link with any role using which one can access to your sytem without username and password for limited period of time.
6
+ * Version: 1.5.14
7
  * Author: StoreApps
8
  * Author URI: https://storeapps.org
9
  * Requires at least: 3.0.1
10
+ * Tested up to: 5.0.3
11
  * License: GPLv3
12
  * License URI: http://www.gnu.org/licenses/gpl-3.0.html
13
  * Text Domain: temporary-login-without-password
26
  * Define constants
27
  */
28
  define( 'WTLWP_PLUGIN_DIR', dirname( __FILE__ ) );
29
+ define( 'WTLWP_PLUGIN_VERSION', '1.5.14' );
30
  define( 'WTLWP_PLUGIN_BASE_NAME', plugin_basename( __FILE__ ) );
31
 
32
  /**