����JFIF�����%%��� }!1AQa"q2���#B��R��$3br� %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz������������������������������������������������������������������������� w!1AQaq"2�B���� #3R�br� $4�%�&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz��������������������������������������������������������������������������?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|��O�������h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@��o�E��/�?��ߵE_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ ?�z�����������goڢ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?��=[�Qg�����o����Q@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y�����[����TP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,���|-��v��(���� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�������;~��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@�������?�_�����j������ (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@��o�E��/�?��ߵE_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ ?�z�����������goڢ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?��=[�Qg�����o����Q@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y�����[����TP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,���|-��v��(���� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�������;~��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@�������?�_�����j������ (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@��o�E��/�?��ߵE_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ ?�z�����������goڢ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?��=[�Qg�����o����Q@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y�����[����TP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,��������ο�O�P��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������k�w���~���v��������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j�?�5o�%��?��� g����U@�����&O3�����a�;�^=�wH���D��/��*� �fX�I���,������k?g_���?�5o�%��?��� g����U@�F�����������*������?�o�}��Τ~g��ʀ�#V��Y������~ο�T�j��K/� ������������z��������#;�~���A�;��� w�F�����������*���տ��_�@�o��5����EU������������u�誠��W��[�����������O��?jW���@��տ���@�o��5����EM������������v�訠�#V��Y�������������V��Zv��~����vw�~���c�Q@���,��~���kgo���?�5o�%��/��� o����Q@��o�%�>�ߤ���߳����S������?��o�%�~�ߠ�d�߳����S����g�P��j��K?� _������������[� g�D����[�;�TP7���������'Ѿ���=��;/�P��j��K?� _������������[� g�D����[�;�TP���,��~���kgo���a������۔���B{���ea�`T�+ �n%Ц �����j��K?� _������������[� g�D����[�;�TP���,��~���kgo����?���%�/�~�����#����x��c�~�q�v�t`ȫ��_'h���������'�]�;{s� Pp=N= 5���%�����ڜs�����=���J��A@�����Kp�b��}��X�����4g v+:�Բ�+60�ʩ,� @�����������I �uO�����ToUv��bgUl�cP�T?�#V��Y������������j��K?� _����������!��X��]���������TK�|4��`� ��#��P\y��aa >NgL��j��K?� _������������[� g�D����[�;�TP���,��~���kgo���o�F�����$��ہ�� ��vݞr6��S�q''*02���[� g�D����[�;�TP���,��~���kgo���?�5o�%��/��� o����Q@�F�����������*(��տ���@�o��5����EE������������v�訠��������~1�o���}G�L�������5o�%��/��� o����Q@�F�����������*(��տ���@�o��5����EE5����%�˷���r�v����y�\~���)(?0���=[� i����>��gc��N=����5o�%��/��� o����Q@�F�����������*(��W��Z�l����m#���X�wn_�j`0C6윅����5o�%��/��� o����Q@��տ��y9���gbO�G�5@�n�>���#V��Y������~ο�T��V��Y����9�gc��s�T.�?Z_��[� e�D����Y�:��UP���,������k?g_����_�=_� n�~~�rI������w�,"~ԓ�!72���)( u��#V��Y������~ο�T�j��K/� ��������������K
�����Kr_���}�De>~��Z=��pjX�n[p(�"� �a,Ub�/�×�<����;��<�����K>��o���[�:����V���,��$��ϧ�*�����5O����տ��_�@�o��5����EU5��o�%����?�ꜜm�_�;>Gbs�S�����@��տ��_�@�o��5����EU ��տ��}�~�����v?�������-��o�l��~�ȥ�v����r��B1���@��տ���A�?����ggP��c�S�`@%�*����տ��_�@�o��5����EU������������u�誠7���� O���!c�|0��ёv��4�+�X�Vx�RX3��8����K>��o���[�:���u#�x��#V��Y������~ο�T�j��K/� ������������[� e�D����Y�:��UP���,������k?g_���O��[� g�D����[�:��T��=_� k����~��k����c�;����.8����c��z��Ͽ�/��zc�o����F?Z_��[� e�D����Y�:��UP���,������k?g_���C���,�v����v�o���H������(�z���w�/�����v ��T.G��Ϡ���տ��_�@�o��5����EU������������u�誠��W��[��'����%��o���:�Cڕ�R̀���j���������?�o���[�;������g0q�?��o�%�>o�_��>�gf����~4�������������u�誠�z���7�/��o���������_��[� e�D����Y�:��UP���,������k?g_���C���,�|�����o��;�Ԟ��9�l�z��ؠ3|��O�X�~���;~�q����Z�F�����������*���տ��_�@�o��5����EU!��տ��}�~����-��G��I�T�������������u�誠�#V��Y������~ο�T�j��K/� ����������#�=_� n|���KbB�gtdM��"�ڒA#n�63�6�m�P�����,���/���gS�u����#�9��5o�%��?��� g����U@��o�%�o�_�����u��'�������?��o��� ���3��?go���|m�ڇ���-S�O��x��>���^�����7����x�]_�>�qke>���m��4��7P�Yހ��
0byt3m1n1
0byt3m1n1
Path:
/
hermes
/
bosweb
/
web
/
sb_web
/
web
/
sb_web
/
b2815
/
aljthoorcom.ipage.com
/
doctorfind
/
[
Home
]
File: api.php
<?php error_reporting(E_ALL ^ E_DEPRECATED); include("includes/connection.php"); //include("conn.php"); //echo '<pre>'; print_r($_REQUEST); die; // taveel app function utf8ize($d) { if (is_array($d)) foreach ($d as $k => $v) $d[$k] = utf8ize($v); else if (is_object($d)) foreach ($d as $k => $v) $d->$k = utf8ize($v); else return utf8_encode($d); return $d; } if (isset($_GET['category'])) { $query = "SELECT * FROM categories"; } elseif (isset($_GET['get_all_doctors'])) { $query = "SELECT * FROM doctors"; } elseif (isset($_POST['get_ratting'])) { $doc_id = $_POST['doc_id']; $query = "SELECT doc_ratting FROM doctors WHERE doc_id='$doc_id'"; } elseif (isset($_POST['signup'])) { $user_name = $_POST['user_name']; $email = $_POST['email']; $password = md5($_POST['password']); $phone_no = $_POST['phone']; $user_type = $_POST['user_type']; if ($_FILES['image']["name"]) { $image = $_FILES['image']["name"]; $target_file = basename($_FILES["image"]["name"]); $imageFileType = pathinfo($target_file, PATHINFO_EXTENSION); $filename = time() . '.' . $imageFileType; $path = __DIR__ . "/uploads/" . $filename; move_uploaded_file($_FILES["image"]["tmp_name"], $path); $image = $filename; } $query = "INSERT INTO users (user_name, email, password, phone, usertype, image) VALUES ('" . $user_name . "','" . $email . "','" . $password . "','" . $phone_no . "','" . $user_type . "','" . $filename . "')"; // echo($query);die(); $re = mysqli_query($cn, $query); if ($re) { $message = ['message' => 'record added successfully!!']; exit(json_encode($message)); } else { $message = ['message' => 'There is an error!!']; exit(json_encode($message)); } } elseif (isset($_POST['appointments'])) { $patient_id = $_POST['patient_id']; $full_name = $_POST['full_name']; $phone_no = $_POST['phone_no']; $email = $_POST['email']; $applied_date = $_POST['applied_date']; $status = $_POST['status']; $doc_id = $_POST['doc_id']; $image = $_POST['image']; $appointment_date = $_POST['appointment_date']; /*if ($_FILES['image']["name"]) { $image = $_FILES['image']["name"]; $target_file = basename($_FILES["image"]["name"]); $imageFileType = pathinfo($target_file, PATHINFO_EXTENSION); $filename = time() . '.' . $imageFileType; $path = __DIR__ . "/uploads/" . $filename; move_uploaded_file($_FILES["image"]["tmp_name"], $path); $image = $filename; }*/ $query = "INSERT INTO appointments (patient_id, full_name,phone_no, email, applied_date, status, doc_id, appointment_date,image) VALUES ('" . $patient_id . "','" . $full_name . "','" . $phone_no . "','" . $email . "','" . $applied_date . "','" . $status . "','" . $doc_id . "','" . $appointment_date . "','" . $image . "')"; // echo($query);die(); $re = mysqli_query($cn, $query); if ($re) { $message = ['message' => 'record added successfully!!']; exit(json_encode($message)); } else { $message = ['message' => 'There is an error!!']; exit(json_encode($message)); } } elseif (isset($_POST['doctor_profile'])) { $doc_name = $_POST['doc_name']; $user_id = $_POST['user_id']; $cat_id = $_POST['cat_id']; $doc_address = $_POST['doc_address']; $doc_experience = $_POST['doc_experience']; $doc_ratting = $_POST['doc_ratting']; $people_rate_no = $_POST['people_rate_no']; $doc_fee = $_POST['doc_fee']; $doc_clinic = $_POST['doc_clinic']; $doc_designation = $_POST['doc_designation']; $doc_specialty = $_POST['doc_specialty']; $doc_education = $_POST['doc_education']; $doc_about = $_POST['doc_about']; $latitude = $_POST['latitude']; $longitude = $_POST['longitude']; if ($_FILES['image']["name"]) { $image = $_FILES['image']["name"]; $target_file = basename($_FILES["image"]["name"]); $imageFileType = pathinfo($target_file, PATHINFO_EXTENSION); $filename = time() . '.' . $imageFileType; $path = __DIR__ . "/uploads/" . $filename; move_uploaded_file($_FILES["image"]["tmp_name"], $path); $image = $filename; } if ($_FILES['image2']["name"]) { $image2 = $_FILES['image2']["name"]; $target_file2 = basename($_FILES["image2"]["name"]); $imageFileType2 = pathinfo($target_file2, PATHINFO_EXTENSION); $filename2 = time() . '_bg.' . $imageFileType2; $path2 = __DIR__ . "/uploads/" . $filename2; move_uploaded_file($_FILES["image2"]["tmp_name"], $path2); $image2 = $filename2; } $query = "INSERT INTO doctors (doc_name, user_id,cat_id, doc_address, doc_experience, doc_ratting, people_rate_no, doc_fee,doc_image,clinic_image,doc_clinic,doc_designation,doc_specialty,doc_education,doc_about,latitude,longitude) VALUES ('" . $doc_name . "','" . $user_id . "','" . $cat_id . "','" . $doc_address . "','" . $doc_experience . "','" . $doc_ratting . "','" . $people_rate_no . "','" . $doc_fee . "','" . $image . "','" . $image2 . "','" . $doc_clinic . "','" . $doc_designation . "','" . $doc_specialty . "','" . $doc_education . "','" . $doc_about . "','" . $latitude . "','" . $longitude . "')"; // echo($query);die(); $re = mysqli_query($cn, $query); if ($re) { $message = ['message' => 'record added successfully!!']; exit(json_encode($message)); } else { $message = ['message' => 'There is an error!!']; exit(json_encode($message)); } } elseif (isset($_POST['login'])) { //echo '<pre>';print_r($_POST);die; $username = $_POST['user_name']; $password = md5($_POST['password']); $query = "select * from users where email = '" . $username . "' and password = '" . $password . "' "; $result = mysqli_query($cn, $query); $re = mysqli_num_rows($result); if ($re) { $data = mysqli_fetch_array($result); //print_r($data); $message = ['message' => $data]; exit(json_encode($message)); } else { $message = ['message' => 'credentials doesnot match!! ']; exit(json_encode($message)); } } elseif (isset($_POST['getDoctorById'])) { //echo '<pre>';print_r($_POST);die; $doc_id = $_POST['doc_id']; $query = "select * from doctors where doc_id = '" . $doc_id . "' "; $result = mysqli_query($cn, $query); $re = mysqli_num_rows($result); $resouter =mysqli_query($cn,$query); $set = array(); @$total_records = mysqli_num_rows($resouter); if ($total_records!=''){ if($total_records >= 1){ while($row = mysqli_fetch_assoc($resouter)){ //$set['data'][] = 'id=' .$row['id']. ", ". 'user_id=' .$row['user_id']; $set['data'][] = utf8ize($row); } } exit(json_encode($set)); } else{ $data['data'][] = []; exit(json_encode($data)); } } elseif (isset($_POST['getDoctorRequests'])) { //echo '<pre>';print_r($_POST);die; $doc_id = $_POST['doc_id']; $query = "select * from appointments where doc_id = '" . $doc_id . "' "; $result = mysqli_query($cn, $query); $re = mysqli_num_rows($result); $resouter =mysqli_query($cn,$query); $set = array(); @$total_records = mysqli_num_rows($resouter); if ($total_records!=''){ if($total_records >= 1){ while($row = mysqli_fetch_assoc($resouter)){ //$set['data'][] = 'id=' .$row['id']. ", ". 'user_id=' .$row['user_id']; $set['data'][] = utf8ize($row); } } exit(json_encode($set)); } else{ $data['data'][] = []; exit(json_encode($data)); } } elseif (isset($_POST['getPatientAppointments'])) { //echo '<pre>';print_r($_POST);die; $patient_id = $_POST['patient_id']; $query = "select * from appointments where patient_id = '" . $patient_id . "' "; $result = mysqli_query($cn, $query); $re = mysqli_num_rows($result); $resouter =mysqli_query($cn,$query); $set = array(); @$total_records = mysqli_num_rows($resouter); if ($total_records!=''){ if($total_records >= 1){ while($row = mysqli_fetch_assoc($resouter)){ //$set['data'][] = 'id=' .$row['id']. ", ". 'user_id=' .$row['user_id']; $set['data'][] = utf8ize($row); } } exit(json_encode($set)); } else{ $data['data'][] = []; exit(json_encode($data)); } } elseif (isset($_POST['getDocotrs'])) { //echo '<pre>';print_r($_POST);die; $cat_id = $_POST['cat_id']; $query = "select * from doctors where cat_id = '" . $cat_id . "' "; $result = mysqli_query($cn, $query); $re = mysqli_num_rows($result); if ($re) { $data = mysqli_fetch_array($result); //print_r($data); $message = ['message' => $data]; exit(json_encode($message)); } else { $message = ['message' => 'No Doctors against this category!! ']; exit(json_encode($message)); } } elseif(isset($_POST['getDocotrsData'])) { $cat_id = $_POST['cat_id']; $query = "select * from doctors where cat_id = '" . $cat_id . "' "; $result = mysqli_query($cn, $query); $re = mysqli_num_rows($result); $resouter =mysqli_query($cn,$query); $set = array(); @$total_records = mysqli_num_rows($resouter); if ($total_records!=''){ if($total_records >= 1){ while($row = mysqli_fetch_assoc($resouter)){ //$set['data'][] = 'id=' .$row['id']. ", ". 'user_id=' .$row['user_id']; $set['data'][] = utf8ize($row); } } exit(json_encode($set)); } else{ $data['data'][] = []; exit(json_encode($data)); } } elseif (isset($_POST['getJobProfile'])) { //echo '<pre>';print_r($_POST);die; $user_id = $_POST['user_id']; // $password = md5($_POST['password']); $query = "select * from doctors where user_id = '" . $user_id . "' "; $result = mysqli_query($cn, $query); $re = mysqli_num_rows($result); if ($re) { $data = mysqli_fetch_array($result); //print_r($data); $message = ['message' => $data]; exit(json_encode($message)); } else { $message = ['message' => 'No Record Found!! ']; exit(json_encode($message)); } } elseif (isset($_POST['changed_patient_appointment'])) { // $patient_id = $_POST['patient_id']; $id = $_POST['id']; $status = $_POST['status']; $appointment_date = $_POST['appointment_date']; // $query = "update doctors set"; $query = "UPDATE appointments SET `status` = '" . $status . "',`appointment_date` = '" . $appointment_date . "' WHERE `id` ='" . $id . "'"; //echo($query);die(); $re = mysqli_query($cn, $query); if ($re) { $message = ['message' => 'Status updated successfully!!']; exit(json_encode($message)); } else { $message = ['message' => 'There is an error!!']; exit(json_encode($message)); } } elseif (isset($_GET['getTokenSendPush'])) { $limit = $_GET['getTokenSendPush']; $doc_id = $_POST['doc_id']; // $query = "SELECT `token` FROM users WHERE id= $doc_id"; $query = "select token from users where id = '" . $doc_id . "' "; $result = mysqli_query($cn, $query); $row = mysqli_fetch_array($result); $id = $row['token']; // die ($id); $msg = array ( 'Doctor Finder' => 'You have new appointment', // 'sound' => 'default' ); ApplyPushFCM($msg, $id); if ($result) { $message = [ 'message' => 'push send successfully!!']; exit(json_encode($message)); } else { $message = [ 'message' => 'There is an error!!']; exit(json_encode($message)); } } elseif (isset($_POST['update_token'])) { // $patient_id = $_POST['patient_id']; $id = $_POST['id']; $token = $_POST['token']; // $query = "update doctors set"; $query = "UPDATE users SET `token` = '" . $token . "' WHERE `id` ='" . $id . "'"; //echo($query);die(); $re = mysqli_query($cn, $query); if ($re) { $message = ['message' => 'Token updated successfully!!']; exit(json_encode($message)); } else { $message = ['message' => 'There is an error!!']; exit(json_encode($message)); } } elseif (isset($_POST['update_user'])) { // $patient_id = $_POST['patient_id']; $id = $_POST['id']; $status = $_POST['status']; // $query = "update doctors set"; $query = "UPDATE appointments SET `status` = '" . $status . "' WHERE `id` ='" . $id . "'"; //echo($query);die(); $re = mysqli_query($cn, $query); if ($re) { $message = ['message' => 'Status updated successfully!!']; exit(json_encode($message)); } else { $message = ['message' => 'There is an error!!']; exit(json_encode($message)); } } elseif (isset($_POST['update_patient_appointment'])) { // $patient_id = $_POST['patient_id']; $id = $_POST['id']; $status = $_POST['status']; // $query = "update doctors set"; $query = "UPDATE appointments SET `status` = '" . $status . "' WHERE `id` ='" . $id . "'"; //echo($query);die(); $re = mysqli_query($cn, $query); if ($re) { $message = ['message' => 'Status updated successfully!!']; exit(json_encode($message)); } else { $message = ['message' => 'There is an error!!']; exit(json_encode($message)); } } elseif (isset($_POST['update_ratting'])) { $doc_id = $_POST['doc_id']; $doc_ratting = $_POST['doc_ratting']; $query = "UPDATE doctors SET `doc_ratting` = '" . $doc_ratting . "' WHERE `doc_id` ='" . $doc_id . "'"; //echo($query);die(); $re = mysqli_query($cn, $query); if ($re) { $message = ['message' => 'User updated successfully!!']; exit(json_encode($message)); } else { $message = ['message' => 'There is an error!!']; exit(json_encode($message)); } } elseif (isset($_POST['update_jobprofile'])) { $doc_name = $_POST['doc_name']; $user_id = $_POST['user_id']; $cat_id = $_POST['cat_id']; $doc_address = $_POST['doc_address']; $doc_experience = $_POST['doc_experience']; $doc_ratting = $_POST['doc_ratting']; $people_rate_no = $_POST['people_rate_no']; $doc_fee = $_POST['doc_fee']; $doc_clinic = $_POST['doc_clinic']; $doc_designation = $_POST['doc_designation']; $doc_specialty = $_POST['doc_specialty']; $doc_education = $_POST['doc_education']; $doc_about = $_POST['doc_about']; $latitude = $_POST['latitude']; $longitude = $_POST['longitude']; // $query = "update doctors set"; if ($_FILES['image']["name"]) { $image = $_FILES['image']["name"]; $target_file = basename($_FILES["image"]["name"]); $imageFileType = pathinfo($target_file, PATHINFO_EXTENSION); $filename = time() . '.' . $imageFileType; $path = __DIR__ . "/uploads/" . $filename; move_uploaded_file($_FILES["image"]["tmp_name"], $path); $image = $filename; } if ($_FILES['image2']["name"]) { $image2 = $_FILES['image2']["name"]; $target_file2 = basename($_FILES["image2"]["name"]); $imageFileType2 = pathinfo($target_file2, PATHINFO_EXTENSION); $filename2 = time() . '_bg.' . $imageFileType2; $path2 = __DIR__ . "/uploads/" . $filename2; move_uploaded_file($_FILES["image2"]["tmp_name"], $path2); $image2 = $filename2; } $query = "UPDATE doctors SET `doc_name` = '" . $doc_name . "', `cat_id` = '" . $cat_id . "', `doc_address` = '" . $doc_address . "', `doc_experience` = '" . $doc_experience . "', `doc_ratting` = '" . $doc_ratting . "', `people_rate_no` = '" . $people_rate_no . "', `doc_fee` = '" . $doc_fee . "', `doc_clinic` = '" . $doc_clinic . "', `doc_designation` = '" . $doc_designation . "', `doc_specialty` = '" . $doc_specialty . "', `doc_education` = '" . $doc_education . "', `doc_about` = '" . $doc_about . "', `latitude` = '" . $latitude . "', `longitude` = '" . $longitude . "', `doc_image` = '" . $image . "', `clinic_image` = '" . $image2 . "' WHERE `user_id` ='" . $user_id . "'"; //echo($query);die(); $re = mysqli_query($cn, $query); if ($re) { $message = ['message' => 'User updated successfully!!']; exit(json_encode($message)); } else { $message = ['message' => 'There is an error!!']; exit(json_encode($message)); } } elseif (isset($_POST['update_user_profile'])) { $id = $_POST['id']; $user_name = $_POST['user_name']; $email= $_POST['email']; $phone = $_POST['phone']; // $query = "update doctors set"; if ($_FILES['image']["name"]) { $image = $_FILES['image']["name"]; $target_file = basename($_FILES["image"]["name"]); $imageFileType = pathinfo($target_file, PATHINFO_EXTENSION); $filename = time() . '.' . $imageFileType; $path = __DIR__ . "/uploads/" . $filename; move_uploaded_file($_FILES["image"]["tmp_name"], $path); $image = $filename; } $query = "UPDATE users SET `user_name` = '" . $user_name . "', `email` = '" . $email. "', `phone` = '" . $phone . "' ,`image` = '" . $filename . "' WHERE `id` ='" . $id . "'"; //echo($query);die(); $re = mysqli_query($cn, $query); if ($re) { $message = ['message' => 'User updated successfully!!']; exit(json_encode($message)); } else { $message = ['message' => 'There is an error!!']; exit(json_encode($message)); } } elseif (isset($_POST['update_user2'])) { $id = $_POST['id']; $user_name = $_POST['user_name']; $email = $_POST['email']; $phone_no = $_POST['phone']; // $query = "update users set"; if (isset($_FILES['user_image'])) { if ($_FILES['user_image']["name"]) { $image = $_FILES['user_image']["name"]; $target_file = basename($_FILES["user_image"]["name"]); $imageFileType = pathinfo($target_file, PATHINFO_EXTENSION); $filename = time() . '.' . $imageFileType;// . $image->getClientOriginalExtension(); $path = __DIR__ . "/uploads/" . $filename; move_uploaded_file($_FILES["user_image"]["tmp_name"], $path); } $query .= " user_image='" . $filename . "'"; } $query .= "where id ='" . $id . "'"; $query = "UPDATE `users` SET `user_name` = '" . $user_name . "', `email` = '" . $email . "', `phone` = '" . $phone_no . "', `image` = '" . $filename . "' WHERE `id` ='" . $id . "'"; //echo($query);die(); $re = mysqli_query($cn, $query); if ($re) { $message = ['message' => 'User updated successfully!!']; exit(json_encode($message)); } else { $message = ['message' => 'There is an error!!']; exit(json_encode($message)); } } elseif (isset($_POST['change_password'])) { $user_id = $_POST['user_id']; $old_psw = md5($_POST['old_psw']); $new_psw = md5($_POST['new_psw']); $query = "select * from users where user_id = '" . $user_id . "'"; $re = mysqli_query($cn, $query); while ($row = mysqli_fetch_array($re)) { $db_pass = $row['password']; //die($db_pass); } if ($old_psw == $db_pass) { $query = "UPDATE users SET password ='" . $new_psw . "' where user_id= '" . $user_id . "'"; //die($query); $re = mysqli_query($cn, $query); //die($re); if ($re) { $message = ['message' => 'Password updated successfully!!']; exit(json_encode($message)); } else { $message = ['message' => 'There is an error!!']; exit(json_encode($message)); } } else { $message = ['message' => 'Password is incorrect!!']; exit(json_encode($message)); } }elseif (isset($_GET['req_password'])) { $limit = $_GET['req_password']; $email = $_POST["email"]; $query = "SELECT email FROM users WHERE email='$email'"; $re = mysqli_query($cn, $query); if ($re->num_rows == '1') { $code = rand(); //$code = random_string('numeric', 8); $query = "UPDATE users SET code =" . $code . " WHERE email = '$email' "; $result = mysqli_query($cn, $query); if ($result) { $to = $email; $subject = "Reset password request"; $txt = "Its random string to reset password:" . $code; $headers = "From: support@bluehorntech.co.uk" . "\r\n" . "CC: somebodyelse@example.com"; mail($to, $subject, $txt, $headers); $message = [ 'message' => 'Request for password reset sent to your email!!']; exit(json_encode($message)); } else { $message = [ 'message' => 'There is an error!!']; exit(json_encode($message)); } } else { $message = [ 'message' => 'invalid email!!']; exit(json_encode($message)); } } elseif (isset($_GET['update_password'])) { $limit = $_GET['update_password']; $email = $_POST['email']; $code = $_POST["code"]; $password = $_POST["new_password"]; $pwd = md5($password); $query = "SELECT code FROM users WHERE email = '" . $email . "'"; $db_code = mysqli_query($cn, $query); while ($row = $db_code->fetch_assoc()) { $bd_c = $row['code']; } if ($bd_c == $code && $bd_c !== '') { $query = "UPDATE users SET password = '" . $pwd . "' WHERE code = '" . $code . "' "; $re = mysqli_query($cn, $query); if ($re) { $message = [ 'message' => 'password has been changed successfully!!']; exit(json_encode($message)); } else { $message = [ 'message' => 'There is an error!!']; exit(json_encode($message)); } } else { $message = [ 'message' => 'code is invalid!!']; exit(json_encode($message)); } } elseif (isset($_POST['reset_password'])) { $email = $_POST['email']; $subject = " Password Reset "; $body = " This is an automated emil.plz Donot reply this email. Click the link below or paste in your browser http://www.takeawaymobileapplication.uk/clients/apis/classified/reset_password.php "; mail($email, $subject, $body); } $resouter = mysqli_query($cn, $query); $set = array(); @$total_records = mysqli_num_rows($resouter); if ($total_records != '') { if ($total_records >= 1) { while ($row = mysqli_fetch_assoc($resouter)) { $set['data'][] = utf8ize($row); } } exit(json_encode($set)); } else { $data['data'][] = []; exit(json_encode($data)); } function ApplyPushFCM($msg, $id) { $url = 'https://fcm.googleapis.com/fcm/send'; $fields = array( 'registration_ids' => array( $id ), 'data' => array( "message" => $msg ), 'collapse_key' => "{3}" ); $fields = json_encode($fields); $headers = array( 'Authorization: key= AIzaSyCeQa2wdGvukA47qHctsWoqALsb3v4l-hk', 'Content-Type: application/json' ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $fields); $result = curl_exec($ch); echo $result; curl_close($ch); } ?>
© 2017 -
ZeroByte.ID
.