����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
/
b2374
/
upstateconstable.com
/
Gallery
/
classes
/
[
Home
]
File: AlbumItem.php
<?php /* * Gallery - a web based photo album viewer and editor * Copyright (C) 2000-2005 Bharat Mediratta * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id: AlbumItem.php,v 1.94.2.2 2005/03/10 02:29:41 cryptographite Exp $ */ ?> <?php class AlbumItem { var $image; var $thumbnail; var $preview; var $caption; var $hidden; var $highlight; var $highlightImage; var $isAlbumName; var $clicks; var $keywords; var $comments; // array of comment objects var $uploadDate; // date the item was uploaded var $itemCaptureDate; // associative array of date the item was captured // not in EPOCH so we can support dates < 1970 var $exifData; var $owner; // UID of item owner. var $extraFields; var $rank; var $version; var $emailMe; function AlbumItem() { global $gallery; $this->version = $gallery->album_version; $this->extraFields = array(); } function setUploadDate($uploadDate="") { //upload date should only be set at file upload time. global $gallery; if ($uploadDate) { // set the upload time from the time provided $this->uploadDate = $uploadDate; } else { // if nothing is passed in, get the upload time from the file creation time $dir = $gallery->album->getAlbumDir(); $name = $this->image->name; $tag = $this->image->type; $file = "$dir/$name.$tag"; $this->uploadDate = filectime($file); } } function getUploadDate() { if (!$this->uploadDate) { return 0; } else { return $this->uploadDate; } } function setItemCaptureDate($itemCaptureDate="") { global $gallery; /* Before 1.4.5-cvs-b106 this was an associative array */ if (!$itemCaptureDate) { // we want to attempt to set the $itemCaptureDate from the information that // is available to us. First, look in the exif data if it is a jpeg file. If that // doesn't help us, then use the file creation date. $dir = $gallery->album->getAlbumDir(); $name = $this->image->name; $tag = $this->image->type; $file = "$dir/$name.$tag"; $itemCaptureDate = getItemCaptureDate($file); } $this->itemCaptureDate = $itemCaptureDate; } function getItemCaptureDate() { // need to set this value for old photos that don't yet contain it. if (!$this->itemCaptureDate) { return 0; } else { return $this->itemCaptureDate; } } function getExif($dir, $forceRefresh=0) { global $gallery; $file = $dir . "/" . $this->image->name . "." . $this->image->type; /* * If we don't already have the exif data, get it now. * Otherwise return what we have. */ $needToSave = 0; if (!strcmp($gallery->app->cacheExif, "yes")) { if (empty($this->exifData) || $forceRefresh) { /* Cache the current EXIF data and update the item capture date */ list($status, $this->exifData) = getExif($file); $this->setItemCaptureDate(); $needToSave = 1; } else { /* We have a cached value and are not forcing a refresh */ $status = 0; } $returnExifData = $this->exifData; } else { /* If the data is cached but the feature is disabled, remove the cache */ if (!empty($this->exifData)) { unset($this->exifData); $needToSave = 1; } list($status, $returnExifData) = getExif($file); } return array($status, $returnExifData, $needToSave); } function numComments() { return sizeof($this->comments); } function getComment($commentIndex) { if (!empty($this->comments)) { return $this->comments[$commentIndex-1]; } else { return null; } } function integrityCheck($dir) { global $gallery; $changed = 0; if (!isset($this->version)) { $this->version=0; } if ($this->version < 10) { if (!isset($this->extraFields) or !is_array($this->extraFields)) { $this->extraFields=array(); $changed=1; } } if ($this->version < 11) { if (!isset($this->owner)) { $this->owner = $gallery->album->fields["owner"]; $changed = 1; } } if ($this->version < 12) { $nobody = $gallery->userDB->getNobody(); $nobodyUid = $nobody->getUid(); if ((!strcmp($this->owner, $nobodyUid) || empty($this->owner)) && strcmp($gallery->album->fields["owner"], $nobodyUid)) { $this->owner = $gallery->album->fields["owner"]; $changed = 1; } } if ($this->version < 16) { $this->setRank(0); } if ($this->version < 24) { $this->emailMe=array(); } /* Convert all uids to the new style */ if ($this->version < 25) { // Owner $this->owner = $gallery->userDB->convertUidToNewFormat($this->owner); // Comments for ($i = 0; $i < sizeof($this->comments); $i++) { $this->comments[$i]->UID = $gallery->userDB->convertUidToNewFormat($this->comments[$i]->UID); } } // Use TimeStamp for capture Date instead of assoziative Array if ($this->version < 32) { if (isset($this->itemCaptureDate)) { $this->itemCaptureDate = mktime( $this->itemCaptureDate['hours'], $this->itemCaptureDate['minutes'], $this->itemCaptureDate['seconds'], $this->itemCaptureDate['mon'], $this->itemCaptureDate['mday'], $this->itemCaptureDate['year'] ); $changed = 1; } } /* autoRotated field depricated as of 1.5-cvs-b258 */ if ($this->version < 33 && !empty($this->extraFields['autoRotated'])) { unset($this->extraFields['autoRotated']); $changed = 1; } if ($this->image) { if ($this->image->integrityCheck($dir)) { $changed = 1; } if ($this->thumbnail) { if ($this->thumbnail->integrityCheck($dir)) { $changed = 1; } } if ($this->preview) { if ($this->preview->integrityCheck($dir)) { $changed = 1; } } if ($this->highlight && $this->highlightImage) { if ($this->highlightImage->integrityCheck($dir)) { $changed = 1; } } } if (strcmp($this->version, $gallery->album_version)) { $this->version = $gallery->album_version; $changed = 1; } return $changed; } function addComment($comment, $IPNumber, $name) { global $gallery; if ($gallery->user) { $UID = $gallery->user->getUID(); } else { $UID = ""; } $comment = new Comment($comment, $IPNumber, $name, $UID); $this->comments[] = $comment; return 0; } function deleteComment($comment_index) { array_splice($this->comments, $comment_index-1, 1); } function setKeyWords($kw) { $this->keywords = $kw; } function getKeyWords() { return $this->keywords; } function setOwner($owner) { $this->owner = $owner; } function getOwner() { global $gallery; if (!isset($this->owner)) { $nobody = $gallery->userDB->getNobody(); $nobodyUid = $nobody->getUid(); $this->setOwner($nobodyUid); } return $this->owner; } function resetItemClicks() { $this->clicks = 0; } function getItemClicks() { if (!isset($this->clicks)) { $this->resetItemClicks(); } return $this->clicks; } function incrementItemClicks() { if (!isset($this->clicks)) { $this->resetItemClicks(); } $this->clicks++; } function setRank($rank) { $this->rank = $rank; } function getRank() { return $this->rank; } function hide() { $this->hidden = 1; } function unhide() { $this->hidden = 0; } function isHidden() { return $this->hidden; } function setHighlight($dir, $bool, &$album, $name=null, $tag=null, $srcdir=null, $srcitem=null) { global $gallery; $this->highlight = $bool; /* * if it is now the highlight make sure it has a highlight * thumb otherwise get rid of it's thumb (ouch!). */ if ($this->highlight) { if (!isset($name)) { $name = $this->image->name; $tag = $this->image->type; $srcdir = $dir; $srcitem = $this; if ($this->isAlbum()) { $name = $this->getAlbumName(); $nestedAlbum = new Album(); $nestedAlbum->load($name); list ($srcalbum, $srcitem) = $nestedAlbum->getHighlightedItem(); if ($srcalbum !== null && $srcitem !== null) { $srcdir = $srcalbum->getAlbumDir(); $tag = $srcitem->image->type; } else { if (is_object($this->highlightImage)) { $this->highlightImage->simpleDelete($dir); $this->highlightImage = null; } return; } } } $size = $album->getHighlightSize(); if ($srcitem->image->thumb_width > 0 && !$this->isMovie()) { // Crop it first $ret = cut_image("$srcdir/".$srcitem->image->name.".$tag", "$dir/$name.tmp.$tag", $srcitem->image->thumb_x, $srcitem->image->thumb_y, $srcitem->image->thumb_width, $srcitem->image->thumb_height); // Then resize it down if ($ret) { $ret = resize_image("$dir/$name.tmp.$tag", "$dir/$name.highlight.$tag", $size); } fs_unlink("$dir/$name.tmp.$tag"); } elseif ($this->isMovie()) { if (fs_file_exists($gallery->app->movieThumbnail)) { $tag = substr(strrchr($gallery->app->movieThumbnail, '.'), 1); $ret = resize_image($gallery->app->movieThumbnail, "$dir/$name.highlight.$tag", $size); } else { $ret = 0; } } else { $ret = resize_image("$srcdir/".$srcitem->image->name.".$tag", "$dir/$name.highlight.$tag", $size); } if ($ret) { list($w, $h) = getDimensions("$dir/$name.highlight.$tag"); $high = new Image; $high->setFile($dir, "$name.highlight", "$tag"); $high->setDimensions($w, $h); $this->highlightImage = $high; /* Check if we need to cascade highlight up to parent album */ $parentAlbum =& $album->getParentAlbum(); if (isset($parentAlbum) && !strcmp($parentAlbum->version, $gallery->album_version)) { $highlightIndex = $parentAlbum->getHighlight(); if ($highlightIndex == $parentAlbum->getAlbumIndex($album->fields['name'])) { $item = &$parentAlbum->getPhoto($highlightIndex); $item->setHighlight($parentAlbum->getAlbumDir(), 1, $parentAlbum, $album->fields['name'], $tag, $srcdir, $srcitem); $parentAlbum->save(array(),0); } } } } else { if (is_object($this->highlightImage)) { $this->highlightImage->simpleDelete($dir); $this->highlightImage = null; } } } function isHighlight() { return $this->highlight; } function getThumbDimensions($size=0) { if ($this->thumbnail) { return $this->thumbnail->getDimensions($size); } else { return array(0, 0); } } function getHighlightDimensions($size=0) { if (is_object($this->highlightImage)) { return $this->highlightImage->getDimensions($size); } else { return array(0, 0); } } function getFileSize($full=0) { global $gallery; $stat = fs_stat($this->image->getPath($gallery->album->getAlbumDir(), $full)); if (is_array($stat)) { return $stat[7]; } else { return 0; } } function getDimensions($full=0) { if ($this->image) { return $this->image->getDimensions(0, $full); } else { return array(0, 0); } } function isResized() { $im = $this->image; return $im->isResized(); } function rotate($dir, $direction, $thumb_size, &$album, $clearexifrotate=false) { global $gallery; $name = $this->image->name; $type = $this->image->type; $retval = rotate_image("$dir/$name.$type", "$dir/$name.$type", $direction, $type); if ($clearexifrotate && isset($gallery->app->use_exif) && ($type === 'jpg' || $type === 'jpeg')) { $path = $gallery->app->use_exif; exec_internal(fs_import_filename($path, 1) . " -norot '$dir/$name.$type'"); } if (!$retval) { return $retval; } list($w, $h) = getDimensions("$dir/$name.$type"); $this->image->setRawDimensions($w, $h); if ($this->isResized()) { rotate_image("$dir/$name.sized.$type", "$dir/$name.sized.$type", $direction, $type); if ($clearexifrotate && isset($gallery->app->use_exif) && ($type === 'jpg' || $type === 'jpeg')) { $path = $gallery->app->use_exif; exec_internal(fs_import_filename($path, 1) . " -norot '$dir/$name.sized.$type'"); } list($w, $h) = getDimensions("$dir/$name.sized.$type"); $this->image->setDimensions($w, $h); } else { $this->image->setDimensions($w, $h); } /* Reset the thumbnail to the default before regenerating thumb */ $this->image->setThumbRectangle(0, 0, 0, 0); $this->makeThumbnail($dir, $thumb_size, $album); return 1; } function watermark($dir, $wmName, $wmAlphaName, $wmAlign, $wmAlignX, $wmAlignY, $preview=0, $previewSize=0, $wmSelect=0) { global $gallery; $type = $this->image->type; if (isMovie($type) || $this->isAlbum()) { // currently there is no watermarking support for movies return (0); } if ($wmSelect < 0) { $wmSelect = 0; } else if ($wmSelect > 2) { $wmSelect = 2; } $name = $this->image->name; $oldpreviews = glob($dir . "/$name.preview*.$type"); if (!empty($oldpreviews) && is_array($oldpreviews)) { foreach ($oldpreviews as $oldpreview) { unlink($oldpreview); } } if ($preview) { $previewtag = "preview" . time(); if (($previewSize == 0) && $this->isResized()) { $src_image = "$dir/" . $this->image->resizedName . ".$type"; } else { $src_image = "$dir/$name.$type"; } $retval = watermark_image($src_image, "$dir/$name.$previewtag.$type", $gallery->app->watermarkDir."/$wmName", $gallery->app->watermarkDir."/$wmAlphaName", $wmAlign, $wmAlignX, $wmAlignY); if ($retval) { list($w, $h) = getDimensions("$dir/$name.$previewtag.$type"); $high = new Image; $high->setFile($dir, "$name.$previewtag", "$type"); $high->setDimensions($w, $h); $this->preview = $high; } } else { // $wmSelect of 0=both Sized and Full if ($wmSelect != 1) { // 1=Only Sized Photos $retval = watermark_image("$dir/$name.$type", "$dir/$name.$type", $gallery->app->watermarkDir."/$wmName", $gallery->app->watermarkDir."/$wmAlphaName", $wmAlign, $wmAlignX, $wmAlignY); } if ($wmSelect != 2) { // 2=Only Full Photos if (($wmSelect == 1) && !$this->isResized()) { // If watermarking only resized images, and image is not resized // Call resize as if the full image is resized $pathToResized = $dir . "/" . $this->image->name . "." . $this->image->type; $this->resize($dir, "", 0, $pathToResized); } if ($this->isResized()) { $retval = watermark_image("$dir/$name.sized.$type", "$dir/$name.sized.$type", $gallery->app->watermarkDir."/$wmName", $gallery->app->watermarkDir."/$wmAlphaName", $wmAlign, $wmAlignX, $wmAlignY); } } } return ($retval); } function setPhoto($dir, $name, $tag, $thumb_size, &$album, $pathToThumb="") { global $gallery; /* * Sanity: make sure we can handle the file first. */ if (!isMovie($tag) && !valid_image("$dir/$name.$tag")) { return _("Invalid image") .": $name.$tag"; } /* Set our image. */ $this->image = new Image; $this->image->setFile($dir, $name, $tag); $ret = $this->makeThumbnail($dir, $thumb_size, $album, $pathToThumb); return $ret; } function makeThumbnail($dir, $thumb_size, &$album, $pathToThumb="") { global $gallery; $name = $this->image->name; $tag = $this->image->type; if (isDebugging()) { processingMsg(_("Generating thumbnail.")); } if ($this->isMovie()) { /* Use a preset thumbnail */ fs_copy($gallery->app->movieThumbnail, "$dir/$name.thumb.jpg"); $this->thumbnail = new Image; $this->thumbnail->setFile($dir, "$name.thumb", "jpg"); list($w, $h) = getDimensions("$dir/$name.thumb.jpg"); $this->thumbnail->setDimensions($w, $h); } else { /* Make thumbnail (first crop it spec) */ if ($pathToThumb) { $ret = copy($pathToThumb,"$dir/$name.thumb.$tag"); } else if ($this->image->thumb_width > 0) { $ret = cut_image("$dir/$name.$tag", "$dir/$name.thumb.$tag", $this->image->thumb_x, $this->image->thumb_y, $this->image->thumb_width, $this->image->thumb_height); if ($ret) { $ret = resize_image("$dir/$name.thumb.$tag", "$dir/$name.thumb.$tag", $thumb_size); } } else { $ret = resize_image("$dir/$name.$tag", "$dir/$name.thumb.$tag", $thumb_size); } if ($ret) { $this->thumbnail = new Image; $this->thumbnail->setFile($dir, "$name.thumb", $tag); list($w, $h) = getDimensions("$dir/$name.thumb.$tag"); $this->thumbnail->setDimensions($w, $h); /* if this is the highlight, remake it */ if ($this->highlight) { $this->setHighlight($dir, 1, $album); } } else { return _("Unable to make thumbnail") ." ($ret)"; } } return 0; } function getPreviewTag($dir, $size=0, $attrs="") { if ($this->preview) { return $this->preview->getTag($dir, 0, $size, $attrs); } else { return "<i>". _("No preview") ."</i>"; } } function getAlttext() { if (!empty($this->extraFields['AltText'])) { return $this->extraFields['AltText']; } elseif (!empty($this->caption)) { return $this->caption; } else { return ""; } } function getThumbnailTag($dir, $size=0, $attrs="") { if ($this->thumbnail) { return $this->thumbnail->getTag($dir, 0, $size, $attrs, $this->getAlttext()); } else { return "<i>". _("No thumbnail") ."</i>"; } } function getHighlightTag($dir, $size=0, $attrs='', $alttext='') { if (is_object($this->highlightImage)) { if (!isset($alttext)) { $alltext=$this->getAlttext(); } return $this->highlightImage->getTag($dir, 0, $size, $attrs, $alttext); } else { return "<i>". _("No highlight") ."</i>"; } } function getPhotoTag($dir, $full=0) { if ($this->image) { return $this->image->getTag($dir, $full, '', '', $this->getAlttext()); } else { return "about:blank"; } } function getPhotoPath($dir, $full=0) { if ($this->image) { return $this->image->getPath($dir, $full); } else { return "about:blank"; } } function getPhotoId() { if ($this->image) { return $this->image->getId(); } else { return "unknown"; } } function delete($dir) { if (is_object($this->highlightImage)) { $this->highlightImage->delete($dir); } if ($this->image) { $this->image->delete($dir); } if ($this->thumbnail) { $this->thumbnail->delete($dir); } if ($this->preview) { $this->preview->delete($dir); } } function setCaption($cap) { $this->caption = $cap; } function getCaption() { return $this->caption; } function isAlbum() { return ($this->isAlbumName !== NULL) ? true : false; } function setAlbumName($name) { $this->isAlbumName = $name; } function getAlbumName() { return $this->isAlbumName; } function isMovie() { if (isset($this->image)) { return isMovie($this->image->type); } } function resize($dir, $target, $filesize, $pathToResized) { if (isset($this->image)) { $this->image->resize($dir, $target, $filesize, $pathToResized); } } function setExtraField($name, $value) { $this->extraFields[$name]=$value; } function getExtraField($name) { if (isset($this->extraFields[$name])) { return $this->extraFields[$name]; } return null; } function lastCommentDate() { global $gallery; if ($this->numComments() == 0) { return -1; } $comment=$this->getComment($this->numComments()); return $comment->datePosted; // returns the time() } function getEmailMe($type, $user) { $uid=$user->getUid(); if (isset ($this->emailMe[$type])) { return isset($this->emailMe[$type][$uid]); } else { return false; } } function getEmailMeListUid ($type) { if (isset( $this->emailMe[$type])) { return array_keys($this->emailMe[$type]); } else { return array(); } } function setEmailMe($type, $user) { if ($this->getEmailMe($type, $user)) { return; } $uid=$user->getUid(); $this->emailMe[$type][$uid]=true; } function unsetEmailMe($type, $user) { if (!$this->getEmailMe($type, $user)) { return; } $uid=$user->getUid(); unset($this->emailMe[$type][$uid]); } } ?>
© 2017 -
ZeroByte.ID
.