����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
/
web
/
web
/
sb_web
/
b2680
/
zoompc.info
/
megaapps
/
cronjob
/
[
Home
]
File: fetch3.php
<?php // last update at 10.04.2012 set_time_limit(0); define('WP_USE_THEMES', false); require('../wp-blog-header.php'); echo '<meta http-equiv="content-type" content="text/html; charset=UTF-8" />'; error_reporting(E_ERROR); function AppFetch() { $global_count = 1; $url = get_bloginfo('home'); $templateurl = get_bloginfo('template_directory'); $dat1f = ""; $dat2f = ""; $dat3f = ""; $data = file_get_contents("http://itunes.apple.com/us/rss/toppaidapplications/limit=5/xml"); while ($data === false) {$data = file_get_contents("http://itunes.apple.com/us/rss/toppaidapplications/limit=5/xml");} for ($i=1; $i<=5; $i++) { ### // remove data for next loop $onpage = ''; $name = ''; $poster = ''; $link = ''; $iosdata = ''; ### $onpage = explode('<entry>',$data); $onpage = explode('</entry>',$onpage[$i]); $onpage = $onpage[0]; $link = explode('<link rel="alternate" type="text/html" href="',$onpage); $link = explode('"',$link[1]); $link = $link[0]; $name = explode('<im:name>',$onpage); $name = explode('</im:name>',$name[1]); $name = $name[0]; $name2 = str_replace("'","'",$name); $name2 = str_replace(""",'"',$name2); if (preg_match('/[\x{4E00}-\x{9FBF}\x{3040}-\x{309F}\x{30A0}-\x{30FF}]/u', $name2)){continue;} $iosdata = file_get_contents($link); while ($iosdata === false) {$iosdata = file_get_contents($link);} $appname = explode('<h1 itemprop="name">',$iosdata); $appname = explode('</h1>',$appname[1]); $appname = $appname[0]; $appauthor = explode('<h2>By ',$iosdata); $appauthor = explode('</h2>',$appauthor[1]); $appauthor = $appauthor[0]; $appimage = explode('?mt=8"><div class="artwork"><img',$iosdata); $appimage = explode('/>',$appimage[1]); $appimage = explode('src-swap="',$appimage[0]); $appimage = explode('"',$appimage[1]); $appimage = $appimage[0]; if (!empty($appimage)) { $appimage = '<img class="poster" src="'.$appimage.'" />'; } $appprice = explode('class="price">',$iosdata); $appprice = explode('</div>',$appprice[1]); $appprice = $appprice[0]; if ($appprice == "Free") {$apptag1 = 'free';} else {$apptag1 = 'paid';} $appdesigned = explode('<span class="fat-binary-badge"></span><span>',$iosdata); $appdesigned = explode('</span>',$appdesigned[1]); $appdesigned = $appdesigned[0]; if ($appdesigned == "This app is designed for both iPhone and iPad") {$apptag2 = 'iphone'; $apptag3 = 'ipad';} else {$apptag2 = 'iphone'; $apptag3 = '';} $applink = str_replace(':','%253A',$link); $applink = str_replace('/','%252F',$applink); $applink = str_replace('?','%253F',$applink); $applink = str_replace('=','%253D',$applink); $applink = str_replace('%252Fus','%252Fus',$applink); $applink = 'http://click.linksynergy.com/fs-bin/stat?id=CBIMl*gYY/8&offerid=146261&type=3&subid=0&tmpid=1826&RD_PARM1='.$applink.'%253FpartnerId%253D30'; $appcat = explode('<span itemprop="applicationCategory">',$iosdata); $appcat = explode('</span>',$appcat[1]); $appcat = $appcat[0]; $appupdated = explode('<span itemprop="datePublished"',$iosdata); $appupdated = explode('</li>',$appupdated[1]); $appupdated = $appupdated[0]; $appupdated = explode('">',$appupdated); $appupdated = explode('</span>',$appupdated[1]); $appupdated = $appupdated[0]; $appupdated2 = ''; if (empty($appupdated)) { $appupdated2 = explode('<span class="label">Released: </span>',$iosdata); $appupdated2 = explode('</li>',$appupdated2[1]); $appupdated2 = $appupdated2[0]; } $appversion = explode('<span itemprop="softwareVersion">',$iosdata); $appversion = explode('</span>',$appversion[1]); $appversion = $appversion[0]; $appsize = explode('<span class="label">Size: </span>',$iosdata); $appsize = explode('</li>',$appsize[1]); $appsize = $appsize[0]; $applanguage = explode('<span class="label">Language: </span>',$iosdata); $applanguage = explode('</li>',$applanguage[1]); $applanguage = $applanguage[0]; $appseller = explode('itemprop="author"><span itemprop="name">',$iosdata); $appseller = explode('</span>',$appseller[1]); $appseller = $appseller[0]; $apprated = explode('System=appsApple">',$iosdata); $apprated = explode('</a>',$apprated[1]); $apprated = $apprated[0]; if (strlen($apprated) > 50) {$apprated = '';} $appreq = explode('<span itemprop="operatingSystem">',$iosdata); $appreq = explode('</span>',$appreq[1]); $appreq = $appreq[0]; if (substr_count($appreq,"Compatible with iPad.") > 0) {$apptag2 = ''; $apptag3 = 'ipad';} $appcurrentrate = explode("Ratings'><div>",$iosdata); $appcurrentrate = explode('</span></div>',$appcurrentrate[1]); $appcurrentrate = $appcurrentrate[0]; $appcurrentrate2 = explode('<span class="rating-count">',$iosdata); $appcurrentrate2 = explode('</span>',$appcurrentrate2[1]); $appcurrentrate2 = $appcurrentrate2[0]; if (!empty($appcurrentrate2)) {$appcurrentrate = '<BR><BR><B>Current Version</b><br><div class="ratings">'.$appcurrentrate.'</span></div><BR><small>('.$appcurrentrate2.')</small>';} $appallrate = explode("Ratings'><div>",$iosdata); $appallrate = explode('</span></div>',$appallrate[2]); $appallrate = $appallrate[0]; $appallrate2 = explode('<span class="rating-count">',$iosdata); $appallrate2 = explode('</span>',$appallrate2[2]); $appallrate2 = $appallrate2[0]; if (!empty($appallrate2)) {$appallrate = '<BR><BR><B>All Versions</b><br><div class="ratings">'.$appallrate.'</span></div><BR><small>('.$appallrate2.')</small>';} $appmore = explode('class="extra-list more-by">',$iosdata); $appmore = explode(' <object classID="CLSID:D719897A-B07A-4C0C-AEA9-9B663A28DFCB" width="1" height="1" id="iTunesDetectorIE" ></object>',$appmore[1]); $appmore = $appmore[0]; $appmore_num = substr_count($appmore,'metrics-loc="Lockup_"'); $morenum = 1; $appmoredata = ''; while ($morenum <= $appmore_num) { $morepart = explode('metrics-loc="Lockup_"',$appmore); $morepart = explode('metrics-loc="Lockup_"',$morepart[$morenum]); $morepart = $morepart[0]; $moreimg = explode('src-swap="',$morepart); $moreimg = explode('"',$moreimg[1]); $moreimg = str_replace('75x75-65.jpg','100x100-75.jpg',$moreimg[0]); $morename = explode('class="name">',$morepart); $morename = explode('</a>',$morename[1]); $morename = $morename[0]; if (strlen($morename) > 15) {$morename = substr($morename,0,15).'..';} $morelink = explode('class="list"><li><a href="',$morepart); $morelink = explode('"',$morelink[1]); $morelink = $morelink[0]; $morelink = str_replace(':','%253A',$morelink); $morelink = str_replace('/','%252F',$morelink); $morelink = str_replace('?','%253F',$morelink); $morelink = str_replace('=','%253D',$morelink); $morelink = str_replace('%252Fus','%252Fus',$morelink); $morelink = 'http://click.linksynergy.com/fs-bin/stat?id=CBIMl*gYY/8&offerid=146261&type=3&subid=0&tmpid=1826&RD_PARM1='.$morelink.'%253FpartnerId%253D30'; $appmoredata .= "<td width=20%><img class=poster src=$moreimg><BR>$morename<BR><a href=$morelink target=_blank><img src=../../buyinitunes.png border=0></a></td>"; $morenum++; } if (!empty($appmoredata)) { $appmoredata = '<table class=topalbums><tr style=background:#f1f1f1><td colspan=5><h2>More Apps by '.$appauthor.'</h2></td></tr><tr>'.$appmoredata."</tr></table>"; } $appdescr = explode('<p itemprop="description">',$iosdata); $appdescr = explode('</p>',$appdescr[1]); $appdescr = preg_replace('/[^(\x20-\x7F)]*/','', $appdescr[0]); $appnewver = explode('metrics-loc="Titledbox_What',$iosdata); $appnewver = explode('</div>',$appnewver[1]); $appnewver = explode('<p>',$appnewver[0]); $appnewver = explode('</p>',$appnewver[1]); $appnewver = $appnewver[0]; $appscreens = explode('class="swoosh lockup-container application large screenshots">',$iosdata); $appscreens = explode('</div></div></div>',$appscreens[1]); $appscreens = $appscreens[0]; $screens = substr_count($appscreens,'src='); $snum = 1; $appscreendata = ''; while ($snum <= $screens) { $screen = explode('src="',$appscreens); $screen = explode('"',$screen[$snum]); $screen = $screen[0]; $appscreendata .= "<td width=20%><a href=$screen rel=prettyPhoto[image]><img class=poster src=$screen width=120px></a></td>"; $snum++; } if (!empty($appscreendata)) { $appscreendata = '<table class=topalbums><tr style=background:#f1f1f1><td colspan=5><h2>'.$appname.' Screenshots</h2></td></tr><tr>'.$appscreendata."</tr></table>"; } $appreviews = explode('Customer Reviews',$iosdata); $appreviews = explode('metrics-loc',$appreviews[1]); $appreviews = $appreviews[0]; $alreviewnum = substr_count($appreviews,"customerReviewTitle"); $ialrev = 1; $alrevdat = ''; $alrevname = ''; $alrevrating = ''; $alrevinfo = ''; $apprevdata = ''; while ($ialrev <= $alreviewnum) { $alrevdat = explode('customerReviewTitle',$appreviews); $alrevdat = explode('customerReviewTitle',$alrevdat[$ialrev]); $alrevdat = $alrevdat[0]; $alrevname = explode('">',$alrevdat); $alrevname = explode('</span>',$alrevname[1]); $alrevname = $alrevname[0]; $alrevrating = explode("aria-label='",$alrevdat); $alrevrating = explode("'",$alrevrating[1]); $alrevrating = $alrevrating[0]; $alrevinfo = explode('<p class="content" will-truncate-max-height="0" data-text-truncate-lines="5">',$alrevdat); $alrevinfo = explode('</p>',$alrevinfo[1]); $alrevinfo = substr($alrevinfo[0],0,450); $apprevdata .= "<b>$alrevname</b> ($alrevrating)<BR>$alrevinfo<BR><BR>"; $ialrev++; } if (!empty($apprevdata)) {$apprevdata='<h2>Customer Reviews</h2>'.preg_replace('/[^(\x20-\x7F)]*/','', $apprevdata).'<div id="article"></div>';} $appbought = explode('<h2>Customers Also Bought</h2>',$iosdata); $appbought = explode('<div id="left-stack">',$appbought[1]); $appbought = $appbought[0]; $appboughtdata = ""; $appboughtnum = substr_count($appbought,'metrics-loc="Lockup_"'); $itop = 1; while ($itop <= $appboughtnum) { $boughtdata = explode('role="group"',$appbought); $boughtdata = explode('role="group"',$boughtdata[$itop]); $boughtdata = $boughtdata[0]; $boughtname = explode('class="name">',$boughtdata); $boughtname = explode('</a>',$boughtname[1]); $boughtname = $boughtname[0]; if (strlen($boughtname) > 14) {$boughtname = substr($boughtname,0,14).'..';} $boughtimg = explode('src-swap="',$boughtdata); $boughtimg = explode('"',$boughtimg[1]); $boughtimg = $boughtimg[0]; $boughtlink = explode('openItunes('',$boughtdata); $boughtlink = explode('');',$boughtlink[1]); $boughtlink = $boughtlink[0]; $boughtlink = str_replace(':','%253A',$boughtlink); $boughtlink = str_replace('/','%252F',$boughtlink); $boughtlink = str_replace('?','%253F',$boughtlink); $boughtlink = str_replace('=','%253D',$boughtlink); $boughtlink = str_replace('%252Fus','%252Fus',$boughtlink); $boughtlink = 'http://click.linksynergy.com/fs-bin/stat?id=CBIMl*gYY/8&offerid=146261&type=3&subid=0&tmpid=1826&RD_PARM1='.$boughtlink.'%253FpartnerId%253D30'; $appboughtdata .= "<td width=20%><img class=poster src=$boughtimg><BR>$boughtname<BR><a href=$boughtlink target=_blank><img src=../../buyinitunes.png border=0></a>"; $itop++; } if (!empty($appboughtdata)) { $appboughtdata = '<table class=topalbums><tr style=background:#f1f1f1><td colspan=5><h2>Customers Also Bought</h2></td></tr><tr>'.$appboughtdata."</tr></table>"; } // INSERT DATA TO DATABASE HERE $theapptitle = $appname; $theapptitle = str_replace("'","'",$theapptitle); $theappdate = strtotime($appupdated); $theappdate = date("Y-m-d H:i:s",$theappdate); if (empty($appupdated)) { $theappdate = strtotime($appupdated2); $theappdate = date("Y-m-d H:i:s",$theappdate); } $catNUM2 = $appcat; switch ($catNUM2) { case "Books": $catNUM2="1"; break; case "Business": $catNUM2="2"; break; case "Catalogs": $catNUM2="3"; break; case "Education": $catNUM2="4"; break; case "Entertainment": $catNUM2="5"; break; case "Finance": $catNUM2="6"; break; case "Games": $catNUM2="7"; break; case "Health & Fitness": $catNUM2="8"; break; case "Lifestyle": $catNUM2="9"; break; case "Medical": $catNUM2="10"; break; case "Music": $catNUM2="11"; break; case "Navigation": $catNUM2="12"; break; case "News": $catNUM2="13"; break; case "Newsstand": $catNUM2="14"; break; case "Photo & Video": $catNUM2="15"; break; case "Productivity": $catNUM2="16"; break; case "Reference": $catNUM2="17"; break; case "Social Networking": $catNUM2="18"; break; case "Sports": $catNUM2="19"; break; case "Travel": $catNUM2="20"; break; case "Utilities": $catNUM2="21"; break; case "Weather": $catNUM2="22"; break; default: $catNUM2 = "7"; break; } $e1 = "$theapptitle"; $e2 = "$appimage"; if (empty($appimage)) {continue;} $keytitle = str_replace('"','',$theapptitle); $keytitle = str_replace("'","",$keytitle); $e3 = '<a href="'.$applink.'" target="_blank"><img src="../../buyalbum.png" border="0"></a>'; if (!empty($appdesigned)) {$e4 = "<BR><BR><img src=../../point.png class=point> $appdesigned";} else {$e4 = '';} $e5 = "<BR><BR><b>Price:</b> $appprice</b>"; $e6 = "<BR><BR><b>Category:</b> $appcat</b>"; if (!empty($appupdated)) {$e7 = "<BR><BR><b>Updated:</b> $appupdated</b>";} else {$e7 = "<BR><BR><b>Released:</b> $appupdated2</b>";} $e8 = "<BR><BR><b>Version:</b> $appversion</b>"; $e9 = "<BR><BR><b>Size:</b> $appsize</b>"; if (!empty($applanguage)) { $e10 = "<BR><BR><b>Language:</b> $applanguage</b>";} else {$e10 = '';} $e11 = "<BR><BR><b>Seller:</b> $appseller"; if (!empty($apprated)) { $e12 = "<br><BR><b>$apprated</b>"; } else {$e12='';} $e13 = "<br><BR><b>Requirements:</b> $appreq"; if (!empty($appcurrentrate) || !empty($appallrate)) { $e14 = "<BR><BR><BR><b><font style=font-size:15px;>Customer Ratings</font></b>$appcurrentrate $appallrate";} else {$e14 = '';} $e15 = "$appscreendata<br><br><h2>Description</h2>$appdescr<div id=article></div>"; if (!empty($appnewver)) { $e16 = "<h2>What's New in Version $appversion</h2>$appnewver<div id=article></div>";} else {$e16 = '';} if (!empty($apprevdata)) {$e18 = "$apprevdata";} else {$e18 = '';} if (!empty($appmoredata)) {$e19 = preg_replace('/[^(\x20-\x7F)]*/','', $appmoredata);} else {$e19 = '';} if (!empty($appboughtdata)) {$e20 = preg_replace('/[^(\x20-\x7F)]*/','', $appboughtdata);} else {$e20 = '';} if (!empty($appmoredata) && !empty($appboughtdata)) {$e20 = '<BR>'.$e20;} $MAINCONTENT2 = $e15.$e16.$e18.$e19.$e20; $ADDCONTENT2 = $e3.$e4.$e5.$e6.$e7.$e8.$e9.$e10.$e11.$e12.$e13.$e14; $MAINCONTENT2 = str_replace("'","'",$MAINCONTENT2); $ADDCONTENT2 = str_replace("'","'",$ADDCONTENT2); $title = str_replace("'","'",$e1); $POST_EXCERPT2 = str_replace("'",'"',$e2); $title3 = $title; $title3 = ereg_replace("[^a-zA-Z0-9 ]", "", $title3); $title3 = ereg_replace(" +", " ", $title3); $title3 = str_replace(" ", "-", $title3); $title3 = strtolower($title3); if (substr($title3, -1) == '-') {$title3 = substr($title3, 0, -1);} global $wpdb; $result = $wpdb->query("SELECT ID FROM wp_posts WHERE post_title='$name2' "); $coincidences = $wpdb->num_rows; if ($coincidences == 0) { $wpdb->query("INSERT INTO wp_posts VALUES ('NULL','1','$theappdate','$theappdate','$MAINCONTENT2','$title','$catNUM2','$POST_EXCERPT2','publish','open','open','','$title3','','','$theappdate','$theappdate','','0','','0','post','','0','$appauthor','$ADDCONTENT2')"); $wpdb->query("INSERT INTO `wp_term_relationships` VALUES (LAST_INSERT_ID(),'$catNUM2','0')"); $wpdb->query("UPDATE `wp_term_taxonomy` SET count=count+1 WHERE term_id='$catNUM2'"); if ($apptag1 == "paid") { $wpdb->query("INSERT INTO `wp_term_relationships` VALUES (LAST_INSERT_ID(),'25','0')"); $wpdb->query("UPDATE `wp_term_taxonomy` SET count=count+1 WHERE term_id='25'"); } else { $wpdb->query("INSERT INTO `wp_term_relationships` VALUES (LAST_INSERT_ID(),'26','0')"); $wpdb->query("UPDATE `wp_term_taxonomy` SET count=count+1 WHERE term_id='26'"); } if ($apptag2 == "iphone") { $wpdb->query("INSERT INTO `wp_term_relationships` VALUES (LAST_INSERT_ID(),'23','0')"); $wpdb->query("UPDATE `wp_term_taxonomy` SET count=count+1 WHERE term_id='23'"); } if ($apptag3 == "ipad") { $wpdb->query("INSERT INTO `wp_term_relationships` VALUES (LAST_INSERT_ID(),'24','0')"); $wpdb->query("UPDATE `wp_term_taxonomy` SET count=count+1 WHERE term_id='24'"); } } echo "| $global_count. ".$name." - done | "; $global_count++; $poster = explode('src="',$appimage); $poster = explode('"',$poster[1]); $poster = str_replace("175x175","53x53",$poster[0]); $dat1f .= "<tr><td valign='top'><a href='games/$title3' ><img src='$poster' class='posterr'></a></td><td valign='top'><a href='games/$title3' ><b>$i. ".substr($appname,0,25)."</b><br>by ".substr($appauthor,0,25)."<br>$appprice - $appcat</a></td></tr>"; } $data = file_get_contents("http://itunes.apple.com/us/rss/topfreeapplications/limit=5/xml"); while ($data === false) {$data = file_get_contents("http://itunes.apple.com/us/rss/topfreeapplications/limit=5/xml");} for ($i=1; $i<=5; $i++) { ### // remove data for next loop $onpage = ''; $name = ''; $poster = ''; $link = ''; $iosdata = ''; ### $onpage = explode('<entry>',$data); $onpage = explode('</entry>',$onpage[$i]); $onpage = $onpage[0]; $link = explode('<link rel="alternate" type="text/html" href="',$onpage); $link = explode('"',$link[1]); $link = $link[0]; $name = explode('<im:name>',$onpage); $name = explode('</im:name>',$name[1]); $name = $name[0]; $name2 = str_replace("'","'",$name); $name2 = str_replace(""",'"',$name2); if (preg_match('/[\x{4E00}-\x{9FBF}\x{3040}-\x{309F}\x{30A0}-\x{30FF}]/u', $name2)){continue;} $iosdata = file_get_contents($link); while ($iosdata === false) {$iosdata = file_get_contents($link);} $appname = explode('<h1 itemprop="name">',$iosdata); $appname = explode('</h1>',$appname[1]); $appname = $appname[0]; $appauthor = explode('<h2>By ',$iosdata); $appauthor = explode('</h2>',$appauthor[1]); $appauthor = $appauthor[0]; $appimage = explode('?mt=8"><div class="artwork"><img',$iosdata); $appimage = explode('/>',$appimage[1]); $appimage = explode('src-swap="',$appimage[0]); $appimage = explode('"',$appimage[1]); $appimage = $appimage[0]; if (!empty($appimage)) { $appimage = '<img class="poster" src="'.$appimage.'" />'; } $appprice = explode('class="price">',$iosdata); $appprice = explode('</div>',$appprice[1]); $appprice = $appprice[0]; if ($appprice == "Free") {$apptag1 = 'free';} else {$apptag1 = 'paid';} $appdesigned = explode('<span class="fat-binary-badge"></span><span>',$iosdata); $appdesigned = explode('</span>',$appdesigned[1]); $appdesigned = $appdesigned[0]; if ($appdesigned == "This app is designed for both iPhone and iPad") {$apptag2 = 'iphone'; $apptag3 = 'ipad';} else {$apptag2 = 'iphone'; $apptag3 = '';} $applink = str_replace(':','%253A',$link); $applink = str_replace('/','%252F',$applink); $applink = str_replace('?','%253F',$applink); $applink = str_replace('=','%253D',$applink); $applink = str_replace('%252Fus','%252Fus',$applink); $applink = 'http://click.linksynergy.com/fs-bin/stat?id=CBIMl*gYY/8&offerid=146261&type=3&subid=0&tmpid=1826&RD_PARM1='.$applink.'%253FpartnerId%253D30'; $appcat = explode('<span itemprop="applicationCategory">',$iosdata); $appcat = explode('</span>',$appcat[1]); $appcat = $appcat[0]; $appupdated = explode('<span itemprop="datePublished"',$iosdata); $appupdated = explode('</li>',$appupdated[1]); $appupdated = $appupdated[0]; $appupdated = explode('">',$appupdated); $appupdated = explode('</span>',$appupdated[1]); $appupdated = $appupdated[0]; $appupdated2 = ''; if (empty($appupdated)) { $appupdated2 = explode('<span class="label">Released: </span>',$iosdata); $appupdated2 = explode('</li>',$appupdated2[1]); $appupdated2 = $appupdated2[0]; } $appversion = explode('<span itemprop="softwareVersion">',$iosdata); $appversion = explode('</span>',$appversion[1]); $appversion = $appversion[0]; $appsize = explode('<span class="label">Size: </span>',$iosdata); $appsize = explode('</li>',$appsize[1]); $appsize = $appsize[0]; $applanguage = explode('<span class="label">Language: </span>',$iosdata); $applanguage = explode('</li>',$applanguage[1]); $applanguage = $applanguage[0]; $appseller = explode('itemprop="author"><span itemprop="name">',$iosdata); $appseller = explode('</span>',$appseller[1]); $appseller = $appseller[0]; $apprated = explode('System=appsApple">',$iosdata); $apprated = explode('</a>',$apprated[1]); $apprated = $apprated[0]; if (strlen($apprated) > 50) {$apprated = '';} $appreq = explode('<span itemprop="operatingSystem">',$iosdata); $appreq = explode('</span>',$appreq[1]); $appreq = $appreq[0]; if (substr_count($appreq,"Compatible with iPad.") > 0) {$apptag2 = ''; $apptag3 = 'ipad';} $appcurrentrate = explode("Ratings'><div>",$iosdata); $appcurrentrate = explode('</span></div>',$appcurrentrate[1]); $appcurrentrate = $appcurrentrate[0]; $appcurrentrate2 = explode('<span class="rating-count">',$iosdata); $appcurrentrate2 = explode('</span>',$appcurrentrate2[1]); $appcurrentrate2 = $appcurrentrate2[0]; if (!empty($appcurrentrate2)) {$appcurrentrate = '<BR><BR><B>Current Version</b><br><div class="ratings">'.$appcurrentrate.'</span></div><BR><small>('.$appcurrentrate2.')</small>';} $appallrate = explode("Ratings'><div>",$iosdata); $appallrate = explode('</span></div>',$appallrate[2]); $appallrate = $appallrate[0]; $appallrate2 = explode('<span class="rating-count">',$iosdata); $appallrate2 = explode('</span>',$appallrate2[2]); $appallrate2 = $appallrate2[0]; if (!empty($appallrate2)) {$appallrate = '<BR><BR><B>All Versions</b><br><div class="ratings">'.$appallrate.'</span></div><BR><small>('.$appallrate2.')</small>';} $appmore = explode('class="extra-list more-by">',$iosdata); $appmore = explode(' <object classID="CLSID:D719897A-B07A-4C0C-AEA9-9B663A28DFCB" width="1" height="1" id="iTunesDetectorIE" ></object>',$appmore[1]); $appmore = $appmore[0]; $appmore_num = substr_count($appmore,'metrics-loc="Lockup_"'); $morenum = 1; $appmoredata = ''; while ($morenum <= $appmore_num) { $morepart = explode('metrics-loc="Lockup_"',$appmore); $morepart = explode('metrics-loc="Lockup_"',$morepart[$morenum]); $morepart = $morepart[0]; $moreimg = explode('src-swap="',$morepart); $moreimg = explode('"',$moreimg[1]); $moreimg = str_replace('75x75-65.jpg','100x100-75.jpg',$moreimg[0]); $morename = explode('class="name">',$morepart); $morename = explode('</a>',$morename[1]); $morename = $morename[0]; if (strlen($morename) > 15) {$morename = substr($morename,0,15).'..';} $morelink = explode('class="list"><li><a href="',$morepart); $morelink = explode('"',$morelink[1]); $morelink = $morelink[0]; $morelink = str_replace(':','%253A',$morelink); $morelink = str_replace('/','%252F',$morelink); $morelink = str_replace('?','%253F',$morelink); $morelink = str_replace('=','%253D',$morelink); $morelink = str_replace('%252Fus','%252Fus',$morelink); $morelink = 'http://click.linksynergy.com/fs-bin/stat?id=CBIMl*gYY/8&offerid=146261&type=3&subid=0&tmpid=1826&RD_PARM1='.$morelink.'%253FpartnerId%253D30'; $appmoredata .= "<td width=20%><img class=poster src=$moreimg><BR>$morename<BR><a href=$morelink target=_blank><img src=../../buyinitunes.png border=0></a></td>"; $morenum++; } if (!empty($appmoredata)) { $appmoredata = '<table class=topalbums><tr style=background:#f1f1f1><td colspan=5><h2>More Apps by '.$appauthor.'</h2></td></tr><tr>'.$appmoredata."</tr></table>"; } $appdescr = explode('<p itemprop="description">',$iosdata); $appdescr = explode('</p>',$appdescr[1]); $appdescr = preg_replace('/[^(\x20-\x7F)]*/','', $appdescr[0]); $appnewver = explode('metrics-loc="Titledbox_What',$iosdata); $appnewver = explode('</div>',$appnewver[1]); $appnewver = explode('<p>',$appnewver[0]); $appnewver = explode('</p>',$appnewver[1]); $appnewver = $appnewver[0]; $appscreens = explode('class="swoosh lockup-container application large screenshots">',$iosdata); $appscreens = explode('</div></div></div>',$appscreens[1]); $appscreens = $appscreens[0]; $screens = substr_count($appscreens,'src='); $snum = 1; $appscreendata = ''; while ($snum <= $screens) { $screen = explode('src="',$appscreens); $screen = explode('"',$screen[$snum]); $screen = $screen[0]; $appscreendata .= "<td width=20%><a href=$screen rel=prettyPhoto[image]><img class=poster src=$screen width=120px></a></td>"; $snum++; } if (!empty($appscreendata)) { $appscreendata = '<table class=topalbums><tr style=background:#f1f1f1><td colspan=5><h2>'.$appname.' Screenshots</h2></td></tr><tr>'.$appscreendata."</tr></table>"; } $appreviews = explode('Customer Reviews',$iosdata); $appreviews = explode('metrics-loc',$appreviews[1]); $appreviews = $appreviews[0]; $alreviewnum = substr_count($appreviews,"customerReviewTitle"); $ialrev = 1; $alrevdat = ''; $alrevname = ''; $alrevrating = ''; $alrevinfo = ''; $apprevdata = ''; while ($ialrev <= $alreviewnum) { $alrevdat = explode('customerReviewTitle',$appreviews); $alrevdat = explode('customerReviewTitle',$alrevdat[$ialrev]); $alrevdat = $alrevdat[0]; $alrevname = explode('">',$alrevdat); $alrevname = explode('</span>',$alrevname[1]); $alrevname = $alrevname[0]; $alrevrating = explode("aria-label='",$alrevdat); $alrevrating = explode("'",$alrevrating[1]); $alrevrating = $alrevrating[0]; $alrevinfo = explode('<p class="content" will-truncate-max-height="0" data-text-truncate-lines="5">',$alrevdat); $alrevinfo = explode('</p>',$alrevinfo[1]); $alrevinfo = substr($alrevinfo[0],0,450); $apprevdata .= "<b>$alrevname</b> ($alrevrating)<BR>$alrevinfo<BR><BR>"; $ialrev++; } if (!empty($apprevdata)) {$apprevdata='<h2>Customer Reviews</h2>'.preg_replace('/[^(\x20-\x7F)]*/','', $apprevdata).'<div id="article"></div>';} $appbought = explode('<h2>Customers Also Bought</h2>',$iosdata); $appbought = explode('<div id="left-stack">',$appbought[1]); $appbought = $appbought[0]; $appboughtdata = ""; $appboughtnum = substr_count($appbought,'metrics-loc="Lockup_"'); $itop = 1; while ($itop <= $appboughtnum) { $boughtdata = explode('role="group"',$appbought); $boughtdata = explode('role="group"',$boughtdata[$itop]); $boughtdata = $boughtdata[0]; $boughtname = explode('class="name">',$boughtdata); $boughtname = explode('</a>',$boughtname[1]); $boughtname = $boughtname[0]; if (strlen($boughtname) > 14) {$boughtname = substr($boughtname,0,14).'..';} $boughtimg = explode('src-swap="',$boughtdata); $boughtimg = explode('"',$boughtimg[1]); $boughtimg = $boughtimg[0]; $boughtlink = explode('openItunes('',$boughtdata); $boughtlink = explode('');',$boughtlink[1]); $boughtlink = $boughtlink[0]; $boughtlink = str_replace(':','%253A',$boughtlink); $boughtlink = str_replace('/','%252F',$boughtlink); $boughtlink = str_replace('?','%253F',$boughtlink); $boughtlink = str_replace('=','%253D',$boughtlink); $boughtlink = str_replace('%252Fus','%252Fus',$boughtlink); $boughtlink = 'http://click.linksynergy.com/fs-bin/stat?id=CBIMl*gYY/8&offerid=146261&type=3&subid=0&tmpid=1826&RD_PARM1='.$boughtlink.'%253FpartnerId%253D30'; $appboughtdata .= "<td width=20%><img class=poster src=$boughtimg><BR>$boughtname<BR><a href=$boughtlink target=_blank><img src=../../buyinitunes.png border=0></a>"; $itop++; } if (!empty($appboughtdata)) { $appboughtdata = '<table class=topalbums><tr style=background:#f1f1f1><td colspan=5><h2>Customers Also Bought</h2></td></tr><tr>'.$appboughtdata."</tr></table>"; } // INSERT DATA TO DATABASE HERE $theapptitle = $appname; $theapptitle = str_replace("'","'",$theapptitle); $theappdate = strtotime($appupdated); $theappdate = date("Y-m-d H:i:s",$theappdate); if (empty($appupdated)) { $theappdate = strtotime($appupdated2); $theappdate = date("Y-m-d H:i:s",$theappdate); } $catNUM2 = $appcat; switch ($catNUM2) { case "Books": $catNUM2="1"; break; case "Business": $catNUM2="2"; break; case "Catalogs": $catNUM2="3"; break; case "Education": $catNUM2="4"; break; case "Entertainment": $catNUM2="5"; break; case "Finance": $catNUM2="6"; break; case "Games": $catNUM2="7"; break; case "Health & Fitness": $catNUM2="8"; break; case "Lifestyle": $catNUM2="9"; break; case "Medical": $catNUM2="10"; break; case "Music": $catNUM2="11"; break; case "Navigation": $catNUM2="12"; break; case "News": $catNUM2="13"; break; case "Newsstand": $catNUM2="14"; break; case "Photo & Video": $catNUM2="15"; break; case "Productivity": $catNUM2="16"; break; case "Reference": $catNUM2="17"; break; case "Social Networking": $catNUM2="18"; break; case "Sports": $catNUM2="19"; break; case "Travel": $catNUM2="20"; break; case "Utilities": $catNUM2="21"; break; case "Weather": $catNUM2="22"; break; default: $catNUM2 = "7"; break; } $e1 = "$theapptitle"; $e2 = "$appimage"; if (empty($appimage)) {continue;} $keytitle = str_replace('"','',$theapptitle); $keytitle = str_replace("'","",$keytitle); $e3 = '<a href="'.$applink.'" target="_blank"><img src="../../buyalbum.png" border="0"></a>'; if (!empty($appdesigned)) {$e4 = "<BR><BR><img src=../../point.png class=point> $appdesigned";} else {$e4 = '';} $e5 = "<BR><BR><b>Price:</b> $appprice</b>"; $e6 = "<BR><BR><b>Category:</b> $appcat</b>"; if (!empty($appupdated)) {$e7 = "<BR><BR><b>Updated:</b> $appupdated</b>";} else {$e7 = "<BR><BR><b>Released:</b> $appupdated2</b>";} $e8 = "<BR><BR><b>Version:</b> $appversion</b>"; $e9 = "<BR><BR><b>Size:</b> $appsize</b>"; if (!empty($applanguage)) { $e10 = "<BR><BR><b>Language:</b> $applanguage</b>";} else {$e10 = '';} $e11 = "<BR><BR><b>Seller:</b> $appseller"; if (!empty($apprated)) { $e12 = "<br><BR><b>$apprated</b>"; } else {$e12='';} $e13 = "<br><BR><b>Requirements:</b> $appreq"; if (!empty($appcurrentrate) || !empty($appallrate)) { $e14 = "<BR><BR><BR><b><font style=font-size:15px;>Customer Ratings</font></b>$appcurrentrate $appallrate";} else {$e14 = '';} $e15 = "$appscreendata<br><br><h2>Description</h2>$appdescr<div id=article></div>"; if (!empty($appnewver)) { $e16 = "<h2>What's New in Version $appversion</h2>$appnewver<div id=article></div>";} else {$e16 = '';} if (!empty($apprevdata)) {$e18 = "$apprevdata";} else {$e18 = '';} if (!empty($appmoredata)) {$e19 = preg_replace('/[^(\x20-\x7F)]*/','', $appmoredata);} else {$e19 = '';} if (!empty($appboughtdata)) {$e20 = preg_replace('/[^(\x20-\x7F)]*/','', $appboughtdata);} else {$e20 = '';} if (!empty($appmoredata) && !empty($appboughtdata)) {$e20 = '<BR>'.$e20;} $MAINCONTENT2 = $e15.$e16.$e18.$e19.$e20; $ADDCONTENT2 = $e3.$e4.$e5.$e6.$e7.$e8.$e9.$e10.$e11.$e12.$e13.$e14; $MAINCONTENT2 = str_replace("'","'",$MAINCONTENT2); $ADDCONTENT2 = str_replace("'","'",$ADDCONTENT2); $title = str_replace("'","'",$e1); $POST_EXCERPT2 = str_replace("'",'"',$e2); $title3 = $title; $title3 = ereg_replace("[^a-zA-Z0-9 ]", "", $title3); $title3 = ereg_replace(" +", " ", $title3); $title3 = str_replace(" ", "-", $title3); $title3 = strtolower($title3); if (substr($title3, -1) == '-') {$title3 = substr($title3, 0, -1);} global $wpdb; $result = $wpdb->query("SELECT ID FROM wp_posts WHERE post_title='$name2' "); $coincidences = $wpdb->num_rows; if ($coincidences == 0) { $wpdb->query("INSERT INTO wp_posts VALUES ('NULL','1','$theappdate','$theappdate','$MAINCONTENT2','$title','$catNUM2','$POST_EXCERPT2','publish','open','open','','$title3','','','$theappdate','$theappdate','','0','','0','post','','0','$appauthor','$ADDCONTENT2')"); $wpdb->query("INSERT INTO `wp_term_relationships` VALUES (LAST_INSERT_ID(),'$catNUM2','0')"); $wpdb->query("UPDATE `wp_term_taxonomy` SET count=count+1 WHERE term_id='$catNUM2'"); if ($apptag1 == "paid") { $wpdb->query("INSERT INTO `wp_term_relationships` VALUES (LAST_INSERT_ID(),'25','0')"); $wpdb->query("UPDATE `wp_term_taxonomy` SET count=count+1 WHERE term_id='25'"); } else { $wpdb->query("INSERT INTO `wp_term_relationships` VALUES (LAST_INSERT_ID(),'26','0')"); $wpdb->query("UPDATE `wp_term_taxonomy` SET count=count+1 WHERE term_id='26'"); } if ($apptag2 == "iphone") { $wpdb->query("INSERT INTO `wp_term_relationships` VALUES (LAST_INSERT_ID(),'23','0')"); $wpdb->query("UPDATE `wp_term_taxonomy` SET count=count+1 WHERE term_id='23'"); } if ($apptag3 == "ipad") { $wpdb->query("INSERT INTO `wp_term_relationships` VALUES (LAST_INSERT_ID(),'24','0')"); $wpdb->query("UPDATE `wp_term_taxonomy` SET count=count+1 WHERE term_id='24'"); } } echo "| $global_count. ".$name." - done | "; $global_count++; $poster = explode('src="',$appimage); $poster = explode('"',$poster[1]); $poster = str_replace("175x175","53x53",$poster[0]); if (empty($appupdated)) {$appupdated=$appupdated2;} $dat2f .= "<tr><td valign='top'><a href='games/$title3' ><img src='$poster' class='posterr'></a></td><td valign='top'><a href='games/$title3' ><b>$i. ".substr($appname,0,25)."</b><br>by ".substr($appauthor,0,25)."<br>Released: $appupdated</a></td></tr>"; } $data = file_get_contents("http://itunes.apple.com/us/rss/topgrossingapplications/limit=5/xml"); while ($data === false) {$data = file_get_contents("http://itunes.apple.com/us/rss/topgrossingapplications/limit=5/xml");} for ($i=1; $i<=5; $i++) { ### // remove data for next loop $onpage = ''; $name = ''; $poster = ''; $link = ''; $iosdata = ''; ### $onpage = explode('<entry>',$data); $onpage = explode('</entry>',$onpage[$i]); $onpage = $onpage[0]; $link = explode('<link rel="alternate" type="text/html" href="',$onpage); $link = explode('"',$link[1]); $link = $link[0]; $name = explode('<im:name>',$onpage); $name = explode('</im:name>',$name[1]); $name = $name[0]; $name2 = str_replace("'","'",$name); $name2 = str_replace(""",'"',$name2); if (preg_match('/[\x{4E00}-\x{9FBF}\x{3040}-\x{309F}\x{30A0}-\x{30FF}]/u', $name2)){continue;} $iosdata = file_get_contents($link); while ($iosdata === false) {$iosdata = file_get_contents($link);} $appname = explode('<h1 itemprop="name">',$iosdata); $appname = explode('</h1>',$appname[1]); $appname = $appname[0]; $appauthor = explode('<h2>By ',$iosdata); $appauthor = explode('</h2>',$appauthor[1]); $appauthor = $appauthor[0]; $appimage = explode('?mt=8"><div class="artwork"><img',$iosdata); $appimage = explode('/>',$appimage[1]); $appimage = explode('src-swap="',$appimage[0]); $appimage = explode('"',$appimage[1]); $appimage = $appimage[0]; if (!empty($appimage)) { $appimage = '<img class="poster" src="'.$appimage.'" />'; } $appprice = explode('class="price">',$iosdata); $appprice = explode('</div>',$appprice[1]); $appprice = $appprice[0]; if ($appprice == "Free") {$apptag1 = 'free';} else {$apptag1 = 'paid';} $appdesigned = explode('<span class="fat-binary-badge"></span><span>',$iosdata); $appdesigned = explode('</span>',$appdesigned[1]); $appdesigned = $appdesigned[0]; if ($appdesigned == "This app is designed for both iPhone and iPad") {$apptag2 = 'iphone'; $apptag3 = 'ipad';} else {$apptag2 = 'iphone'; $apptag3 = '';} $applink = str_replace(':','%253A',$link); $applink = str_replace('/','%252F',$applink); $applink = str_replace('?','%253F',$applink); $applink = str_replace('=','%253D',$applink); $applink = str_replace('%252Fus','%252Fus',$applink); $applink = 'http://click.linksynergy.com/fs-bin/stat?id=CBIMl*gYY/8&offerid=146261&type=3&subid=0&tmpid=1826&RD_PARM1='.$applink.'%253FpartnerId%253D30'; $appcat = explode('<span itemprop="applicationCategory">',$iosdata); $appcat = explode('</span>',$appcat[1]); $appcat = $appcat[0]; $appupdated = explode('<span itemprop="datePublished"',$iosdata); $appupdated = explode('</li>',$appupdated[1]); $appupdated = $appupdated[0]; $appupdated = explode('">',$appupdated); $appupdated = explode('</span>',$appupdated[1]); $appupdated = $appupdated[0]; $appupdated2 = ''; if (empty($appupdated)) { $appupdated2 = explode('<span class="label">Released: </span>',$iosdata); $appupdated2 = explode('</li>',$appupdated2[1]); $appupdated2 = $appupdated2[0]; } $appversion = explode('<span itemprop="softwareVersion">',$iosdata); $appversion = explode('</span>',$appversion[1]); $appversion = $appversion[0]; $appsize = explode('<span class="label">Size: </span>',$iosdata); $appsize = explode('</li>',$appsize[1]); $appsize = $appsize[0]; $applanguage = explode('<span class="label">Language: </span>',$iosdata); $applanguage = explode('</li>',$applanguage[1]); $applanguage = $applanguage[0]; $appseller = explode('itemprop="author"><span itemprop="name">',$iosdata); $appseller = explode('</span>',$appseller[1]); $appseller = $appseller[0]; $apprated = explode('System=appsApple">',$iosdata); $apprated = explode('</a>',$apprated[1]); $apprated = $apprated[0]; if (strlen($apprated) > 50) {$apprated = '';} $appreq = explode('<span itemprop="operatingSystem">',$iosdata); $appreq = explode('</span>',$appreq[1]); $appreq = $appreq[0]; if (substr_count($appreq,"Compatible with iPad.") > 0) {$apptag2 = ''; $apptag3 = 'ipad';} $appcurrentrate = explode("Ratings'><div>",$iosdata); $appcurrentrate = explode('</span></div>',$appcurrentrate[1]); $appcurrentrate = $appcurrentrate[0]; $appcurrentrate2 = explode('<span class="rating-count">',$iosdata); $appcurrentrate2 = explode('</span>',$appcurrentrate2[1]); $appcurrentrate2 = $appcurrentrate2[0]; if (!empty($appcurrentrate2)) {$appcurrentrate = '<BR><BR><B>Current Version</b><br><div class="ratings">'.$appcurrentrate.'</span></div><BR><small>('.$appcurrentrate2.')</small>';} $appallrate = explode("Ratings'><div>",$iosdata); $appallrate = explode('</span></div>',$appallrate[2]); $appallrate = $appallrate[0]; $appallrate2 = explode('<span class="rating-count">',$iosdata); $appallrate2 = explode('</span>',$appallrate2[2]); $appallrate2 = $appallrate2[0]; if (!empty($appallrate2)) {$appallrate = '<BR><BR><B>All Versions</b><br><div class="ratings">'.$appallrate.'</span></div><BR><small>('.$appallrate2.')</small>';} $appmore = explode('class="extra-list more-by">',$iosdata); $appmore = explode(' <object classID="CLSID:D719897A-B07A-4C0C-AEA9-9B663A28DFCB" width="1" height="1" id="iTunesDetectorIE" ></object>',$appmore[1]); $appmore = $appmore[0]; $appmore_num = substr_count($appmore,'metrics-loc="Lockup_"'); $morenum = 1; $appmoredata = ''; while ($morenum <= $appmore_num) { $morepart = explode('metrics-loc="Lockup_"',$appmore); $morepart = explode('metrics-loc="Lockup_"',$morepart[$morenum]); $morepart = $morepart[0]; $moreimg = explode('src-swap="',$morepart); $moreimg = explode('"',$moreimg[1]); $moreimg = str_replace('75x75-65.jpg','100x100-75.jpg',$moreimg[0]); $morename = explode('class="name">',$morepart); $morename = explode('</a>',$morename[1]); $morename = $morename[0]; if (strlen($morename) > 15) {$morename = substr($morename,0,15).'..';} $morelink = explode('class="list"><li><a href="',$morepart); $morelink = explode('"',$morelink[1]); $morelink = $morelink[0]; $morelink = str_replace(':','%253A',$morelink); $morelink = str_replace('/','%252F',$morelink); $morelink = str_replace('?','%253F',$morelink); $morelink = str_replace('=','%253D',$morelink); $morelink = str_replace('%252Fus','%252Fus',$morelink); $morelink = 'http://click.linksynergy.com/fs-bin/stat?id=CBIMl*gYY/8&offerid=146261&type=3&subid=0&tmpid=1826&RD_PARM1='.$morelink.'%253FpartnerId%253D30'; $appmoredata .= "<td width=20%><img class=poster src=$moreimg><BR>$morename<BR><a href=$morelink target=_blank><img src=../../buyinitunes.png border=0></a></td>"; $morenum++; } if (!empty($appmoredata)) { $appmoredata = '<table class=topalbums><tr style=background:#f1f1f1><td colspan=5><h2>More Apps by '.$appauthor.'</h2></td></tr><tr>'.$appmoredata."</tr></table>"; } $appdescr = explode('<p itemprop="description">',$iosdata); $appdescr = explode('</p>',$appdescr[1]); $appdescr = preg_replace('/[^(\x20-\x7F)]*/','', $appdescr[0]); $appnewver = explode('metrics-loc="Titledbox_What',$iosdata); $appnewver = explode('</div>',$appnewver[1]); $appnewver = explode('<p>',$appnewver[0]); $appnewver = explode('</p>',$appnewver[1]); $appnewver = $appnewver[0]; $appscreens = explode('class="swoosh lockup-container application large screenshots">',$iosdata); $appscreens = explode('</div></div></div>',$appscreens[1]); $appscreens = $appscreens[0]; $screens = substr_count($appscreens,'src='); $snum = 1; $appscreendata = ''; while ($snum <= $screens) { $screen = explode('src="',$appscreens); $screen = explode('"',$screen[$snum]); $screen = $screen[0]; $appscreendata .= "<td width=20%><a href=$screen rel=prettyPhoto[image]><img class=poster src=$screen width=120px></a></td>"; $snum++; } if (!empty($appscreendata)) { $appscreendata = '<table class=topalbums><tr style=background:#f1f1f1><td colspan=5><h2>'.$appname.' Screenshots</h2></td></tr><tr>'.$appscreendata."</tr></table>"; } $appreviews = explode('Customer Reviews',$iosdata); $appreviews = explode('metrics-loc',$appreviews[1]); $appreviews = $appreviews[0]; $alreviewnum = substr_count($appreviews,"customerReviewTitle"); $ialrev = 1; $alrevdat = ''; $alrevname = ''; $alrevrating = ''; $alrevinfo = ''; $apprevdata = ''; while ($ialrev <= $alreviewnum) { $alrevdat = explode('customerReviewTitle',$appreviews); $alrevdat = explode('customerReviewTitle',$alrevdat[$ialrev]); $alrevdat = $alrevdat[0]; $alrevname = explode('">',$alrevdat); $alrevname = explode('</span>',$alrevname[1]); $alrevname = $alrevname[0]; $alrevrating = explode("aria-label='",$alrevdat); $alrevrating = explode("'",$alrevrating[1]); $alrevrating = $alrevrating[0]; $alrevinfo = explode('<p class="content" will-truncate-max-height="0" data-text-truncate-lines="5">',$alrevdat); $alrevinfo = explode('</p>',$alrevinfo[1]); $alrevinfo = substr($alrevinfo[0],0,450); $apprevdata .= "<b>$alrevname</b> ($alrevrating)<BR>$alrevinfo<BR><BR>"; $ialrev++; } if (!empty($apprevdata)) {$apprevdata='<h2>Customer Reviews</h2>'.preg_replace('/[^(\x20-\x7F)]*/','', $apprevdata).'<div id="article"></div>';} $appbought = explode('<h2>Customers Also Bought</h2>',$iosdata); $appbought = explode('<div id="left-stack">',$appbought[1]); $appbought = $appbought[0]; $appboughtdata = ""; $appboughtnum = substr_count($appbought,'metrics-loc="Lockup_"'); $itop = 1; while ($itop <= $appboughtnum) { $boughtdata = explode('role="group"',$appbought); $boughtdata = explode('role="group"',$boughtdata[$itop]); $boughtdata = $boughtdata[0]; $boughtname = explode('class="name">',$boughtdata); $boughtname = explode('</a>',$boughtname[1]); $boughtname = $boughtname[0]; if (strlen($boughtname) > 14) {$boughtname = substr($boughtname,0,14).'..';} $boughtimg = explode('src-swap="',$boughtdata); $boughtimg = explode('"',$boughtimg[1]); $boughtimg = $boughtimg[0]; $boughtlink = explode('openItunes('',$boughtdata); $boughtlink = explode('');',$boughtlink[1]); $boughtlink = $boughtlink[0]; $boughtlink = str_replace(':','%253A',$boughtlink); $boughtlink = str_replace('/','%252F',$boughtlink); $boughtlink = str_replace('?','%253F',$boughtlink); $boughtlink = str_replace('=','%253D',$boughtlink); $boughtlink = str_replace('%252Fus','%252Fus',$boughtlink); $boughtlink = 'http://click.linksynergy.com/fs-bin/stat?id=CBIMl*gYY/8&offerid=146261&type=3&subid=0&tmpid=1826&RD_PARM1='.$boughtlink.'%253FpartnerId%253D30'; $appboughtdata .= "<td width=20%><img class=poster src=$boughtimg><BR>$boughtname<BR><a href=$boughtlink target=_blank><img src=../../buyinitunes.png border=0></a>"; $itop++; } if (!empty($appboughtdata)) { $appboughtdata = '<table class=topalbums><tr style=background:#f1f1f1><td colspan=5><h2>Customers Also Bought</h2></td></tr><tr>'.$appboughtdata."</tr></table>"; } // INSERT DATA TO DATABASE HERE $theapptitle = $appname; $theapptitle = str_replace("'","'",$theapptitle); $theappdate = strtotime($appupdated); $theappdate = date("Y-m-d H:i:s",$theappdate); if (empty($appupdated)) { $theappdate = strtotime($appupdated2); $theappdate = date("Y-m-d H:i:s",$theappdate); } $catNUM2 = $appcat; switch ($catNUM2) { case "Books": $catNUM2="1"; break; case "Business": $catNUM2="2"; break; case "Catalogs": $catNUM2="3"; break; case "Education": $catNUM2="4"; break; case "Entertainment": $catNUM2="5"; break; case "Finance": $catNUM2="6"; break; case "Games": $catNUM2="7"; break; case "Health & Fitness": $catNUM2="8"; break; case "Lifestyle": $catNUM2="9"; break; case "Medical": $catNUM2="10"; break; case "Music": $catNUM2="11"; break; case "Navigation": $catNUM2="12"; break; case "News": $catNUM2="13"; break; case "Newsstand": $catNUM2="14"; break; case "Photo & Video": $catNUM2="15"; break; case "Productivity": $catNUM2="16"; break; case "Reference": $catNUM2="17"; break; case "Social Networking": $catNUM2="18"; break; case "Sports": $catNUM2="19"; break; case "Travel": $catNUM2="20"; break; case "Utilities": $catNUM2="21"; break; case "Weather": $catNUM2="22"; break; default: $catNUM2 = "7"; break; } $e1 = "$theapptitle"; $e2 = "$appimage"; if (empty($appimage)) {continue;} $keytitle = str_replace('"','',$theapptitle); $keytitle = str_replace("'","",$keytitle); $e3 = '<a href="'.$applink.'" target="_blank"><img src="../../buyalbum.png" border="0"></a>'; if (!empty($appdesigned)) {$e4 = "<BR><BR><img src=../../point.png class=point> $appdesigned";} else {$e4 = '';} $e5 = "<BR><BR><b>Price:</b> $appprice</b>"; $e6 = "<BR><BR><b>Category:</b> $appcat</b>"; if (!empty($appupdated)) {$e7 = "<BR><BR><b>Updated:</b> $appupdated</b>";} else {$e7 = "<BR><BR><b>Released:</b> $appupdated2</b>";} $e8 = "<BR><BR><b>Version:</b> $appversion</b>"; $e9 = "<BR><BR><b>Size:</b> $appsize</b>"; if (!empty($applanguage)) { $e10 = "<BR><BR><b>Language:</b> $applanguage</b>";} else {$e10 = '';} $e11 = "<BR><BR><b>Seller:</b> $appseller"; if (!empty($apprated)) { $e12 = "<br><BR><b>$apprated</b>"; } else {$e12='';} $e13 = "<br><BR><b>Requirements:</b> $appreq"; if (!empty($appcurrentrate) || !empty($appallrate)) { $e14 = "<BR><BR><BR><b><font style=font-size:15px;>Customer Ratings</font></b>$appcurrentrate $appallrate";} else {$e14 = '';} $e15 = "$appscreendata<br><br><h2>Description</h2>$appdescr<div id=article></div>"; if (!empty($appnewver)) { $e16 = "<h2>What's New in Version $appversion</h2>$appnewver<div id=article></div>";} else {$e16 = '';} if (!empty($apprevdata)) {$e18 = "$apprevdata";} else {$e18 = '';} if (!empty($appmoredata)) {$e19 = preg_replace('/[^(\x20-\x7F)]*/','', $appmoredata);} else {$e19 = '';} if (!empty($appboughtdata)) {$e20 = preg_replace('/[^(\x20-\x7F)]*/','', $appboughtdata);} else {$e20 = '';} if (!empty($appmoredata) && !empty($appboughtdata)) {$e20 = '<BR>'.$e20;} $MAINCONTENT2 = $e15.$e16.$e18.$e19.$e20; $ADDCONTENT2 = $e3.$e4.$e5.$e6.$e7.$e8.$e9.$e10.$e11.$e12.$e13.$e14; $MAINCONTENT2 = str_replace("'","'",$MAINCONTENT2); $ADDCONTENT2 = str_replace("'","'",$ADDCONTENT2); $title = str_replace("'","'",$e1); $POST_EXCERPT2 = str_replace("'",'"',$e2); $title3 = $title; $title3 = ereg_replace("[^a-zA-Z0-9 ]", "", $title3); $title3 = ereg_replace(" +", " ", $title3); $title3 = str_replace(" ", "-", $title3); $title3 = strtolower($title3); if (substr($title3, -1) == '-') {$title3 = substr($title3, 0, -1);} global $wpdb; $result = $wpdb->query("SELECT ID FROM wp_posts WHERE post_title='$name2' "); $coincidences = $wpdb->num_rows; if ($coincidences == 0) { $wpdb->query("INSERT INTO wp_posts VALUES ('NULL','1','$theappdate','$theappdate','$MAINCONTENT2','$title','$catNUM2','$POST_EXCERPT2','publish','open','open','','$title3','','','$theappdate','$theappdate','','0','','0','post','','0','$appauthor','$ADDCONTENT2')"); $wpdb->query("INSERT INTO `wp_term_relationships` VALUES (LAST_INSERT_ID(),'$catNUM2','0')"); $wpdb->query("UPDATE `wp_term_taxonomy` SET count=count+1 WHERE term_id='$catNUM2'"); if ($apptag1 == "paid") { $wpdb->query("INSERT INTO `wp_term_relationships` VALUES (LAST_INSERT_ID(),'25','0')"); $wpdb->query("UPDATE `wp_term_taxonomy` SET count=count+1 WHERE term_id='25'"); } else { $wpdb->query("INSERT INTO `wp_term_relationships` VALUES (LAST_INSERT_ID(),'26','0')"); $wpdb->query("UPDATE `wp_term_taxonomy` SET count=count+1 WHERE term_id='26'"); } if ($apptag2 == "iphone") { $wpdb->query("INSERT INTO `wp_term_relationships` VALUES (LAST_INSERT_ID(),'23','0')"); $wpdb->query("UPDATE `wp_term_taxonomy` SET count=count+1 WHERE term_id='23'"); } if ($apptag3 == "ipad") { $wpdb->query("INSERT INTO `wp_term_relationships` VALUES (LAST_INSERT_ID(),'24','0')"); $wpdb->query("UPDATE `wp_term_taxonomy` SET count=count+1 WHERE term_id='24'"); } } echo "| $global_count. ".$name." - done | "; $global_count++; $poster = explode('src="',$appimage); $poster = explode('"',$poster[1]); $poster = str_replace("175x175","53x53",$poster[0]); if (empty($appupdated)) {$appupdated=$appupdated2;} $dat3f .= "<tr><td valign='top'><a href='games/$title3' ><img src='$poster' class='posterr'></a></td><td valign='top'><a href='games/$title3' ><b>$i. ".substr($appname,0,25)."</b><br>by ".substr($appauthor,0,25)."<br>Released: $appupdated</a></td></tr>"; } if (!empty($dat1f)) { $dat1f = "<table style='margin-bottom:10px;'>".$dat1f.'</table>'; $myFile = "../top1.txt"; $fh = fopen($myFile, 'w') or die("can't open file"); fwrite($fh, $dat1f); fclose($fh); } if (!empty($dat2f)) { $dat2f = "<table style='margin-bottom:10px;'>".$dat2f.'</table>'; $myFile = "../top2.txt"; $fh = fopen($myFile, 'w') or die("can't open file"); fwrite($fh, $dat2f); fclose($fh); } if (!empty($dat3f)) { $dat3f = "<table style='margin-bottom:10px;'>".$dat3f.'</table>'; $myFile = "../top3.txt"; $fh = fopen($myFile, 'w') or die("can't open file"); fwrite($fh, $dat3f); fclose($fh); } } AppFetch(); ?> <? function TopCharts() { $global_count = 1; $url = get_bloginfo('home'); $templateurl = get_bloginfo('template_directory'); $data = file_get_contents("http://itunes.apple.com/us/rss/toppaidapplications/limit=100/xml"); while ($data === false) {$data = file_get_contents("http://itunes.apple.com/us/rss/toppaidapplications/limit=100/xml");} for ($i=1; $i<=100; $i++) { ### // remove data for next loop $onpage = ''; $name = ''; $poster = ''; $link = ''; $iosdata = ''; ### $onpage = explode('<entry>',$data); $onpage = explode('</entry>',$onpage[$i]); $onpage = $onpage[0]; $link = explode('<link rel="alternate" type="text/html" href="',$onpage); $link = explode('"',$link[1]); $link = $link[0]; $name = explode('<im:name>',$onpage); $name = explode('</im:name>',$name[1]); $name = $name[0]; $name2 = str_replace("'","'",$name); $name2 = str_replace(""",'"',$name2); $iosdata = file_get_contents($link); while ($iosdata === false) {$iosdata = file_get_contents($link);} $appname = explode('<h1 itemprop="name">',$iosdata); $appname = explode('</h1>',$appname[1]); $appname = $appname[0]; $appauthor = explode('<h2>By ',$iosdata); $appauthor = explode('</h2>',$appauthor[1]); $appauthor = $appauthor[0]; $appimage = explode('?mt=8"><div class="artwork"><img',$iosdata); $appimage = explode('/>',$appimage[1]); $appimage = explode('src-swap="',$appimage[0]); $appimage = explode('"',$appimage[1]); $appimage = $appimage[0]; if (!empty($appimage)) { $appimage = '<img class="poster" src="'.$appimage.'" />'; } $appprice = explode('class="price">',$iosdata); $appprice = explode('</div>',$appprice[1]); $appprice = $appprice[0]; if ($appprice == "Free") {$apptag1 = 'free';} else {$apptag1 = 'paid';} $appdesigned = explode('<span class="fat-binary-badge"></span><span>',$iosdata); $appdesigned = explode('</span>',$appdesigned[1]); $appdesigned = $appdesigned[0]; if ($appdesigned == "This app is designed for both iPhone and iPad") {$apptag2 = 'iphone'; $apptag3 = 'ipad';} else {$apptag2 = 'iphone'; $apptag3 = '';} $applink = str_replace(':','%253A',$link); $applink = str_replace('/','%252F',$applink); $applink = str_replace('?','%253F',$applink); $applink = str_replace('=','%253D',$applink); $applink = str_replace('%252Fus','%252Fus',$applink); $applink = 'http://click.linksynergy.com/fs-bin/stat?id=CBIMl*gYY/8&offerid=146261&type=3&subid=0&tmpid=1826&RD_PARM1='.$applink.'%253FpartnerId%253D30'; $poster = explode('src="',$appimage); $poster = explode('"',$poster[1]); $poster = $poster[0]; $datt .= "<div class='item'> <div class='background'></div><div class=bg><style>.item .bg:hover a img:hover{opacity:0.93;}</style> <a href='$applink' target='_blank'><img class='imageOver' src='../buyalbum.png' style=' position: absolute; top: 82px; left: 23px; width: 138px; height: 30px;border:0px;'></a><img src='$poster'></div> <div class='content'> <center><span style='font-size:15px;'><b>$i.</b></span> <a href='$applink' target='_blank'>$appname - $appauthor</a></center></div> </div>"; } if (!empty($datt)) { $myFile = "../charts.txt"; $fh = fopen($myFile, 'w') or die("can't open file"); fwrite($fh, $datt); fclose($fh); } } TopCharts ();
© 2017 -
ZeroByte.ID
.