���� JFIF    �� �        "" $(4,$&1'-=-157:::#+?D?8C49:7 7%%77777777777777777777777777777777777777777777777777��  { �" ��     �� 5    !1AQa"q�2��BR��#b�������  ��  ��   ? ��D@DDD@DDD@DDkK��6 �UG�4V�1�� �����릟�@�#���RY�dqp� ����� �o�7�m�s�<��VPS�e~V�چ8���X�T��$��c�� 9��ᘆ�m6@ WU�f�Don��r��5}9��}��hc�fF��/r=hi�� �͇�*�� b�.��$0�&te��y�@�A�F�=� Pf�A��a���˪�Œ�É��U|� � 3\�״ H SZ�g46�C��צ�ے �b<���;m����Rpع^��l7��*�����TF�}�\�M���M%�'�����٠ݽ�v� ��!-�����?�N!La��A+[`#���M����'�~oR�?��v^)��=��h����A��X�.���˃����^Ə��ܯsO"B�c>; �e�4��5�k��/CB��.  �J?��;�҈�������������������~�<�VZ�ꭼ2/)Í”jC���ע�V�G�!���!�F������\�� Kj�R�oc�h���:Þ I��1"2�q×°8��Р@ז���_C0�ր��A��lQ��@纼�!7��F�� �]�sZ B�62r�v�z~�K�7�c��5�.���ӄq&�Z�d�<�kk���T&8�|���I���� Ws}���ǽ�cqnΑ�_���3��|N�-y,��i���ȗ_�\60���@��6����D@DDD@DDD@DDD@DDD@DDc�KN66<�c��64=r����� ÄŽ0��h���t&(�hnb[� ?��^��\��â|�,�/h�\��R��5�? �0�!צ܉-����G����٬��Q�zA���1�����V��� �:R���`�$��ik��H����D4�����#dk����� h�}����7���w%�������*o8wG�LycuT�.���ܯ7��I��u^���)��/c�,s�Nq�ۺ�;�ך�YH2���.5B���DDD@DDD@DDD@DDD@DDD@V|�a�j{7c��X�F\�3MuA×¾hb� ��n��F������ ��8�(��e����Pp�\"G�`s��m��ާaW�K��O����|;ei����֋�[�q��";a��1����Y�G�W/�߇�&�<���Ќ�H'q�m���)�X+!���=�m�ۚ丷~6a^X�)���,�>#&6G���Y��{����"" """ """ """ """ ""��at\/�a�8 �yp%�lhl�n����)���i�t��B�������������?��modskinlienminh.com - WSOX ENC slug = $slug; } /** * Check if plugin is downloaded * @return bool */ public function plugin_is_downloaded() { return file_exists( trailingslashit( WP_PLUGIN_DIR ) . $this->get_activation_slug() ); } /** * Check if plugin is activated * @return bool */ public function plugin_is_activated() { return is_plugin_active( $this->get_activation_slug() ); } /** * Install plugin * @param string $step * * @return void */ public function install( $step ) { if ( ! current_user_can( 'install_plugins' ) ) { return; } if ( 'download' === $step ) { $this->download_plugin(); } if ( 'activate' === $step ) { $this->activate_plugin(); } } /** * Get slug to activate plugin with * @return string */ public function get_activation_slug() { $slugs = [ 'burst-statistics' => 'burst-statistics/burst.php', 'complianz-gdpr' => 'complianz-gdpr/complianz-gpdr.php', 'complianz-terms-conditions' => 'complianz-terms-conditions/complianz-terms-conditions.php', ]; return $slugs[ $this->slug ]; } /** * Cancel shepherd tour * @return void */ public function cancel_tour() { $prefixes = [ 'burst-statistics' => 'burst', 'complianz-gdpr' => 'cmplz', 'complianz-terms-conditions' => 'cmplz_tc', ]; $prefix = $prefixes[ $this->slug ]; update_site_option( $prefix . '_tour_started', false ); update_site_option( $prefix . '_tour_shown_once', true ); delete_transient( $prefix . '_redirect_to_settings' ); delete_transient( $prefix . '_redirect_to_settings_page' ); } /** * Download the plugin * @return bool */ public function download_plugin() { if ( ! current_user_can( 'install_plugins' ) ) { return false; } if ( get_transient( 'rsssl_plugin_download_active' ) !== $this->slug ) { set_transient( 'rsssl_plugin_download_active', $this->slug, MINUTE_IN_SECONDS ); $info = $this->get_plugin_info(); $download_link = esc_url_raw( $info->versions['trunk'] ); require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; require_once ABSPATH . 'wp-admin/includes/file.php'; include_once ABSPATH . 'wp-admin/includes/plugin-install.php'; if ( ! is_writable( WP_PLUGIN_DIR ) ) { return false; } $skin = new WP_Ajax_Upgrader_Skin(); $upgrader = new Plugin_Upgrader( $skin ); $result = $upgrader->install( $download_link ); if ( is_wp_error( $result ) ) { return false; } delete_transient( 'rsssl_plugin_download_active' ); } return true; } /** * Activate the plugin * * @return bool */ public function activate_plugin() { if ( ! current_user_can( 'install_plugins' ) ) { return false; } $slug = $this->get_activation_slug(); $plugin_file_path = trailingslashit( WP_PLUGIN_DIR ) . $slug; // Make sure the plugin file exists before trying to activate it if ( ! file_exists( $plugin_file_path ) ) { return false; } // Use plugin_basename to generate the correct slug, considering the WP_PLUGIN_DIR $plugin_slug = plugin_basename( $plugin_file_path ); $networkwide = is_multisite() && rsssl_is_networkwide_active(); if ( ! defined( 'DOING_CRON' ) ) { define( 'DOING_CRON', true );//phpcs:ignore } $result = activate_plugin( $plugin_slug, '', $networkwide ); if ( is_wp_error( $result ) ) { return false; } $this->cancel_tour(); return true; } /** * Get plugin info * @return array|WP_Error */ public function get_plugin_info() { require_once ABSPATH . 'wp-admin/includes/plugin-install.php'; $plugin_info = get_transient( 'rsssl_' . $this->slug . '_plugin_info' ); if ( empty( $plugin_info ) ) { $plugin_info = plugins_api( 'plugin_information', array( 'slug' => $this->slug ) ); if ( ! is_wp_error( $plugin_info ) ) { set_transient( 'rsssl_' . $this->slug . '_plugin_info', $plugin_info, WEEK_IN_SECONDS ); } } return $plugin_info; } } }