Your IP : 216.73.216.61


Current Path : /home/w/u/e/wuectly/www/03cbe/
Upload File :
Current File : /home/w/u/e/wuectly/www/03cbe/depend.zip

PKO�!]B��NNimages/apply.gifnu&1i�GIF89a���1��S{�@��J������������������������k��V��E����͊�R�꒠�c��U�ವꁢ�k�摈�4��������u�4}�>��l���퉡�`��p��L��N��8��U��z�B��㋾\t�8����ю��k��g��r�ψ��L��������~����ʂ�+���z�>��]�������J��q��ز�y������߱�ӓ�ם��ܯ�{w�.~�;��Jw�9��K��Ι�Rm�)���S������@}�G�߯��J��^��\��g��m����Ј��ts�7��T��X��n��a��w�ͅ��kw�;�����P�ܩ��f�����~��7�⺔�i��ȑ�F��-��i���m�1y�<����\���!�,�����aY��N]9��HSv��@.Kw_lJ�32)[50�:gx+�`�%R �/u&G�o>h-�*b2jCA;$OQ�|TDfk{k~Xei�Z1n#BE8^cW�4	!sI�=U(yPڌ�r���&t4�@p�&\��q�A�4��}D`p1;PKO�!]W�x�44images/close-all.pngnu&1i��PNG


IHDR;mG�gAMA��7��tEXtSoftwareAdobe ImageReadyq�e<�IDATxڬT�n�@\�tt �@І�/�h�)�)�)�BA�%|5U���!A$c>�]v��C�DYi�{��9�Wg���ӗ�b�5F�Qd�F��e�>)`��6��c:���r��ۭVJ��5�c�#����x<V���S�}�0�v��
��R�dљ1�L�|>���7�d2��|�l��A�z.����x��A�Z6����NWK`�i�&�}��h4N�[�-�N���¤��Hɐ��,���i��Xa2�l6�d2�'5�ͨSGET��04Y�g0���9�O�t�����VH�������rV�C׬C���������J���ѱ��p�hWl�}=F<A�v]W��k�Ch��g���ru�:�aBΥ��W{|�.�!�� ��ZqV�BI�_,��C���t�G;��w���<�'U����y�0�!�!�m�w��GM���]��AM4� �+IEND�B`�PKO�!]hSZ��images/arrow-blue.pngnu&1i��PNG


IHDR�3^gAMA��7��tEXtSoftwareAdobe ImageReadyq�e<.IDATx�bT����
���t� �X]C#�#�
��a��1Da�IEND�B`�PKO�!]����hhimages/normal-check.jpgnu&1i����JFIFdd��Duckyd��Adobed��������n
%!"AQ1���?�=6e�/ �X�9�,9.NbY)��8���AU�!����X�ϐ�����/�qj��ҳ1���q�e2Ҥ4�RY����5Ӯ���bB�A��u����IL�e���G�΀jH�e��~�m̃�b��X��e�]w9��hځ6Ię\�,K���=�d���b8�9�?��<��9
�f:OԸ:3Ns,�:��%�RǾ�kQd��n��s7⸱J�M`ǜ�b8�&��VUcr��[f�v�k��&�71�2;W�A�E��9
9��cM�E�kR-\n���h���:���Ty
�3��Q���^=s��ai���6H��!d�H�13ɩh�����ާ�Ψ�N,tBZ0�f̥�r��B�
��;�c����cud.�x�!1y�Xt�Å��z�?���6�O�=u�	��0qmZ3ᵡ-O(�m����$g�����?^�<b��l�y�n+d�*�Y�Y��X�XV��D)'�}	���+<��g3V��V�o^��*�AX�B��I]]�%���PKO�!]
�U�ssimages/message-bg.gifnu&1i�GIF89ag�������������������������������!�,g 0�I��X��y�`1������ᾄ �b�w��;PKO�!]L0�_��images/popup-list.gifnu&1i�GIF89a����������������������������������Ƴ�������������!�,`$�-9�(�q$
�Ń
��;PKO�!]-LXL``images/block-head.gifnu&1i�GIF89a�������������������������������!�,
PI �D�4
	�qD;PKO�!]aĐ�eeimages/themes-default.gifnu&1i�GIF89a����rr����bb������������ff�dd�ii��������������������uu�yy��������cc�jj�tt�tt�kk���nn��������__�����^^������xx��������������������������������]]���!�,�@�pH,�jȤ2)�9�Ч�F�ZC�P��v	7�L+�c�M��p��FǼ��<c�R%�7-B&%7
Bt7$�B,'(7"�7,�,B..�)+��B0�7��B3�3��F�CA;PKO�!]�#o,,images/index.htmlnu&1i�<html><body bgcolor="#FFFFFF"></body></html>PKO�!]oJ���images/icon-save.pngnu&1i��PNG


IHDR�agAMA��7��tEXtSoftwareAdobe ImageReadyq�e<bIDATxڤS�KSQ��s7�RG]C�,��iH4	}���~=�EH�Q�?�V���z��A�(�
Wl���mj��5���s��\�� 5��9���|?��J�e����S����M��p�#oM`�H߹KR登��r��@�i�틡�)o���x�Ў��0M��p�� k[��Ln��O��2��g[������1x��m&F_�'1��M
H�'/8,N%.rTT�gK���"����t#:�js�TɁ�Q�ݛ0Ɛ�y��:1;�	����?H��^��eyS�
?��z>k�׃�z���I6P�"�����|*	)�6T!���U\IJ^Q|�t�����A�,��Z=rcCxoB����o�h�4|��v?E#㠚5l��[$�C�_pqX�6 �5���t2�T�=��+��q�@?�������}`�B	y%/� 1A��ƇF�:j���f��l�A�_!J#h���38%{+���f�\A�8a���(�L���X�,T�qIDh3i.BASx��C�����_Ԅ�]�Ř���KvЇN޹Ed�y�$gq���Ǫ*VBu�MvI�25-��iq6%��j�o�`w�5c�-R�IEND�B`�PKO�!]��vi��images/icon-moved.pngnu&1i��PNG


IHDR

�2ϽgAMA��7��tEXtSoftwareAdobe ImageReadyq�e<?IDATx�TP�K�Q��{_5��\,��!��!����rn�������?�9��Ƣ�� �P"��IId���Fup�{|>w�����h�a����/�Պ�c�O�b�t"�$�ܰ��2�`�!xF��f�9�	�?�{���͆'�"J�x�yr�O�>���aX���@��v)��g� mh��`�Z,G��,�QN��&�V��}���o�̹*��}\YUi��̶�X7�7�*.�Ϋ��p��i��Ԁ��2��a��(}!�(;:��aM]M�L��t�[O�;O��t�*���R��-���{98�IEND�B`�PKO�!]
G LLimages/tooltip-bg.gifnu&1i�GIF89a�������������������������������������������������������������!�,�i@�p*���2�i:;���B�f�؉V��v`0a<F�͆t��fC��\��#�Ha�w����������������������������!���
��A;PKO�!]��/���images/icon-move.pngnu&1i��PNG


IHDR

�2ϽgAMA��7��tEXtSoftwareAdobe ImageReadyq�e<�IDATx�,�=K#Q�ϝ{�ɘ��d7"*�JVR�����?A����[+�V���.�h'���#"�.��h �x��3�c>������
�50L�T
4Ls�Ć��ҫH��m|4x)���fi(5՝Fk��g�R����0T��c��y��|���7����O�1p�)-ՀG�T1�����:��t� �ƖO�����e��$�$��}�w~��HQ�[e�����Uc���T
����]�6�]ەE�j�p��&����׿(�m+ࢎz���ә/�*n'm�뚠6��G�T�'4���4�b���\1�S�]bǛ�>���\���v��ܼ�r��f�m�l���x3�n�/�	 �/�ӸA�_�D<D��-�u��IEND�B`�PKO�!]1L�ppimages/table-bg.gifnu&1i�GIF89aL�������������������������������!�,L0�I���Ï�F(�B`H��C;p!DM$;PKO�!]ū�u��images/grad.pngnu&1i��PNG


IHDR!��V�gAMA��7��tEXtSoftwareAdobe ImageReadyq�e<'IDATx�b���?�ϟ?�@4�� ��M�6.1( �;���IEND�B`�PKO�!]ܻ=�YYimages/del.gifnu&1i�GIF89a
����������!�,
*�y���T؋��Q�|=�f}�x�*J�'⮰)�4����'*;PKO�!]
��w��images/success-bg.gifnu&1i�GIF89ag��������������������������������������������������������!�,g=`'�YY6[�^,��&�IBTNE|4����p0$H�`	iB&�I��@T�W����v9��B&;Ύ;PKO�!]�M�//images/icon-success.pngnu&1i��PNG


IHDR�ʄgAMA��7��tEXtSoftwareAdobe ImageReadyq�e<�IDATx��VklTE��c��m)�E[(F�VS( ��
&�h4>�D~���ƄHD|%E4��h�A�@-5����؂E�Rؖ�}ܽ��3���[v��N2��{�|�|�;gFB�jM�.o���:JM�|P�>�MC��
���dҁUP��aֳ��G��)/y��
��k�{�nbV�ʯ����@���2^
�:�c*�����G�����ٖ*��< D6��\$�ie�a�W9�}?+f8/��O?C��`��i�"�N�E���mV�����v�./�t9�i�
L�5
���Շ�5��^�C���C�i���PY�Y��dwVPN�\�O��)��q�e����i��>U�3!<��j�$'�p,�9�yzCVz!q�heB���GF=���3tZ��u\r�q_�!=A�#¡4iY�C��>�j�S�(�.eD9A}%�	�L�'2RW���ꂏbs~vP���#��	��z�7.(�Mĺ�ѣ&P[�õm%�}1"p���D*�%@Y	���9D��4Nk^Xs/��(=5���v2�WP\Ǯ���n�+�L��K�JZ��L�Vʢ|�ϲGJ��M������.$�j��5�<�/nņ��#ˋogFJ�2R�Q����Θ������Z���8Kk|i�3�ZOވ�GU����̩T/���t����<sI=�x<��z������!F�V��b���0/�^�h�J�&=����εO��n��iݎX�����/+)?���B��(�XzQ@���n�ڬ�(Aەm�y�&��˺���Hq[��4�&5M�d�2�S��#EzT삄t��=;�J�q�ƁcSѳG�.wQ}�$�~�hi*�y�M8�d;�t��N�"9,�4���'1��3@��pI�s���y�����/��-�n�	ϕ�����N�U�I�mŋQ��Z���j�q���H)�r�)���r�mt]S�j#tv�?�hK��!+�ޒC�k҃(Ћ�Qt3αa���fT�߈�m!�;�-�2�\��ѧ.ڟ���q�T�(��X,׆�J㞷�b_��b�.��Ճw;�@ix:
*���:}��k �����H=���#�<���so����I�;�l�1�w��b�|�<����Hq'�bj�k���gS^)>��f��]�(udN� ��&RR�3����T���Wq��
�,d����u"�h(0�)W�4���Օ��mo��1�7
{�^+���L�)�i�,lx�e�ҷI�OU>��*�>���F��p���{LR�a���u��1wA#�STbAN��z�;l�0T1��;�R_
k�U6�-��JY�M%������B�AJf�)|O핗1�N��<�Uu��`���d�+����?,a�&�*<%�:u�6�ځG�|I
r��/Cv���Zr���Rɝi�[��������K������JeIEND�B`�PKO�!]^�VOOimages/open-all.pngnu&1i��PNG


IHDR;mG�gAMA��7��tEXtSoftwareAdobe ImageReadyq�e<�IDATxڬT�J�@��iZJ{іx(����E_��E�)ԃ>�x�.҃�)<�=,�?/��!�lv�6M�"EŁ���~�mf'�����1�
���2��6��)"Zk�����<OO�S��2k<�>x9"��z��
�@/3�~"b��9,����jբZ��ף���V
w���OJ�ҷ��{��>�@��^�X������<�C�Q(�/6�k�hc6�#�%�l]=|[Vb���r.��r"�t*EJFD�{��4L+�Ʋ��d2Y�d2s���F0s��ńݣM�/��2���!D���"ק��."1N�A�f�!�f�����f�+	���jǹY]Y�;�C�X�p���+�!���S�h�æ���P3D����q�&�o�f�&�!B���W;��ΐ�]�Rr��+R�$��f��u��q'�ijs��0
�8�N��-۶)�m��@<q�d~�'<.�?�'���X{��5�IEND�B`�PKO�!]��S�``images/block-setting.gifnu&1i�GIF89a����������������������������������!�,
p�I0#��H�;PKO�!]�=��BBimages/icon-message.pngnu&1i��PNG


IHDR�ʄgAMA��7��tEXtSoftwareAdobe ImageReadyq�e<�IDATxڤV]lE=����?J�-X�B�)%�V1�15Q� &������M��F���P"RT��6B��6�?����;�3���%�T�޹wvvg�|�;�����.��g�$��P���]njMx�}FH&}�����P��Ʋ�㏕�y7ױ��n����.�>����j2�����;Σmj)v��V�wv�4�<�>ݒ\ �k4�!hhILB�LQe���M`��䐉0�l�*(��^��9��²�ݗ�~�\���D 1��h#H�Ӌek����ҍSeuh�}N�h�<	K*���+��鉲՟���*	*�M*c6%������P8�����Y5J�Ef�&g̗X9�r���*"Ɉ��ʈ"$��B�Y���9� D�
�22s�'Z��d��*t������fڴ��P[�4"(�\*��hK�ε��$s��2�qGz��'!+1!h��k9�V�!�By�����}G*-pj#�X��%����->�YA�9�헟�
��J���B{��W�T�F�S�jz���h�� `f����^1�lRC8���{a�2���YLaK��H[�E���q�����ɋ�ĭ\�m��s"�:=��ѷ�-��O}�F��8ܞ6$����1���G�O gW!X�R���&$�F+7)$��1�G���O���w{�b7Y+pTV�\-!-�(�VrM@�c�EL��?:��iW�X��?�
���?��l;k���w�n
�OI��"�]QH�N���ޫ&t��g���=��Ƀ�~�y�.wV�Ã��7���߆c�k@^Ka�U\��\,ҹs��I��F~P������k�M���L]��Ethi��~�=d:�h�>N$ۖk�qm8	9�.�My	��Dϑ�~l3:Z/����&���e~FK)rZ�?ۇ8�K]�ԃ�J!�Mx�c�|��'E:}�>�f{e� ����;Θ���p%*V?����h�R˶��&��^!�_kj���*�Ê-5�GAL_��S?Qg3�:Q�|
p�u&��x�9�>����${�7:V�>�iv)��OE�SA�ܲ/;�B���mۙ����d_�Uo؊S���W�p��8�Q��|��B��'�WW�%����̽n��n\Ѕ5��=�5��e*�#)�>^�1�ln���|���4?�ivE����t�!�>���.b>ub��Һ�/����f/,:��B�B�kO�qS8��f�����F{�\�X�a;98�$�$�7:�<*1�Ɵ-<XbV���,��Kb��v,X�0г�*d#Hn.^ڵ�4ݏ�
�;�]{J��J֜�Q�W�D��iEL��ĉ~S�!<�@	�+[Y�8�j�$$�l�c�i��
���*�i��]'~�a)5�<{�:U�\Y:�]�#�t��̩�Z��Ι�n��_uм�)���J��x/z\�g���e����,�
��\�0LH�Ke��IEND�B`�PKO�!]
V�~jjimages/tabs-setting.gifnu&1i�GIF89a%�����������������������������������������������!�,%𕲪�ư
�9Ҝ���N;;PKO�!]c�T�VVimages/cancel.gifnu&1i�GIF89a�G������������h�P.쩛�J(�`D����K)�?�pU���]�nO�I'옆����wU��vW�qO��p�<�{Y�2�[9�R0�U3�cA�L1����E&��j��w��`�H&�A�M+����}�G%�:�dB�^<�lJ��b�cA�rP����]B�u^��kS��q�����Ÿ��d��j�d�b@����a?��{�W=����"�fD���!�G,��G�����(FF(�G	$#DD#$	�2.%EE%.2�"?C5�7FD"�13:��E1�6��4�*/�DEG/*�&G���G&�,8��@,�
0�9>0
� !<���G!@���D�<�8��B!V���
 5H�Aԇ
 �,;PKO�!]5˳ݧ�images/admin-bg.gifnu&1i�GIF89aC����������������������������������������������������������������������������������������!�,C$ '�di���h��S�D(�eTeY��pp�	�;PKO�!]�rbGGimages/level2-block.gifnu&1i�GIF89a�������������������������!�,x�[^�H!��`�;PKO�!]
V�~jjimages/level1-block.gifnu&1i�GIF89a%�����������������������������������������������!�,%𕲪�ư
�9Ҝ���N;;PKO�!]�/��images/bt-close.gifnu&1i�GIF89a�����˥�Ѭ�������ʤ�ž����������۾���ǡ����Ğ����ɣ�̭�Ы����Ş����›����߻���ӹ�����������Ȩ�ϲ����Ժ�ջ�Ƥ����������β����������Ǧ������������ϳ�ţ������ռ�Ի����Ģ�������������������������!�,�C��

���E���������
��E
�������3!�C	�&@9�
6)4�	?�+DD�<�D'���7�0�;�������8�/��,�BƠA�ꦡʁP-��H7m.Kz�Z0�]>��pq�@{Et,�q�Ă	�$R뒈��:���K�P�$H��� �zT�U�8
!�dJ
<�A����J(lp);PKO�!]3�F�11images/arrow-list.gifnu&1i�GIF89a�mmm���!�,�o�z
Y(;PKO�!]&����images/arrow-level1.pngnu&1i��PNG


IHDR�3^gAMA��7��tEXtSoftwareAdobe ImageReadyq�e<(IDATx�b```��t� #.-8��m��f	��IEND�B`�PKO�!]�cP��images/icon-default.pngnu&1i��PNG


IHDR

�2ϽgAMA��7��tEXtSoftwareAdobe ImageReadyq�e<$IDATx�T��jA��YVW���J��D}����v>��]R'��H�h�`!Ia'�Q�,����73�Ʌa���{���v�R�A��R*��{�m��m�{�}S��ı�b!�1���I�u�	Ca�߿*}�`�!���Ry��8N>Y.a��l���j>'�4�lF�h aH��!�"�x�?����}�ZE�u䶆��P�.�jHiES����S�
���ᒆ�,`|�Q�+�5��D��4c��(nn�m�e��J���
dzөR�fs����B��UO��
0��S�~3IEND�B`�PKO�!]�Zimages/copy.pngnu&1i��PNG


IHDR�a�IDATx�cd��iG��a�n\�0)�z����?dyF(�ҹ���B[6�G~���Ƿ�,��d��?Ȇ�`���g�=Â�	���2h�0��������k�7�3��h��M��`΢����[0����Ï�^�K��0|���w�ۊb܀��~L��pz�31靟pB~�1��/��w�a�y�B��?��>~U ��S��20222�db�y��3�����߿Ż�D
��
�[����+��3����i�����ay�@��+>��u��mfb�y��~e���ư&^ ����r�2����0��v��\�bȳ�@l	��@ffiy�k�`(��̰(
�&�+������y�:�A�V���(0B1�;_aށ{�����0'�?(t[�y��m�45�d���Ď����j�/N������RIEND�B`�PKO�!]d�

ddimages/level2-close.gifnu&1i�GIF89a������������������!�,P�f�m��œG�q($��;PKO�!]�Ɦ��images/toggle-btn.pngnu&1i��PNG


IHDR+1��gAMA��7��tEXtSoftwareAdobe ImageReadyq�e<�IDATxڴ��
� Cq���S�JUhC|!>�%a�j�GJ)��n�[�1^sJ�es�A~.�i^�Ɋ������ڠٶ�]<���
	����}v�n��l����0�&+DHm��I��g/�d���v
0˛)\�S�IEND�B`�PKO�!]����images/lightbulb.pngnu&1i��PNG


IHDR  szz�tEXtSoftwareAdobe ImageReadyq�e<zIDATxڴWklU�����n�,�ݾl����H4�D"���?F��|���??��AI�B�DM��"��Z
%�
"h��mwwv��}�x��
����=��{^�9��s�J�ib�!I�T���m+�pɢ��
&���l(�16=�⾏iɘJy*_R���[V<體�*�f
̬r�Eۏ$�d�GXϬZ��}/����O<�T�l�?_
�4�}�Z���[��#��L�@����;&g�R������ﮆ��^H��¤�ad&H�B&c�6�B�̩�c�Տ�޾gBp*_N�z��{^K�
���`f�d){5�W�d�Ŀ�ע����SA��΁(�\�tE���
^Py�Հ�����kijdH�uX�m�S(.�WY;�_E�sQ�3d��^_[��@|[�tX�?^K��D���B��j�ˌSƓ�i�~H�	�dA����c[�pJ�	��Ez��\JW20QTWO�DΩ;����:Մd�#
F��bE��0�v��y
{ϓ��E<�5�G2����L�Њ;�i3�+S�B��"%p��sX~_M�1��֚B <0,���-|�
�͈�>�G�(�|4�T:�*�-��6��c�,�9�1�e�+`]�Q�jHw��ڴ�A@�r����䷃k#�<�ט�2,�:��6�V9R��{��._�'��P-'�A�rK����~;�5�˲�
�UV��>�y�5:x��.̩��b؄��,[�s^c˰,�.�(7�o�7?�;��}q�����j}�V�G�3��s���eXvW��u��6ʭ|㌾���m�/�	D;r�����~��0W��Z<���om��{ d�@�L�"~mc��A�G-x�J75��M@��c�����)�̚���$���k��y�
���<>OQS���	a]���L�cA���d/٭׼��b\����h.q���_B�.�}�6`�������S�A��e�ղiNg_��č�����`�I�NMs�O7����h���'�ekT*�U,o�����z*9��A:�C4#�B�c�i�}�?xs5�g�y��O��P@Q\��lzLG<G2N�xz<��d�%"v�k��C
�~4�Q�DJG6���ٍh��AL��iƮ��=P��R2��5r��9J�K�,��@�ѣ��9��Ę����z��W��`�\T�g�����������Т�֛��::�{�����ѥ��<��A,��i�l\0:K9%�_�[�]���[�)�����–4Ͻ��P�g�^S���c8��*���ϼ���x���Z�뻯6�s~�E�:�7��t��.�#j��<�W	��on��E&2���Ӟ�.�B�`�@~ga�#_IEND�B`�PKO�!]�2images/del2.gifnu&1i�GIF89a�J�F7�S?�F6�g[���������û��6��1�6"������������F3��}؅}�7&�.�wv�������dO�ws�"�re�4��޾���WB�,�����ȣ�����џ���}k¸����ƻ��������G2�����۸{x����0���������ò�����2����������w�)�����뤛��̹XLՀu���\Q����ӿ��!�J,@d�GJ��$	
+�JF6�J?�.D1'%�#�H@9
)�,�*4J/>A7�3&0"JE!8<�J2=�;- (�C�B�5�:IȆ�;PKO�!]�#o,,css/index.htmlnu&1i�<html><body bgcolor="#FFFFFF"></body></html>PKO�!]css/depend.cssnu&1i�PKO�!]��;��
helper.phpnu&1i�<?php
/** 
 *------------------------------------------------------------------------------
 * @package       T3 Framework for Joomla!
 *------------------------------------------------------------------------------
 * @copyright     Copyright (C) 2004-2013 JoomlArt.com. All Rights Reserved.
 * @license       GNU General Public License version 2 or later; see LICENSE.txt
 * @authors       JoomlArt, JoomlaBamboo, (contribute to this project at github 
 *                & Google group to become co-author)
 * @Google group: https://groups.google.com/forum/#!forum/t3fw
 * @Link:         http://t3-framework.org 
 *------------------------------------------------------------------------------
 */

if (!defined('_JEXEC')) {
    // no direct access
	define('_JEXEC', 1);
	defined ( '_JEXEC' ) or die ( 'Restricted access' ); 
	$path = dirname(dirname(dirname(dirname(__FILE__))));
	define('JPATH_BASE', $path);

	if (strpos(php_sapi_name(), 'cgi') !== false && !empty($_SERVER['REQUEST_URI'])) {
        //Apache CGI
		$_SERVER['PHP_SELF'] = rtrim(dirname(dirname(dirname($_SERVER['PHP_SELF']))), '/\\');
	} else {
        //Others
		$_SERVER['SCRIPT_NAME'] = rtrim(dirname(dirname(dirname($_SERVER['SCRIPT_NAME']))), '/\\');
	}

	require_once (JPATH_BASE . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'defines.php');
	require_once (JPATH_BASE . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'framework.php');
	JDEBUG ? $_PROFILER->mark('afterLoad') : null;

	/**
	 * CREATE THE APPLICATION
	 *
	 * NOTE :
	 */
	$japp = JFactory::getApplication('administrator');

	/**
	 * INITIALISE THE APPLICATION
	 *
	 * NOTE :
	 */
	$japp->initialise(array('language' => $japp->getUserState('application.lang', 'lang')));
}

$user = JFactory::getUser();

jimport('joomla.filesystem.folder');
jimport('joomla.filesystem.file');


if(!$user->authorise('core.manage', 'com_templates')){
	die(json_encode(array(JText::_('NO_PERMISSION'))));
}


$helpcls = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'fileconfig.php';
if(file_exists($helpcls))
include_once $helpcls;

$task = isset($_REQUEST['dptask']) ? $_REQUEST['dptask'] : '';
if ($task != '' && method_exists('JAFileConfig', $task)) {
	JAFileConfig::$task();
}PKO�!]m����
t3form.phpnu&1i�<?php
/** 
 *------------------------------------------------------------------------------
 * @package       T3 Framework for Joomla!
 *------------------------------------------------------------------------------
 * @copyright     Copyright (C) 2004-2013 JoomlArt.com. All Rights Reserved.
 * @license       GNU General Public License version 2 or later; see LICENSE.txt
 * @authors       JoomlArt, JoomlaBamboo, (contribute to this project at github 
 *                & Google group to become co-author)
 * @Google group: https://groups.google.com/forum/#!forum/t3fw
 * @Link:         http://t3-framework.org 
 *------------------------------------------------------------------------------
 */

use Joomla\CMS\Form\Form;

// No direct access
defined('_JEXEC') or die();

/**
 * Radio List Element
 *
 * @package  JAT3.Core.Element
 */
class T3Form extends Form
{

	public function __construct($name, array $options = array()){

		if($name instanceof Form){
			
			foreach($name as $property => $value) {
				$this->$property = $value;
			}

		} else {
			parent::__construct($name, $options);
		}
	}


	/**
	 * Method to load the form description from an XML string or object.
	 *
	 * The replace option works per field.  If a field being loaded already exists in the current
	 * form definition then the behavior or load will vary depending upon the replace flag.  If it
	 * is set to true, then the existing field will be replaced in its exact location by the new
	 * field being loaded.  If it is false, then the new field being loaded will be ignored and the
	 * method will move on to the next field to load.
	 *
	 * @param   string  $data     The name of an XML string or object.
	 * @param   string  $replace  Flag to toggle whether form fields should be replaced if a field
	 *                            already exists with the same group/name.
	 * @param   string  $xpath    An optional xpath to search for the fields.
	 *
	 * @return  boolean  True on success, false otherwise.
	 *
	 * @since   11.1
	 */
	public function load($data, $replace = true, $xpath = false)
	{
		// If the data to load isn't already an XML element or string return false.
		if ((!($data instanceof SimpleXMLElement)) && (!is_string($data)))
		{
			return false;
		}

		// Attempt to load the XML if a string.
		if (is_string($data))
		{
			try
			{
				$data = new SimpleXMLElement($data);
			}
			catch (Exception $e)
			{
				return false;
			}

			// Make sure the XML loaded correctly.
			if (!$data)
			{
				return false;
			}
		}

		// If we have no XML definition at this point let's make sure we get one.
		if (empty($this->xml))
		{
			// If no XPath query is set to search for fields, and we have a <form />, set it and return.
			if (!$xpath && ($data->getName() == 'form'))
			{
				$this->xml = $data;

				// Synchronize any paths found in the load.
				$this->syncPaths();

				return true;
			}
			// Create a root element for the form.
			else
			{
				$this->xml = new SimpleXMLElement('<form></form>');
			}
		}

		// Get the XML elements to load.
		$elements = array();
		if ($xpath)
		{
			$elements = $data->xpath($xpath);
		}
		elseif ($data->getName() == 'form')
		{
			$elements = $data->children();
		}

		// If there is nothing to load return true.
		if (empty($elements))
		{
			return true;
		}

		// Load the found form elements.
		foreach ($elements as $element)
		{
			// Get an array of fields with the correct name.
			$fields = $element->xpath('descendant-or-self::field');
			foreach ($fields as $field)
			{
				// Get the group names as strings for ancestor fields elements.
				$attrs = $field->xpath('ancestor::fields[@name]/@name');
				$groups = array_map('strval', $attrs ? $attrs : array());

				// Check to see if the field exists in the current form.
				if ($current = $this->findField((string) $field['name'], implode('.', $groups)))
				{

					// If set to replace found fields, replace the data and remove the field so we don't add it twice.
					if ($replace)
					{
						$olddom = dom_import_simplexml($current);
						$loadeddom = dom_import_simplexml($field);
						$addeddom = $olddom->ownerDocument->importNode($loadeddom, true); // Import child nodes too
						$olddom->parentNode->replaceChild($addeddom, $olddom);
						$loadeddom->parentNode->removeChild($loadeddom);
					}
					else
					{
						unset($field);
					}
				}
			}

			// Merge the new field data into the existing XML document.
			self::addNode($this->xml, $element);
		}

		// Synchronize any paths found in the load.
		$this->syncPaths();

		return true;
	}
}PKO�!]�#o,,
index.htmlnu&1i�<html><body bgcolor="#FFFFFF"></body></html>PKO�!]�Ƀ�vv
t3modules.phpnu&1i�<?php
/** 
 *------------------------------------------------------------------------------
 * @package       T3 Framework for Joomla!
 *------------------------------------------------------------------------------
 * @copyright     Copyright (C) 2004-2013 JoomlArt.com. All Rights Reserved.
 * @license       GNU General Public License version 2 or later; see LICENSE.txt
 * @authors       JoomlArt, JoomlaBamboo, (contribute to this project at github 
 *                & Google group to become co-author)
 * @Google group: https://groups.google.com/forum/#!forum/t3fw
 * @Link:         http://t3-framework.org 
 *------------------------------------------------------------------------------
 */

// No direct access
defined('_JEXEC') or die();

/**
 * Radio List Element
 *
 * @package  T3.Core.Element
 */
class JFormFieldT3Modules extends JFormField
{
	/**
	 * Element name
	 *
	 * @access    protected
	 * @var        string
	 */
	protected $type = 'T3Modules';

	/**
	 * Check and load assets file if needed
	 */
	function loadAsset(){
		if (!defined ('_T3_DEPEND_ASSET_')) {
			define ('_T3_DEPEND_ASSET_', 1);
			
			if(!defined('T3')){
				$t3url = str_replace(DIRECTORY_SEPARATOR, '/', JURI::base(true) . '/' . substr(dirname(__FILE__), strlen(JPATH_SITE)));
				$t3url = str_replace('/administrator/', '/', $uri);
				$t3url = str_replace('//', '/', $uri);
			} else {
				$t3url = T3_ADMIN_URL;
			}

			$jdoc = JFactory::getDocument();

			if(!defined('T3_TEMPLATE')){
				JFactory::getLanguage()->load(T3_PLUGIN, JPATH_ADMINISTRATOR);

				if(version_compare(JVERSION, '3.0', 'ge')){
					JHtml::_('jquery.framework');
				} else {
					$jdoc->addScript(T3_ADMIN_URL . '/admin/js/jquery-1.x.min.js');
					$jdoc->addScript(T3_ADMIN_URL . '/admin/js/jquery.noconflict.js');
				}

				$jdoc->addStyleSheet(T3_ADMIN_URL . '/includes/depend/css/depend.css');
				$jdoc->addScript(T3_ADMIN_URL . '/includes/depend/js/depend.js');
			}

			JFactory::getDocument()->addScriptDeclaration ( '
				jQuery.extend(T3Depend, {
					adminurl: \'' . JUri::getInstance()->toString() . '\',
					rooturl: \'' . JURI::root() . '\'
				});
			');
		}
	}
	
	/**
	 * Method to get the field input markup.
	 *
	 * @return  string  The field input markup.
	 */
	function getInput()
	{
		$this->loadAsset();

		$show_default = $this->toBoolean((string) $this->element['show_default']);
		$show_none    = $this->toBoolean((string) $this->element['show_none']);
		$multiple     = $this->toBoolean((string) $this->element['multiple']);
		$disabled     = $this->toBoolean((string) $this->element['disabled']);

		$db    = JFactory::getDbo();
		$query = $db->getQuery(true);
		$query
			->select('id, title, module, position')
			->from('#__modules')
			->where('published = 1')
			->where('client_id = 0')
			->order('title');
		$db->setQuery($query);
		
		$modules = $db->loadObjectList();
		$moduleopts = array();

		if($show_default){
			$moduleopts[] = JHTML::_('select.option', 'default', JText::_('JDEFAULT'));
		}

		if($show_none){
			$moduleopts[] = JHTML::_('select.option', 'none', JText::_('JNONE'));
		} 

		if (is_array($modules)) {
			foreach ($modules as $module) {
				$moduleopts[] = JHTML::_('select.option', $module->id, $module->title);
			}
		}

		return JHTML::_('select.genericlist', $moduleopts, $this->name . ($multiple ? '[]' : ''), ($multiple ? 'multiple="multiple" size="10" ' : '') . ($disabled ? 'disabled="disabled"' : ''), 'value', 'text', $this->value);
	}


	/**
	 * Helper function, check the field attribute and return boolean value
	 *
	 * @return  boolean the check result
	 */
	function toBoolean($str){
		return !in_array($str, array('false', '', '0', 'no', 'off'));
	}
}PKO�!]���Kbbt3folderlist.phpnu&1i�<?php
/** 
 *------------------------------------------------------------------------------
 * @package       T3 Framework for Joomla!
 *------------------------------------------------------------------------------
 * @copyright     Copyright (C) 2004-2013 JoomlArt.com. All Rights Reserved.
 * @license       GNU General Public License version 2 or later; see LICENSE.txt
 * @authors       JoomlArt, JoomlaBamboo, (contribute to this project at github 
 *                & Google group to become co-author)
 * @Google group: https://groups.google.com/forum/#!forum/t3fw
 * @Link:         http://t3-framework.org 
 *------------------------------------------------------------------------------
 */

defined('JPATH_PLATFORM') or die;

JFormHelper::loadFieldClass('folderlist');

/**
 * Supports an HTML select list of files
 *
 * @package     Joomla.Platform
 * @subpackage  Form
 * @since       11.1
 */
class JFormFieldT3FolderList extends JFormFieldFolderList
{

	/**
	 * The form field type.
	 *
	 * @var    string
	 * @since  11.1
	 */
	public $type = 'T3FolderList';

	/**
	 * Method to get the list of files for the field options.
	 * Specify the target directory with a directory attribute
	 * Attributes allow an exclude mask and stripping of extensions from file name.
	 * Default attribute may optionally be set to null (no file) or -1 (use a default).
	 *
	 * @return  array  The field option objects.
	 *
	 * @since   11.1
	 */
	protected function getOptions()
	{
		//$table = JTable::getInstance('Style', 'TemplatesTable', array());
		//$table->load((int) JFactory::getApplication()->input->getInt('id'));
		// update path to this template 
		$path = (string) $this->element['directory'];
		// process path in template
		$options = array();
		$vals = array();
		// get all path in template
		$paths = T3Path::getAllPath ($path, true);
		foreach ($paths as $path) {
			$this->directory = $this->element['directory'] = JPath::clean($path);
			$tmps = parent::getOptions();
			foreach ($tmps as $tmp) {
				if (in_array($tmp->value, $vals)) continue;
				$vals[] = $tmp->value;
				$options[] = $tmp;
			}
		}
		return $options;
	}
}
PKO�!]�#o,,
js/index.htmlnu&1i�<html><body bgcolor="#FFFFFF"></body></html>PKO�!]5ki�a4a4js/depend.jsnu&1i�/** 
 *------------------------------------------------------------------------------
 * @package       T3 Framework for Joomla!
 *------------------------------------------------------------------------------
 * @copyright     Copyright (C) 2004-2013 JoomlArt.com. All Rights Reserved.
 * @license       GNU General Public License version 2 or later; see LICENSE.txt
 * @authors       JoomlArt, JoomlaBamboo, (contribute to this project at github 
 *                & Google group to become co-author)
 * @Google group: https://groups.google.com/forum/#!forum/t3fw
 * @Link:         http://t3-framework.org 
 *------------------------------------------------------------------------------
 */

!function($){

	var T3Depend = window.T3Depend = window.T3Depend || { 	
		
		depends: {},
		controls: {},
		infos: {},
		ajaxs: {},

		register: function(to, depend){
			var controls = this.controls;
			
			if(!controls[to]){
				controls[to] = [];
				
				var inst = this;
				this.elmsFrom(to).on('change.less', function(e){
					inst.change(this);
				});
			}
			
			if($.inArray(depend, controls[to]) == -1){
				controls[to].push(depend);
			}
		},
		
		change: function(ctrlelm){
			var controls = this.controls,
				depends = this.depends,
				ctrls = controls[ctrlelm.name],
				form = this;

				
			if(!ctrls){
				ctrls = controls[ctrlelm.name.substr(0, ctrlelm.name.length - 2)];
			}
			
			if(!ctrls){
				return false;
			}
			
			$.each(ctrls, function(idx, ectrl){
				var showup = true;
				
				$.each(depends[ectrl], function(ctrl, cvals){
					if(showup){
						var celms = form.elmsFrom(ctrl);
						showup = showup && !!($.grep(celms, function(celm){ return celm._disabled; }).length == 0);
						if(showup){
							showup = showup && !!($.grep(form.valuesFrom(celms), function(val){ return ($.inArray(val, cvals) != -1); }).length);
						}
					}
				});
				
				form.elmsFrom(ectrl).each(function(){
					if(showup){
						form.enable(this);
					} else {
						form.disable(this);
					}
				});
				
				if(controls[ectrl] && controls[ectrl] != ectrl){
					form.elmsFrom(this).eq(0).trigger('change');
				}
				
			});
		},
		
		add: function(control, info){
			
			var depends = this.depends,
				infos = this.infos,
				form = this,
				name = info.group + '[' + control + ']';
				
			info = $.extend({
				group: 'params',
				hide: true
			}, info);
			
			$.each(info.elms.split(','), function(el){
				var elm = info.group +'[' + $.trim(this) + ']';
				
				if (!depends[elm]) {
					depends[elm] = {};
				}

				//save info
				if (!infos[elm]){
					infos[elm] = info;
				} else {
					$.extend(infos[elm], info);
				}
				
				if (!depends[elm][name]) {
					depends[elm][name] = [];
				}
				
				depends[elm][name] = depends[elm][name].concat(info.vals.split(','));
				
				form.register(name, elm);
				
			});
		},
		
		start: function(){
			$(document.adminForm).find('h4.block-head').parent().addClass('segment');
			
			this.update();
		},
		
		update: function () {
			var form = this;
			$.each(this.controls, function(ctrl, ctrls){
				form.elmsFrom(ctrl).trigger('change');
			});
		},
		
		enable: function (el) {
			el._disabled = false; //selector 'li' is J2.5 compactible
			if(this.infos[el.name] && this.infos[el.name].hide){
				$(el).closest('.adminformlist > li, div.control-group').css('display', 'block');
			} else {
				$(el).closest('.controls, .t3-controls').children().removeClass('disabled');
			}
		},
		
		disable: function (el) {
			el._disabled = true; //selector 'li' is J2.5 compactible
			if(this.infos[el.name] && this.infos[el.name].hide){
				$(el).closest('.adminformlist > li, div.control-group').css('display', 'none');
			} else {
				$(el).closest('.controls, .t3-controls').children().addClass('disabled');	
			}
		},
		
		elmsFrom: function(name){
			var el = document.adminForm[name];
			if(!el){
				el = document.adminForm[name + '[]'];
			}
			
			return $(el);
		},
		
		valuesFrom: function(els){
			var vals = [];
			
			$(els).each(function(){
				var type = this.type,
					val = $.makeArray(((type == 'radio' || type == 'checkbox') && !this.checked) ? null : $(this).val());

				for (var i = 0, l = val.length; i < l; i++){
					if($.inArray(val[i], vals) == -1){
						vals.push(val[i]);
					}
				}
			});
			
			return vals;
		},

		addajax: function(name, info){
			var ajaxs = this.ajaxs;
				
			info = $.extend({
				url: info.site == 'admin' ? T3Depend.adminurl : T3Depend.rooturl,
				func: ''
			}, info);

			if(info.query){
				var urlparts = info.url.split('#');
				if(urlparts[0].indexOf('?') == -1){
					urlparts[0] += '?' + info.query;
				} else {
					urlparts[0] += '&' + info.query;
				}
				
				info.url = urlparts.join('#');
			}

			if(!ajaxs[name]){
				ajaxs[name] = {};

				var inst = this;
				this.elmsFrom(name).on('change.less', function(e){
					inst.loadajax(this);
				});
			}

			ajaxs[name].info = info;
		},

		loadajax: function(ctrlelm){
			var ajaxs = this.ajaxs,
				name = ctrlelm.name,
				ctrl = ajaxs[name],
				form = this;

			if(!ctrl){
				ctrl = ajaxs[name.substr(0, name.length - 2)];
			}
			
			if(!ctrl){
				return false;
			}

			var info = ctrl.info;
			if(!info){
				return false;
			}

			if(ctrl.elms && ctrl.elms.length){
				$(ctrl.elms).remove();
				ctrl.elms.length = 0;
			} else {
				ctrl.elms = [];
			}

			if(!this.progElm){

			}

			if(!this.progElm){
				this.progElm = $('.t3-progress');

				if(!this.progElm.length){
					this.progElm = $('<div class="t3-progress"></div>')
				}

				this.progElm.appendTo(document.body);

				var placed = $('#toolbar-box');
				if(!placed.length){
					placed = $('#t3-admin-toolbar');
				}

				if(placed.length){
					this.progElm.appendTo(placed);
				}
			}

			//progress bar
			//show it first
			if($.support.transition){
				form.progElm
					.removeClass('t3-anim-slow t3-anim-finish')
					.css('width', '');

				setTimeout(function(){
					if(!form.progElm.hasClass('t3-anim-finish')){
						form.progElm
							.addClass('t3-anim-slow')
							.css('width', 50 + Math.floor(Math.random() * 20) + '%');
					}
				});
			} else {
				form.progElm.stop(true).css({
					width: '0%',
					display: 'block'
				}).animate({
					width: 50 + Math.floor(Math.random() * 20) + '%'
				});
			}

			$.get(info.url, {
				jvalue: form.valuesFrom(form.elmsFrom(name))[0], 
				_: $.now() 
			}).always(function(){
				//progress bar
				if($.support.transition){
					
					form.progElm
						.removeClass('t3-anim-slow')
						.addClass('t3-anim-finish')
						.one($.support.transition.end, function () {
							setTimeout(function(){
								if(form.progElm.hasClass('t3-anim-finish')){
									$(form.progElm).removeClass('t3-anim-finish');
								}
							}, 1000);
						});

				} else {
					$(form.progElm).stop(true).animate({
						width: '100%'
					}, function(){
						$(form.progElm).hide();
					});
				}

			}).done(function(rsp){
				
				var parts = ctrl.info.func.split('.'),
					fobj = window;

				for(var i = 0; i < parts.length; i++){
					if(!(fobj = fobj[parts[i]])) {
						break;
					}
				}

				if(fobj && i == parts.length && $.isFunction(fobj)){
					fobj(form, ctrlelm, ctrl, rsp);
				}
			});
		},
		
		segment: function(seg){
			if($(seg).hasClass('close')){
				this.showseg(seg);
			} else {
				this.hideseg(seg);
			}
		},
		
		showseg: function(seg){
			
			var segelm = $(seg),
				snext = segelm.parent().next();
			
			while(snext.length && !snext.hasClass('segment')){
				snext.css('display', snext.data('jdisplay') || '');
				snext = snext.next();
			}
			
			segelm.removeClass('close').addClass('open');
		},
		
		hideseg: function(seg){
			var segelm = $(seg),
				snext = segelm.parent().next();
			
			while(snext.length && !snext.hasClass('segment')){
				snext.data('jdisplay', snext.css('display')).css('display', 'none');
				snext = snext.next();
			}
			
			segelm.removeClass('open').addClass('close');  
		}
	};

	var JAFileConfig = window.JAFileConfig = window.JAFileConfig || {
		
		vars: {
		},
		
		initialize: function(optionid){
			var vars = this.vars;
			vars.group = 't3form';
			vars.el = document.getElementById(optionid);
			
			var adminlist = $('#module-sliders').find('ul.adminformlist:first');
			if(adminlist.length){
				$('<li class="clearfix level2"></li>').appendTo(adminlist);
			}
		},
		
		changeProfile: function(profile){
			if(profile == ''){
				return;
			}
			
			this.vars.active = profile;
			this.fillData();
			
			if(T3Depend && T3Depend.update){
				T3Depend.update();
			}
		},
		
		serializeArray: function(){
			var vars = this.vars,
				els = [],
				allelms = document.adminForm.elements,
				pname1 = vars.group + '\\[params\\]\\[.*\\]',
				pname2 = vars.group + '\\[params\\]\\[.*\\]\\[\\]';
				
			for (var i = 0, il = allelms.length; i < il; i++){
			    var el = $(allelms[i]);
				
			    if (el.name && ( el.name.test(pname1) || el.name.test(pname2))){
			    	els.push(el);
			    }
			}
			
			return els;
		},

		fillData: function (){
			var vars = this.vars,
				els = this.serializeArray(),
				profile = T3Depend.profiles[vars.active],
				form = this;
				
			if(els.length == 0 || !profile){
				return;
			}
			
			$.each(els, function(){
				var name = this.getName(this),
					values = (profile[name] != undefined) ? profile[name] : '';
				
				form.setValues(this, $.makeArray(values));
			});
		},
		
		valuesFrom: function(els){
			var vals = [];
			
			$(els).each(function(){
				var type = this.type,
					val = $.makeArray(((type == 'radio' || type == 'checkbox') && !this.checked) ? null : $(this).val());

				for (var i = 0, l = val.length; i < l; i++){
					if($.inArray(val[i], vals) == -1){
						vals.push(val[i]);
					}
				}
			});
			
			return vals;
		},
		
		setValues: function(el, vals){
			var jel = $(el);
			
			if(jel.prop('tagName').toUpperCase() == 'SELECT'){
				jel.val(vals);
				
				if($.makeArray(jel.val())[0] != vals[0]){
					jel.val('-1');
				}
			}else {
				if(jel.prop('type') == 'checkbox' || jel.prop('type') == 'radio'){
					jel.prop('checked', $.inArray(el.value, vals) != -1);
				} else {
					jel.attr('placeholder', vals[0]);
					jel.val(vals[0]);
				}
			}
		},
		
		getName: function(el){
			var matches = el.name.match(this.vars.group + '\\[params\\]\\[([^\\]]*)\\]');
			if (matches){
				return matches[1];
			}
			
			return '';
		},
		
		
		deleteProfile: function(){
			if(confirm(JAFileConfig.langs.confirmDelete)){			
				this.submitForm(JAFileConfig.mod_url + '?dptask=delete&profile=' + this.vars.active + '&template='+ JAFileConfig.template, {}, 'profile');
			}		
		},
		
		duplicateProfile: function (){
			var nname = prompt(JAFileConfig.langs.enterName);
			
			if(nname){
				nname = nname.replace(/[^0-9a-zA-Z_-]/g, '').replace(/ /, '').toLowerCase();
				if(nname == ''){
					alert(JAFileConfig.langs.correctName);
					return this.cloneProfile();
				}
				
				JAFileConfig.profiles[nname] = JAFileConfig.profiles[this.vars.active];
				
				this.submitForm(JAFileConfig.mod_url + '?dptask=duplicate&profile=' + nname + '&from=' + this.vars.active + '&template=' + JAFileConfig.template, {}, 'profile');
			}
		},
		
		saveProfile: function (task){

			if(task){
				JAFileConfig.profiles[this.vars.active] = this.rebuildData();
				this.submitForm(JAFileConfig.mod_url + '?dptask=save&profile=' + this.vars.active, JAFileConfig.profiles[this.vars.active], 'profile', task);
			}
		},
		
		submitForm: function(url, request, type, task){
			if(JAFileConfig.run){
				JAFileConfig.ajax.cancel();
			}
			
			JAFileConfig.run = true;
	    	
			JAFileConfig.ajax = $.ajax({
				type: 'post',
				url: url,
				data: request,
				complete: function(result){
					
					JAFileConfig.run = false;
					
					if(result == ''){
						return;
					}
					
					var vars = JAFileConfig;
					
					alert(json.error || json.successfull);
					
					if(result.profile){
						switch (result.type){	
							case 'new':
								Joomla.submitbutton(document.adminForm.task.value);
							break;
							
							case 'delete':
								if(result.template == 0){
									var opts = vars.el.options;
									
									for(var j = 0, jl = opts.length; j < jl; j++){
										if(opts[j].value == result.profile){
											vars.el.remove(j);
											break;
										}
									}
								} else {
									JAFileConfig.profiles[result.profile] = JAFileConfig.tempprofiles[result.profile];
								}
								
								vars.el.options[0].selected = true;					
								JAFileConfig.changeProfile(vars.el.options[0].value);
							break;
							
							case 'duplicate':
								vars.el.options[vars.el.options.length] = new Option(result.profile, result.profile);							
								vars.el.options[vars.el.options.length - 1].selected = true;
								JAFileConfig.changeProfile(result.profile);
							break;
							
							default:
						}
					}
				}
			});
		},
		
		rebuildData: function (){
			var els = this.serializeArray(this.group),
				form = this,
				json = {};
				
			$.each(els, function(){
				var values = form.valuesFrom(this);
				if(values.length){
					json[this.getName(this)] = this.name.substr(-2) == '[]' ? values : values[0];
				}
			});
			
			return json;
		}
	};

	$(window).on('load', function() {
		setTimeout($.proxy(T3Depend.start, T3Depend), 100);
	});

}(jQuery);

PKO�!]�$	nnt3layoutlist.phpnu&1i�<?php
/** 
 *------------------------------------------------------------------------------
 * @package       T3 Framework for Joomla!
 *------------------------------------------------------------------------------
 * @copyright     Copyright (C) 2004-2013 JoomlArt.com. All Rights Reserved.
 * @license       GNU General Public License version 2 or later; see LICENSE.txt
 * @authors       JoomlArt, JoomlaBamboo, (contribute to this project at github 
 *                & Google group to become co-author)
 * @Google group: https://groups.google.com/forum/#!forum/t3fw
 * @Link:         http://t3-framework.org 
 *------------------------------------------------------------------------------
 */

defined('JPATH_PLATFORM') or die;

JFormHelper::loadFieldClass('filelist');

/**
 * Supports an HTML select list of files
 *
 * @package     Joomla.Platform
 * @subpackage  Form
 * @since       11.1
 */
class JFormFieldT3LayoutList extends JFormFieldFileList
{

	/**
	 * The form field type.
	 *
	 * @var    string
	 * @since  11.1
	 */
	public $type = 'T3FileList';

	/**
	 * The initialised state of the document object.
	 *
	 * @var    boolean
	 * @since  1.6
	 */
	protected static $initialised = false;

	/**
	 * Method to get the list of files for the field options.
	 * Specify the target directory with a directory attribute
	 * Attributes allow an exclude mask and stripping of extensions from file name.
	 * Default attribute may optionally be set to null (no file) or -1 (use a default).
	 *
	 * @return  array  The field option objects.
	 *
	 * @since   11.1
	 */
	protected function getOptions()
	{
		// update path to this template 
		$path = (string) $this->element['directory'];
		$this->directory = $this->element['directory'] = T3_TEMPLATE_PATH . DIRECTORY_SEPARATOR . $path;

		$options = parent::getOptions();

		// get addon layouts
		$folders = JFolder::folders(T3_TEMPLATE_PATH . '/addons');

		// Build the options list from the list of folders.
		if (is_array($folders))
		{
			foreach ($folders as $folder)
			{
				$options[] = JHtml::_('select.option', 'addon.'.$folder, 'addon - '.$folder);
			}
		}

		return $options;

	}
}
?>PKO�!]@y���!�!t3media.phpnu&1i�<?php
/** 
 *------------------------------------------------------------------------------
 * @package       T3 Framework for Joomla!
 *------------------------------------------------------------------------------
 * @copyright     Copyright (C) 2004-2013 JoomlArt.com. All Rights Reserved.
 * @license       GNU General Public License version 2 or later; see LICENSE.txt
 * @authors       JoomlArt, JoomlaBamboo, (contribute to this project at github 
 *                & Google group to become co-author)
 * @Google group: https://groups.google.com/forum/#!forum/t3fw
 * @Link:         http://t3-framework.org 
 *------------------------------------------------------------------------------
 */

defined('JPATH_PLATFORM') or die;

/**
 * Form Field class for the Joomla Platform.
 * Provides a modal media selector including upload mechanism
 *
 * @package     Joomla.Libraries
 * @subpackage  Form
 * @since       1.6
 */


if(version_compare(JVERSION, '3.0', 'ge')){
	class JFormFieldT3Media extends JFormFieldMedia {
		/**
		 * The form field type.
		 *
		 * @var    string
		 * @since  1.6
		 */
		protected $type = 'T3Media';
	}
} else {

	class JFormFieldT3Media extends JFormField
	{
		/**
		 * The form field type.
		 *
		 * @var    string
		 * @since  1.6
		 */
		protected $type = 'T3Media';

		/**
		 * The initialised state of the document object.
		 *
		 * @var    boolean
		 * @since  1.6
		 */
		protected static $initialised = false;

		/**
		 * Method to get the field input markup for a media selector.
		 * Use attributes to identify specific created_by and asset_id fields
		 *
		 * @return  string  The field input markup.
		 *
		 * @since   1.6
		 */
		protected function getInput()
		{
			$assetField = $this->element['asset_field'] ? (string) $this->element['asset_field'] : 'asset_id';
			$authorField = $this->element['created_by_field'] ? (string) $this->element['created_by_field'] : 'created_by';
			$asset = $this->form->getValue($assetField) ? $this->form->getValue($assetField) : (string) $this->element['asset_id'];
			if ($asset == '')
			{
				$asset = JFactory::getApplication()->input->get('option');
			}

			$link = (string) $this->element['link'];
			if (!self::$initialised)
			{
				// Load the modal behavior script.
				JHtml::_('behavior.modal');

				// Build the script.
				$script = array();
				$script[] = '	function jInsertFieldValue(value, id) {';
				$script[] = '		var old_value = document.getElementById(id).value;';
				$script[] = '		if (old_value != value) {';
				$script[] = '			var elem = document.getElementById(id);';
				$script[] = '			elem.value = value;';
				$script[] = '			elem.fireEvent("change");';
				$script[] = '			if (typeof(elem.onchange) === "function") {';
				$script[] = '				elem.onchange();';
				$script[] = '			}';
				$script[] = '			jMediaRefreshPreview(id);';
				$script[] = '		}';
				$script[] = '	}';

				$script[] = '	function jMediaRefreshPreview(id) {';
				$script[] = '		var value = document.getElementById(id).value;';
				$script[] = '		var img = document.getElementById(id + "_preview");';
				$script[] = '		if (img) {';
				$script[] = '			if (value) {';
				$script[] = '				img.src = "' . JURI::root() . '" + value;';
				$script[] = '				document.getElementById(id + "_preview_empty").setStyle("display", "none");';
				$script[] = '				document.getElementById(id + "_preview_img").setStyle("display", "");';
				$script[] = '			} else { ';
				$script[] = '				img.src = ""';
				$script[] = '				document.getElementById(id + "_preview_empty").setStyle("display", "");';
				$script[] = '				document.getElementById(id + "_preview_img").setStyle("display", "none");';
				$script[] = '			} ';
				$script[] = '		} ';
				$script[] = '	}';

				$script[] = '	function jMediaRefreshPreviewTip(tip)';
				$script[] = '	{';
				$script[] = '		var img = tip.getElement("img.media-preview");';
				$script[] = '		tip.getElement("div.tip").setStyle("max-width", "none");';
				$script[] = '		var id = img.getProperty("id");';
				$script[] = '		id = id.substring(0, id.length - "_preview".length);';
				$script[] = '		jMediaRefreshPreview(id);';
				$script[] = '		tip.setStyle("display", "block");';
				$script[] = '	}';

				// Add the script to the document head.
				JFactory::getDocument()->addScriptDeclaration(implode("\n", $script));

				self::$initialised = true;
			}

			$html = array();
			$attr = '';

			// Initialize some field attributes.
			$attr .= $this->element['class'] ? ' class="' . (string) $this->element['class'] . '"' : '';
			$attr .= $this->element['size'] ? ' size="' . (int) $this->element['size'] . '"' : '';

			// Initialize JavaScript field attributes.
			$attr .= $this->element['onchange'] ? ' onchange="' . (string) $this->element['onchange'] . '"' : '';

			// The text field.
			$html[] = '<div class="input-prepend input-append">';

			// The Preview.
			$preview = (string) $this->element['preview'];
			$showPreview = true;
			$showAsTooltip = false;
			switch ($preview)
			{
				case 'no': // Deprecated parameter value
				case 'false':
				case 'none':
					$showPreview = false;
					break;

				case 'yes': // Deprecated parameter value
				case 'true':
				case 'show':
					break;

				case 'tooltip':
				default:
					$showAsTooltip = true;
					$options = array(
						'onShow' => 'jMediaRefreshPreviewTip',
					);
					JHtml::_('behavior.tooltip', '.hasTipPreview', $options);
					break;
			}

			if ($showPreview)
			{
				if ($this->value && file_exists(JPATH_ROOT . '/' . $this->value))
				{
					$src = JURI::root() . $this->value;
				}
				else
				{
					$src = '';
				}

				$width = isset($this->element['preview_width']) ? (int) $this->element['preview_width'] : 300;
				$height = isset($this->element['preview_height']) ? (int) $this->element['preview_height'] : 200;
				$style = '';
				$style .= ($width > 0) ? 'max-width:' . $width . 'px;' : '';
				$style .= ($height > 0) ? 'max-height:' . $height . 'px;' : '';

				$imgattr = array(
					'id' => $this->id . '_preview',
					'class' => 'media-preview',
					'style' => $style,
				);
				$img = JHtml::image($src, JText::_('JLIB_FORM_MEDIA_PREVIEW_ALT'), $imgattr);
				$previewImg = '<div id="' . $this->id . '_preview_img"' . ($src ? '' : ' style="display:none"') . '>' . $img . '</div>';
				$previewImgEmpty = '<div id="' . $this->id . '_preview_empty"' . ($src ? ' style="display:none"' : '') . '>'
					. JText::_('JLIB_FORM_MEDIA_PREVIEW_EMPTY') . '</div>';

				$html[] = '<div class="media-preview add-on">';
				if ($showAsTooltip)
				{
					$tooltip = $previewImgEmpty . $previewImg;
					$options = array(
						'title' => JText::_('JLIB_FORM_MEDIA_PREVIEW_SELECTED_IMAGE'),
						'text' => '<i class="icon-eye-open"></i>',
						'class' => 'hasTipPreview'
					);
					$html[] = JHtml::tooltip($tooltip, $options);
				}
				else
				{
					$html[] = ' ' . $previewImgEmpty;
					$html[] = ' ' . $previewImg;
				}
				$html[] = '</div>';
			}

			$html[] = '	<input type="text" class="input-small" name="' . $this->name . '" id="' . $this->id . '"' . ' value="'
				. htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8') . '"' . ' readonly="readonly"' . $attr . ' />';

			$directory = (string) $this->element['directory'];
			if ($this->value && file_exists(JPATH_ROOT . '/' . $this->value))
			{
				$folder = explode('/', $this->value);
				$folder = array_diff_assoc($folder, explode('/', JComponentHelper::getParams('com_media')->get('image_path', 'images')));
				array_pop($folder);
				$folder = implode('/', $folder);
			}
			elseif (file_exists(JPATH_ROOT . '/' . JComponentHelper::getParams('com_media')->get('image_path', 'images') . '/' . $directory))
			{
				$folder = $directory;
			}
			else
			{
				$folder = '';
			}

			// The button.
			if ($this->element['disabled'] != true)
			{
				
				$html[] = '<a class="modal btn" title="' . JText::_('JLIB_FORM_BUTTON_SELECT') . '"' . ' href="'
					. ($this->element['readonly'] ? ''
					: ($link ? $link
						: 'index.php?option=com_media&amp;view=images&amp;tmpl=component&amp;asset=' . $asset . '&amp;author='
						. $this->form->getValue($authorField)) . '&amp;fieldid=' . $this->id . '&amp;folder=' . $folder) . '"'
					. ' rel="{handler: \'iframe\', size: {x: 800, y: 500}}">';
				$html[] = JText::_('JLIB_FORM_BUTTON_SELECT') . '</a><a class="btn hasTooltip" title="' . JText::_('JLIB_FORM_BUTTON_CLEAR') . '"' . ' href="#" onclick="';
				$html[] = 'jInsertFieldValue(\'\', \'' . $this->id . '\');';
				$html[] = 'return false;';
				$html[] = '">';
				$html[] = '<i class="icon-remove"></i></a>';
			}

			$html[] = '</div>';

			return implode("\n", $html);
		}
	}

}PKO�!]��Fv		t3filelist.phpnu&1i�<?php
/** 
 *------------------------------------------------------------------------------
 * @package       T3 Framework for Joomla!
 *------------------------------------------------------------------------------
 * @copyright     Copyright (C) 2004-2013 JoomlArt.com. All Rights Reserved.
 * @license       GNU General Public License version 2 or later; see LICENSE.txt
 * @authors       JoomlArt, JoomlaBamboo, (contribute to this project at github 
 *                & Google group to become co-author)
 * @Google group: https://groups.google.com/forum/#!forum/t3fw
 * @Link:         http://t3-framework.org 
 *------------------------------------------------------------------------------
 */

defined('JPATH_PLATFORM') or die;

JFormHelper::loadFieldClass('filelist');

/**
 * Supports an HTML select list of files
 *
 * @package     Joomla.Platform
 * @subpackage  Form
 * @since       11.1
 */
class JFormFieldT3FileList extends JFormFieldFileList
{

	/**
	 * The form field type.
	 *
	 * @var    string
	 * @since  11.1
	 */
	public $type = 'T3FileList';

	/**
	 * The initialised state of the document object.
	 *
	 * @var    boolean
	 * @since  1.6
	 */
	protected static $initialised = false;

	/**
	 * Method to get the list of files for the field options.
	 * Specify the target directory with a directory attribute
	 * Attributes allow an exclude mask and stripping of extensions from file name.
	 * Default attribute may optionally be set to null (no file) or -1 (use a default).
	 *
	 * @return  array  The field option objects.
	 *
	 * @since   11.1
	 */
	protected function getOptions()
	{
		// update path to this template 
		$path = (string) $this->element['directory'];
		$path = JPath::clean($path);
		$options = array();
		// get files in template path
		$this->directory = $this->element['directory'] = T3_TEMPLATE_PATH . DIRECTORY_SEPARATOR . $path;
		$options = parent::getOptions();
		// get files in template local path

		if (!defined('T3_LOCAL_DISABLED') && is_dir (T3_LOCAL_PATH . DIRECTORY_SEPARATOR . $path)) {
			$this->directory = $this->element['directory'] = T3_LOCAL_PATH . DIRECTORY_SEPARATOR . $path;
			$options2 = parent::getOptions();
			foreach ($options2 as $option) {
				$option->text .= ' (local)';
				$options[] = $option;
			}
		}
		return $options;
	}
}
?>PKO�!]�0w�[1[1t3depend.phpnu&1i�<?php
/** 
 *------------------------------------------------------------------------------
 * @package       T3 Framework for Joomla!
 *------------------------------------------------------------------------------
 * @copyright     Copyright (C) 2004-2013 JoomlArt.com. All Rights Reserved.
 * @license       GNU General Public License version 2 or later; see LICENSE.txt
 * @authors       JoomlArt, JoomlaBamboo, (contribute to this project at github 
 *                & Google group to become co-author)
 * @Google group: https://groups.google.com/forum/#!forum/t3fw
 * @Link:         http://t3-framework.org 
 *------------------------------------------------------------------------------
 */

// Ensure this file is being included by a parent file
defined('_JEXEC') or die( 'Restricted access' );

jimport('joomla.filesystem.file');
jimport('joomla.filesystem.folder');

/**
 * Radio List Element
 *
 * @since      Class available since Release 1.2.0
 */
class JFormFieldT3Depend extends JFormField
{
	/**
	 * Element name
	 *
	 * @access	protected
	 * @var		string
	 */
	protected $type = 'T3Depend';
	
	/**
	 * Check and load assets file if needed
	 */
	function loadAsset(){
		if (!defined ('_T3_DEPEND_ASSET_')) {
			define ('_T3_DEPEND_ASSET_', 1);

			$jdoc = JFactory::getDocument();

			if(!defined('T3_TEMPLATE')){
				JFactory::getLanguage()->load(T3_PLUGIN, JPATH_ADMINISTRATOR);

				if(version_compare(JVERSION, '3.0', 'ge')){
					JHtml::_('jquery.framework');
				} else {
					$jdoc->addScript(T3_ADMIN_URL . '/admin/js/jquery-1.x.min.js');
					$jdoc->addScript(T3_ADMIN_URL . '/admin/js/jquery.noconflict.js');
				}
			}

			if(JFactory::getApplication()->isClient('site') || !defined('T3_TEMPLATE')){
				$jdoc->addStyleSheet(T3_ADMIN_URL . '/includes/depend/css/depend.css');
				$jdoc->addScript(T3_ADMIN_URL . '/includes/depend/js/depend.js');
			}

			JFactory::getDocument()->addScriptDeclaration ( '
				jQuery.extend(T3Depend, {
					adminurl: \'' . JUri::getInstance()->toString() . '\',
					rooturl: \'' . JURI::root() . '\'
				});
			');
		}
	}

	/**
	 * Element name
	 *
	 * @access	protected
	 * @var		string
	 */
	protected function getInput(){
		$this->loadAsset();
		
		$func 	= (string)$this->element['function'] ? (string)$this->element['function'] : '';
		$value 	= $this->value ? $this->value : (string) $this->element['default'];

		if (substr($func, 0, 1) == '@'){
			$func = substr($func, 1);
			if (method_exists($this, $func)) {
				return $this->$func();
			}
		} else {
			$subtype = ( isset( $this->element['subtype'] ) ) ? trim($this->element['subtype']) : '';
			if (method_exists ($this, $subtype)) {
				return $this->$subtype ();
			}
		}
		return; 
	}
	
	/**
     *
     * Get profile config
     * @return Ambigous <string, multitype:>|string
     */
    protected function profile()
    {
        $this->loadAsset();

        $module = $this->element['module'];

        if(!$module){
        	 return JText::_('UNKNOWN_MODULE_PATH');
        }

        /* Get all profiles name folder from folder profiles */
        $profiles = array();
        $jsonData = array();
        // get in module
        $path = JPATH_SITE . DIRECTORY_SEPARATOR . 'modules' . DIRECTORY_SEPARATOR . $module . DIRECTORY_SEPARATOR . 'profiles';
        if (!JFolder::exists($path)){
            return JText::_('PROFILE_FOLDER_NOT_EXIST');
		}
        $files = JFolder::files($path, '.ini');
        if ($files) {
            foreach ($files as $fname) {
                $fname = substr($fname, 0, -4);

                $f = new stdClass();
                $f->id = $fname;
                $f->title = $fname;

                $profiles[$fname] = $f;
				
				$params = new JRegistry(file_get_contents($path . DIRECTORY_SEPARATOR . $fname . '.ini'));
                $jsonData[$fname] = $params->toArray();
            }
        }

        $xmlparams = JPATH_SITE . DIRECTORY_SEPARATOR . 'modules' . DIRECTORY_SEPARATOR . $module . DIRECTORY_SEPARATOR . 'config.xml';
        if (file_exists($xmlparams)) {
            /* For General Form */
            $t3form = JForm::getInstance('jform', $xmlparams, array('control' => 't3form'));

			$profileHTML = JHTML::_('select.genericlist', $profiles, '' . $this->name, 'onchange="JAFileConfig.changeProfile(this.value)"', 'id', 'title', $this->value);

			ob_start();
				require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'tpls' . DIRECTORY_SEPARATOR . 'profile.php';
				$content = ob_get_clean();
			ob_end_flush();
			
			return $content;
		}
    }
	
    /**
     *
     * Get Label of element param
     * @return string label
     */
	function getLabel()
	{
		$func 	= (string)$this->element['function']?(string)$this->element['function']:'';
		if (substr($func, 0, 1) == '@' || !isset( $this->label ) || !$this->label){
			return;
		} else {
			return parent::getLabel ();
		}
	}
	
	/**
	 * render title: name="@title"
     * @param	string	$name The name of element param
     * @param	string	$value	The value of element
     * @param	object	$node The node of element
     * @param	string	$control_name
     * @return	string  title
     */
    function title()
    {
        $_title = (string) $this->element['label'];
        $_description = $this->description;
        $_url = (isset($this->element['url'])) ? (string) $this->element['url'] : '';
        $class = (isset($this->element['class'])) ? (string) $this->element['class'] : '';
        $level = (isset($this->element['level'])) ? (string) $this->element['level'] : '';
        $group = (isset($this->element['group'])) ? (string) $this->element['group'] : '';
        $group = $group ? "id='params$group-group'" : "";
        if ($_title) {
            $_title = html_entity_decode(JText::_($_title));
        }

        if ($_description) {
            $_description = html_entity_decode(JText::_($_description));
        }
        if ($_url) {
            $_url = " <a target='_blank' href='{$_url}' >[" . html_entity_decode(JText::_("Demo")) . "]</a> ";
        }
		
		$regionID = time()+rand();
		
		$class_name = trim(str_replace(" ", "", strtolower($_title) ));
		
		if($level==1){
			$html = '
				<h4 rel="'.$level.'" class="block-head block-head-'.$class_name.' open '.$class.' " '.$group.' id="'.$regionID.'">
					<span class="block-setting" >'.$_title.$_url.'</span> 
					<span class="icon-help editlinktip hasTip" title="'.htmlentities($_description).'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
					<a class="toggle-btn open" title="'.JText::_('Expand all').'" onclick="T3Depend.showseg(\''.$regionID.'\', \'level'.$level.'\'); return false;">'.JText::_('Expand all').'</a>
					<a class="toggle-btn close" title="'.JText::_('Collapse all').'" onclick="T3Depend.showseg(\''.$regionID.'\', \'level'.$level.'\'); return false;">'.JText::_('Collapse all').'</a>
		    </h4>';
		} else {
			$html = '
				<h4 rel="'.$level.'" class="block-head block-head-'.$class_name.' open '.$class.' " '.$group.' id="'.$regionID.'">
					<span class="block-setting" >'.$_title.$_url.'</span> 
					<span class="icon-help editlinktip hasTip" title="'.htmlentities($_description).'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
					<a class="toggle-btn" title="'.JText::_('Click here to expand or collapse').'" onclick="T3Depend.segment(\''.$regionID.'\', \'level'.$level.'\'); return false;">open</a>
		    </h4>';
		} 
		//<div class="block-des '.$class.'"  id="desc-'.$regionID.'">'.$_description.'</div>';
		
		return $html;
	}
	
	/**
	 * Subtype - Checkbox: subtype="checkbox"
	 */
	function checkbox(){		
		$k = 0;
		$html = "";
		
		$cols = intval($this->element['cols']);
		if($cols == 0){
			$cols = 1;
		}
		$width = floor(100/$cols);
		$style = ' style="width:'.$width.'%;"';
		if($this->element->children()){
			foreach ($this->element->children() as $option)
			{
				$group = isset($option['group'])?intval($option['group']):0;
				$odesc	= isset($option['description'])?JText::_($option['description']):'';
				$otext	= JText::_(trim((string) $option));
	
				$tooltip	= addslashes(htmlspecialchars($odesc, ENT_QUOTES, 'UTF-8'));
				$titletip		= addslashes(htmlspecialchars($otext, ENT_QUOTES, 'UTF-8'));
	
				if($titletip) {
					$titletip = $titletip.'::';
				}
				
				if($group) {
					$html .= "\n\t<div class=\"group_title\"><span class=\"hasTip\" title=\"{$titletip}{$tooltip}\">$otext</span></div>";
				} else {
				
					
					$oval	= $option['value'];
					$children	= $option['children'];
					$alt = ($children) ? ' alt="'.$children.'"' : '';
					$extra	 = '';
		
					if (is_array( $this->value ))
					{
						foreach ($this->value as $val)
						{
							$val2 = is_object( $val ) ? $val->$key : $val;
							if ($oval == $val2)
							{
								$extra .= ' checked="checked"';
								break;
							}
						}
					} else {
						$extra .= ( (string)$oval == (string)$this->value  ? ' checked="checked"' : '' );
					}
					
					$html .= "\n\t<div class=\"group_item\" $style>";	
					$html .= "\n\t<input type=\"checkbox\" name=\"{$this->name}[]\" id=\"{$this->id}{$k}\" value=\"$oval\"$extra $alt />";
					$html .= "\n\t<label id=\"{$this->id}{$k}-label\" class=\"hasTip\" title=\"{$titletip}{$tooltip}\" for=\"{$this->id}{$k}\">$otext</label>";
					$html .= "\n\t</div>";
					
					$k++;
				}
			}
		}

		return $html;
	}
	
	/**
	 * render js to control setting form.
     * @param	string	$name The name of element param
     * @param	string	$value	The value of element
     * @param	object	$node The node of element
     * @param	string	$control_name
     * @return	string  group param
	 */
	function group(){
		$this->loadAsset();

		if(preg_match_all('@\[([^\]]*)\]@', $this->name, $matches)) {

			$group_name = str_replace(end($matches[0]), '', $this->name);

			$script = 'jQuery(document).ready(function(){';
			foreach ($this->element->children() as $option) {
				$elms = preg_replace('/\s+/', '', (string)$option[0]);
				$vals = preg_replace('/\s+/', '', $option['value']);
				$hide = isset($option['hide']) ? !in_array($option['hide'], array('false', '', '0', 'no', 'off')) : 1;
				$hide = (int)$hide;
			
				$script .= "T3Depend.add('" . $option['for'] . "', { \n"
					. "vals: '$vals',\n"
					. "elms: '$elms',\n"
					. "group: '$group_name',\n"
					. "hide: $hide"
				. "});";
			}

			$script .= "});";

			$jdoc = JFactory::getDocument();
			$jdoc->addScriptDeclaration($script);
		}

/*
		?>
		<script type="text/javascript">
			jQuery(document).ready(function(){
			<?php 
			foreach ($this->element->children() as $option):
				$elms = preg_replace('/\s+/', '', (string)$option[0]);
				$vals = preg_replace('/\s+/', '', $option['value']);
				$hide = isset($option['hide']) ? !in_array($option['hide'], array('false', '', '0', 'no', 'off')) : 1;
			?>
				T3Depend.add('<?php echo $option['for']; ?>', {
					vals: '<?php echo $vals ?>',
					elms: '<?php echo $elms?>',
					group: '<?php echo $group_name; ?>',
					hide: <?php echo (int)$hide; ?>
				});
			<?php
				endforeach;
			?>
			});
		</script>
		<?php
		endif; */
	}

	function ajax(){
		$fcalls = array();

		foreach ($this->element->children() as $option) {
			$fparams = array();
			if (!empty($option['url'])){
				$fparams['url'] = (string)$option['url'];
			}

			if (!empty($option['site'])){
				$fparams['site'] = (string)$option['site'];
			}

			if (!empty($option['query'])){
				$fparams['query'] = (string)$option['query'];				
			} else {
				$fparams['query'] = '';
			}
			// append styleid into query
			$input = JFactory::getApplication()->input;
			$task = $input->getCmd('task') !== null ? $input->getCmd('task') : '';
			if($input->getCmd('option') == 'com_templates' && 
					(preg_match('/style\./', $task) || $input->getCmd('view') == 'style' || $input->getCmd('view') == 'template')){
				$fparams['query'] .= '&styleid='.$input->getInt('id');
			}

			if (!empty($option['func'])){
				$fparams['func'] = (string)$option['func'];
			}

			$fcalls[] = 'T3Depend.addajax(\'' . $this->getName($option['for']) . '\', ' . json_encode($fparams) . ');';
		}

		$jdoc = JFactory::getDocument();
		$jdoc->addScriptDeclaration("jQuery(window).on('load', function(){ " . implode("\n", $fcalls) . "});");
		/*
		?>
		<script type="text/javascript">
			//<![CDATA[
			jQuery(window).on('load', function(){
				<?php echo implode("\n", $fcalls); ?>
			});
			//]]>
		</script>
		<?php */
	}

	function legend(){
		return '<legend class="t3-admin-form-legend">' . JText::_($this->element['label']) . '<small class="t3-admin-form-legend-desc">' . JText::_($this->element['description']) . '</small> </legend>';
	}
} PKO�!]-��||t3megamenu.phpnu&1i�<?php
/** 
 *------------------------------------------------------------------------------
 * @package       T3 Framework for Joomla!
 *------------------------------------------------------------------------------
 * @copyright     Copyright (C) 2004-2013 JoomlArt.com. All Rights Reserved.
 * @license       GNU General Public License version 2 or later; see LICENSE.txt
 * @authors       JoomlArt, JoomlaBamboo, (contribute to this project at github 
 *                & Google group to become co-author)
 * @Google group: https://groups.google.com/forum/#!forum/t3fw
 * @Link:         http://t3-framework.org 
 *------------------------------------------------------------------------------
 */


defined('JPATH_PLATFORM') or die;

JFormHelper::loadFieldClass('hidden');

// Import the com_menus helper.
require_once realpath(JPATH_ADMINISTRATOR . '/components/com_menus/helpers/menus.php');

/**
 * Supports an HTML select list of menus
 *
 * @package     Joomla.Libraries
 * @subpackage  Form
 * @since       1.6
 */
class JFormFieldT3MegaMenu extends JFormFieldHidden
{
	/**
	 * The form field type.
	 *
	 * @var    string
	 * @since  1.6
	 */
	public $type = 'T3MegaMenu';

	/**
	 * Method to get the list of menus for the field options.
	 *
	 * @return  array  The field option objects.
	 *
	 * @since   1.6
	 */
	protected function getOptions()
	{
		// Merge any additional options in the XML definition.
		$options = array_merge(parent::getOptions(), JHtml::_('menu.menus'));

		return $options;
	}

	/**
	 * Method to get the field input markup for a generic list.
	 * Use the multiple attribute to enable multiselect.
	 *
	 * @return  string  The field input markup.
	 *
	 * @since   11.1
	 */
	protected function getInput()
	{
		return parent::getInput() . "\n" . $this->getMegaMenuMarkup();
	}

	/**
	 * Method to get the field input markup for a generic list.
	 * Use the multiple attribute to enable multiselect.
	 *
	 * @return  string  The field input markup.
	 *
	 * @since   11.1
	 */
	protected function getMegaMenuMarkup()
	{
		if(!defined('T3')){
			return false;
		}

		if(!defined('T3_TEMPLATE')){
			$this->loadT3Depend();
		}

		$t3path = T3_ADMIN_PATH;
		
		if(!defined('__T3_MEGAMENU_ASSET__')){
			define('__T3_MEGAMENU_ASSET__', 1);

			$jdoc = JFactory::getDocument();

			if(is_file(T3_PATH . '/css/megamenu.css')){
				$jdoc->addStylesheet(T3_URL . '/css/megamenu.css');
			}

			if(is_file(T3_ADMIN_PATH . '/admin/megamenu/css/megamenu.css')){
				$jdoc->addStylesheet(T3_ADMIN_URL . '/admin/megamenu/css/megamenu.css');
			}

			if(version_compare(JVERSION, '3.0', 'ge')){
				JHtml::_('jquery.framework');
			} else {
				$jdoc->addScript(T3_ADMIN_URL . '/admin/js/jquery-1.x.min.js');
				$jdoc->addScript(T3_ADMIN_URL . '/admin/js/jquery.noconflict.js');
			}
			
			if(is_file(T3_ADMIN_PATH . '/admin/megamenu/js/megamenu.js')){
				$jdoc->addScript(T3_ADMIN_URL . '/admin/megamenu/js/megamenu.js');
			}
		}

		if(is_file(T3_ADMIN_PATH . '/admin/megamenu/megamenu.tpl.php')){
			include T3_ADMIN_PATH . '/admin/megamenu/megamenu.tpl.php';
		}

		if($this->element['hide']):
		?>
		<script type="text/javascript">
			//<![CDATA[
			jQuery(document).ready(function($){
				$('#<?php echo $this->id ?>').closest('li, div.control-group').css('display', 'none');
			});
			//]]>
		</script>
		<?php
		endif;
	}

	/**
	 * Check and load assets file if needed
	 */
	function loadT3Depend(){
		if (!defined ('_T3_DEPEND_ASSET_')) {
			define ('_T3_DEPEND_ASSET_', 1);
			
			JFactory::getLanguage()->load(T3_PLUGIN, JPATH_ADMINISTRATOR);
			
			$jdoc = JFactory::getDocument();	
			$jdoc->addStyleSheet(T3_ADMIN_URL . '/includes/depend/css/depend.css');
			$jdoc->addScript(T3_ADMIN_URL . '/includes/depend/js/depend.js');

			JFactory::getDocument()->addScriptDeclaration ( '
				jQuery.extend(T3Depend, {
					adminurl: \'' . JUri::getInstance()->toString() . '\',
					rooturl: \'' . JURI::root() . '\'
				});
			');
		}
	}
}PKO�!]����tpls/profile.phpnu&1i�<?php
/** 
 *------------------------------------------------------------------------------
 * @package       T3 Framework for Joomla!
 *------------------------------------------------------------------------------
 * @copyright     Copyright (C) 2004-2013 JoomlArt.com. All Rights Reserved.
 * @license       GNU General Public License version 2 or later; see LICENSE.txt
 * @authors       JoomlArt, JoomlaBamboo, (contribute to this project at github 
 *                & Google group to become co-author)
 * @Google group: https://groups.google.com/forum/#!forum/t3fw
 * @Link:         http://t3-framework.org 
 *------------------------------------------------------------------------------
 */

// no direct access
defined ( '_JEXEC' ) or die ( 'Restricted access' );

$javersion = new JVersion;

?>
	<script type="text/javascript">
		!function($){
			var JAFileConfig = window.JAFileConfig || {};

			JAFileConfig.profiles = <?php echo json_encode($jsonData)?>;
			JAFileConfig.mod_url = '<?php echo JURI::base(true) ?>/modules/<?php echo $module; ?>/helper.php';
			JAFileConfig.template = '<?php echo $template ?>';
			JAFileConfig.langs = <?php json_encode(array(
					'confirmCancel' => JText::_('ARE_YOUR_SURE_TO_CANCEL'),
					'enterName' => JText::_('ENTER_PROFILE_NAME'),
					'correctName' => JText::_('PROFILE_NAME_NOT_EMPTY'),
					'confirmDelete' => JText::_('CONFIRM_DELETE_PROFILE')
				)); ?>;
			
			$(window).on('load', function(){
				JAFileConfig.initialize('jformparams<?php echo str_replace('holder', '', $this->fieldname);?>');
				JAFileConfig.changeProfile($('jformparams<?php echo str_replace('holder', '', $this->fieldname);?>').val());
			});

		}(jQuery);
	</script>

	<div class="t3-profile">
		<label class="hasTip" for="jform_params_<?php echo $this->field_name?>" id="jform_params_<?php echo $this->field_name?>-lbl" title="<?php echo JText::_($this->element['description'])?>"><?php echo JText::_($this->element["label"])?></label>
		<?php echo $profileHTML; ?>
		<div class="profile_action">
			<span class="clone">
				<a href="javascript:void(0)" onclick="JAFileConfig.cloneProfile()" title="<?php echo JText::_('CLONE_DESC')?>"><?php echo JText::_('Clone')?></a>
			</span>
			| 
			<span class="delete">
				<a href="javascript:void(0)" onclick="JAFileConfig.deleteProfile()" title="<?php echo JText::_('DELETE_DESC')?>"><?php echo JText::_('Delete')?></a>
			</span>	
		</div>
	</div>

<?php if($javersion->isCompatible('3.0')) : ?>
	</div>
</div>
<?php else : ?>
</li>
<?php endif; ?>

<?php		
$fieldSets = $t3form->getFieldsets('params');

foreach ($fieldSets as $name => $fieldSet) :
	if (isset($fieldSet->description) && trim($fieldSet->description)){
		echo '<p class="tip">'.JText::_($fieldSet->description).'</p>';
	}
	
	$hidden_fields = '';
	foreach ($t3form->getFieldset($name) as $field) :
		if (!$field->hidden) :
			if($javersion->isCompatible('3.0')) : ?>
		<div class="control-group t3-control-group">
			<div class="control-label t3-control-label">
			<?php else: ?> 
		<li>
			<?php endif;
				echo $t3form->getLabel($field->fieldname,$field->group);
			
				if($javersion->isCompatible('3.0')) : ?>
			</div>
			<div class="controls t3-controls">
				<?php endif;
				echo $t3form->getInput($field->fieldname,$field->group);
				if($javersion->isCompatible('3.0')) : ?>
			</div>
		</div>
			<?php else: ?> 
		</li>
			<?php endif;
		else : 
			$hidden_fields .= $t3form->getInput($field->fieldname,$field->group);	
		endif;
	endforeach;
	echo $hidden_fields; 
endforeach; 
?>	
	
<?php 
	if($javersion->isCompatible('3.0')) : ?>
		<div class="control-group t3-control-group hide">
			<div class="control-label t3-control-label"></div>
				<div class="controls t3-controls">
	<?php else: ?> 
		<li>
	<?php endif; ?>
		<script type="text/javascript">
			// <![CDATA[ 
			window.addEvent('load', function(){
				Joomla.submitbutton = function(task){
					if (task == 'module.cancel' || document.formvalidator.isValid(document.getElementById('module-form'))) {	
						if(task != 'module.cancel' && document.formvalidator.isValid(document.getElementById('module-form'))){
							JAFileConfig.saveProfile(task);
						}else if(task == 'module.cancel' || document.formvalidator.isValid(document.getElementById('module-form'))){
							Joomla.submitform(task, document.getElementById('module-form'));
						}
						if (self != top) {
							window.top.setTimeout('window.parent.SqueezeBox.close()', 1000);
						}
					} else {
						alert('Invalid form');
					}
				}
			});
			// ]]> 
		</script>
PKO�!] &�00t3positions.phpnu&1i�<?php
/** 
 *------------------------------------------------------------------------------
 * @package       T3 Framework for Joomla!
 *------------------------------------------------------------------------------
 * @copyright     Copyright (C) 2004-2013 JoomlArt.com. All Rights Reserved.
 * @license       GNU General Public License version 2 or later; see LICENSE.txt
 * @authors       JoomlArt, JoomlaBamboo, (contribute to this project at github 
 *                & Google group to become co-author)
 * @Google group: https://groups.google.com/forum/#!forum/t3fw
 * @Link:         http://t3-framework.org 
 *------------------------------------------------------------------------------
 */

// No direct access
defined('_JEXEC') or die;

/**
 * Radio List Element
 *
 * @package  T3.Core.Element
 */
class JFormFieldT3Positions extends JFormField
{
	/**
	 * Element name
	 *
	 * @access    protected
	 * @var        string
	 */
	protected $type = 'T3Positions';

	/**
	 * Check and load assets file if needed
	 */
	function loadAsset(){
		if (!defined ('_T3_DEPEND_ASSET_')) {
			define ('_T3_DEPEND_ASSET_', 1);

			$jdoc = JFactory::getDocument();

			if(!defined('T3_TEMPLATE')){
				JFactory::getLanguage()->load(T3_PLUGIN, JPATH_ADMINISTRATOR);

				if(version_compare(JVERSION, '3.0', 'ge')){
					JHtml::_('jquery.framework');
				} else {
					$jdoc->addScript(T3_ADMIN_URL . '/admin/js/jquery-1.x.min.js');
					$jdoc->addScript(T3_ADMIN_URL . '/admin/js/jquery.noconflict.js');
				}

				$jdoc->addStyleSheet(T3_ADMIN_URL . '/includes/depend/css/depend.css');
				$jdoc->addScript(T3_ADMIN_URL . '/includes/depend/js/depend.js');
			}

			JFactory::getDocument()->addScriptDeclaration ( '
				jQuery.extend(T3Depend, {
					adminurl: \'' . JUri::getInstance()->toString() . '\',
					rooturl: \'' . JURI::root() . '\'
				});
			');
		}
	}
	
	/**
	 * Method to get the field input markup.
	 *
	 * @return  string  The field input markup.
	 */
	function getInput()
	{
		$this->loadAsset();

		T3::import('admin/layout');
		
		return $this->getPositions();
	}
	
	function getPositions()
	{
		$path     = JPATH_SITE;
		$lang     = JFactory::getLanguage();
		$clientId = 0;
		$state    = 1;
		
		$templates      = array_keys(T3AdminLayout::getTemplates($clientId, $state));
		$templateGroups = array();
		
		// Add positions from templates
		foreach ($templates as $template) {
			$options = array();
			
			$positions = T3AdminLayout::getTplPositions($clientId, $template);
			if (is_array($positions))
				foreach ($positions as $position) {
					$text      = T3AdminLayout::getTranslatedModulePosition($clientId, $template, $position) . ' [' . $position . ']';
					$options[] = T3AdminLayout::createOption($position, $text);
				}
			
			$templateGroups[$template] = T3AdminLayout::createOptionGroup(ucfirst($template), $options);
		}
		
		// Add custom position to options
		$customGroupText                  = JText::_('T3_LAYOUT_CUSTOM_POSITION');
		$customPositions                  = T3AdminLayout::getDbPositions($clientId);
		$templateGroups[$customGroupText] = T3AdminLayout::createOptionGroup($customGroupText, $customPositions);


		$multiple = $this->toBoolean((string) $this->element['multiple']);
		$disabled = $this->toBoolean((string) $this->element['disabled']);
		
		
		return JHtml::_('select.groupedlist', $templateGroups, $this->name,
            array(
                'list.attr' => ($multiple ? ' multiple="multiple" size="10"' : '')
                    . ($disabled ? 'disabled="disabled"' : '') . "class='form-select form-select-color-state'",
                'list.select' => $this->value,
            )
        );
	}


	/**
	 * Helper function, check the field attribute and return boolean value
	 *
	 * @return  boolean the check result
	 */
	function toBoolean($attr){
		return !in_array($attr, array('false', '', '0', 'no', 'off'));
	}
}PKO�!]B��NNimages/apply.gifnu&1i�PKO�!]W�x�44�images/close-all.pngnu&1i�PKO�!]hSZ��images/arrow-blue.pngnu&1i�PKO�!]����hh�images/normal-check.jpgnu&1i�PKO�!]
�U�ss�	images/message-bg.gifnu&1i�PKO�!]L0�_��N
images/popup-list.gifnu&1i�PKO�!]-LXL``4images/block-head.gifnu&1i�PKO�!]a�ee�images/themes-default.gifnu&1i�PKO�!]�#o,,�
images/index.htmlnu&1i�PKO�!]oJ����
images/icon-save.pngnu&1i�PKO�!]��vi��images/icon-moved.pngnu&1i�PKO�!]
G LL�images/tooltip-bg.gifnu&1i�PKO�!]��/����images/icon-move.pngnu&1i�PKO�!]1L�pp�images/table-bg.gifnu&1i�PKO�!]ū�u��{images/grad.pngnu&1i�PKO�!]ܻ=�YYOimages/del.gifnu&1i�PKO�!]
��w���images/success-bg.gifnu&1i�PKO�!]�M�//�images/icon-success.pngnu&1i�PKO�!]^�VOOa images/open-all.pngnu&1i�PKO�!]��S�``�"images/block-setting.gifnu&1i�PKO�!]�=��BB�#images/icon-message.pngnu&1i�PKO�!]
V�~jj$*images/tabs-setting.gifnu&1i�PKO�!]c�T�VV�*images/cancel.gifnu&1i�PKO�!]5˳ݧ�l-images/admin-bg.gifnu&1i�PKO�!]�rbGGV.images/level2-block.gifnu&1i�PKO�!]
V�~jj�.images/level1-block.gifnu&1i�PKO�!]�/���/images/bt-close.gifnu&1i�PKO�!]3�F�11e2images/arrow-list.gifnu&1i�PKO�!]&�����2images/arrow-level1.pngnu&1i�PKO�!]�cP���3images/icon-default.pngnu&1i�PKO�!]�Z�5images/copy.pngnu&1i�PKO�!]d�

dd�7images/level2-close.gifnu&1i�PKO�!]�Ɦ���8images/toggle-btn.pngnu&1i�PKO�!]�����9images/lightbulb.pngnu&1i�PKO�!]�2�?images/del2.gifnu&1i�PKO�!]�#o,,3Bcss/index.htmlnu&1i�PKO�!]�Bcss/depend.cssnu&1i�PKO�!]��;��
�Bhelper.phpnu&1i�PKO�!]m����
�Kt3form.phpnu&1i�PKO�!]�#o,,
�]index.htmlnu&1i�PKO�!]�Ƀ�vv
M^t3modules.phpnu&1i�PKO�!]���Kbbmt3folderlist.phpnu&1i�PKO�!]�#o,,
�ujs/index.htmlnu&1i�PKO�!]5ki�a4a4vjs/depend.jsnu&1i�PKO�!]�$	nn��t3layoutlist.phpnu&1i�PKO�!]@y���!�!V�t3media.phpnu&1i�PKO�!]��Fv		��t3filelist.phpnu&1i�PKO�!]�0w�[1[1��t3depend.phpnu&1i�PKO�!]-��||lt3megamenu.phpnu&1i�PKO�!]����& tpls/profile.phpnu&1i�PKO�!] &�0012t3positions.phpnu&1i�PK33X�A