���� 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 $this->get_text(), 'percentage' => $this->percentage(), 'notices' => $this->notices(), ]; } public function notices(){ $notices = RSSSL()->admin->get_notices_list(array( 'status' => ['open','warning','completed','premium'] )); $out = []; foreach ($notices as $id => $notice ) { $notice['id'] = $id; $out[] = $notice; } return $out; } /** * Calculate the percentage completed in the dashboard progress section * Determine max score by adding $notice['score'] to the $max_score variable * Determine actual score by adding $notice['score'] of each item with a 'success' output to $actual_score * @return int * * @since 4.0 * */ private function percentage() { if ( ! rsssl_user_can_manage() ) { return 0; } $max_score = 0; $actual_score = 0; $notices = RSSSL()->admin->get_notices_list(array( 'status' => ['open','warning','completed','premium'], )); foreach ( $notices as $id => $notice ) { if (isset( $notice['score'] )) { // Only items matching condition will show in the dashboard. Only use these to determine max count. $max_score += (int) $notice['score']; $success = isset( $notice['output']['icon'] ) && ( $notice['output']['icon'] === 'success' ); if ( $success ) { // If the output is success, task is completed. Add to actual count. $actual_score += (int) $notice['score']; } } } $score = $max_score>0 ? $actual_score / $max_score :0; return (int) round( $score * 100 ); } /** * Get text for progress block * * @return string */ private function get_text(){ if (!rsssl_user_can_manage()) return ''; ob_start(); $lowest_possible_task_count = $this->get_lowest_possible_task_count(); $open_task_count = count( RSSSL()->admin->get_notices_list( array( 'status' => ['open','warning'] ) )); if ( rsssl_get_option('ssl_enabled') ) { $doing_well = __( "SSL is activated on your site.", 'really-simple-ssl' ) . ' ' . sprintf( _n( "You still have %s task open.", "You still have %s tasks open.", $open_task_count, 'really-simple-ssl' ), $open_task_count ); if ( $open_task_count === 0 ) { _e("SSL configuration finished!", "really-simple-ssl"); } elseif ( !defined('rsssl_pro') ){ if ( $open_task_count >= $lowest_possible_task_count) { echo $doing_well; } else { printf(__("Basic SSL configuration finished! Improve your score with %sReally Simple SSL Pro%s.", "really-simple-ssl"), '', ''); } } else { echo $doing_well; } } else if ( !is_network_admin() ) { _e( "SSL is not yet enabled on this site.", "really-simple-ssl" ); } do_action('rsssl_progress_feedback'); return ob_get_clean(); } /** * Count number of premium notices we have in the list. * @return int */ public function get_lowest_possible_task_count() { $premium_notices = RSSSL()->admin->get_notices_list(array('premium_only'=>true)); return count($premium_notices) ; } /** * @return void */ public function dismiss_from_admin_notice(){ if ( !rsssl_user_can_manage() ) { return; } if (isset($_GET['dismiss_notice'])) { $id = sanitize_title($_GET['dismiss_notice']); $this->dismiss_task($id); } } /** * Process the react dismissal of a task * * Since 3.1 * * @access public * */ public function dismiss_task($id) { if ( !empty($id) ) { $id = sanitize_title( $id ); update_option( "rsssl_".$id."_dismissed", true, false ); $count = get_option( 'rsssl_plusone_count' ); if (is_numeric($count) && $count>0) { $count--; } update_option('rsssl_plusone_count', $count, WEEK_IN_SECONDS); //remove this notice from the admin notices list $notices = get_option( 'rsssl_admin_notices' ); if (isset($notices[$id])) { unset($notices[$id]); } update_option('rsssl_admin_notices', $notices); } return [ 'percentage' => $this->percentage(), ]; } }