Temporary Login Without Password - Version 1.5.12

Version Description

Download this release

Release Info

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

Code changes from version 1.5.10 to 1.5.12

admin/class-wp-temporary-login-without-password-admin.php CHANGED
@@ -527,7 +527,9 @@ class Wp_Temporary_Login_Without_Password_Admin {
527
 
528
  $reviewurl = 'https://wordpress.org/support/plugin/temporary-login-without-password/reviews/';
529
 
530
- $nobugurl = add_query_arg( 'tlwp_nobug', 1, menu_page_url( 'wp-temporary-login-without-password', false ) );
 
 
531
 
532
  echo '<div class="notice notice-warning">';
533
 
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
 
config.txt DELETED
@@ -1,236 +0,0 @@
1
- # Config Variables
2
-
3
- # Format dir_name[key] - not using in plugin-release.sh
4
- dir_name[sm]=$3
5
- dir_name[sr]=$3
6
- dir_name[elwp]=$3
7
- dir_name[oyp]=$3
8
- dir_name[so]=$3
9
- dir_name[srf]=$3
10
- dir_name[bvm]=$3
11
- dir_name[wlwp]=$3
12
- dir_name[acvo]=$3
13
- dir_name[bn]=$3
14
- dir_name[wcr]=$3
15
- dir_name[wcsk]=$3
16
- dir_name[wcsi]=$3
17
- dir_name[wcsr]=$3
18
- dir_name[uvc]=$3
19
- dir_name[sc]=$3
20
- dir_name[cp]=$3
21
- dir_name[ctp]=$3
22
- dir_name[wsrf]=$3
23
- dir_name[seg]=$3
24
- dir_name[es]=$3
25
- dir_name[esaf]=$3
26
- dir_name[nas]=$3
27
- dir_name[tlwp]=$3
28
- dir_name[wpc]=$3
29
- dir_name[kc]=$3
30
- dir_name[cbl]=$3
31
- dir_name[gbl]=$3
32
- dir_name[cm]=$3
33
- dir_name[sfl]=$3
34
- dir_name[ecw]=$3
35
- dir_name[fbt]=$3
36
- dir_name[rvp]=$3
37
- dir_name[saw]=$3
38
- dir_name[saff]=$3
39
- dir_name[se]=$3
40
-
41
-
42
- # Format plugin_key[plugin_name]
43
- plugin_key[smart-manager-for-wp-e-commerce]=sm
44
- plugin_key[smart-reporter-for-wp-e-commerce]=sr
45
- plugin_key[express-login-for-wordpress]=elwp
46
- plugin_key[offer-your-price]=oyp
47
- plugin_key[smart-offers]=so
48
- plugin_key[smart-refunder]=srf
49
- plugin_key[wc-bulk-variations-manager]=bvm
50
- plugin_key[whmcs-login-for-wordpress]=wlwp
51
- plugin_key[woocommerce-auto-complete-virtual-orders]=acvo
52
- plugin_key[woocommerce-buy-now]=bn
53
- plugin_key[woocommerce-renewals]=wcr
54
- plugin_key[woocommerce-serial-key]=wcsk
55
- plugin_key[woocommerce-sold-individually]=wcsi
56
- plugin_key[woocommerce-subscription-reports]=wcsr
57
- plugin_key[woocommerce-update-variations-in-cart]=uvc
58
- plugin_key[woocommerce-smart-coupons]=sc
59
- plugin_key[woocommerce-chained-products]=cp
60
- plugin_key[sa-custom-thank-you-pages]=ctp
61
- plugin_key[woocommerce-smart-refunder]=wsrf
62
- plugin_key[woocommerce-segmentio-connector]=seg
63
- plugin_key[email-subscribers]=es
64
- plugin_key[email-subscribers-advanced-form]=esaf
65
- plugin_key[news-announcement-scroll]=nas
66
- plugin_key[temporary-login-without-password]=tlwp
67
- plugin_key[woocommerce-putler-connector]=wpc
68
- plugin_key[klawoo-connector]=kc
69
- plugin_key[woocommerce-coupons-by-location]=cbl
70
- plugin_key[woocommerce-gateways-by-location]=gbl
71
- plugin_key[woocommerce-coupon-message]=cm
72
- plugin_key[save-for-later-for-woocommerce]=sfl
73
- plugin_key[express-checkout-for-woocommerce-for-virtual-and-downloadable-products]=ecw
74
- plugin_key[frequently-bought-together-for-woo]=fbt
75
- plugin_key[recently-viewed-products-for-woocommerce]=rvp
76
- plugin_key[saved-addresses-for-woocommerce]=saw
77
- plugin_key[smart-affiliates]=saff
78
- plugin_key[smart-emails]=se
79
-
80
-
81
- # Format changelog[$key]
82
- changelog[smt]=readme.txt
83
- changelog[sm]=readme.txt
84
- changelog[sr]=readme.txt
85
- changelog[elwp]=changelog.txt
86
- changelog[oyp]=changelog.txt
87
- changelog[so]=changelog.txt
88
- changelog[srf]=changelog.txt
89
- changelog[bvm]=changelog.txt
90
- changelog[wlwp]=changelog.txt
91
- changelog[acvo]=changelog.txt
92
- changelog[bn]=changelog.txt
93
- changelog[wcr]=changelog.txt
94
- changelog[wcsk]=changelog.txt
95
- changelog[wcsi]=changelog.txt
96
- changelog[wcsr]=changelog.txt
97
- changelog[uvc]=changelog.txt
98
- changelog[sc]=changelog.txt
99
- changelog[cp]=changelog.txt
100
- changelog[ctp]=changelog.txt
101
- changelog[wsrf]=changelog.txt
102
- changelog[seg]=changelog.txt
103
- changelog[es]=readme.txt
104
- changelog[esaf]=readme.txt
105
- changelog[nas]=readme.txt
106
- changelog[tlwp]=readme.txt
107
- changelog[wpc]=readme.txt
108
- changelog[kc]=readme.txt
109
- changelog[cbl]=readme.txt
110
- changelog[gbl]=readme.txt
111
- changelog[cm]=readme.txt
112
- changelog[sfl]=changelog.txt
113
- changelog[ecw]=changelog.txt
114
- changelog[fbt]=changelog.txt
115
- changelog[rvp]=changelog.txt
116
- changelog[saw]=changelog.txt
117
- changelog[saff]=changelog.txt
118
- changelog[se]=changelog.txt
119
-
120
-
121
- # Format mainfile[key]
122
- mainfile[sm]=smart-manager.php
123
- mainfile[smt]=smart-manager.php
124
- mainfile[tlwp]=temporary-login-without-password.php
125
-
126
-
127
- # Format source[key] - not using in plugin-release.sh
128
- source[sm]=$4
129
- source[sr]=$4
130
- source[elwp]=$4
131
- source[oyp]=$4
132
- source[so]=$4
133
- source[srf]=$4
134
- source[bvm]=$4
135
- source[wlwp]=$4
136
- source[acvo]=$4
137
- source[bn]=$4
138
- source[wcr]=$4
139
- source[wcsk]=$4
140
- source[wcsi]=$4
141
- source[wcsr]=$4
142
- source[uvc]=$4
143
- source[sc]=$4
144
- source[cp]=$4
145
- source[ctp]=$4
146
- source[wsrf]=$4
147
- source[seg]=$4
148
- source[es]=$4
149
- source[esaf]=$4
150
- source[nas]=$4
151
- source[tlwp]=$4
152
- source[wpc]=$4
153
- source[kc]=$4
154
- source[cbl]=$4
155
- source[gbl]=$4
156
- source[cm]=$4
157
- source[sfl]=$4
158
- source[ecw]=$4
159
- source[fbt]=$4
160
- source[rvp]=$4
161
- source[saw]=$4
162
- source[saff]=$4
163
- source[se]=$4
164
-
165
-
166
-
167
-
168
-
169
- # Format wp_destination[key] - not using in plugin-release.sh
170
- wp_destination[sm]=~/public_html/plugins.wordpress/
171
- wp_destination[sr]=~/public_html/plugins.wordpress/
172
- wp_destination[es]=~/public_html/plugins.wordpress/
173
- wp_destination[esaf]=~/public_html/plugins.wordpress/
174
- wp_destination[nas]=~/public_html/plugins.wordpress/
175
- wp_destination[tlwp]=~/public_html/plugins.wordpress/
176
- wp_destination[wpc]=~/public_html/plugins.wordpress/
177
- wp_destination[kc]=~/public_html/plugins.wordpress/
178
-
179
-
180
-
181
-
182
-
183
- # Format git_destination[key] - not using in plugin-release.sh
184
- git_destination[sm]=$2
185
- git_destination[sr]=$2
186
- git_destination[es]=$2
187
- git_destination[esaf]=$2
188
- git_destination[nas]=$2
189
- git_destination[tlwp]=$2
190
- git_destination[wpc]=$2
191
- git_destination[kc]=$2
192
- git_destination[elwp]=$2
193
- git_destination[oyp]=$2
194
- git_destination[so]=$2
195
- git_destination[srf]=$2
196
- git_destination[bvm]=$2
197
- git_destination[wlwp]=$2
198
- git_destination[acvo]=$2
199
- git_destination[bn]=$2
200
- git_destination[wcr]=$2
201
- git_destination[wcsk]=$2
202
- git_destination[wcsi]=$2
203
- git_destination[wcsr]=$2
204
- git_destination[uvc]=$2
205
- git_destination[sc]=$2
206
- git_destination[cp]=$2
207
- git_destination[ctp]=$2
208
- git_destination[wsrf]=$2
209
- git_destination[seg]=$2
210
- git_destination[cbl]=$2
211
- git_destination[gbl]=$2
212
- git_destination[sfl]=$2
213
- git_destination[ecw]=$2
214
- git_destination[fbt]=$2
215
- git_destination[rvp]=$2
216
- git_destination[saw]=$2
217
- git_destination[saff]=$2
218
- git_destination[se]=$2
219
-
220
-
221
-
222
-
223
-
224
- # Format woo_destination[key]
225
- woo_destination[sc]=~/public_html/github/
226
- woo_destination[cp]=~/public_html/github/
227
- woo_destination[wsrf]=~/public_html/github/
228
- woo_destination[seg]=~/public_html/github/
229
-
230
-
231
-
232
-
233
-
234
-
235
- # Access Tockens
236
- woo_access_token=b0f95e093b400fe54be2306d2fad42c26cdee063
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/class-wp-temporary-login-without-password-common.php CHANGED
@@ -157,59 +157,76 @@ class Wp_Temporary_Login_Without_Password_Common {
157
  *
158
  * @param string $key
159
  *
 
 
 
 
160
  * @return boolean|array
161
  */
162
- public static function get_expiry_options( $key = '' ) {
163
-
164
- $expiry_duration = array(
165
- 'hour' => __( 'One Hour', 'temporary-login-without-password' ),
166
- '3_hours' => __( 'Three Hours', 'temporary-login-without-password' ),
167
- 'day' => __( 'One Day', 'temporary-login-without-password' ),
168
- '3_days' => __( 'Three Days', 'temporary-login-without-password' ),
169
- 'week' => __( 'One Week', 'temporary-login-without-password' ),
170
- 'month' => __( 'One Month', 'temporary-login-without-password' ),
171
- 'custom_date' => __( 'Custom Date', 'temporary-login-without-password' ),
172
  );
173
 
174
- if ( empty( $key ) ) {
175
- return $expiry_duration;
176
- } elseif ( isset( $expiry_duration[ $key ] ) ) {
177
- return $expiry_duration[ $key ];
178
- } else {
179
- return array(
180
- 'no_option_found' => __( 'No Option Found', 'temporary-login-without-password' ),
181
- );
182
  }
183
 
 
 
 
 
184
  }
185
 
186
  /**
187
  * Get Expire duration dropdown
188
  *
189
  * @param string $selected
 
 
 
190
  */
191
  static function get_expiry_duration_html( $selected = '', $excluded = array() ) {
192
 
193
- $p = '';
194
  $r = '';
195
 
196
- $expiry_duration = self::get_expiry_options();
197
 
198
- foreach ( $expiry_duration as $key => $label ) {
199
 
200
- // We don't need to add option into dropdown if it's excluded
201
- if(!empty($excluded) && in_array($key, $excluded)) {
202
- continue;
203
- }
 
 
 
 
 
 
 
 
 
 
 
 
204
 
205
- if ( $selected == $key ) {
206
- $p = "\n\t<option selected='selected' value='" . esc_attr( $key ) . "'>$label</option>";
207
- } else {
208
- $r .= "\n\t<option value='" . esc_attr( $key ) . "'>$label</option>";
209
  }
 
210
  }
211
 
212
- echo $p . $r;
213
 
214
  }
215
 
@@ -236,25 +253,23 @@ class Wp_Temporary_Login_Without_Password_Common {
236
  */
237
  public static function get_user_expire_time( $expiry_option = 'day', $date = '' ) {
238
 
239
- $timestamps = array(
240
- '3_days' => DAY_IN_SECONDS * 3,
241
- 'day' => DAY_IN_SECONDS,
242
- '3_hours' => HOUR_IN_SECONDS * 3,
243
- 'hour' => HOUR_IN_SECONDS,
244
- 'week' => WEEK_IN_SECONDS,
245
- 'month' => MONTH_IN_SECONDS,
246
- 'custom_date' => strtotime( $date ),
247
- );
248
-
249
- $expiry_option = in_array( $expiry_option, array_keys( $timestamps ) ) ? $expiry_option : 'day';
250
 
251
- $current_timestamp = self::get_current_gmt_timestamp();
252
 
253
  if ( 'custom_date' === $expiry_option ) {
 
 
 
254
  $current_timestamp = 0;
255
- }
 
256
 
257
- $timestamp = $timestamps[ $expiry_option ];
 
 
 
 
258
 
259
  return $current_timestamp + floatval( $timestamp );
260
 
157
  *
158
  * @param string $key
159
  *
160
+ * @since 1.0.0
161
+ *
162
+ * @updated: 1.5.11
163
+ *
164
  * @return boolean|array
165
  */
166
+ public static function get_expiry_options() {
167
+
168
+ $expiry_options = array(
169
+ 'hour' => array( 'label' => __( 'One Hour', 'temporary-login-without-password' ), 'timestamp' => HOUR_IN_SECONDS, 'order' => 5 ),
170
+ '3_hours' => array( 'label' => __( 'Three Hours', 'temporary-login-without-password' ), 'timestamp' => HOUR_IN_SECONDS * 3, 'order' => 10 ),
171
+ 'day' => array( 'label' => __( 'One Day', 'temporary-login-without-password' ), 'timestamp' => DAY_IN_SECONDS, 'order' => 15 ),
172
+ '3_days' => array( 'label' => __( 'Three Days', 'temporary-login-without-password' ), 'timestamp' => DAY_IN_SECONDS * 3, 'order' => 20 ),
173
+ 'week' => array( 'label' => __( 'One Week', 'temporary-login-without-password' ), 'timestamp' => WEEK_IN_SECONDS, 'order' => 25 ),
174
+ 'month' => array( 'label' => __( 'One Month', 'temporary-login-without-password' ), 'timestamp' => MONTH_IN_SECONDS, 'order' => 30 ),
175
+ 'custom_date' => array( 'label' => __( 'Custom Date', 'temporary-login-without-password' ), 'timestamp' => 0, 'order' => 35 )
176
  );
177
 
178
+ // Now, one can add their own options.
179
+ $expiry_options = apply_filters( 'tlwp_expiry_options', $expiry_options );
180
+
181
+ // Get Order options to sort $expiry_options array by it's array
182
+ foreach ( $expiry_options as $key => $options ) {
183
+ $orders[ $key ] = ! empty( $options['order'] ) ? $options['order'] : 100;
 
 
184
  }
185
 
186
+ // Sort $expiry_options array by it's order value
187
+ array_multisort( $orders, SORT_ASC, $expiry_options );
188
+
189
+ return $expiry_options;
190
  }
191
 
192
  /**
193
  * Get Expire duration dropdown
194
  *
195
  * @param string $selected
196
+ *
197
+ * @update: 1.5.11
198
+ * @return string
199
  */
200
  static function get_expiry_duration_html( $selected = '', $excluded = array() ) {
201
 
 
202
  $r = '';
203
 
204
+ $expiry_options = self::get_expiry_options();
205
 
206
+ if ( is_array( $expiry_options ) && count( $expiry_options ) > 0 ) {
207
 
208
+ foreach ( $expiry_options as $key => $option ) {
209
+
210
+ // We don't need to add option into dropdown if it's excluded
211
+ if ( ! empty( $excluded ) && in_array( $key, $excluded ) ) {
212
+ continue;
213
+ }
214
+
215
+ $label = ! empty( $option['label'] ) ? $option['label'] : '';
216
+
217
+ $r .= "\n\t<option ";
218
+
219
+ if ( $selected === $key ) {
220
+ $r .= "selected='selected' ";
221
+ }
222
+
223
+ $r .= "value='" . esc_attr( $key ) . "'>$label</option>";
224
 
 
 
 
 
225
  }
226
+
227
  }
228
 
229
+ echo $r;
230
 
231
  }
232
 
253
  */
254
  public static function get_user_expire_time( $expiry_option = 'day', $date = '' ) {
255
 
256
+ $expiry_options = self::get_expiry_options();
 
 
 
 
 
 
 
 
 
 
257
 
258
+ $expiry_option = in_array( $expiry_option, array_keys( $expiry_options ) ) ? $expiry_option : 'day';
259
 
260
  if ( 'custom_date' === $expiry_option ) {
261
+
262
+ // For the custom_date option we need to simply expire login at particular date
263
+ // So, we don't need to do addition in the current timestamp
264
  $current_timestamp = 0;
265
+ $timestamp = strtotime( $date );
266
+ } else {
267
 
268
+ // We need current gmt timestamp and from now we need to expire temporary login
269
+ // after specified time. So, we need to add into current timestamp
270
+ $current_timestamp = self::get_current_gmt_timestamp();
271
+ $timestamp = $expiry_options[ $expiry_option ]['timestamp'];
272
+ }
273
 
274
  return $current_timestamp + floatval( $timestamp );
275
 
languages/temporary-login-without-password-es_ES.mo ADDED
Binary file
languages/temporary-login-without-password-es_ES.po ADDED
@@ -0,0 +1,327 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Translation of Plugins - Temporary Login Without Password - Stable (latest release) in Spanish (Spain)
2
+ # This file is distributed under the same license as the Plugins - Temporary Login Without Password - Stable (latest release) package.
3
+ msgid ""
4
+ msgstr ""
5
+ "PO-Revision-Date: 2018-09-12 07:31:59+0000\n"
6
+ "MIME-Version: 1.0\n"
7
+ "Content-Type: text/plain; charset=UTF-8\n"
8
+ "Content-Transfer-Encoding: 8bit\n"
9
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
10
+ "X-Generator: GlotPress/2.4.0-alpha\n"
11
+ "Language: es\n"
12
+ "Project-Id-Version: Plugins - Temporary Login Without Password - Stable (latest release)\n"
13
+
14
+ #: templates/temporary-logins-settings.php:36
15
+ msgid "Default Expiry Time"
16
+ msgstr ""
17
+
18
+ #: includes/class-wp-temporary-login-without-password-common.php:846
19
+ msgid "Click the following link to log into the system:"
20
+ msgstr ""
21
+
22
+ #: includes/class-wp-temporary-login-without-password-common.php:845
23
+ msgid "Hello,"
24
+ msgstr ""
25
+
26
+ #: includes/class-wp-temporary-login-without-password-layout.php:173
27
+ msgid "Email login link"
28
+ msgstr ""
29
+
30
+ #: includes/class-wp-temporary-login-without-password-common.php:847
31
+ msgid "Temporary Login Link"
32
+ msgstr ""
33
+
34
+ #: admin/class-wp-temporary-login-without-password-admin.php:575
35
+ #: templates/admin-settings.php:11
36
+ msgid "Settings"
37
+ msgstr ""
38
+
39
+ #: admin/class-wp-temporary-login-without-password-admin.php:603
40
+ msgid "Temporary Access"
41
+ msgstr ""
42
+
43
+ #: admin/class-wp-temporary-login-without-password-admin.php:386
44
+ msgid "Email is already in use"
45
+ msgstr ""
46
+
47
+ #: templates/update-login.php:67
48
+ msgid "Extend Expiry"
49
+ msgstr ""
50
+
51
+ #: templates/update-login.php:14
52
+ msgid "Email"
53
+ msgstr ""
54
+
55
+ #: templates/update-login.php:9
56
+ msgid "Update Temporary Login"
57
+ msgstr ""
58
+
59
+ #: includes/class-wp-temporary-login-without-password-layout.php:169
60
+ msgid "Edit"
61
+ msgstr ""
62
+
63
+ #: admin/class-wp-temporary-login-without-password-admin.php:394
64
+ msgid "Login updated successfully!"
65
+ msgstr ""
66
+
67
+ #: templates/temporary-logins-settings.php:15
68
+ msgid "select roles from which you want to create a temporary login"
69
+ msgstr "selecciona los perfiles para los que deseas crear un acceso temporal"
70
+
71
+ #: templates/temporary-logins-settings.php:14
72
+ msgid "Visible Roles"
73
+ msgstr "Perfiles visibles"
74
+
75
+ #: templates/new-login.php:45 templates/update-login.php:46
76
+ msgid "Grant this user super admin privileges for the Network."
77
+ msgstr "Conceder a este usuario privilegios de super administrador para la red."
78
+
79
+ #: includes/class-wp-temporary-login-without-password-common.php:180
80
+ msgid "No Option Found"
81
+ msgstr "No se encontró ninguna opción"
82
+
83
+ #: templates/temporary-logins-settings.php:26
84
+ msgid "Default Role"
85
+ msgstr "Perfil por defecto"
86
+
87
+ #: templates/temporary-logins-settings.php:9
88
+ msgid "Temporary Login Settings"
89
+ msgstr "Ajustes de accesos temporales"
90
+
91
+ #: includes/class-wp-temporary-login-without-password-layout.php:84
92
+ #: templates/new-login.php:42 templates/update-login.php:42
93
+ msgid "Super Admin"
94
+ msgstr "Super administrador"
95
+
96
+ #: admin/class-wp-temporary-login-without-password-admin.php:398
97
+ msgid "Settings have been updated successfully"
98
+ msgstr "Los ajustes se han actualizado correctamente"
99
+
100
+ #. Author URI of the plugin/theme
101
+ msgid "https://storeapps.org"
102
+ msgstr "https://storeapps.org"
103
+
104
+ #. Author of the plugin/theme
105
+ msgid "StoreApps"
106
+ msgstr "StoreApps"
107
+
108
+ #. Description of the plugin/theme
109
+ msgid "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."
110
+ msgstr "Crea un enlace de acceso temporal con cualquier perfil mediante el cual poder acceder a tu sistema por un período de tiempo limitado sin utilizar nombre de usuario y contraseña."
111
+
112
+ #. Plugin URI of the plugin/theme
113
+ msgid "http://www.storeapps.org/create-secure-login-without-password-for-wordpress/"
114
+ msgstr "http://www.storeapps.org/create-secure-login-without-password-for-wordpress/"
115
+
116
+ #. Plugin Name of the plugin/theme
117
+ msgid "Temporary Login Without Password"
118
+ msgstr "Temporary Login Without Password"
119
+
120
+ #: templates/new-login.php:84 templates/update-login.php:88
121
+ msgid "Cancel"
122
+ msgstr "Cancelar"
123
+
124
+ #: templates/new-login.php:83 templates/update-login.php:87
125
+ msgid "or"
126
+ msgstr "o"
127
+
128
+ #: templates/new-login.php:83 templates/temporary-logins-settings.php:49
129
+ #: templates/update-login.php:87
130
+ msgid "Submit"
131
+ msgstr "Enviar"
132
+
133
+ #: templates/new-login.php:32 templates/update-login.php:32
134
+ msgid "Last Name"
135
+ msgstr "Apellidos"
136
+
137
+ #: templates/new-login.php:23 templates/update-login.php:23
138
+ msgid "First Name"
139
+ msgstr "Nombre"
140
+
141
+ #: templates/new-login.php:14
142
+ msgid "Email*"
143
+ msgstr "Correo eletrónico*"
144
+
145
+ #: templates/new-login.php:9
146
+ msgid "Create a new Temporary Login"
147
+ msgstr "Crear un nuevo acceso temporal"
148
+
149
+ #: templates/admin-settings.php:47
150
+ msgid "User can directly login to WordPress admin panel without username and password by opening this link."
151
+ msgstr "El usuario puede acceder directamente al escritorio de WordPress sin nombre de usuario y contraseña abriendo este enlace."
152
+
153
+ #: templates/admin-settings.php:43
154
+ msgid "Click To Copy"
155
+ msgstr "Haz clic para copiar"
156
+
157
+ #: templates/admin-settings.php:40
158
+ msgid "Here's a temporary login link"
159
+ msgstr "Aquí hay un enlace de acceso temporal"
160
+
161
+ #: templates/admin-settings.php:18
162
+ msgid "Create New"
163
+ msgstr "Crear nuevo"
164
+
165
+ #: public/class-wp-temporary-login-without-password-public.php:146
166
+ msgid "ERROR: User can't find."
167
+ msgstr "ERROR: Usuario no encontrado."
168
+
169
+ #: public/class-wp-temporary-login-without-password-public.php:122
170
+ msgid "You don't have permission to access this page"
171
+ msgstr "No tienes permiso para acceder a esta página"
172
+
173
+ #: public/class-wp-temporary-login-without-password-public.php:51
174
+ msgid "Authentication failed"
175
+ msgstr "Error de autenticación"
176
+
177
+ #: public/class-wp-temporary-login-without-password-public.php:50
178
+ msgid "Token empty"
179
+ msgstr "Token vacio"
180
+
181
+ #: includes/class-wp-temporary-login-without-password-layout.php:174
182
+ msgid "Copy login link"
183
+ msgstr "Copiar enlace de acceso"
184
+
185
+ #: includes/class-wp-temporary-login-without-password-layout.php:168
186
+ msgid "Delete"
187
+ msgstr "Borrar"
188
+
189
+ #: includes/class-wp-temporary-login-without-password-layout.php:163
190
+ msgid "Disable"
191
+ msgstr "Desactivar"
192
+
193
+ #: includes/class-wp-temporary-login-without-password-layout.php:165
194
+ msgid "Reactivate for one day"
195
+ msgstr "Reactivar por un día"
196
+
197
+ #: includes/class-wp-temporary-login-without-password-layout.php:73
198
+ msgid "Not yet logged in"
199
+ msgstr "Aún no se ha conectado"
200
+
201
+ #: includes/class-wp-temporary-login-without-password-layout.php:48
202
+ msgid "You have not created any temporary logins yet."
203
+ msgstr "Aún no has creado ningún acceso temporal."
204
+
205
+ #: includes/class-wp-temporary-login-without-password-layout.php:30
206
+ msgid "Actions"
207
+ msgstr "Acciones"
208
+
209
+ #: includes/class-wp-temporary-login-without-password-layout.php:29
210
+ #: templates/new-login.php:63
211
+ msgid "Expiry"
212
+ msgstr "Vencimiento"
213
+
214
+ #: includes/class-wp-temporary-login-without-password-layout.php:28
215
+ msgid "Last Logged In"
216
+ msgstr "Última conexión"
217
+
218
+ #: includes/class-wp-temporary-login-without-password-layout.php:27
219
+ #: templates/new-login.php:51 templates/update-login.php:52
220
+ msgid "Role"
221
+ msgstr "Perfil"
222
+
223
+ #: includes/class-wp-temporary-login-without-password-layout.php:26
224
+ msgid "Users"
225
+ msgstr "Usuarios"
226
+
227
+ #: includes/class-wp-temporary-login-without-password-common.php:647
228
+ #: includes/class-wp-temporary-login-without-password-common.php:684
229
+ msgid "Expired"
230
+ msgstr "Caducado"
231
+
232
+ #: includes/class-wp-temporary-login-without-password-common.php:171
233
+ msgid "Custom Date"
234
+ msgstr "Fecha personalizada"
235
+
236
+ #: includes/class-wp-temporary-login-without-password-common.php:170
237
+ msgid "One Month"
238
+ msgstr "Un mes"
239
+
240
+ #: includes/class-wp-temporary-login-without-password-common.php:169
241
+ msgid "One Week"
242
+ msgstr "Una semana"
243
+
244
+ #: includes/class-wp-temporary-login-without-password-common.php:165
245
+ msgid "One Hour"
246
+ msgstr "Una hora"
247
+
248
+ #: includes/class-wp-temporary-login-without-password-common.php:166
249
+ msgid "Three Hours"
250
+ msgstr "Tres horas"
251
+
252
+ #: includes/class-wp-temporary-login-without-password-common.php:167
253
+ msgid "One Day"
254
+ msgstr "Un dia"
255
+
256
+ #: includes/class-wp-temporary-login-without-password-common.php:168
257
+ msgid "Three Days"
258
+ msgstr "Tres días"
259
+
260
+ #: admin/class-wp-temporary-login-without-password-admin.php:474
261
+ msgid "Thank you for using %s."
262
+ msgstr "Gracias por utilizar %s."
263
+
264
+ #: admin/class-wp-temporary-login-without-password-admin.php:472
265
+ msgid "Thank You :) "
266
+ msgstr "Gracias :) "
267
+
268
+ #: admin/class-wp-temporary-login-without-password-admin.php:472
269
+ msgid "If you like <strong>Temporary Login Without Password</strong> plugin, please leave us a %s rating. A huge thanks in advance!"
270
+ msgstr "Si te gusta el plugin <strong>Temporary Login Without Password</strong>, por favor déjanos una valoración de %s. ¡Muchas gracias de antemano!"
271
+
272
+ #: admin/class-wp-temporary-login-without-password-admin.php:399
273
+ msgid "Success!"
274
+ msgstr "¡Lo lograste!"
275
+
276
+ #: admin/class-wp-temporary-login-without-password-admin.php:397
277
+ msgid "Login enabled successfully!"
278
+ msgstr "¡Acceso activado correctamente!"
279
+
280
+ #: admin/class-wp-temporary-login-without-password-admin.php:396
281
+ msgid "Login disabled successfully!"
282
+ msgstr "¡Acceso desactivado correctamente!"
283
+
284
+ #: admin/class-wp-temporary-login-without-password-admin.php:395
285
+ msgid "Login deleted successfully!"
286
+ msgstr "¡Acceso eliminado correctamente!"
287
+
288
+ #: admin/class-wp-temporary-login-without-password-admin.php:393
289
+ msgid "Login created successfully!"
290
+ msgstr "¡Acceso creado correctamente!"
291
+
292
+ #: admin/class-wp-temporary-login-without-password-admin.php:392
293
+ msgid "Unknown error occured"
294
+ msgstr "Se produjo un error desconocido"
295
+
296
+ #: admin/class-wp-temporary-login-without-password-admin.php:391
297
+ msgid "Invalid action"
298
+ msgstr "Acción no válida"
299
+
300
+ #: admin/class-wp-temporary-login-without-password-admin.php:390
301
+ msgid "Nonce failed"
302
+ msgstr "Error de Nonce"
303
+
304
+ #: admin/class-wp-temporary-login-without-password-admin.php:389
305
+ msgid "User you are trying to delete is not temporary"
306
+ msgstr "El usuario que intentas eliminar no es temporal"
307
+
308
+ #: admin/class-wp-temporary-login-without-password-admin.php:388
309
+ msgid "Please enter valid email address"
310
+ msgstr "Por favor, introduce una dirección de correo electrónico válida"
311
+
312
+ #: admin/class-wp-temporary-login-without-password-admin.php:387
313
+ msgid "Please enter valid email address. Email field should not be empty"
314
+ msgstr "Por favor, introduce una dirección de correo electrónico válida. El campo de correo electrónico no debe estar vacío"
315
+
316
+ #: admin/class-wp-temporary-login-without-password-admin.php:385
317
+ msgid "You do not have permission to create a temporary login"
318
+ msgstr "No tienes permiso para crear un acceso temporal"
319
+
320
+ #: admin/class-wp-temporary-login-without-password-admin.php:384
321
+ msgid "User creation failed"
322
+ msgstr "La creación del usuario ha fallado"
323
+
324
+ #: admin/class-wp-temporary-login-without-password-admin.php:84
325
+ #: templates/admin-settings.php:10 templates/admin-settings.php:17
326
+ msgid "Temporary Logins"
327
+ msgstr "Accesos temporales"
languages/temporary-login-without-password-zh_TW.mo ADDED
Binary file
languages/temporary-login-without-password-zh_TW.po ADDED
@@ -0,0 +1,348 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Translation of Plugins - Temporary Login Without Password - Stable (latest release) in Chinese (Taiwan)
2
+ # This file is distributed under the same license as the Plugins - Temporary Login Without Password - Stable (latest release) package.
3
+ msgid ""
4
+ msgstr ""
5
+ "PO-Revision-Date: 2018-09-19 10:46+0000\n"
6
+ "MIME-Version: 1.0\n"
7
+ "Content-Type: text/plain; charset=UTF-8\n"
8
+ "Content-Transfer-Encoding: 8bit\n"
9
+ "Plural-Forms: nplurals=1; plural=0;\n"
10
+ "X-Generator: Loco https://localise.biz/\n"
11
+ "Language: zh_TW\n"
12
+ "Project-Id-Version: Plugins - Temporary Login Without Password - Stable "
13
+ "(latest release)\n"
14
+ "Report-Msgid-Bugs-To: \n"
15
+ "POT-Creation-Date: 2018-08-08 12:11+0000\n"
16
+ "Last-Translator: Malay Putler <malayladu@gmail.com>\n"
17
+ "Language-Team: 繁體中文"
18
+
19
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:84
20
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:10
21
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:17
22
+ msgid "Temporary Logins"
23
+ msgstr "短期登入使用者"
24
+
25
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:384
26
+ msgid "User creation failed"
27
+ msgstr "無法建立使用者"
28
+
29
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:385
30
+ msgid "You do not have permission to create a temporary login"
31
+ msgstr "你沒有建立短期登入使用者的權限"
32
+
33
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:386
34
+ msgid "Email is already in use"
35
+ msgstr "這個電子郵件地址已由其他使用者使用"
36
+
37
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:387
38
+ msgid "Please enter valid email address. Email field should not be empty"
39
+ msgstr "請輸入有效的電子郵件地址。[電子郵件地址] 欄位不能留空。"
40
+
41
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:388
42
+ msgid "Please enter valid email address"
43
+ msgstr "請輸入有效的電子郵件地址"
44
+
45
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:389
46
+ msgid "User you are trying to delete is not temporary"
47
+ msgstr "目前要刪除的使用者並不是短期登入使用者"
48
+
49
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:390
50
+ msgid "Nonce failed"
51
+ msgstr "隨機碼驗證失敗"
52
+
53
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:391
54
+ msgid "Invalid action"
55
+ msgstr "無效的操作"
56
+
57
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:392
58
+ msgid "Unknown error occured"
59
+ msgstr "發生未知的錯誤"
60
+
61
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:393
62
+ msgid "Login created successfully!"
63
+ msgstr "成功建立短期登入使用者!"
64
+
65
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:394
66
+ msgid "Login updated successfully!"
67
+ msgstr "成功更新短期登入使用者!"
68
+
69
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:395
70
+ msgid "Login deleted successfully!"
71
+ msgstr "成功刪除短期登入使用者!"
72
+
73
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:396
74
+ msgid "Login disabled successfully!"
75
+ msgstr "成功停用短期登入使用者!"
76
+
77
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:397
78
+ msgid "Login enabled successfully!"
79
+ msgstr "成功啟用短期登入使用者!"
80
+
81
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:398
82
+ msgid "Settings have been updated successfully"
83
+ msgstr "設定已成功儲存。"
84
+
85
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:399
86
+ msgid "Success!"
87
+ msgstr "已順利完成!"
88
+
89
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:472
90
+ #, php-format
91
+ msgid ""
92
+ "If you like <strong>Temporary Login Without Password</strong> plugin, please "
93
+ "leave us a %s rating. A huge thanks in advance!"
94
+ msgstr ""
95
+ "如果 <strong>Temporary Login Without Password</strong> 外掛對這個網站有所幫助,請給我們一個 %s "
96
+ "評價,不勝感激之至。"
97
+
98
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:472
99
+ msgid "Thank You :) "
100
+ msgstr "謝謝你 :) "
101
+
102
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:474
103
+ #, php-format
104
+ msgid "Thank you for using %s."
105
+ msgstr "感謝你使用 %s。"
106
+
107
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:603
108
+ msgid "Temporary Access"
109
+ msgstr "短期存取"
110
+
111
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:165
112
+ msgid "One Hour"
113
+ msgstr "1 小時"
114
+
115
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:166
116
+ msgid "Three Hours"
117
+ msgstr "3 小時"
118
+
119
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:167
120
+ msgid "One Day"
121
+ msgstr "1 天"
122
+
123
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:168
124
+ msgid "Three Days"
125
+ msgstr "3 天"
126
+
127
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:169
128
+ msgid "One Week"
129
+ msgstr "1 週"
130
+
131
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:170
132
+ msgid "One Month"
133
+ msgstr "1 個月"
134
+
135
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:171
136
+ msgid "Custom Date"
137
+ msgstr "自訂日期"
138
+
139
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:180
140
+ msgid "No Option Found"
141
+ msgstr "找不到可用的選項"
142
+
143
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:647
144
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:684
145
+ msgid "Expired"
146
+ msgstr "已到期"
147
+
148
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:845
149
+ msgid "Hello,"
150
+ msgstr "你好,"
151
+
152
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:846
153
+ msgid "Click the following link to log into the system:"
154
+ msgstr "請點擊以下連結以登入系統:"
155
+
156
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:847
157
+ msgid "Temporary Login Link"
158
+ msgstr "短期登入連結"
159
+
160
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:26
161
+ msgid "Users"
162
+ msgstr "使用者"
163
+
164
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:27
165
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new-login.php:51
166
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update-login.php:52
167
+ msgid "Role"
168
+ msgstr "使用者角色"
169
+
170
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:28
171
+ msgid "Last Logged In"
172
+ msgstr "最後登入時間"
173
+
174
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:29
175
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new-login.php:63
176
+ msgid "Expiry"
177
+ msgstr "到期時間"
178
+
179
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:30
180
+ msgid "Actions"
181
+ msgstr "可用操作"
182
+
183
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:48
184
+ msgid "You have not created any temporary logins yet."
185
+ msgstr "尚未建立任何短期登入使用者。"
186
+
187
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:73
188
+ msgid "Not yet logged in"
189
+ msgstr "尚無登入記錄"
190
+
191
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:84
192
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new-login.php:42
193
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update-login.php:42
194
+ msgid "Super Admin"
195
+ msgstr "多站網路管理員"
196
+
197
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:163
198
+ msgid "Disable"
199
+ msgstr "停用"
200
+
201
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:165
202
+ msgid "Reactivate for one day"
203
+ msgstr "重新啟用 1 天"
204
+
205
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:168
206
+ msgid "Delete"
207
+ msgstr "刪除"
208
+
209
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:169
210
+ msgid "Edit"
211
+ msgstr "編輯"
212
+
213
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:173
214
+ msgid "Email login link"
215
+ msgstr "透過電子郵件傳送短期登入連結"
216
+
217
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:174
218
+ msgid "Copy login link"
219
+ msgstr "複製短期登入連結"
220
+
221
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/public/class-wp-temporary-login-without-password-public.php:50
222
+ msgid "Token empty"
223
+ msgstr "存取權杖為空"
224
+
225
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/public/class-wp-temporary-login-without-password-public.php:51
226
+ msgid "Authentication failed"
227
+ msgstr "驗證失敗"
228
+
229
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/public/class-wp-temporary-login-without-password-public.php:122
230
+ msgid "You don't have permission to access this page"
231
+ msgstr "你沒有存取這個頁面的權限"
232
+
233
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:11
234
+ msgid "Settings"
235
+ msgstr "設定"
236
+
237
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:18
238
+ msgid "Create New"
239
+ msgstr "建立短期登入使用者"
240
+
241
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:40
242
+ msgid "Here's a temporary login link"
243
+ msgstr "以下為短期登入連結"
244
+
245
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:43
246
+ msgid "Click To Copy"
247
+ msgstr "點擊以複製"
248
+
249
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:47
250
+ msgid ""
251
+ "User can directly login to WordPress admin panel without username and "
252
+ "password by opening this link."
253
+ msgstr "得到這個連結的使用者無須使用者名稱及密碼,開啟這個連結便可直接登入 WordPress 網站管理後台。"
254
+
255
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new-login.php:9
256
+ msgid "Create a new Temporary Login"
257
+ msgstr "建立短期登入使用者"
258
+
259
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new-login.php:14
260
+ msgid "Email*"
261
+ msgstr "電子郵件地址*"
262
+
263
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new-login.php:23
264
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update-login.php:23
265
+ msgid "First Name"
266
+ msgstr "名字"
267
+
268
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new-login.php:32
269
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update-login.php:32
270
+ msgid "Last Name"
271
+ msgstr "姓氏"
272
+
273
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new-login.php:45
274
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update-login.php:46
275
+ msgid "Grant this user super admin privileges for the Network."
276
+ msgstr "將這個多站網路的管理員權限授予這位使用者。"
277
+
278
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new-login.php:83
279
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/temporary-logins-settings.php:49
280
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update-login.php:87
281
+ msgid "Submit"
282
+ msgstr "儲存設定"
283
+
284
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new-login.php:83
285
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update-login.php:87
286
+ msgid "or"
287
+ msgstr "或"
288
+
289
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new-login.php:84
290
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update-login.php:88
291
+ msgid "Cancel"
292
+ msgstr "取消"
293
+
294
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/temporary-logins-settings.php:9
295
+ msgid "Temporary Login Settings"
296
+ msgstr "短期登入使用者設定"
297
+
298
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/temporary-logins-settings.php:14
299
+ msgid "Visible Roles"
300
+ msgstr "可設定的使用者角色"
301
+
302
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/temporary-logins-settings.php:15
303
+ msgid "select roles from which you want to create a temporary login"
304
+ msgstr "請選取需要建立短期登入使用者的使用者角色"
305
+
306
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/temporary-logins-settings.php:26
307
+ msgid "Default Role"
308
+ msgstr "預設使用者角色"
309
+
310
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/temporary-logins-settings.php:36
311
+ msgid "Default Expiry Time"
312
+ msgstr "預設到期時間"
313
+
314
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update-login.php:9
315
+ msgid "Update Temporary Login"
316
+ msgstr "更新短期登入使用者"
317
+
318
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update-login.php:14
319
+ msgid "Email"
320
+ msgstr "電子郵件地址"
321
+
322
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update-login.php:67
323
+ msgid "Extend Expiry"
324
+ msgstr "延長到期時間"
325
+
326
+ #. Plugin Name of the plugin/theme
327
+ msgid "Temporary Login Without Password"
328
+ msgstr "Temporary Login Without Password"
329
+
330
+ #. Description of the plugin/theme
331
+ msgid ""
332
+ "Create a temporary login link with any role using which one can access to "
333
+ "your sytem without username and password for limited period of time."
334
+ msgstr "這個外掛能以指定的使用者角色建立短期登入連結,在有限的期間內無須使用者名稱及密碼,直接登入系統並取得指定的網站權限。"
335
+
336
+ #. Plugin URI of the plugin/theme
337
+ msgid ""
338
+ "http://www.storeapps.org/create-secure-login-without-password-for-wordpress/"
339
+ msgstr ""
340
+ "https://www.storeapps.org/create-secure-login-without-password-for-wordpress/"
341
+
342
+ #. Author of the plugin/theme
343
+ msgid "StoreApps"
344
+ msgstr "StoreApps"
345
+
346
+ #. Author URI of the plugin/theme
347
+ msgid "https://storeapps.org"
348
+ msgstr "https://storeapps.org"
public/class-wp-temporary-login-without-password-public.php CHANGED
@@ -61,7 +61,7 @@ class Wp_Temporary_Login_Without_Password_Public {
61
  /**
62
  * Initialize tlwp
63
  *
64
- * Hooked to init filter to initilize tlwp
65
  *
66
  * @since 1.0.0
67
  *
@@ -69,48 +69,63 @@ class Wp_Temporary_Login_Without_Password_Public {
69
  */
70
  public function init_wtlwp() {
71
 
72
- if ( ! is_user_logged_in() && ! empty( $_GET['wtlwp_token'] ) ) { // phpcs:ignore
73
 
74
  $wtlwp_token = sanitize_key( $_GET['wtlwp_token'] ); // Input var okay.
75
  $users = Wp_Temporary_Login_Without_Password_Common::get_valid_user_based_on_wtlwp_token( $wtlwp_token );
76
 
 
 
 
 
77
 
78
- if ( empty( $users ) ) {
79
- wp_safe_redirect( home_url() );
80
- } else {
81
- $user = $users[0];
 
 
 
 
 
 
 
 
82
 
83
- $user_id = $user->ID;
84
- $user_login = $user->login;
85
- update_user_meta( $user_id, '_wtlwp_last_login', Wp_Temporary_Login_Without_Password_Common::get_current_gmt_timestamp() ); // phpcs:ignore
86
- wp_set_current_user( $user_id, $user_login );
87
- wp_set_auth_cookie( $user_id );
88
 
89
- $redirect_to = isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : admin_url();
90
- $redirect_to_url = apply_filters( 'login_redirect', $redirect_to, false, $user ); // phpcs:ignore
91
 
92
- do_action( 'wp_login', $user_login, $user );
93
 
94
  // If empty redirect user to admin page.
95
  if ( ! empty( $redirect_to_url ) ) {
96
  $redirect_to = $redirect_to_url;
97
  }
98
 
99
- wp_safe_redirect( $redirect_to ); // Redirect to given url after successfull login.
 
 
100
  }
 
 
101
  exit();
 
102
  }
103
 
 
104
  if ( is_user_logged_in() ) {
105
 
106
  $user_id = get_current_user_id();
107
  if ( ! empty( $user_id ) && Wp_Temporary_Login_Without_Password_Common::is_valid_temporary_login( $user_id, false ) ) {
108
  if ( Wp_Temporary_Login_Without_Password_Common::is_login_expired( $user_id ) ) {
109
- die('Check');
110
  wp_logout();
111
  wp_safe_redirect( home_url() );
112
-
113
-
114
  exit();
115
  } else {
116
 
@@ -125,6 +140,7 @@ class Wp_Temporary_Login_Without_Password_Public {
125
  }
126
  }
127
  }
 
128
  }
129
 
130
  /**
61
  /**
62
  * Initialize tlwp
63
  *
64
+ * Hooked to init actione3 to initilize tlwp
65
  *
66
  * @since 1.0.0
67
  *
69
  */
70
  public function init_wtlwp() {
71
 
72
+ if(! empty($_GET['wtlwp_token'] )) {
73
 
74
  $wtlwp_token = sanitize_key( $_GET['wtlwp_token'] ); // Input var okay.
75
  $users = Wp_Temporary_Login_Without_Password_Common::get_valid_user_based_on_wtlwp_token( $wtlwp_token );
76
 
77
+ $temporary_user = '';
78
+ if( !empty($users)) {
79
+ $temporary_user = $users[0];
80
+ }
81
 
82
+ if(!empty($temporary_user)) {
83
+
84
+ $temporary_user_id = $temporary_user->ID;
85
+ $do_login = true;
86
+ if(is_user_logged_in()) {
87
+ $current_user_id = get_current_user_id();
88
+ if($temporary_user_id !== $current_user_id) {
89
+ wp_logout();
90
+ } else {
91
+ $do_login = false;
92
+ }
93
+ }
94
 
95
+ if($do_login) {
96
+ $temporary_user_login = $temporary_user->login;
97
+ update_user_meta( $temporary_user_id, '_wtlwp_last_login', Wp_Temporary_Login_Without_Password_Common::get_current_gmt_timestamp() ); // phpcs:ignore
98
+ wp_set_current_user( $temporary_user_id, $temporary_user_login );
99
+ wp_set_auth_cookie( $temporary_user_id );
100
 
101
+ do_action( 'wp_login', $temporary_user_login, $temporary_user );
102
+ }
103
 
104
+ $redirect_to_url = (isset( $_REQUEST['redirect_to'])) ? $_REQUEST['redirect_to'] : apply_filters( 'login_redirect', admin_url(), false, $temporary_user ); // phpcs:ignore
105
 
106
  // If empty redirect user to admin page.
107
  if ( ! empty( $redirect_to_url ) ) {
108
  $redirect_to = $redirect_to_url;
109
  }
110
 
111
+ } else {
112
+ // Temporary user not found?? Redirect to home page.
113
+ $redirect_to = home_url();
114
  }
115
+
116
+ wp_safe_redirect( $redirect_to ); // Redirect to given url after successfull login.
117
  exit();
118
+
119
  }
120
 
121
+ // Restrict unauthorized page access for temporary users
122
  if ( is_user_logged_in() ) {
123
 
124
  $user_id = get_current_user_id();
125
  if ( ! empty( $user_id ) && Wp_Temporary_Login_Without_Password_Common::is_valid_temporary_login( $user_id, false ) ) {
126
  if ( Wp_Temporary_Login_Without_Password_Common::is_login_expired( $user_id ) ) {
 
127
  wp_logout();
128
  wp_safe_redirect( home_url() );
 
 
129
  exit();
130
  } else {
131
 
140
  }
141
  }
142
  }
143
+
144
  }
145
 
146
  /**
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
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: 4.9.8
7
- Stable tag: 1.5.10
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -68,6 +68,14 @@ No. at this moment it's not possible to do this.
68
 
69
  == Changelog ==
70
 
 
 
 
 
 
 
 
 
71
  **1.5.10 [2018-09-12]**
72
 
73
  * Fix: 'redirect_to' parameter in request didn't use for user redirection. Now, temporary user will be redirected to url available in 'redirect_to' parameter.
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: 4.9.8
7
+ Stable tag: 1.5.12
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
68
 
69
  == Changelog ==
70
 
71
+ **1.5.12 [2018-10-24]**
72
+
73
+ * Fix: Temporary user redirected to admin page even if 'redirect_to' query param present once user logged in with temporary login link.
74
+
75
+ **1.5.11 [2018-10-08]**
76
+
77
+ * Update: Added filter for expiry_option. Now, one can add any custom expiry_option for the temporary login. [See example](https://wordpress.org/support/topic/additional-expiry-option/)
78
+
79
  **1.5.10 [2018-09-12]**
80
 
81
  * Fix: 'redirect_to' parameter in request didn't use for user redirection. Now, temporary user will be redirected to url available in 'redirect_to' parameter.
temporary-login-without-password.php CHANGED
@@ -3,7 +3,7 @@
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.10
7
  * Author: StoreApps
8
  * Author URI: https://storeapps.org
9
  * Requires at least: 3.0.1
@@ -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.10' );
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.12
7
  * Author: StoreApps
8
  * Author URI: https://storeapps.org
9
  * Requires at least: 3.0.1
26
  * Define constants
27
  */
28
  define( 'WTLWP_PLUGIN_DIR', dirname( __FILE__ ) );
29
+ define( 'WTLWP_PLUGIN_VERSION', '1.5.12' );
30
  define( 'WTLWP_PLUGIN_BASE_NAME', plugin_basename( __FILE__ ) );
31
 
32
  /**