Temporary Login Without Password - Version 1.6.1

Version Description

Download this release

Release Info

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

Code changes from version 1.6.0 to 1.6.1

includes/feedback/class-ig-feedback.php CHANGED
@@ -4,21 +4,21 @@ if ( ! defined( 'ABSPATH' ) ) {
4
  exit; // Exit if accessed directly.
5
  }
6
 
7
- if ( ! class_exists( 'IG_Feedback_V_1_1_0' ) ) {
8
  /**
9
  * IG Feedback
10
  *
11
  * The IG Feedback class adds functionality to get quick interactive feedback from users.
12
  * There are different types of feedabck widget like Stars, Emoji, Thubms Up/ Down, Number etc.
13
  *
14
- * @class IG_Feedback_V_1_1_0
15
  * @since 1.0.0
16
  * @copyright Copyright (c) 2019, Icegram
17
  * @license https://opensource.org/licenses/gpl-license GNU Public License
18
  * @author Icegram
19
  * @package feedback
20
  */
21
- class IG_Feedback_V_1_1_0 {
22
 
23
  /**
24
  * Version of Feedback Library
@@ -27,7 +27,7 @@ if ( ! class_exists( 'IG_Feedback_V_1_1_0' ) ) {
27
  * @var string
28
  *
29
  */
30
- public $version = '1.1.0';
31
  /**
32
  * The API URL where we will send feedback data.
33
  *
@@ -362,20 +362,20 @@ if ( ! class_exists( 'IG_Feedback_V_1_1_0' ) ) {
362
  * @since 1.0.1
363
  */
364
  public function enqueue_styles() {
365
- wp_register_style( 'sweetalert', plugin_dir_url( __FILE__ ) . 'assets/css/sweetalert2.min.css', array(), $this->version );
366
- wp_enqueue_style( 'sweetalert' );
367
 
368
- wp_register_style( 'animate', plugin_dir_url( __FILE__ ) . 'assets/css/animate.min.css', array(), $this->version );
369
- wp_enqueue_style( 'animate' );
370
 
371
- wp_register_style( 'ig-feedback-star-rating', plugin_dir_url( __FILE__ ) . 'assets/css/star-rating.min.css', array(), $this->version );
372
- wp_enqueue_style( 'ig-feedback-star-rating' );
373
 
374
- wp_register_style( 'ig-feedback-emoji', plugin_dir_url( __FILE__ ) . 'assets/css/emoji.min.css', array(), $this->version );
375
- wp_enqueue_style( 'ig-feedback-emoji' );
376
 
377
- wp_register_style( 'ig-feedback', plugin_dir_url( __FILE__ ) . 'assets/css/feedback.min.css', array(), $this->version );
378
- wp_enqueue_style( 'ig-feedback' );
379
  }
380
 
381
  /**
@@ -403,7 +403,8 @@ if ( ! class_exists( 'IG_Feedback_V_1_1_0' ) ) {
403
  'delay' => 3, // In Seconds
404
  'consent_text' => 'You are agree to our terms and condition',
405
  'email' => $this->get_contact_email(),
406
- 'name' => ''
 
407
  );
408
 
409
  $params = wp_parse_args( $params, $default_params );
@@ -636,9 +637,11 @@ if ( ! class_exists( 'IG_Feedback_V_1_1_0' ) ) {
636
  <label class="ig-label"">Feedback</label><br/>
637
  <textarea name="feedback_data[details]" id="ig-feedback-data-message"></textarea>
638
  </p>
639
- <p>
640
- <input type="checkbox" name="feedback_data[collect_system_info]" checked="checked" id="ig-feedback-data-consent"/><?php echo $params['consent_text']; ?>
641
- </p>
 
 
642
  </form>
643
  </div>
644
 
@@ -696,12 +699,11 @@ if ( ! class_exists( 'IG_Feedback_V_1_1_0' ) ) {
696
  }
697
  }
698
 
699
- var feedbackButtonID = 'ig-feedback-button-<?php echo $this->plugin; ?>';
700
-
701
- $('#wpwrap').append('<div class="ig-es-feedback-button" id="' + feedbackButtonID + '">Feedback</div>');
702
 
703
- $('#' + feedbackButtonID).on('click', function () {
704
 
 
705
  Swal.mixin({
706
  footer: '<?php echo $this->footer; ?>',
707
  position: '<?php echo $params['position']; ?>',
@@ -744,7 +746,7 @@ if ( ! class_exists( 'IG_Feedback_V_1_1_0' ) ) {
744
  return;
745
  }
746
 
747
- var system_info = false;
748
  if (consent === 'checked') {
749
  system_info = true;
750
  }
@@ -886,12 +888,12 @@ if ( ! class_exists( 'IG_Feedback_V_1_1_0' ) ) {
886
  <form class="ig-general-feedback" id="ig-general-feedback">
887
  <p><?php echo $desc; ?></p>
888
 
889
- <p class="ig-general-feedback">
890
  <?php foreach ( $poll_options as $value => $option ) { ?>
891
  <input type="radio" name="feedback_data[poll_options]" value="<?php echo $value; ?>"><b style="color: <?php echo $option['color']; ?>"><?php echo $option['text']; ?></b><br/>
892
  <?php } ?>
893
  </p>
894
- <p class="ig-feedback-data-poll-message" id="ig-feedback-data-poll-message">
895
  <textarea name="feedback_data[details]" id="ig-feedback-data-poll-additional-message" placeholder="Additional feedback"></textarea>
896
  </p>
897
  </form>
@@ -963,6 +965,7 @@ if ( ! class_exists( 'IG_Feedback_V_1_1_0' ) ) {
963
  onOpen: () => {
964
 
965
  },
 
966
  preConfirm: () => {
967
  var $overlay = $('#ig-general-feedback-<?php echo $this->plugin; ?>');
968
  var $form = $overlay.find('form');
@@ -979,9 +982,7 @@ if ( ! class_exists( 'IG_Feedback_V_1_1_0' ) ) {
979
  additional_feedback: message
980
  };
981
 
982
- var meta = {
983
-
984
- };
985
 
986
  return doSend(data, meta, true);
987
  }
@@ -1539,6 +1540,40 @@ if ( ! class_exists( 'IG_Feedback_V_1_1_0' ) ) {
1539
  return $event_feedback_data;
1540
  }
1541
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1542
  /**
1543
  * Set event into transient
1544
  *
4
  exit; // Exit if accessed directly.
5
  }
6
 
7
+ if ( ! class_exists( 'IG_Feedback_V_1_2_1' ) ) {
8
  /**
9
  * IG Feedback
10
  *
11
  * The IG Feedback class adds functionality to get quick interactive feedback from users.
12
  * There are different types of feedabck widget like Stars, Emoji, Thubms Up/ Down, Number etc.
13
  *
14
+ * @class IG_Feedback_V_1_2_1
15
  * @since 1.0.0
16
  * @copyright Copyright (c) 2019, Icegram
17
  * @license https://opensource.org/licenses/gpl-license GNU Public License
18
  * @author Icegram
19
  * @package feedback
20
  */
21
+ class IG_Feedback_V_1_2_1 {
22
 
23
  /**
24
  * Version of Feedback Library
27
  * @var string
28
  *
29
  */
30
+ public $version = '1.2.1';
31
  /**
32
  * The API URL where we will send feedback data.
33
  *
362
  * @since 1.0.1
363
  */
364
  public function enqueue_styles() {
365
+ wp_register_style( "sweetalert_{$this->version}", plugin_dir_url( __FILE__ ) . 'assets/css/sweetalert2.min.css', array(), $this->version );
366
+ wp_enqueue_style( "sweetalert_{$this->version}" );
367
 
368
+ wp_register_style( "animate_{$this->version}", plugin_dir_url( __FILE__ ) . 'assets/css/animate.min.css', array(), $this->version );
369
+ wp_enqueue_style( "animate_{$this->version}" );
370
 
371
+ wp_register_style( "ig-feedback-star-rating_{$this->version}", plugin_dir_url( __FILE__ ) . 'assets/css/star-rating.min.css', array(), $this->version );
372
+ wp_enqueue_style( "ig-feedback-star-rating_{$this->version}" );
373
 
374
+ wp_register_style( "ig-feedback-emoji_{$this->version}", plugin_dir_url( __FILE__ ) . 'assets/css/emoji.min.css', array(), $this->version );
375
+ wp_enqueue_style( "ig-feedback-emoji_{$this->version}" );
376
 
377
+ wp_register_style( "ig-feedback_{$this->version}", plugin_dir_url( __FILE__ ) . 'assets/css/feedback.min.css', array(), $this->version );
378
+ wp_enqueue_style( "ig-feedback_{$this->version}" );
379
  }
380
 
381
  /**
403
  'delay' => 3, // In Seconds
404
  'consent_text' => 'You are agree to our terms and condition',
405
  'email' => $this->get_contact_email(),
406
+ 'name' => '',
407
+ 'consent' => false
408
  );
409
 
410
  $params = wp_parse_args( $params, $default_params );
637
  <label class="ig-label"">Feedback</label><br/>
638
  <textarea name="feedback_data[details]" id="ig-feedback-data-message"></textarea>
639
  </p>
640
+ <?php if ( isset( $params['consent'] ) && $params['consent'] === true ) { ?>
641
+ <p>
642
+ <input type="checkbox" name="feedback_data[collect_system_info]" checked="checked" id="ig-feedback-data-consent"/><?php echo $params['consent_text']; ?>
643
+ </p>
644
+ <?php } ?>
645
  </form>
646
  </div>
647
 
699
  }
700
  }
701
 
702
+ var feedbackButtonClass = 'ig-feedback-button-<?php echo $this->plugin; ?>';
 
 
703
 
704
+ $('#wpwrap').append('<div class="ig-es-feedback-button ' + feedbackButtonClass + '">Feedback</div>');
705
 
706
+ $('.' + feedbackButtonClass).on('click', function () {
707
  Swal.mixin({
708
  footer: '<?php echo $this->footer; ?>',
709
  position: '<?php echo $params['position']; ?>',
746
  return;
747
  }
748
 
749
+ var system_info = true;
750
  if (consent === 'checked') {
751
  system_info = true;
752
  }
888
  <form class="ig-general-feedback" id="ig-general-feedback">
889
  <p><?php echo $desc; ?></p>
890
 
891
+ <p class="ig-general-feedback mb-3">
892
  <?php foreach ( $poll_options as $value => $option ) { ?>
893
  <input type="radio" name="feedback_data[poll_options]" value="<?php echo $value; ?>"><b style="color: <?php echo $option['color']; ?>"><?php echo $option['text']; ?></b><br/>
894
  <?php } ?>
895
  </p>
896
+ <p class="ig-feedback-data-poll-message mb-3" id="ig-feedback-data-poll-message">
897
  <textarea name="feedback_data[details]" id="ig-feedback-data-poll-additional-message" placeholder="Additional feedback"></textarea>
898
  </p>
899
  </form>
965
  onOpen: () => {
966
 
967
  },
968
+
969
  preConfirm: () => {
970
  var $overlay = $('#ig-general-feedback-<?php echo $this->plugin; ?>');
971
  var $form = $overlay.find('form');
982
  additional_feedback: message
983
  };
984
 
985
+ var meta = {};
 
 
986
 
987
  return doSend(data, meta, true);
988
  }
1540
  return $event_feedback_data;
1541
  }
1542
 
1543
+ /**
1544
+ * Check whether event tracked or not.
1545
+ *
1546
+ * @param $plugin_abbr
1547
+ * @param $event
1548
+ *
1549
+ * @return bool
1550
+ *
1551
+ * @since 1.1.0
1552
+ */
1553
+ public function is_event_tracked( $plugin_abbr = '', $event = '' ) {
1554
+
1555
+ if ( empty( $plugin_abbr ) || empty( $event ) ) {
1556
+ return false;
1557
+ }
1558
+
1559
+ $feedback_data = $this->get_feedback_data( $plugin_abbr );
1560
+
1561
+ if ( count( $feedback_data ) > 0 ) {
1562
+
1563
+ $events = array_keys( $feedback_data );
1564
+
1565
+ foreach ( $events as $key => $value ) {
1566
+ if ( strpos( $value, $event ) ) {
1567
+ return true;
1568
+ }
1569
+ }
1570
+
1571
+ }
1572
+
1573
+ return false;
1574
+ }
1575
+
1576
+
1577
  /**
1578
  * Set event into transient
1579
  *
includes/feedback/class-ig-tracker.php CHANGED
@@ -4,15 +4,15 @@ if ( ! defined( 'ABSPATH' ) ) {
4
  exit; // Exit if accessed directly.
5
  }
6
 
7
- if ( ! class_exists( 'IG_Tracker_V_1_1_0' ) ) {
8
 
9
  /**
10
- * Class IG_Tracker_V_1_1_0
11
  *
12
  * Icegram tracker handler class is responsible for sending anonymous plugin
13
  * data to Icegram servers for users that actively allowed data tracking.
14
  *
15
- * @class IG_Tracker_V_1_1_0
16
  * @since 1.0.0
17
  *
18
  * @copyright Copyright (c) 2019, Icegram
@@ -20,7 +20,7 @@ if ( ! class_exists( 'IG_Tracker_V_1_1_0' ) ) {
20
  * @author Icegram
21
  * @package feedback
22
  */
23
- class IG_Tracker_V_1_1_0 {
24
 
25
  /**
26
  * Get Active, Inactive or all plugins info
4
  exit; // Exit if accessed directly.
5
  }
6
 
7
+ if ( ! class_exists( 'IG_Tracker_V_1_2_1' ) ) {
8
 
9
  /**
10
+ * Class IG_Tracker_V_1_2_1
11
  *
12
  * Icegram tracker handler class is responsible for sending anonymous plugin
13
  * data to Icegram servers for users that actively allowed data tracking.
14
  *
15
+ * @class IG_Tracker_V_1_2_1
16
  * @since 1.0.0
17
  *
18
  * @copyright Copyright (c) 2019, Icegram
20
  * @author Icegram
21
  * @package feedback
22
  */
23
+ class IG_Tracker_V_1_2_1 {
24
 
25
  /**
26
  * Get Active, Inactive or all plugins info
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=BMFRMVXQ87JWA&source=url
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.3.2
7
- Stable tag: 1.6.0
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -78,6 +78,10 @@ No. at this moment it's not possible to do this.
78
 
79
  == Changelog ==
80
 
 
 
 
 
81
  **1.6.0 [2020-02-20]**
82
 
83
  * New: Now, able to create temporary login link that will expire on specific time after access.
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=BMFRMVXQ87JWA&source=url
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.4
7
+ Stable tag: 1.6.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
78
 
79
  == Changelog ==
80
 
81
+ **1.6.1 [2020-04-11]**
82
+
83
+ * Update: Compatibility test with WordPress 5.4
84
+
85
  **1.6.0 [2020-02-20]**
86
 
87
  * New: Now, able to create temporary login link that will expire on specific time after access.
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.6.0
7
  * Author: StoreApps
8
  * Author URI: https://storeapps.org
9
  * Requires at least: 3.0.1
10
- * Tested up to: 5.3.2
11
  * License: GPLv3
12
  * License URI: http://www.gnu.org/licenses/gpl-3.0.html
13
  * Text Domain: temporary-login-without-password
@@ -25,8 +25,8 @@ if ( ! defined( 'WPINC' ) ) {
25
  /**
26
  * Define constants
27
  */
28
- define( 'WTLWP_PLUGIN_VERSION', '1.6.0' );
29
- define( 'WTLWP_FEEDBACK_VERSION', '1.1.0' );
30
  define( 'WTLWP_PLUGIN_DIR', dirname( __FILE__ ) );
31
  define( 'WTLWP_PLUGIN_BASE_NAME', plugin_basename( __FILE__ ) );
32
  define( 'WTLWP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
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.6.1
7
  * Author: StoreApps
8
  * Author URI: https://storeapps.org
9
  * Requires at least: 3.0.1
10
+ * Tested up to: 5.4
11
  * License: GPLv3
12
  * License URI: http://www.gnu.org/licenses/gpl-3.0.html
13
  * Text Domain: temporary-login-without-password
25
  /**
26
  * Define constants
27
  */
28
+ define( 'WTLWP_PLUGIN_VERSION', '1.6.1' );
29
+ define( 'WTLWP_FEEDBACK_VERSION', '1.2.1' );
30
  define( 'WTLWP_PLUGIN_DIR', dirname( __FILE__ ) );
31
  define( 'WTLWP_PLUGIN_BASE_NAME', plugin_basename( __FILE__ ) );
32
  define( 'WTLWP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );