���� 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 get_state()->get_controller($controller); // if method exists if (method_exists($controller, $action)) { return $controller->$action(); } else { trigger_error("Wrong {$action} in {$path}class-controller-{$controller}.php"); } } /** * Progress * * @param array $params * @param $name * @param $type * * @return array */ protected function progress(array $params, $name, $type) { $success = $this->run($params); if ($success !== false) { return Core::get_instance()->get_model($type)->$name($params); } else { $name = "on_error_{$name}"; if (!method_exists($this, $name)) { $name = 'get_errors_array'; } return array('success' => $success, 'data' => $this->$name()); } } /** * Process the validation errors and return an array of errors with field names as keys. * * @param $convert_to_string * * @return array | null (if empty) */ public function get_errors_array($convert_to_string = null) { if (empty($this->errors)) { return ($convert_to_string) ? null : array(); } $resp = array(); foreach ($this->errors as $e) { $field = ucwords(str_replace(array('_', '-'), chr(32), $e['field'])); $param = $e['param']; // Let's fetch explicit field names if they exist if (array_key_exists($e['field'], self::$fields)) { $field = self::$fields[$e['field']]; } switch ($e['rule']) { case 'mismatch' : $resp[$e['field']] = "There is no validation rule for $field"; break; case 'validate_required': $resp[$e['field']] = "Enter $field field"; break; case 'validate_valid_email': $resp[$e['field']] = "Enter a valid email address"; break; case 'validate_max_len': $resp[$e['field']] = "The $field field needs to be $param or shorter in length"; break; case 'validate_min_len': $resp[$e['field']] = "The $field field needs to be $param or longer in length"; break; case 'validate_exact_len': $resp[$e['field']] = "The $field field needs to be exactly $param characters in length"; break; case 'validate_alpha': $resp[$e['field']] = "The $field field may only contain alpha characters(a-z)"; break; case 'validate_alpha_numeric': $resp[$e['field']] = "The $field field may only contain alpha-numeric characters"; break; case 'validate_alpha_dash': $resp[$e['field']] = "The $field field may only contain alpha characters & dashes"; break; case 'validate_numeric': $resp[$e['field']] = "The $field field may only contain numeric characters"; break; case 'validate_integer': $resp[$e['field']] = "The $field field may only contain a numeric value"; break; case 'validate_boolean': $resp[$e['field']] = "The $field field may only contain a true or false value"; break; case 'validate_float': $resp[$e['field']] = "The $field field may only contain a float value"; break; case 'validate_valid_url': $resp[$e['field']] = "The $field field is required to be a valid URL"; break; case 'validate_url_exists': $resp[$e['field']] = "The $field URL does not exist"; break; case 'validate_valid_ip': $resp[$e['field']] = "The $field field needs to contain a valid IP address"; break; case 'validate_valid_cc': $resp[$e['field']] = "The $field field needs to contain a valid credit card number"; break; case 'validate_valid_name': $resp[$e['field']] = "The $field field needs to contain a valid human name"; break; case 'validate_contains': $resp[$e['field']] = "The $field field needs to contain one of these values: " . implode(', ', $param); break; case 'validate_street_address': $resp[$e['field']] = "The $field field needs to be a valid street address"; break; case 'validate_date': $resp[$e['field']] = "The $field field needs to be a valid date"; break; case 'validate_min_numeric': $resp[$e['field']] = "The $field field needs to be a numeric value, equal to, or higher than $param"; break; case 'validate_max_numeric': $resp[$e['field']] = "The $field field needs to be a numeric value, equal to, or lower than $param"; break; case 'validate_min_age': $resp[$e['field']] = "The $field field needs to have an age greater than or equal to $param"; break; default: $resp[$e['field']] = "The $field field is invalid"; } } return $resp; } }