Spade
Mini Shell
PK���[�
�
�
access.xmlnu�[���<?xml version="1.0"
encoding="utf-8" ?>
<access component="com_molation">
<section name="component">
<action name="core.admin" title="JACTION_ADMIN"
description="JACTION_ADMIN_COMPONENT_DESC" />
<action name="core.options"
title="JACTION_OPTIONS"
description="JACTION_OPTIONS_COMPONENT_DESC" />
<action name="core.manage" title="JACTION_MANAGE"
description="JACTION_MANAGE_COMPONENT_DESC" />
<action name="core.export"
title="COM_MOLATION_EXPORT_DATA"
description="COM_MOLATION_EXPORT_DATA_DESC" />
<action name="core.import"
title="COM_MOLATION_IMPORT_DATA"
description="COM_MOLATION_IMPORT_DATA_DESC" />
<action name="core.batch"
title="COM_MOLATION_USE_BATCH"
description="COM_MOLATION_USE_BATCH_DESC" />
<action name="core.version"
title="COM_MOLATION_EDIT_VERSIONS"
description="COM_MOLATION_EDIT_VERSIONS_DESC" />
<action name="core.create" title="JACTION_CREATE"
description="JACTION_CREATE_COMPONENT_DESC" />
<action name="core.delete" title="JACTION_DELETE"
description="JACTION_DELETE_COMPONENT_DESC" />
<action name="core.edit" title="JACTION_EDIT"
description="JACTION_EDIT_COMPONENT_DESC" />
<action name="core.edit.state"
title="JACTION_EDITSTATE"
description="JACTION_ACCESS_EDITSTATE_DESC" />
<action name="core.edit.own"
title="JACTION_EDITOWN"
description="JACTION_EDITOWN_COMPONENT_DESC" />
<action name="core.edit.created_by"
title="COM_MOLATION_EDIT_CREATED_BY"
description="COM_MOLATION_EDIT_CREATED_BY_DESC" />
<action name="core.edit.created"
title="COM_MOLATION_EDIT_CREATED_DATE"
description="COM_MOLATION_EDIT_CREATED_DATE_DESC" />
<action name="m_relation.access"
title="COM_MOLATION_M_RELATIONS_ACCESS"
description="COM_MOLATION_M_RELATIONS_ACCESS_DESC" />
<action name="m_relation.batch"
title="COM_MOLATION_M_RELATIONS_BATCH_USE"
description="COM_MOLATION_M_RELATIONS_BATCH_USE_DESC" />
<action name="m_relation.dashboard_list"
title="COM_MOLATION_M_RELATIONS_DASHBOARD_LIST"
description="COM_MOLATION_M_RELATIONS_DASHBOARD_LIST_DESC" />
<action name="m_relation.version"
title="COM_MOLATION_M_RELATIONS_EDIT_VERSION"
description="COM_MOLATION_M_RELATIONS_EDIT_VERSION_DESC" />
<action name="m_relation.export"
title="COM_MOLATION_M_RELATIONS_EXPORT"
description="COM_MOLATION_M_RELATIONS_EXPORT_DESC" />
<action name="m_relation.import"
title="COM_MOLATION_M_RELATIONS_IMPORT"
description="COM_MOLATION_M_RELATIONS_IMPORT_DESC" />
<action name="m_relation.submenu"
title="COM_MOLATION_M_RELATIONS_SUBMENU"
description="COM_MOLATION_M_RELATIONS_SUBMENU_DESC" />
</section>
<section name="m_relation">
<action name="m_relation.version"
title="COM_MOLATION_M_RELATIONS_EDIT_VERSION"
description="COM_MOLATION_M_RELATIONS_EDIT_VERSION_DESC" />
</section>
</access>PK���[�ϩQQassets/css/admin.cssnu�[���/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage admin.css
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
/* CSS Document */
.no-click {
pointer-events: none;
}
PK���[���ߞ�assets/css/dashboard.cssnu�[���/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage dashboard.css
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
/* CSS Document */
.dashboard-container {
margin-left: 10px;
margin-top: 10px;
width: 100%;
}
.dashboard-container [class*="span"] {
display: block;
float: none;
margin-left: 0;
width: auto;
}
.dashboard-container:before, .dashboard-container:after {
content: "";
display: table;
}
.dashboard-container:after {
clear: both;
}
.dashboard-container [class*="span"] {
box-sizing: border-box;
display: block;
float: left;
min-height: 145px;
min-width: 96px;
width: 100%;
}
.dashboard-container [class*="span"]:first-child {
margin-left: 0;
}
.dashboard-wraper {
background: none repeat scroll 0 0 hsl(0, 0%, 93%);
border-radius: 5px;
float: left;
margin: 1%;
padding: 3px;
width: 17%;
min-height: 194px;
min-width: 96px;
}
.dashboard-content a {
background: linear-gradient(to bottom, hsl(0, 0%, 100%) 0%, hsl(0, 0%,
96%) 47%, hsl(0, 0%, 93%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
border: 1px solid hsl(0, 0%, 85%);
border-radius: 4px;
box-shadow: 0 0 3px hsla(0, 0%, 0%, 0.1) inset;
color: hsl(0, 0%, 20%);
display: block;
min-height: 89px;
padding: 10px;
text-align: center;
text-decoration: none;
}
.dashboard-content a:hover {
background: linear-gradient(to bottom, hsl(0, 0%, 90%) 0%, hsl(0, 0%,
100%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
color: hsl(200, 100%, 30%);
text-decoration: none;
}
.dashboard-title {
display: block;
padding-top: 5px;
}
.dashboard-info {
background: linear-gradient(to bottom, hsl(0, 0%, 100%) 0%, hsl(0, 0%,
96%) 47%, hsl(0, 0%, 93%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
border: 1px solid hsl(0, 0%, 85%);
border-radius: 4px;
box-shadow: 0 0 3px hsla(0, 0%, 0%, 0.1) inset;
color: hsl(0, 0%, 20%);
display: block;
font-size: 12px;
padding: 10px;
text-align: center;
}
.dashboard-info span {
display: block;
text-align: center;
}
.dashboard-info img {
margin: 0 auto;
}
.dashboard-table {
border-top: 1px solid hsl(0, 0%, 87%);
margin-top: 5px;
width: 100%;
}
.dashboard-info h5 {
font-size: 11px;
font-weight: bold;
}
.dashboard-block {
background: linear-gradient(to bottom, hsl(0, 0%, 95%) 0%, hsl(0, 0%,
86%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
border: 1px solid hsl(0, 0%, 76%);
border-radius: 3px;
box-shadow: 0 1px 0 hsl(0, 0%, 98%) inset;
margin-bottom: 20px;
}
.dashboard-block .dashboard-block-head {
background: linear-gradient(to bottom, hsl(0, 0%, 95%) 0%, hsl(0, 0%,
86%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
border-bottom: 1px solid hsl(0, 0%, 76%);
border-radius: 3px 3px 0 0;
box-shadow: 0 1px 0 hsl(0, 0%, 98%) inset, 0 0 3px hsl(0, 0%, 87%);
height: 40px;
position: relative;
}
.dashboard-block .dashboard-block-head h5 {
font-size: 12px;
margin: 0;
padding-left: 10px;
padding-top: 11px;
text-transform: uppercase;
}
.dashboard-block .dashboard-block-content {
background: none repeat scroll 0 0 hsl(0, 0%, 93%);
border-radius: 0 0 3px 3px;
}
.dashboard-block .dashboard-block-box {
background: none repeat scroll 0 0 hsl(0, 0%, 100%);
border-top: 1px solid hsl(0, 0%, 82%);
box-shadow: 0 0 5px hsl(0, 0%, 87%) inset;
}
.dashboard-block .dashboard-block-content .dashboard-block-box {
margin-top: 0 !important;
}
.dashboard-block .dashboard-block-content .dashboard-block-box
.dashboard-block-table {
margin-bottom: 0 !important;
}
.dashboard-block-table {
background-color: hsla(0, 0%, 0%, 0);
border-collapse: collapse;
border-spacing: 0;
margin-bottom: 20px;
max-width: 100%;
width: 100%;
}
.dashboard-block-table th, .dashboard-block-table td {
border-top: 1px solid hsl(0, 0%, 87%);
line-height: 20px;
padding: 5px;
text-align: left;
vertical-align: middle;
}
.dashboard-badge {
background-color: hsl(0, 0%, 60%);
border-radius: 9px;
color: hsl(0, 0%, 100%);
font-size: 11.844px;
font-weight: bold;
line-height: 14px;
padding: 1px 9px 2px;
text-shadow: 0 -1px 0 hsla(0, 0%, 0%, 0.25);
vertical-align: baseline;
white-space: nowrap;
}PK���[�#o,,assets/css/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[Xyy�22assets/css/m_relation.cssnu�[���/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage m_relation.css
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
/* CSS Document */
PK���[��133assets/css/m_relations.cssnu�[���/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage m_relations.css
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
/* CSS Document */
PK���[�#o,,assets/images/icons/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[/o����assets/images/import.gifnu�[���GIF89a���Ft���\z����4^����Lr����|��Df�4Z�������$N|l�����<^����$J|����Tr����Dj����t�����<b������!�NETSCAPE2.0!� ,���`'�di�h��l�p,�tm�x��|��pH,�Ȥr�l:�ШtJ�Z�جv��z��xL.���z�n���|N���~����������������������������������������������������������������������������?
������
����
����������������s�!
�|�8@vD*Ǐ@�H�5@8�7,�p�Z��!� !,���Ft������Tv����t��Tr��������$N|���d��J|��������|��������F|���\z����t��������,R����l�������������pH,�Ȥr�l:�ШtJ�Z�جv��z��xL.���z�n���|N���~������������������������������������������������������������������������������������������|�
�� ���
����
����*�3k@|���s�\���uxe�_^I���;B���#9t+CB��0��@!��D�7��(�
T�����5J�%�)��P�J�J��իX�j�ʵ��EA!� #,���Ft���Tv����4^����,R����t��$N|����$J|l��Ln�����J|���d~����<^����F|���\z�������4Z����|���������<b�������pH,�Ȥr�l:�ШtJ�Z�جv��z��xL.���z�n���|N���~��������������������������������������������������������������|�� ��������
�����˯
����������������ݮ��'.�+���[�*�q�.L��b6pbi����Y"D�����P���B�2�I��͛8s��ɳ�(ϟ@�
J��ѣH�*]ʴ�ӧP�J�J��իX�j�ʵ�WEA!� 4,���Ft������Tv�<^�������t�����,R����Dj����d����Ԅ�����$N|��Tr�J|���\~�Df�|�����4Z����Lr������̼��F|������\z�<b�������t�����,V����Ln����l�����������������@�pH,�Ȥr�l:�ШtJ�Z�جv��z��xL.���z�n���|N���~���������������������������������������������
(�M)!��I����1�F)úķ�E�����B��·�4����0����)��������ø
��� �Hؖk�o4,�#(�B� @(DF�t�L�8F�
!B.h� s%S�\ɲ�˗0cʜI��͛8s��ɳ��ϟ@�
J��ѣH�*]ʴ�ӧP�J�J�j�HP1@� �H
�CI��ij��@h��[b�g�k0
���⚀[�?��l��a��E�k/D�ki1jP�i�qI�u�Af�!H"\!���Wt�w���J�,����
!� 6,���Ft������Tv�4^������t��,R����Dj����ܤ�Ą��$N|d�����$J|Df�����J|������<^�|��4Z����Lr������ܬ�̌��l��F|������\~������t��,V����Ln���ܤ�̄��l��������<b��������@�pH,�Ȥr�l:�ШtJ�Z�جv��z��xL.���z�n���|N���~�����������������������[(%�c##'�_,����*�\����-�Z0����*�W%��ɣ!�V/����4�U,��ѡ�S4�ٷ+�R
��ҭ1�Q"�и�Q���"�Q4�� ��`�vo���Q���*�(:�{�!`@a`�ŏ
C�I��ɓ(S�\ɲ�˗0cʜI��͛8s��ɳ��ϟ@�
J��ѣH�*]ʴ�ӧP�J�J5h x|�
V#,h8�2{��`�a�[#��
-�(2RSVw���E
�9��F�@��!2d�N~�.�I_`��R���Q��nd�,�u��Տ]1+;ކ]0W�!������N�����!� 3,���Ft���Tv����4^�������t��,R�Ln���ܤ��d������$N|Df����$J|�����J|���\~����<^�4Z���ܬ��l����쌢�F|���\z���������|��,V�Tr���ܤ��l������Dj��������<b�������pH,�Ȥr�l:�ШtJ�Z�جv��z��xL.���z�n���|N���~������������D)�n
� �j*���� �g$��� *�d����%�b!���
�a(��ij.�`�����_é��^2�̗��\+�ũ�\0�ԣ�[-2��
-�[,���\'�2=�K��FUx� 0
prH��ŋ3j�ȱ�Ǐ
C�I��ɓ(S�\ɲ�˗0cʜI��͛8s��ɳ��$
<pB ��e�Ѡet�&�,
M֥R�8k�)',�DJ���D�$�l�,�@��,<sO���J̖e2��]�~�L��+94�t�K�^�`�ed
pq@��ӨS�^ͺ��װc˞M���۸s��ͻ����N���
!� 7,���Ft���Tv����4^�����t��,R����Ln�d����ܤ���$N|Df�������$J|d~����Ԍ��J|���\~����<^�4Z����Tr�l����ܬ�̄��F|���\z���������,V����Lr�l����ܤ����Dj�������<b����������pH,�Ȥr�l:�ШtJ�Z�جv��z��xL.���z�n���|N���~��9��B)4�x(�$���t����3�r�����p!�����n
����
�m*����$�l��$��k����j���5�i�ґ6�h+��$2�h6���h0���jʶ$�k2%
55
�
H����*\Ȱ�Ç#J�H��ŋ3j�ȱ�Ǐ C�I��
.�D��/%`��b-C1T�Dс��J�h���"]0������mb1�F���0��u�) ";��Z)ȡ���W6C�DV
0�W-q#OeVb�f���L�'��ChDX�@
��#K�L���˘3k�̹��ϠC�M���ӨS�^�ze�d`0���j@<`Y\%%
���IGi�8���7�!#|��#Z�c��Tp��
GՕ�Bd �ʝ�,�|����*�+�����������3�P]����N�m`�.�ڃF(�e!� <,���Ft���Tv����4^�������t�����,R����Ln�d�������Ĵ��$N|Df����$J|d~�����J|���\~����<^�|�����4Z����Tr�l����������̼��F|���\z���������t�����,V����Lr�l�����Dj�����<b�������������@�pH,�Ȥr�l:�ШtJ�Z�جv��z��xL.���z�n��pc�t��Z�|u���(6z�N4�~� /��H����B ���~(89�����~��8����#��
���8�z6���(0�y
�����q8�����p��ן;�p7�ɖ5�q����p,ؖ��y
�(:�-;)x�
H����*\Ȱ�Ç#J�H��ŋ���0��2^i� �,
DR�
"էTJQ�[��2��X����NE)&P%-\FK�㨒����4Ɏ�� ��DAMe�q-����k4�q�U
��1`�-V�y��%��`�'���H���/i���
ɘ3k�̹��ϠC�M���ӨS�^ͺ��װc˞M���۸s��ͻ����N�8��@�0��O�
�:������W4�
H@`�9j�
��l_3���?$����^�B
�����2Q�����6�H�[�$�f�wM��5
�{�ķY��uf
��⋝!� 6,���Ft���Tv����4^�����t��,R�Ln�������܄��$N|���d��Df�$J|������J|���\~����<^�|��4Z�Tr�������܄�����F|���\z�������t��,V�Lr������ܤ��l��Dj��<b�������������@�pH,�Ȥr�l:�ШtJ�Z�جv��z��xL.���Z;8tH�$���@bv�X
zp{�2���Ry��}$��N�}�z5��I����p��E0��z{��6������o�����+�Ĉ*��%���/ȟ(��ϟ���)֠/�$p+3ݠ��
�(%204���������
H�����,p���&$3@E�=*(L�2B�2C6na�0�j"�@H���WP��I�*#\ѤY�&��|�Z�S
�[���(*��N��\0������p�M�BcڭS[��
�� a�(( �EZ),,#A���) �@
#�ƻ�L���È+^̸��ǐ#K�L���˘3k�̹��ϠC�M������������u�@��1
A%!D��o9[|��N؈�v`�&�X,m��=�?2��XF�b2C�.��b
�g�U�<�!�g�H�G��4����
*
�f�&��6��F(�Vh�fxD!� :,���Ft���Tv����4^�������t�����,R����Ln�������d������$N|Df����$J|������J|���d~����<^���|�����4Z����Tr�������l��������F|���\z���������t�����,V����Lr����l��Dj����<b�������������@�pH,�Ȥr�l:�ШtJ�Z�جv��z��kI50��h�����$M�E����t|y{z��_+{|�y'0��Z�����U.���,��P(�z��'��L��y���w��{2��D���|.����'8��$��n��,��o6��0�z/f��5�o��
7$6$7
���������h��Ƃv���* *2�bX�$�
Aۣ�4ҩ M�&�hpT���0*�)ۃ�eFâ"a�
u2����%f2�7�z��F���J�tȖs[T/5.�Ԗ㪗Z
�J���l��,�'�tp�LȺx���˷�߿�L���È+^̸��ǐ#K�L���˘3k�|��/hhU�a076�F��a�]!���3��OU
Fr8=��p�U�T��� \�P��[�|�]@;8Ɓ;�؍H/����k@U��<
l.>-&�@����P�v�@���(�h`T
��
�c��GB
�����EV�{�oD@�c�I3L��p�0�5��V��]c0LWR
�U�*�56Az[Ѩ���xY�
rc!9�s�d0���B�A
��Ѝe,��)h�h���l���p�)'�A!� 7,���Ft���Tv����4^������t��Ln����,R�������d��$N|���Df�������$J|�J|���d~�<^����|��Tr�����������l��F|���\z���������t��Lr����4Z����l�����Dj��������<b�������������pH,�Ȥr�l:�ШtJ�Z�جv˥~80��1u�h.(u��#(M�CA�@�#v��F"nz{��)���&��}{#��h}�����Z���{��Wm�����S�����O4������Jp�����E&��#f��C)��"��7��0s������2���u-0"���
mon,P�C�->+������t� ��\�2Hj ���:DLHP'&���뤥
G�j�х��TԼT�S�L>vZ2�����TP�i#,���Qé%JG�1g�
��е�ٳhӪ]˶�۷p�ʝK��ݻx���˷�߿��=a��Q�Nj@�����LX�i�J������Ù�d-�'�W
4���$�o��ܙEl�Zc?؈Ӗi����ۂ�RAM�X%����/�Q�[�q^��Y�
ڋ00
B��f�_Ͼ�����˟O��������Ͽ���(�h�&��6�`u� @�^�$�@
�p��H����;����.<�@u3�-�ņ32��h4�i�,CM��bp��@s�`�i�I%G�4#�g�ȴ�Uņ���
�heex�@Q+�g .�'!� 8,���Ft���Tv����4^�������t��,R����d�����Ln���Ą��$N|���$J|d~�Df������J|���\~����|��4Z����l�����Tr������̄�����F|���\z����<b�������t��,V����l�����Lr����Dj�������������@�pH,�Ȥr�l:�Ш����d��v��BQ�`\�8��j������>>��Qo�{o���H
���n+���!b�{pn2��z%�qc��k$�����^.���n���S+���&��Q1�n�%��M$c�����J�{�ՖV*Q�n�܌�P�,�'��%P
&6��V/P
��+X�è�n�0��!R�C
&VkCN_�542s�b2��N{x��a>t�rW���J�k��J}p��(�gnh����+S�
[�Bf.��V�8z�E��V�
�سhӪ]˶�۷p�ʝK��ݻx���˷�߿F
�sA�����(
����������XgTυp����Dh&
$@lu�tV�����
E�}�J_v�.�`p7��i��%�ʇl0u|Ft#�j�U�u#2�����(��@���aO��������Ͽ���(�h�&��6��F(�V��(��
�p@Ha����!b���s%�Q
��L"�!�-�Gi��^2�2�w4��)�g�j�`{+���U߽�ʍ_��9��}[�V�K�5
����'�S�p��~4Ȱ�@��x��|��矀Y!� 9,���Ft������Tv�4^�������t�����,R����d��Ln���Ĵ��$N|������$J|d~�Dj�����J|������\~�<^����4Z����l��Tr������̌�����F|������\z�������|�����,V����l��Lr���̄������<b������������pH,�Ȥr�l:�Ш�%�A�6�z���0��.Dx�n;W�Yn6�|�7��&z��Qr�r)���Gut��f/���8���g2������3��n2s��&���`���e���S
��g���-(N��sī��K4��4ң'�~�L-�&ߢ#���K�e��ڸ�.\L
pa��D����DE*pf"ċ9~�K��C�(�����z�(�p?��X���V<���p� ���4@�db�@�
(����,���@����
�ׯ`ÊK��ٳhӪ]˶�[U"�8�����Dd���E�x�4HA�L�����H�m���l�q�cB�/7\����.
���㳗��94=E�KT���J�hul(&slq[������EGK��Ka�X#�˝���:1<�Pc�
'�vO�����ӫ_Ͼ�����˟O��������Ͽ�����
]ٷ ��t6�p�e�$ ��=�
,�x��o�T�[[PU�7A��;䰅HH��j<��wiY@�'���ch�T.�V<�$�3�eg�s�q
@A��l��
,��OX�!,2���H��`ɍk]���4�@Q��a�Z����Q�!rg���
٥VT�N�9��E�N<��"�y����U�(/��Z+�E�
ذ��`,5�0߁C�A��ͧA-���k��&���6���F+��Vk�ت!� 8,���Ft���Tv����4^�����t��,R����d��Dj���ܤ�Ą��$N|���$J|d~�Df�����J|���\~����<^����|��4Z����l��Lr������ܬ�̌��F|���\z���������t��,V����l��Ln���ܤ�̄������<b��������@�pH,��d�&�9RʨtJ�Z�S�5l�xL._�.��V����zC��x�|��c�^�ja}��X-\x�l���J
�lxk����w�2�������'��R$%2*R%��j���E)�k
4���k��82��#I���ʼ���H֨\$ح��&&67H7�孶�&I5��&��#eCM*A
��(A�Y1��
)78`�!F�V4�[c��ǓF��h��!6p3���{��4��F�CO��|C��Æ�\Q1P7�6d���T�*��0��կ`ÊK��ٳh��
q@��;�*aѢ �b0��z�҅��%Qjt���đ�idC"�5��ⲡ�z��O�jż<.�'d�TX�!0�D�{N��T��6ߙ���A��3���`���1��q�r1����ËO�����ӫ_Ͼ�����˟O��������+���
C��2A�J~ ����Aj]�Ё}
�)&�x3��UT�|} ��D�
^Ň`c%%_M�fB��r (�ɗ�8+��}
l��W���@�~*`c2�g�w�pB���0�e�)�d�i�h���l���p�)�t�i�4�
�Gaja� `�c}"H0Ԁ�dF":h|+�Ɔ %�Ǥ1\@�|4J�:��gr�@�|�VɅ��(.�r�r��G��k\��|�:�k
��W�6k,�h|
���'�s��`���Փ'!� <,���Ft���Tv����4^�������t�����,R����Ln�d�������Ĵ��$N|Df����$J|d~�����J|���\~����<^�|�����4Z����Tr�l����������̼��F|���\z���������t�����,V����Lr�l�����Dj�����<b�������������@�pH,�Ȥ���j��dI�Z�جvh��̅�-���%@��n\+M�۩���
��rw��u*o}�()���X
}|�_0����E)`�n�m
��Z n
J.���o��T
{}7H3���4��G$"��8�F�|�{;��C���G;��m
��Μ_�E9l��������G��(1��5��(H��C+_���}If$Eq f�ء7ݐ�A�O'ʒ��*
^�)M�8_#X�<�"��Cg��@�6.v
2��������
J��H!�:VF�ʵ�ׯ`ÊmÁ�8r�e�cY=*B�
6�d's�si��<���I�`Q|_�{���m�2$m̨�;�(�Rf���3�7R�dьhl��IjF�:ED�
�o1�=��$882�^tA����-�P#A�&�N����سk�ν����ËO�����ӫ_�H
&B�?B��&�iP�b�
�C1�`�l���5�do,�� ?��>��Fi|�0+`(�0��b�3�Ga�`�^�U��&x�y�Z�<��g�
�����F�P��LVi�Xf��\v��`�)�d�i�h���l���KL�+hI�gu�y1i�>}L�BB���_�@�r����\��!憃~^$
�G��A�}ɇ�Y�c�y�!�J���V+A͗Ð���~+��['�M��,�1��bɁ#�pAmpVk��!� <,���Ft���Tv����4^�������t�����,R����Ln�d�������Ĵ��$N|Df����$J|d~�����J|���\~����<^�|�����4Z����Tr�l����������̼��F|���\z���������t�����,V����Lr�l�����Dj�����<b�������������@�pH,�Ȥrh�@��賬Z�جv;dEP�pu�q��z����0�����U���Tx��v9}|�a4���,+U'�p�8��v~849I�}�(1��gpcafG���;��X��5$�b��`/��J��bG�(��p
��F*Ԗ(F�o� ��B-㦊F90���zο�.G��0
�w$:~��p-
�Ɗ��DC�["�8�fc�D?��Ё㍀���f
���0�@���`̛I\܂�@#�ΟCr� &AC�H��
p ��I�"Hq��YQ�j��b[�&l:A�G7��T{�e0G���R�uh�cAP�b[�����5`yO@�l1�*���2��U��,�)�nPlଌ��aB����XW�b���E�yݐ1�
���nm��2T�!���УK�N����سk�ν����Ë7�`�5]a-(~>KO�j�m�BI�
^ү2#�'�-1�N�� .��A!Am~��� (�
sM(��H��C�PX?H���'��E�sT�4dv
�-!
h(0�#4|q�x�
xPh��PF)�TVi�Xf��\v��`�)�d�i�h���F
`���(�
xLi��A�-ڇ���n���P`�5"�I`&�W5�؟��Ӣ����'�N����=��`d 6ڂ��
�E
Di�J5��X�9�`gpp�)h���k6���F+��Vk�^!� <,���Ft���Tv����4^�������t�����,R����Ln�d�������Ĵ��$N|Df����$J|d~�����J|���\~����<^�|�����4Z����Tr�l����������̼��F|���\z���������t�����,V����Lr�l�����Dj�����<b�������������@�pH,�Ȥ�غ�"(���Z�جv;|@(���q��z���aȼ���K��=��rx��G-)�J
|p}a4����`
Jzo{�(��k1��n#�Fq�q�-��[-��H|��+��W��nG"�ͯ��I��2G#Ǡ���Eξp�E4��8��B���/F7_�(��3��oʌ��
V��y��#.@'��}�����X(j������4�%�$�i�
h1s.�!�!��8t
UB�A0:���qaA�#4��R��8�F#��1
.��@ËrZ�5�u���p��|����F@k7f��mS�ՙ`[F1)�l��A�$-���d���v9��q�Q���GI���[�l�8*��6��B1��m�6�3#���ȓ+_μ���УK�N��u�7��QC��)р�UL�S��1��
����L�@|5-"�>f���>�2�g�B�30�����X���p!54K�fQ�f����L(�#b�Ё����7�v|��Dr��H6f��_���<=i�H&��L6��PF)�TVi�Xf��\v�`+@�W��@a���^��w`1D�B5G�B�J��H�`l�d�Af�8Lh�M6p�8!59Ah�$��
�4���Q(��L:0<���O��BK����1نD(�0%�}��V"p�#�0���+��k��&���6���F+��Vk�!� <,���Ft���Tv����4^�������t�����,R����Ln�d�������Ĵ��$N|Df����$J|d~�����J|���\~����<^�|�����4Z����Tr�l����������̼��F|���\z���������t�����,V����Lr�l�����Dj�����<b�������������@�pH,�Ȥ2�c1j����Z�جv;\��p�-���j
�b��F#M��?��(p���p#v��I"�l8J7
`m��(�����I4�����t'��mHpp�n9��\���nG_���6��X���a.��1��K��o(Ga�s��F����D»m8��D0֜�TE��(4�8��xP�lA�~.�����d�"8o@�r�
$iK�h
}���$*P@��mɎ
*���@"d� * �t�<o2�����MC6T�b��H��$0z� +%5=B
)nT�7b�3JZ�@0ql���1pK�Ț|�Pd�U�n٨�u���.;�-�uO�U^%rU��`�m�`�$=�l���rm>����>�V�m�"�$e�mA��uN����ȓ+_μ���!c<�p
��Ѝ)�+��DՆ�L"��!E
G�p_�"P8���q`V
t��Q�fK`���
�xK=���f�A�fzQx�
�Ҟ�\�v�
'�ȅC�����e4��>߱x5�R�P2�a�,��@)�Di�H&��L6��PF)�T���
UQ�RÊQڰ�75��d�,�B%6 _h�0�$#.�X�^�\M�W'089K|�8��9�d�d
�-R��%d�NrH^%m.�AT���x`^��H`JY��
EeY�*무�j뭸�뮼���+��k��&���6���!� ;,���Ft���Tv����4^�����t�����,R����Ln�d��������$N|���Df����$J|d~�����J|���\~����<^�|�����4Z����Tr�l�����������F|���\z���������t�����,V����Lr�l�����Dj�����<b���������������pH,�Ȥr)\!P��I�Z�ج5TxO�GK.���H�1�Tux.�����ԡ�GSJr��rz��K9�`^I8�_�6���(^��'`*H,�~�`��z0���78G���7��f���'�F�út
��X
ɐ�#G�t�+��L+��~�F�����I׳`G2���4�E6��^�F�tB��������;C�2�1#�J.��wb��]�!Q� ���@�d��}�bz)Q�<$����VA��d�U#��ēk�0>�
I/��*+t�@a���<��4f�@y_r0��G���!i�)�?(,W�*E>ES�a!%�%x��];Cn���h)���Rl��;�jr��ʓy�o
rN�
�p��N@0P�q9F�`�����ȓ+_μ���T�y^�B��sbܡ~o��`b(���EQ�o�%��d�z��ಮ@�;��<�U~Nި"V
�q��F�
W�z_Mr,��"8P���L�HS�AB��x����������x4��e'���"(��G��
:����Di�H&��L6��PF)�TVi�q+�
PܕF�p�.�p�C�d^��
����~�Ve� dH�S���5�Q�`�}8%�A��甏]���Rb
�#DU�M��v�'p���8
�%��������8D�J��(�i�����+��k��&���6���F+��Vk��f���v���+��!� ;,���Ft������Tv�4^�������t�����,R����d��Ln������Ĵ��$N|���$J|d~�Dj�����J|������\~�<^�|�����4Z����l��Tr���������̼��F|������\z�������t�����,V����l��Lr��������<b���������������pH,�Ȥry$1�Шtm}h4�T��P�ŋJ.���C�F�ϖ�MG�l�^���Q~J
#~mN{��Lt��(�I2������C���H���������m-G2��~.��f$k���4G0���7��[u��"F8�Ǫ��O'ȸG��m0��I/��_�F0���-**xI-��)G���^'�#�Y�P�2�۱�P�тEE0T����$̸�3D+@�-S�ZHp����zjDP���95�D���D��(4�0?���
���1�ƍ�N5�Ca�Q�r"H!�
�kYư
1ZL�;�a$^�b�c!�:B�����(R�c�1Ź�u��!�1-�������-㸐Q��-��!bł�sN�����l�80����
��K��Y6��Z�Y��G'���tH�&�����>ۯ��v�_B������bȴ`+5(Qc�B@|#�!U���a�aQ�J�DDGe~"����+/��4pb/6�Еk3��"31��<���@)�Di�H&��p1�pK���Б�xE�D
��i�D��E�w�`�Zj��@��O�F�@�,��Y����~
Q�d�SC�C�p��Y� _<#%����v'����{��Q�;��!*��*D؎�B�0�U��/8
�oP���+��k��&���6���F+��Vk��f���v���+��k� 覫��!� 9,���Ft������Tv�4^�����t��,R������d��Ln���Ą��$N|���$J|d~�Dj�������܌��J|������\~�<^����4Z�������l��Tr������̄��F|������\z������|��,V������l��Lr��������<b�������������pH,�Ȥr�l:�Ш��!�����43wJ.����n�B�Ģ
dZ��~_\�l�kK�ml)|��J4�l�I%������u��u*H4t��1��|�t�l/G-�����e0���3G���-��QǴ�8F+�Ո2��M3��k�E ݹuڮ &W-�H
�ϲ�E4ºk�$���)� C0YkN�2�B��\��""
��(*�$8:<qA"�#g�2�J�4�Ԁ�ll&��0�1�/#�;�A����`���#�I�l`0��%G�Y]��j�Y����
Op��c �2.f�k��
(Pp��||�
N�u.��/1�U�Ő����N�Ș�`��*j��*O"����u-(m�6N�
p
A�۸�x@�N�?sG����/������@���}���(���
K��=�d���(o�RZ1��!=���H�+���p#�C��6d�$'�p�9�pyj#�SktPW���`
@�q(QPA6�,���0�(�4�h�8��6��B<2Rm
�A=A�Q�51�I�R`�P@%�ϕO�
r�ą�ᙘI|0�Sl���
�U͛J�"�*�щ���a��H�F�<�Z�
� �R��Et`�(-�y��&1M�h��5
6�0Cr���ꪬ��꫰�*무�j뭸�뮼���+��k��&���6���F+��Vk��f���v�J!� :,���Ft���Tv����4^�����t��,R����Ln����������d��$N|Df�������$J|�J|���d~����<^�|��4Z����Tr������������l�����F|���\z���������t��,V����Lr���ܤ��l��Dj�����<b�������������@�pH,��d��9RʨtJ�Z�Ә�5l�xL._�.��~�����L��o��z���Dz,sv��Iz^�jaQ#lj���-\{�lQ�z���u%l���&I)��k0��c���z1Iy�j�3��!+'+J
��]'H£��Ɨ7�\oG��{�G+�Ҽ�ۇ*i�l3*G����H'�ڭ���V�^�#�@��V����w���u��d]�v�H���F.�0��
��7�ܘᒕ%
[�2�Oe��{(z�qD��],D���0|����dG$7,8dC^jR�!��N�*���D�����ք��d�
�H�
��%�[F���^�Ҁ�
�.�41'k�R�$u�COiz@Ѩ�������c��Ռ�7{h#�3%.��Ж�0��8Q��s!8(~)�<7H�^���:��F��>Pu
�\@��/z�@�����bܬ�װ�V��'�z��㑀R�M'�
��y���xY�`v�Q(��b��p��x�@+
��Tp� dv�0�(�4�h�8��<rG
k\�A��x���PiGt�]p��eH��-�D�7t��>
l9FI�
��bVer�M�&
.¦��Y J�dB�vNaNU��g0|�J�VA�X��h�yL�Ra�&ԳV:�a��@��N�(�@�
$(V꫰�*무�j뭸�뮼���+��k��&���6���F+��Vk��f���v���+��k��[i!� 9,���Ft������Tv�4^�������t�����,R����d��Ln���Ĵ�Ԅ��$N|Df�$J|d~��������J|������\~�<^�|�����4Z����l�������̌�����F|������\z�������t�����,V����l��Tr���̄��Dj��<b������������pH,�Ȥ2��h�eI�Z�جvh�`I�-���%�0��n�*M�۩����h7w��u)}|n�'X
(22��v
p��.�T+ `&0/��f'�~�n
T/~|*��nJ,���K���8��
�o5H0}��&2K��m��u"1�}6�E$��{�I%��$�u���G8؊�h��@�}l�K�!�;��`�`?%42tCp�}��p�@�����C/��e2��Z�L[b#Q��e�`f �Q��DN`ș@@9��Zf%���XA
H�<0�pX�[\�f*�-^^�a�(s�fQ�nm�S��K�S/��uz�E�m2��'�6,��X��A��eBh$
F'g
����h3:����0h���s�'�
@c��چQ�9��K<$>
�k�؇�x,�W��)��D�s�a
c����|���An�_C@x����6����5��&AY��
h��D� )Mh_E��P���ɐ1D�dt����݉�1�4�h�8��<jX�!�C��H�l�3�gd%�@
Y=)H�ds������e�0�e��_c��ŀk��fu�wH�oVe�O��X�2QG{�1C�']h�C���j
�{0��5�%�yMZF�
������@ܹ��|���ꪬ��꫰�*무�j뭸�뮼���+��k��&���6���F+��Vk��f���v���+��k�覫n�A!� ;,���Ft���Tv����4^�����t�����,R����Ln�d��������$N|���Df����$J|d~�����J|���\~����<^�|�����4Z����Tr�l�����������F|���\z���������t�����,V����Lr�l�����Dj�����<b���������������pH,�Ȥrh�@'�賬Z�جv;dAN�p�t�q��z����0h����U���Rx��v8}|�a���,*U&�p�7��vba78I~c{~0Z6*&*t���}fG���:X�T����Q$����.W��c��u��G�'��`
V-����k)p�qF�o� V�n��h+���YT�z�.XY0�h������(�xѠ����Np�ȅ/g
ɱ�
rU4L�5��
-�H�!�.����r�B�Yj�F��n�`
�Lw�E���Ƣ'jhғl߉~\��DyH��_N��Z�+��IT��'r��b�yw%����T�on�E�BF\��D
p脌��j<���@Zߐ�0��"���C��#f�đ++/YaĈ��mӧ9���KOb���8[�k72#������3U��{j����+��
8��ۏQ~:ٹ�dҟv8�6�>U
���9�G
��Q8n�Z�¹pP2�t��x0p�
1�؇(���,���G���20r��z�@@P�!�|�� 䁑@�s�1�H6י����8
�;'x�� �l��H_
�u�DY��F� '�Yss�����Ԁ-K�G^E��'
��� zG����x<@�!��
5����v�駠�*ꨤ�jꩨ��ꪬ��꫰�*무�j뭸�뮼���+��k��&���6���F+��Vk��f���v���+��2!� :,���Ft������Tv�4^�������t�����,R����Ln�������d�����$N|Df����$J|����J|������d~�<^�|�����4Z�����������l�����F|������\z�������t�����,V����Tr����l��Dj�����<b�������������@�pH,�ȤYˤf�EC��Z�جv;T%`@L
q��z)���YeM�۫��X��F+'7V5.}{zc%��v�cU1�n||��i/p�$�I$n����Y+�pbJc��zT��K��oI3��}��G��I��&&+X
3),-�j�}z�G��6W5��c3�g����;��Z�n�@�ò~Zdcg���0�!�Jɍa�J��
P�B��4�t:�kFI,P1|SC ��K��؈i�FJTb�ݬR#�DO��
��#���
�R+��t�G��Tp�P�P+�Q>aL��v��GH�=��0^kiH/�t����"I�{��u�;]1��X��Q%4dh�NZo�Țv����1����@pC�A7����5
ciO.�#������{��3��`���w��D@�~)t>�}"@�<5�!�}�g�s��7�<a�W�t`��-�_�edB.���$�`��)p�$4`�(���,��(��f�(]|��$�X�yKe>BB�)�'I����1)M��gBbR��aP�@@����K{��
����9��$��n�q�<)EW'%9��J�{
r�CT���P�~ !J�Օ�����`*�QZ�1tpH4��*ꨤ�jꩨ��ꪬ��꫰�*무�j뭸�뮼���+��k��&���6���F+��Vk��f���v���+��k�
覫��H!� :,���Ft���Tv����4^�����t�����,R����Ln�d����Ԅ��$N|���Df����$J|d~�����J|���\~����<^�|�����4Z����Tr�l�����������F|���\z���������t�����,V����Lr�l�����Dj�����<b�������������@�pH,�Ȥr9�"�R�I�Z�ج����A�-��h��5���&M�c=��(P�*
om�&v��E!�p6U#3���#��u+�n�T���_��f%^p�L������W5��o&Kl�����L��`,K��n��H��&&K��o��Dl���o
J(��`3��.��dI�`���l�#gIۚ�0�5�j���$AJ��נ�L�+�
(i�e�v�|u��a��
�(X��E���$�@�J#4����
'D08��L1,ȇ����%��ȯM�9�$h�\$H��H�p(�hXn@B{oH
�*]�$*Z
(�Q�_�0p�"�D�����L��ja�Y ��ހJEXa:����W
s*��
�; ��E�"<p���Eh&U7S��"/³�R/S)P���t$8{�KV�Fǿ90���T�C��#7X�7�D5MC�}H�@@?L��
�Q�H*�B |֨A�D[� �(�$�P@
�H�P����bl#�V
T5cf#|:��Z�yr���J�o���<�]�
O��m�(X%.d�ȇ[�y�8�`�xԆ�g�xo��f.
|ä�͙�E����ɀ�UQo������4��3��^�Vj饘f�馜v�駠�*ꨤ�jꩨ��ꪬ��꫰�*무�j뭸�뮼���+��k��&���6���F+��Vk��f���v���+�䖻i!� 9,���Ft���Tv����4^�������t�����,R�Ln�������d�����$N|���Df�$J|d~�����쌢����J|���\~����<^�|�����4Z�Tr����������F|���\z���������t�����,V�Lr����l�����Dj�����<b���������������pH,�Ȥr�l:�Шtʤ!4�nj��z��Ȫ�p�Z��T���)�v�K����
(r��C7~jvjP1��~��_&k�%v�M4��%0��S/���56M���w�������%M
�����J®���K*���.��EЭ�w5L/�k�%2��9��vL��j��3�ы�L-ٶx���5��Q�Q,�}y#B
J.��u�I�����K ��!@�c�D�
bG)"�`7Ap�d��@^NI�ώ�#2��`��r��"4J�}��1�������`���U��H@�$�(�)��Җ�qj��L�݉�0��%2a�
�]��J�?�7N��E44_z�8p \��p`{����)�H}D���~p�2���`�F�F
��
5J�I \�
e�"�D�@�5.D4'��%����Y`{���9��
7R�5/C����+�>�k�����M��
Ƞ�u�D�ݱH�T ��`�X�� M�I4��
6��m�i@��!�v).�9�Q!h�c52���%� �E�@[��1[��V�7AA�!�dG
V^)P^\v�bSFS���� X-%�&*6�d/���
i'���v�bYi��g��5(h*�@b
$y�1|=*餔Vj饘f�馜v�駠�*ꨤ�jꩨ��ꪬ��꫰�*무�j뭸�뮼���+��k��&���6���F+��Vk��f���v���+�O!� 9,���Ft������Tv����<^����t��,R�������d��������Dj����$N|���$J|d~��Tr����J|������\~�|��4Z����l�����������Lr����F|������\z����<b����t��,V�������l�����Ln������������������pH,�Ȥr�l:�ШԨ:���b��z��@�ȳ�׆z��p(aF6����FZ�-nq��B6u�w&.4P#x���o2���O��x��S6�xg��K���[��M��g�L)��f��J#���L4��d{��D���&-L�����8�Ɍ�K'�e�7�o*((5L*��d�J�����\jX@0i�%Tus�D�u
�R�
�3B$I��9�0�
� �@(�*�F$2��Z��Gl4S:�!)��sH
D�f��m�0OgM���0U�F �A���N��
�O��&��B0aj�6y��!�in,X��C>�L��7�a%�L"�p�1�;
�uL���M�Rn��^�a�Cs�9+nh�!�4c����6,\n�@���*d�H�����˱p�(�|`�@�o�]B�,�g�.%.lrq�t/*��,6��x�]���V�
%��k^���lc'�ҏ6�=�B7
��Q)d{.�@|J��D=��N�I��pT�4�TTg��(f�]L@@"u�xrb8�3�dI8dҊ3&QAG#^��*@�d&��#c؈CN��*&4��
��DN(� 0^y7u`"7`��
��i�$��cM_���G��Pu,�����I�wz��'hF*餔Vj饘f�馜v�駠�*ꨤ�jꩨ��ꪬ��꫰�*무�j뭸�뮼���+��k��&���6���F+��Vk��f���v���+��^!� :,���Ft���Tv����4^����t��������,R�d�����Ln������Ĵ��$N|Df����$J|d~�����J|���\~�<^�|�����4Z�l����섞������̼��F|���\z������t��������,V�l�����Tr����Dj�����<b�������������@�pH,��dҢ���rJ�Z�����&p�Ӛ��4�f���`�������Q�͏�
qo�n2���f,p_q}���J�&p�`)g,3
-��S7�����Y]�q��E�|�Y3�|���Y����Y" 3�T9���0X��`
�W#
̑RJھ�`3Y�`��Sp� Vh%���K
I�Ν8%@�{^P��P�,*�E�b^�;��G��d�H�DI�G,���J��l�0Ӣ�=8pa�)�W�8Q��DF������ĥ�ѧ]�|�yV.^�"J[�i�>�A8�G]""�-�Y
£h7� ��)�:ޤ��b"�r��@����i���Шu8��O��ԩ�������s����06�����(^���,��=���]DPxv�ԝ����"4�x˔_�i0��#k��W|��P4�A=~\2����Y-�W(W�5�w�`�X�rA���$��:\0C�`�p���P�}*�2�@|̠B���ė��q������0�Q)�~�A�J��Bc˘�]�w��$�ai�Lf�B��ih�'��FM��j�7R!0©E��ҥ�i� i.(�g50@P3h��e�k��QC��uF�馜v�駠�*ꨤ�jꩨ��ꪬ��꫰�*무�j뭸�뮼���+��k��&���6���F+��Vk��f���V!� 9,���Ft���Tv����4^�����t��,R����Ln����d�����$N|���Df�������$J|d~���J|���\~����<^�|��4Z����Tr����l�����������F|���\z���������t��,V����Lr����l��������Dj�����<b������������pH,�Ȥrh�:�Y��Z�جv;T=J�p�t�q��zi���p'����Յ��Nx��v7}|�a���Y$�p�6���G~c{~-������8��I"*&#*
Yb�pq/��C7�#"W��}� ��)�%o3tUƣcv)��V'�}.�K
,�|~#j/o.7�H��%�U*��,�g"0���@C��
�l`�
[�l�Ҡ�8
2��!M��`���ig�q�`����g%EoP�������ԫ�Aވ����h(�,��x����,�G�-D(�E� ACe3.b
�
G=g��1�d-NU�9��a#�s
1���F��B��W�KLI��"���rJt��Q�K�� $9������^(8�Є�Y�v����(��
!l�`B��{�0S�z��o�t�^���Zι�m@RfS�� w��lpz�z�^��U����7H��@���Pp�x�AW��I_n�YPנA~�Bxʃ��8�X�V`� ��(���,���0�(�4�h�8��<���@)�D�CC�0�8|X�"8P-��$��q]�D�I��Y=,8I��ІU�k�Rc��xE�w1ASS�A@�C4�ZB���M��}jF�*zNYm���B�PN�n$ʩ tUMjrzi��AH�&1���j뭸�뮼���+��k��&���6���F+��Vk��f���v���+n�A!� :,���Ft������Tv�4^�������t�����,R����d��Ln���Ĵ�Ԅ��$N|Df����$J|d~����Ԍ��J|������\~�<^����4Z����l�������̄�����F|������\z�������|�����,V����l��Tr����Dj�����<b�������������@�pH,�ȤYӤfD��Z�جv;T%`@q��zI���eM�۫��X��u.|z�&%���Y2p�||��\!3.'sX0{�}b
��Un�2X��{T��F+�{,W��}p`��B7�¢c�Ụz+�Ə��`�K��6�ƚ��*U+��o��̢!V��7�(���\���D�Rm���@+7X�caBT5�̓S���0q��(Yd���r-ؼ�f*���� 3%oH@���L��0��ia|��Q��OW�g���:hd����lt��������F 3f`��_6�
Ōh&��EAAHyP]�UZ���a�!�P�����Q�S!������%�5
*7�4v�Pò�`�YI}}'A]��g:9�s�I�lc2��_m�Տ����;ނa�
���U�^g!��L�+iq��,2�4����E9#� /�� ǵ�
K2��N9L
,���!f��h�(���,���0�(�4�h�8��<���@)�Di�H&��L6��PF)�TVi�Xf��\v��`�)�d�9eoY�p�,&d0%R��Sn��U�@Ys�E Bꡄ������Q�s�29��kz�eM��i֓�5���1ق`ٸ�d����eMF
)>�B!6A���І� R��I�p��9��6pP@Nf&���6���F+��Vk��f�-�A!� <,���Ft���Tv����4^�������t�����,R����Ln�d�������Ĵ��$N|Df����$J|d~�����J|���\~����<^�|�����4Z����Tr�l����������̼��F|���\z���������t�����,V����Lr�l�����Dj�����<b�������������@�pH,�Ȥr�l:�Шt�$A�CIA�z�`%�@�˂Wx�n+s�y^���k˥B��^%f�r�(;x�T4 rt-S
���g0$��N�fg(R��sfv��H���89Q������D
t��(P-�����,��s8P6����ʺq���6O9��2*���O2����*�͠jO��f����q�R#��
�Vap���5("�3�F�M9p�k`��d��X`��a��4����:@0�낶9 "}���M]42�����+�ܸPC�DFM��!QUQ�6!pc��Z�ɱ��>ŊMq�^E�j-Tx�\�&���q7숆�P���7���z��Y�nô�v5��hd�6�2��Ȱ��.��,� #@�2@(�O�Z7�qn��.�С�qZw� {RL��[gR����_
0��C�.ӗ����&���P�t��.
���~���)ѯ�
���X�I�)�en2�+� � +��%
��&�5�)�\��
i^��8D��,�T�0�(�4�h�8��<���@)�Di�H&��L6��PF)�TVi�Xf��\v��`�)�d�i�h���l���p�)�t�i'�7
B�0sR�҆`���X2�H��0��$�R��-y��*=���f4��<ʵ٨7)w��@j��G.�G1�s�ْ��W�>��>8&%����SޠC
f$��lp!� :,���Ft���Tv����<^�����t��,R�������d��Dj�������$N|������$J|d~���Tr�������J|���\~����Df�|��4Z�������l��Lr���������̼��F|���\z����<b����t��,V�������l��Ln�������������������@�pH,�Ȥr�l:�ШtJ�Z�X]��r�$ٰx�<P4Z#�*��{~ťx42'Dw,$t�O)xwz(h+Xvy�}��H0w��,7V"��i���B���(Uj��-�����"T6���x��-���,T����džѵ�T.�ĝՆ6�z�(T���9�,е���x1�t�h���i�.O�}nZ@�mD�ޖ�نpN�e�
2�U�4*҉��- �p(�Qj"�$����L␃E��4p�4r�;Db#B
��p`��C����XYu�����!�j�&90��r���m�1�yD���
JD��pX���8�
�V�*2�07���WQ��ò��FM��W3���/�p`[m�n���=4A�"�%μ���УK�N����سk�ν���HN<�+�9J�^$�y11�SA��,+��s꾕�ѣMh�Aa�I�@C�S$�'0(�QU���Q@Вd�B�^�u��e��2��NаX)!�� zt���E22�MD��G(��c5��)
\�
()�TVi�Xf��\v��`�)�d�i�h���l��fX���\���$���i�d��0�pV�$}}Z���y��P��
�JV0�<(\��
���
<�I�W��
��r�
z�G�WW�9xYY�~��Ö\z�5Z�?��e��0�}b�oF+��Vk��f���v���+�sA!� <,���Ft���Tv����4^�������t�����,R����Ln�d�������Ĵ��$N|Df����$J|d~�����J|���\~����<^�|�����4Z����Tr�l����������̼��F|���\z���������t�����,V����Lr�l�����Dj�����<b�������������@�pH,�Ȥr�l:�Ш��J�jb��z���@��x�n;
2�l6G8����(06{��Q4ugt���G9
���u1����et�y
+��&���fl98�#j�����.k5�d,��;���(`
Ľ��{-���[_����yŭ0`����n
�`��r��E-4����(&��
f��m� i�������5�=\!�Bjg(tkrC�E(F�a#�����j6�A�/Z��
jUG��!+�R�Ab�_�>�!Ca
��wF�V82{e��'��������#��
���ao1�g�ؠ�A
kgs�-�ip��H<H�
C̠�؈�4P�Ш�`��JE��<vL�)��-<�P�`�m�
^�����ȓ+_μ���УK�N����سk�ν����ËO�����ӫ_Ͼ����+`!b|'����!�$p�$� �aA�ȑI1\�_�14�W[
�H�f��`X�f@�<�TG�SG@N���da$�a(}58Mi���`a�4�B�Ў�C)�+��J��3����Q�x
��4f9D��oD�0eg���\%�/$h�5��Z;YV`����]
��^5�����e����8���5�����X`��B
b$�p�=5�I�
/-E��*yC
�$�b���>���+��k��&���6���F+��Vk��f���!� <,���Ft���Tv����4^�������t�����,R����Ln�d�������Ĵ��$N|Df����$J|d~�����J|���\~����<^�|�����4Z����Tr�l����������̼��F|���\z���������t�����,V����Lr�l�����Dj�����<b�������������@�pH,�ȤRؠ p��絬Z�جv;\�`�2p��zi���d[���+��q$y��v9pr�a)���Yqc�����G:�}�1���3r~�o;�����}���x��~`��k;��� ��;.55T[9��~:á
5c�![��`7Ә+ �q �Zݓ(�-0�0-[,�0+��<p���pjh��Qv�Pd�а"��B��G"
z�裑��
p`��7ʹ`�ȺRa6�E���74ji�q���&H�&(�)�!
j�Ɵ(j�a@_@S3�pu
E��!e�C�'.o����,
U42�CT���u�2�c�����ѡ�[0�e�[Ld�L�(�R���/��p�
lh�k��8�o�g
±�w��ٳ��ЁC��sN����ȓ+_μ���У/��BD
Ko�⯟ldb/�ǯ�
X[�k�1�>�1�i��fS̵��e��䒀YXvf"x�8��jQ�7 Sa
�Dp0�l�EZ����ZU�;(j��K��;-na�zeVC_5��@�=)�Di�H&��L6��PF)�TVi�Xf��\v��`�)�d�i�h���l���p�)�%/PC0�RN��e��
8&ML�
��`�dgeM"���J�p�yo��Mm��{G�7�"�9�Z��i��\�QKF�Q�D
��
8!'<*��W�h�1ȠQfqE�����C|��f!� ;,���Ft������Tv�4^�������t�����,R����Ln�������d�����$N|Df����$J|����J|������\~�<^�|�����4Z����Tr����������l�����F|������\z�������t�����,V����Lr����l��Dj�����<b���������������pH,�Ȥr�X���I�Z�ج�N��-��h�
�z���|N�"�o�>S��"yn`�5��W+mzx`q���F3���7���7��n�8��;"+(+i���`,��8 o^"g4�����,�z4�e-��a4Œ*���1�Z)'��|ӈ��'fΎ�`/���o/�Z/��x�.A0�"(Q \�#c�Y���@L��AM��rj�pH#����}Aa��
U"pI�}�ث�s����d����7Q���a��ڔ��a�
�R��ЁB���`ÊK�l)
��jV����Dh��� :x�n�
qcbP�7��Rd�2Cޣ
[ѡ��~V�=�Q�v��a)�l��Q0��,�In1k"�$��F��'`�>��Th̃���!��7r�����n0</�q��L�8�Vb;��w�*����_�ba�<�L`:%r�Fح��+��Zy� ��Q�T5K$$HDƩ�{U�����,�#7�d!�x�7Եb6���:9�8c��B %�
�Di�H&��L6��PF)�TVi�Xf��\v��`�)�d�i�h���l���p�)�t�i�x��s�
��%�ɥ��@:| ,�0S��v�6p�Yz���eh�鳚��9*� *^��7�yAݕ�5�G�Z6�Y#/p�ۋ��%� sͬX�p#!�p��˦[�0��
@����+��k��^!� :,���Ft������Tv�4^�������t�����,R����d��Ln���Ĵ�Ԅ��$N|Df����$J|d~�����J|������\~�<^�|�����4Z����l�������̌�����F|������\z�������t�����,V����l��Tr���̄��Dj�����<b����������@�pH,�Ȥr�l:�ШtJ�Z�ج��"��EK.���`mbGd��H�x6�4�"kwzmw�D!^.acd'z��m78�j�_pZ�y�y*�}+��&Y
���,�r8���w�V��w�q2���
W�����f^��&�V5´w��d��!X7ܔ�d(ɲ�X.��Y��w�W
n���._���1��E
��0H�?Zm
h���/�X���s'>-964!���dpH�8j̛Mj����ΟIVi�P�H8��*!ހP�(;
`
��W"�ș����~�>��i�N%xV��9 c��so��
��0��0HZ�0L�n%�1X�4��r$F�38�>&p�s1��a�`:��"�n����x0̰Af�*��N����ȓ+_μ���УK�N����سk�ν����ËO����:H@c����L�0�>����
��
��(���B��l��'��3�5j��b��L=���yg��B����8�܀�$0����XJ�C8�/7(��$�B�'�G@V���uV�
|Y�B$��P�Pw@�\F�[}y_ ���B���(���S?��]�y��ACa|
�Ǜ:�X)F�M�
B�:�dR��N�l��C�7��B����ꪬ��꫰�*무�j뭸�뮼���+��k��&���!� <,���Ft���Tv����4^�������t�����,R����Ln�d�������Ĵ��$N|Df����$J|d~�����J|���\~����<^�|�����4Z����Tr�l����������̼��F|���\z���������t�����,V����Lr�l�����Dj�����<b�������������@�pH,�Ȥr�l:�ШtJ�Z�X3he�����HP�����M?j�~�D�iuh8y|��D$�v�g���4v�����o���h#�$,'
�b���{-fv7�X���z/
��8�V$�u�g�oʕ(0^�T˻i*o7����T��h4o�(/�D7
L!���n��Xl��&B�J4��.�a���m�6XH�@�
pl�r�1�XёpI��s#��38�m�i����)f�H1��F*�L�A�ME� ����F���H�T!12���M*��i��� 㙭�v<���ԓ/�B
�TV���p��� xP�)��0���Ƙ����F��:�2��s��+]���d(.��m#�8\(4�����N����ȓ+_μ���УK�N����سk�ν����ËO����1��|
�E�`�0�~I���
�W�"��쇄
�H#}
�GV���3$֎��2��A�B�%ZD�<8�Sq��!�V��փ���iZ@>����<�P`)�8
�Tr��C(P�6DE�cu&.)�TVi�Xf��\v��`�)�d�i�h���l�����dR�,��^K�Vjx���`�l>^�b2+�]u��9A����(�HG�.p�GJ
����a
��W��(�>jehg>��ͬ�,i�c��'�9�0c
(0�ޔ@@������F+�&A!� <,���Ft���Tv����4^�������t�����,R����Ln�d�������Ĵ��$N|Df����$J|d~�����J|���\~����<^�|�����4Z����Tr�l����������̼��F|���\z���������t�����,V����Lr�l�����Dj�����<b�������������@�pH,��$�4`q�ШtJ�Z��Q@e��xL._=\T��\��zX��]�|��C�xj�\;}��b9x�ii5���J���iO������4�����w\)��R!&4-P)l����G+v]6I'���(��B4�x /H
��x9ͽɩ�F:��](�ݮ ��8�F$8�v����iH6X��F>W8�0"I�Px
q�U�s��bCÈ#h����~�`�\i�#�v6��)�^0U]�,�C�
4��ڗS��Ch�`�%��R7�)��TH�S�X
�1PF�l�`� �Xd
�*��p�`C6�Z�z�LW-v��0��[�C1�p7�f�u��C�livQ�F��ɛ��x����,�|��n�"�a�Y
���Z@.5�ywS�)m�9�����УK�N���H-4̨��A��8��I�i�,���&��T���<�9,3]#����p��Ӂ:G%�E���f��2ZAX��a�����H5
Oqx�7]��a"^a�T(\��)��Bq "�<1�1���0�U�cܐ����Q@��%��PF)�TVi�Xf��\v��`�)�d�i�h���l���p�)�t�i�x��|���Յ
֘9��^T@M�!$��
|���i���9`��0n��o�d�b� ]��fY�W*�<�%�5ބO��
�i�L���%0�ϖ�L�r����e2��
�v�46�`�@�8,0h��k.�A!� :,���Ft���Tv����4^�����t��,R����Ln����������d��$N|Df�������$J|�J|���\~����<^�|��4Z����Tr������������l�����F|���\z���������t��,V����Lr���ܤ��l��Dj�����<b�������������@�pH,�Ȥ�X��l��Z�جv;�u&�XP�����h����DM�۫�6ܽ��t!-o�z&���Yyaz��6���G,���`4��Vq
X({�bm0��G�b5V���&��B!��6�K��{�����oU{ʑͰ�9K�|��٠ϛ�bӪ�m�3��`V8o�p��.A��� -���0�%R�܅apE�� d��ԋn�Zt�䄺jzH�\yDŅU�z��9�&w`X��)���0/���B0
�*UqB�
3p4TJ��իX�j�ʵ�ׯ`ÊK��ٳ��P�
�^
�f r�x�NO���\�U�L&`;��0�(o���N�q�Ĝ��� ��
%��&��&p�F�#��61V�a!��0SegهS;�fT
���3 �ru��' Pn.�A
b��"�
62८�F��b�%�����`Pd��0���bR���!qC]�(ԂPBd����W�=x��f��G�x6�mT�!0��s#1�Dn�!R�E�`�"�8D��f�$�!(���0�J5i�'`��tJF)�TVi�Xf��\v��`�)�d�if� ��ࠔ
��)Y�0�
d����JJ�0aho�8�����b6C���JJ���iH
Q2�3}q�Ӑ :Y����RސK7 8�
8�f�VҀ�-
0 �)��k��&���6���F+��V[f!� ;,���Ft������Tv�4^�������t�����,R����Ln�������d�����$N|Df����$J|����J|������d~�<^�|�����4Z����Tr����������l�����F|������\z�������t�����,V����Lr����l��Dj�����<b���������������pH,�Ȥr�l:�ШtJ�Z��lRq��R8�xLV^h�� �ʄ��(%0�q5`��Xq�M)}cy}k|''��G#�z+Z}����B���Y��}"��+��{'0W|������z��W���z9�q.��k�U2�؍%�p(iٷ'V����e
��{�U5��j��c���k2W1��Pٸ7���o�\\��l_:�b�C�ፕ��ݐQL }�Fe��m
��Ű��OύIZd�HE!̔b`���(r�p�2@i�)9J�(�C�ӫX�j�ʵ�ׯ`�BԐ#���ZC�7�4�mj�EC5.�M�@�9_t�%h�/d��᰻����R���g���S�����왔䉍��&��^jW�����
٥j`�|N�R:v7B��7),�:�l|�7
���97�ֳk�ν����ËO�����ӫ_Ͼ�����˟O��������Ͽ���.@�4`Om�rCl���AIi`�[~"D��#���7��CC~;�ܧB�="R}&�#��A�w�8��e�P}8$������$`Q}+��G0�
܈�����s�1�
,�@@�'�d�i�g*�B(
P���b 5�7dc/h��#bA����
31�7C;̔h���͎�p8*�wڅ�|h/�S�3TLq�1�!3rݧ��jl��A�`�S������*��BQ���
(���&���6���F+�Ԗ!� 9,���Ft������Tv�4^������t�����Ln����,R�������d��$N|Df�������$J|�J|������d~�<^����|�����Tr������������l��F|������\z������t�����Lr����4Z����l��Dj��������<b�������������pH,�Ȥr�l:�ШtJ�Z�جv˥z:2�E�9u�hnhu��%R(M�CC�@�'v��F$nz{��+���'��}{%��h}�����Z���{�'',�Ym����1��U�����|&�S6����u&��n8�Qp���i��{3�O��%u�2�O+��$u���%�M��2s�P��}�:�pP����� ��8`&��C����B�
2H`X�ȌQ�h�A�7n^�lY��o�
b0 >x��W���
�3tP���ʽyQ�7��
��*d�h}�hC]�#ɦ�G�A�F$�0�,H
a!��0�i��]�!77L+����覘b�p��-��s��|A5M�Ƌ�nd�`�j{$�����=1�N����ȓ+_μ���УK�N����سk�ν����Ë��"U��Sn8�Ɇ��LȨ���J�x�yϋ�!q�h
%`/5��N���<Р/��/LX�T��hH�OF��B$�ˉ%�Cb�V�g$���h{��b0I\7��`'7��o�P0B�F0`�`-0|HF)�TVi�Xf��\v��`�)�d�i�h���l���p�)�t�Y�08��HV�P"�pW�3����
��M�A>7�P!A}��"Z� �Z���+�S�M�X�@�"4�RB�+F�N
��#6o�b
�D���ݨB����
7�c���@��R�� 1ࠂa�!� ;,���Ft������Tv�4^�������t�����,R����Ln�d����Ĵ�Ԅ��$N|Df����$J|d~�����J|������\~�<^�|�����4Z����Tr�l�������̄�����F|������\z�������t�����,V����Lr�l�����Dj�����<b���������������pH,�Ȥr�l:�Ш����f��v��BS`|�8����������>N��Qo�{o���H���n,���#b�{pn3��z'�qc"��k&�����^.���n���S,���(��Q1�n�'��Mc�����J�{�ՖV+5Q"�n�܌ �P3�-�5*��'P
:":��V/� ��+XOĨ�n�0�"R�C&VkCN� 842s�b2��T{xH�a>t�rW���Nب�K��J}p��(�gnh���+S�
S�Bf.��X�8z�E��X� �سhӪ]{��� 8
�Ԍu�0�[Wш@�ї�S_�-\�@��2B�/'�v*�vh!f5&r�p�3Ǣm�6���|QY�i�is����0��9A��^R�B
p4s����
1d�y��ln�A��4�V'�a\�+�����
��㍰0�E8%�m��aB�-�f�
�M�acV�N�r�w'Ǡ3�I$�M�D�+�!���K
��poH�
`Wق'&�q���b8u�('�0c�6�';6��@�ABQ�U��IF)�TVi�Xf��\v��`�)�d�i�h���l���p�)�^���ea���D�)|��P�e
�vBY�@���$�e��BؕIWZ
S+�Q��pÕ5$H��W&ڡ�M)�c��������]�U�p��e��O�385�|i�����i��f���v���6!� 9,���Ft������Tv�4^�������t�����,R����d��Ln���Ĵ��$N|������$J|d~�Dj�����J|������\~�<^����4Z����l��Tr������̌�����F|������\z�������|�����,V����l��Lr���̄������<b������������pH,�Ȥr�l:�Ш�%�A�6�z���0��.Dx�n;W�Yn6�|�7��&z��Qr�r)���Gut��f/���8���g2������3��n2s��&���`���e���S
��g���-(N��sī��K4��4ң'�~�L-�&ߢ#���K�e��ڸ�.\L
pa��D����DE*pf"ċ9~�K��C�(�����z�(�p?��X���V<���p� ���4@�db�@�
(����,���@����
�ׯ`ÊK��ٳhӪ]˶�[U"�8�����Dd���E�x�4HA�L�����H�m���l�q�cB�/7\����.
���㳗��94=E�KT���J�hul(&slq[������EGK��Ka�X#�˝���:1<�Pc�
'�vO�����ӫ_Ͼ�����˟O��������Ͽ�����
]ٷ ��t6�p�e�$ ��=�
,�x��o�T�[[PU�7A��;䰅HH��j<��wiY@�'���ch�T.�V<�$�3�eg�s�q
@A��l��
,��OX�!,2���H��`ɍk]���4�@Q��a�Z����Q�!rg���
٥VT�N�9��E�N<��"�y����U�(/��Z+�E�
ذ��`,5�0߁C�A��ͧA-���k��&���6���F+��Vk�ت!� 8,���Ft���Tv����4^�����t��,R����d��Dj���ܤ�Ą��$N|���$J|d~�Df�����J|���\~����<^����|��4Z����l��Lr������ܬ�̌��F|���\z���������t��,V����l��Ln���ܤ�̄������<b��������@�pH,��d�&�9RʨtJ�Z�S�5l�xL._�.��V����zC��x�|��c�^�ja}��X-\x�l���J
�lxk����w�2�������'��R$%2*R%��j���E)�k
4���k��82��#I���ʼ���H֨\$ح��&&67H7�孶�&I5��&��#eCM*A
��(A�Y1��
)78`�!F�V4�[c��ǓF��h��!6p3���{��4��F�CO��|C��Æ�\Q1P7�6d���T�*��0��կ`ÊK��ٳh��
q@��;�*aѢ �b0��z�҅��%Qjt���đ�idC"�5��ⲡ�z��O�jż<.�'d�TX�!0�D�{N��T��6ߙ���A��3���`���1��q�r1����ËO�����ӫ_Ͼ�����˟O��������+���
C��2A�J~ ����Aj]�Ё}
�)&�x3��UT�|} ��D�
^Ň`c%%_M�fB��r (�ɗ�8+��}
l��W���@�~*`c2�g�w�pB���0�e�)�d�i�h���l���p�)�t�i�4�
�Gaja� `�c}"H0Ԁ�dF":h|+�Ɔ %�Ǥ1\@�|4J�:��gr�@�|�VɅ��(.�r�r��G��k\��|�:�k
��W�6k,�h|
���'�s��`���Փ'!� <,���Ft���Tv����4^�������t�����,R����Ln�d�������Ĵ��$N|Df����$J|d~�����J|���\~����<^�|�����4Z����Tr�l����������̼��F|���\z���������t�����,V����Lr�l�����Dj�����<b�������������@�pH,�Ȥ���j��dI�Z�جvh��̅�-���%@��n\+M�۩���
��rw��u*o}�()���X
}|�_0����E)`�n�m
��Z n
J.���o��T
{}7H3���4��G$"��8�F�|�{;��C���G;��m
��Μ_�E9l��������G��(1��5��(H��C+_���}If$Eq f�ء7ݐ�A�O'ʒ��*
^�)M�8_#X�<�"��Cg��@�6.v
2��������
J��H!�:VF�ʵ�ׯ`ÊmÁ�8r�e�cY=*B�
6�d's�si��<���I�`Q|_�{���m�2$m̨�;�(�Rf���3�7R�dьhl��IjF�:ED�
�o1�=��$882�^tA����-�P#A�&�N����سk�ν����ËO�����ӫ_�H
&B�?B��&�iP�b�
�C1�`�l���5�do,�� ?��>��Fi|�0+`(�0��b�3�Ga�`�^�U��&x�y�Z�<��g�
�����F�P��LVi�Xf��\v��`�)�d�i�h���l���KL�+hI�gu�y1i�>}L�BB���_�@�r����\��!憃~^$
�G��A�}ɇ�Y�c�y�!�J���V+A͗Ð���~+��['�M��,�1��bɁ#�pAmpVk��!� <,���Ft���Tv����4^�������t�����,R����Ln�d�������Ĵ��$N|Df����$J|d~�����J|���\~����<^�|�����4Z����Tr�l����������̼��F|���\z���������t�����,V����Lr�l�����Dj�����<b�������������@�pH,�Ȥrh�@��賬Z�جv;dEP�pu�q��z����0�����U���Tx��v9}|�a4���,+U'�p�8��v~849I�}�(1��gpcafG���;��X��5$�b��`/��J��bG�(��p
��F*Ԗ(F�o� ��B-㦊F90���zο�.G��0
�w$:~��p-
�Ɗ��DC�["�8�fc�D?��Ё㍀���f
���0�@���`̛I\܂�@#�ΟCr� &AC�H��
p ��I�"Hq��YQ�j��b[�&l:A�G7��T{�e0G���R�uh�cAP�b[�����5`yO@�l1�*���2��U��,�)�nPlଌ��aB����XW�b���E�yݐ1�
���nm��2T�!���УK�N����سk�ν����Ë7�`�5]a-(~>KO�j�m�BI�
^ү2#�'�-1�N�� .��A!Am~��� (�
sM(��H��C�PX?H���'��E�sT�4dv
�-!
h(0�#4|q�x�
xPh��PF)�TVi�Xf��\v��`�)�d�i�h���F
`���(�
xLi��A�-ڇ���n���P`�5"�I`&�W5�؟��Ӣ����'�N����=��`d 6ڂ��
�E
Di�J5��X�9�`gpp�)h���k6���F+��Vk�^!� <,���Ft���Tv����4^�������t�����,R����Ln�d�������Ĵ��$N|Df����$J|d~�����J|���\~����<^�|�����4Z����Tr�l����������̼��F|���\z���������t�����,V����Lr�l�����Dj�����<b�������������@�pH,�Ȥ�غ�"(���Z�جv;|@(���q��z���aȼ���K��=��rx��G-)�J
|p}a4����`
Jzo{�(��k1��n#�Fq�q�-��[-��H|��+��W��nG"�ͯ��I��2G#Ǡ���Eξp�E4��8��B���/F7_�(��3��oʌ��
V��y��#.@'��}�����X(j������4�%�$�i�
h1s.�!�!��8t
UB�A0:���qaA�#4��R��8�F#��1
.��@ËrZ�5�u���p��|����F@k7f��mS�ՙ`[F1)�l��A�$-���d���v9��q�Q���GI���[�l�8*��6��B1��m�6�3#���ȓ+_μ���УK�N��u�7��QC��)р�UL�S��1��
����L�@|5-"�>f���>�2�g�B�30�����X���p!54K�fQ�f����L(�#b�Ё����7�v|��Dr��H6f��_���<=i�H&��L6��PF)�TVi�Xf��\v�`+@�W��@a���^��w`1D�B5G�B�J��H�`l�d�Af�8Lh�M6p�8!59Ah�$��
�4���Q(��L:0<���O��BK����1نD(�0%�}��V"p�#�0���+��k��&���6���F+��Vk�!� <,���Ft���Tv����4^�������t�����,R����Ln�d�������Ĵ��$N|Df����$J|d~�����J|���\~����<^�|�����4Z����Tr�l����������̼��F|���\z���������t�����,V����Lr�l�����Dj�����<b�������������@�pH,�Ȥ2�c1j����Z�جv;\��p�-���j
�b��F#M��?��(p���p#v��I"�l8J7
`m��(�����I4�����t'��mHpp�n9��\���nG_���6��X���a.��1��K��o(Ga�s��F����D»m8��D0֜�TE��(4�8��xP�lA�~.�����d�"8o@�r�
$iK�h
}���$*P@��mɎ
*���@"d� * �t�<o2�����MC6T�b��H��$0z� +%5=B
)nT�7b�3JZ�@0ql���1pK�Ț|�Pd�U�n٨�u���.;�-�uO�U^%rU��`�m�`�$=�l���rm>����>�V�m�"�$e�mA��uN����ȓ+_μ���!c<�p
��Ѝ)�+��DՆ�L"��!E
G�p_�"P8���q`V
t��Q�fK`���
�xK=���f�A�fzQx�
�Ҟ�\�v�
'�ȅC�����e4��>߱x5�R�P2�a�,��@)�Di�H&��L6��PF)�T���
UQ�RÊQڰ�75��d�,�B%6 _h�0�$#.�X�^�\M�W'089K|�8��9�d�d
�-R��%d�NrH^%m.�AT���x`^��H`JY��
EeY�*무�j뭸�뮼���+��k��&���6���!� ;,���Ft���Tv����4^�����t�����,R����Ln�d��������$N|���Df����$J|d~�����J|���\~����<^�|�����4Z����Tr�l�����������F|���\z���������t�����,V����Lr�l�����Dj�����<b���������������pH,�Ȥr)\!P��I�Z�ج5TxO�GK.���H�1�Tux.�����ԡ�GSJr��rz��K9�`^I8�_�6���(^��'`*H,�~�`��z0���78G���7��f���'�F�út
��X
ɐ�#G�t�+��L+��~�F�����I׳`G2���4�E6��^�F�tB��������;C�2�1#�J.��wb��]�!Q� ���@�d��}�bz)Q�<$����VA��d�U#��ēk�0>�
I/��*+t�@a���<��4f�@y_r0��G���!i�)�?(,W�*E>ES�a!%�%x��];Cn���h)���Rl��;�jr��ʓy�o
rN�
�p��N@0P�q9F�`�����ȓ+_μ���T�y^�B��sbܡ~o��`b(���EQ�o�%��d�z��ಮ@�;��<�U~Nި"V
�q��F�
W�z_Mr,��"8P���L�HS�AB��x����������x4��e'���"(��G��
:����Di�H&��L6��PF)�TVi�q+�
PܕF�p�.�p�C�d^��
����~�Ve� dH�S���5�Q�`�}8%�A��甏]���Rb
�#DU�M��v�'p���8
�%��������8D�J��(�i�����+��k��&���6���F+��Vk��f���v���+��!� ;,���Ft������Tv�4^�������t�����,R����d��Ln������Ĵ��$N|���$J|d~�Dj�����J|������\~�<^�|�����4Z����l��Tr���������̼��F|������\z�������t�����,V����l��Lr��������<b���������������pH,�Ȥry$1�Шtm}h4�T��P�ŋJ.���C�F�ϖ�MG�l�^���Q~J
#~mN{��Lt��(�I2������C���H���������m-G2��~.��f$k���4G0���7��[u��"F8�Ǫ��O'ȸG��m0��I/��_�F0���-**xI-��)G���^'�#�Y�P�2�۱�P�тEE0T����$̸�3D+@�-S�ZHp����zjDP���95�D���D��(4�0?���
���1�ƍ�N5�Ca�Q�r"H!�
�kYư
1ZL�;�a$^�b�c!�:B�����(R�c�1Ź�u��!�1-�������-㸐Q��-��!bł�sN�����l�80����
��K��Y6��Z�Y��G'���tH�&�����>ۯ��v�_B������bȴ`+5(Qc�B@|#�!U���a�aQ�J�DDGe~"����+/��4pb/6�Еk3��"31��<���@)�Di�H&��p1�pK���Б�xE�D
��i�D��E�w�`�Zj��@��O�F�@�,��Y����~
Q�d�SC�C�p��Y� _<#%����v'����{��Q�;��!*��*D؎�B�0�U��/8
�oP���+��k��&���6���F+��Vk��f���v���+��k� 覫��!� 9,���Ft������Tv�4^�����t��,R������d��Ln���Ą��$N|���$J|d~�Dj�������܌��J|������\~�<^����4Z�������l��Tr������̄��F|������\z������|��,V������l��Lr��������<b�������������pH,�Ȥr�l:�Ш��!�����43wJ.����n�B�Ģ
dZ��~_\�l�kK�ml)|��J4�l�I%������u��u*H4t��1��|�t�l/G-�����e0���3G���-��QǴ�8F+�Ո2��M3��k�E ݹuڮ &W-�H
�ϲ�E4ºk�$���)� C0YkN�2�B��\��""
��(*�$8:<qA"�#g�2�J�4�Ԁ�ll&��0�1�/#�;�A����`���#�I�l`0��%G�Y]��j�Y����
Op��c �2.f�k��
(Pp��||�
N�u.��/1�U�Ő����N�Ș�`��*j��*O"����u-(m�6N�
p
A�۸�x@�N�?sG����/������@���}���(���
K��=�d���(o�RZ1��!=���H�+���p#�C��6d�$'�p�9�pyj#�SktPW���`
@�q(QPA6�,���0�(�4�h�8��6��B<2Rm
�A=A�Q�51�I�R`�P@%�ϕO�
r�ą�ᙘI|0�Sl���
�U͛J�"�*�щ���a��H�F�<�Z�
� �R��Et`�(-�y��&1M�h��5
6�0Cr���ꪬ��꫰�*무�j뭸�뮼���+��k��&���6���F+��Vk��f���v�J!� :,���Ft���Tv����4^�����t��,R����Ln����������d��$N|Df�������$J|�J|���d~����<^�|��4Z����Tr������������l�����F|���\z���������t��,V����Lr���ܤ��l��Dj�����<b�������������@�pH,��d��9RʨtJ�Z�Ә�5l�xL._�.��~�����L��o��z���Dz,sv��Iz^�jaQ#lj���-\{�lQ�z���u%l���&I)��k0��c���z1Iy�j�3��!+'+J
��]'H£��Ɨ7�\oG��{�G+�Ҽ�ۇ*i�l3*G����H'�ڭ���V�^�#�@��V����w���u��d]�v�H���F.�0��
��7�ܘᒕ%
[�2�Oe��{(z�qD��],D���0|����dG$7,8dC^jR�!��N�*���D�����ք��d�
�H�
��%�[F���^�Ҁ�
�.�41'k�R�$u�COiz@Ѩ�������c��Ռ�7{h#�3%.��Ж�0��8Q��s!8(~)�<7H�^���:��F��>Pu
�\@��/z�@�����bܬ�װ�V��'�z��㑀R�M'�
��y���xY�`v�Q(��b��p��x�@+
��Tp� dv�0�(�4�h�8��<rG
k\�A��x���PiGt�]p��eH��-�D�7t��>
l9FI�
��bVer�M�&
.¦��Y J�dB�vNaNU��g0|�J�VA�X��h�yL�Ra�&ԳV:�a��@��N�(�@�
$(V꫰�*무�j뭸�뮼���+��k��&���6���F+��Vk��f���v���+��k��[i!� 9,���Ft������Tv�4^�������t�����,R����d��Ln���Ĵ�Ԅ��$N|Df�$J|d~��������J|������\~�<^�|�����4Z����l�������̌�����F|������\z�������t�����,V����l��Tr���̄��Dj��<b������������pH,�Ȥ2��h�eI�Z�جvh�`I�-���%�0��n�*M�۩����h7w��u)}|n�'X
(22��v
p��.�T+ `&0/��f'�~�n
T/~|*��nJ,���K���8��
�o5H0}��&2K��m��u"1�}6�E$��{�I%��$�u���G8؊�h��@�}l�K�!�;��`�`?%42tCp�}��p�@�����C/��e2��Z�L[b#Q��e�`f �Q��DN`ș@@9��Zf%���XA
H�<0�pX�[\�f*�-^^�a�(s�fQ�nm�S��K�S/��uz�E�m2��'�6,��X��A��eBh$
F'g
����h3:����0h���s�'�
@c��چQ�9��K<$>
�k�؇�x,�W��)��D�s�a
c����|���An�_C@x����6����5��&AY��
h��D� )Mh_E��P���ɐ1D�dt����݉�1�4�h�8��<jX�!�C��H�l�3�gd%�@
Y=)H�ds������e�0�e��_c��ŀk��fu�wH�oVe�O��X�2QG{�1C�']h�C���j
�{0��5�%�yMZF�
������@ܹ��|���ꪬ��꫰�*무�j뭸�뮼���+��k��&���6���F+��Vk��f���v���+��k�覫n�A!� ;,���Ft���Tv����4^�����t�����,R����Ln�d��������$N|���Df����$J|d~�����J|���\~����<^�|�����4Z����Tr�l�����������F|���\z���������t�����,V����Lr�l�����Dj�����<b���������������pH,�Ȥrh�@'�賬Z�جv;dAN�p�t�q��z����0h����U���Rx��v8}|�a���,*U&�p�7��vba78I~c{~0Z6*&*t���}fG���:X�T����Q$����.W��c��u��G�'��`
V-����k)p�qF�o� V�n��h+���YT�z�.XY0�h������(�xѠ����Np�ȅ/g
ɱ�
rU4L�5��
-�H�!�.����r�B�Yj�F��n�`
�Lw�E���Ƣ'jhғl߉~\��DyH��_N��Z�+��IT��'r��b�yw%����T�on�E�BF\��D
p脌��j<���@Zߐ�0��"���C��#f�đ++/YaĈ��mӧ9���KOb���8[�k72#������3U��{j����+��
8��ۏQ~:ٹ�dҟv8�6�>U
���9�G
��Q8n�Z�¹pP2�t��x0p�
1�؇(���,���G���20r��z�@@P�!�|�� 䁑@�s�1�H6י����8
�;'x�� �l��H_
�u�DY��F� '�Yss�����Ԁ-K�G^E��'
��� zG����x<@�!��
5����v�駠�*ꨤ�jꩨ��ꪬ��꫰�*무�j뭸�뮼���+��k��&���6���F+��Vk��f���v���+��2!� :,���Ft������Tv�4^�������t�����,R����Ln�������d�����$N|Df����$J|����J|������d~�<^�|�����4Z�����������l�����F|������\z�������t�����,V����Tr����l��Dj�����<b�������������@�pH,�ȤYˤf�EC��Z�جv;T%`@L
q��z)���YeM�۫��X��F+'7V5.}{zc%��v�cU1�n||��i/p�$�I$n����Y+�pbJc��zT��K��oI3��}��G��I��&&+X
3),-�j�}z�G��6W5��c3�g����;��Z�n�@�ò~Zdcg���0�!�Jɍa�J��
P�B��4�t:�kFI,P1|SC ��K��؈i�FJTb�ݬR#�DO��
��#���
�R+��t�G��Tp�P�P+�Q>aL��v��GH�=��0^kiH/�t����"I�{��u�;]1��X��Q%4dh�NZo�Țv����1����@pC�A7����5
ciO.�#������{��3��`���w��D@�~)t>�}"@�<5�!�}�g�s��7�<a�W�t`��-�_�edB.���$�`��)p�$4`�(���,��(��f�(]|��$�X�yKe>BB�)�'I����1)M��gBbR��aP�@@����K{��
����9��$��n�q�<)EW'%9��J�{
r�CT���P�~ !J�Օ�����`*�QZ�1tpH4��*ꨤ�jꩨ��ꪬ��꫰�*무�j뭸�뮼���+��k��&���6���F+��Vk��f���v���+��k�
覫��H!� :,���Ft���Tv����4^�����t�����,R����Ln�d����Ԅ��$N|���Df����$J|d~�����J|���\~����<^�|�����4Z����Tr�l�����������F|���\z���������t�����,V����Lr�l�����Dj�����<b�������������@�pH,�Ȥr9�"�R�I�Z�ج����A�-��h��5���&M�c=��(P�*
om�&v��E!�p6U#3���#��u+�n�T���_��f%^p�L������W5��o&Kl�����L��`,K��n��H��&&K��o��Dl���o
J(��`3��.��dI�`���l�#gIۚ�0�5�j���$AJ��נ�L�+�
(i�e�v�|u��a��
�(X��E���$�@�J#4����
'D08��L1,ȇ����%��ȯM�9�$h�\$H��H�p(�hXn@B{oH
�*]�$*Z
(�Q�_�0p�"�D�����L��ja�Y ��ހJEXa:����W
s*��
�; ��E�"<p���Eh&U7S��"/³�R/S)P���t$8{�KV�Fǿ90���T�C��#7X�7�D5MC�}H�@@?L��
�Q�H*�B |֨A�D[� �(�$�P@
�H�P����bl#�V
T5cf#|:��Z�yr���J�o���<�]�
O��m�(X%.d�ȇ[�y�8�`�xԆ�g�xo��f.
|ä�͙�E����ɀ�UQo������4��3��^�Vj饘f�馜v�駠�*ꨤ�jꩨ��ꪬ��꫰�*무�j뭸�뮼���+��k��&���6���F+��Vk��f���v���+�䖻i!� 9,���Ft���Tv����4^�������t�����,R�Ln�������d�����$N|���Df�$J|d~�����쌢����J|���\~����<^�|�����4Z�Tr����������F|���\z���������t�����,V�Lr����l�����Dj�����<b���������������pH,�Ȥr�l:�Шtʤ!4�nj��z��Ȫ�p�Z��T���)�v�K����
(r��C7~jvjP1��~��_&k�%v�M4��%0��S/���56M���w�������%M
�����J®���K*���.��EЭ�w5L/�k�%2��9��vL��j��3�ы�L-ٶx���5��Q�Q,�}y#B
J.��u�I�����K ��!@�c�D�
bG)"�`7Ap�d��@^NI�ώ�#2��`��r��"4J�}��1�������`���U��H@�$�(�)��Җ�qj��L�݉�0��%2a�
�]��J�?�7N��E44_z�8p \��p`{����)�H}D���~p�2���`�F�F
��
5J�I \�
e�"�D�@�5.D4'��%����Y`{���9��
7R�5/C����+�>�k�����M��
Ƞ�u�D�ݱH�T ��`�X�� M�I4��
6��m�i@��!�v).�9�Q!h�c52���%� �E�@[��1[��V�7AA�!�dG
V^)P^\v�bSFS���� X-%�&*6�d/���
i'���v�bYi��g��5(h*�@b
$y�1|=*餔Vj饘f�馜v�駠�*ꨤ�jꩨ��ꪬ��꫰�*무�j뭸�뮼���+��k��&���6���F+��Vk��f���v���+�O!� 9,���Ft������Tv����<^����t��,R�������d��������Dj����$N|���$J|d~��Tr����J|������\~�|��4Z����l�����������Lr����F|������\z����<b����t��,V�������l�����Ln������������������pH,�Ȥr�l:�ШԨ:���b��z��@�ȳ�׆z��p(aF6����FZ�-nq��B6u�w&.4P#x���o2���O��x��S6�xg��K���[��M��g�L)��f��J#���L4��d{��D���&-L�����8�Ɍ�K'�e�7�o*((5L*��d�J�����\jX@0i�%Tus�D�u
�R�
�3B$I��9�0�
� �@(�*�F$2��Z��Gl4S:�!)��sH
D�f��m�0OgM���0U�F �A���N��
�O��&��B0aj�6y��!�in,X��C>�L��7�a%�L"�p�1�;
�uL���M�Rn��^�a�Cs�9+nh�!�4c����6,\n�@���*d�H�����˱p�(�|`�@�o�]B�,�g�.%.lrq�t/*��,6��x�]���V�
%��k^���lc'�ҏ6�=�B7
��Q)d{.�@|J��D=��N�I��pT�4�TTg��(f�]L@@"u�xrb8�3�dI8dҊ3&QAG#^��*@�d&��#c؈CN��*&4��
��DN(� 0^y7u`"7`��
��i�$��cM_���G��Pu,�����I�wz��'hF*餔Vj饘f�馜v�駠�*ꨤ�jꩨ��ꪬ��꫰�*무�j뭸�뮼���+��k��&���6���F+��Vk��f���v���+��^!� :,���Ft���Tv����4^����t��������,R�d�����Ln������Ĵ��$N|Df����$J|d~�����J|���\~�<^�|�����4Z�l����섞������̼��F|���\z������t��������,V�l�����Tr����Dj�����<b�������������@�pH,��dҢ���rJ�Z�����&p�Ӛ��4�f���`�������Q�͏�
qo�n2���f,p_q}���J�&p�`)g,3
-��S7�����Y]�q��E�|�Y3�|���Y����Y" 3�T9���0X��`
�W#
̑RJھ�`3Y�`��Sp� Vh%���K
I�Ν8%@�{^P��P�,*�E�b^�;��G��d�H�DI�G,���J��l�0Ӣ�=8pa�)�W�8Q��DF������ĥ�ѧ]�|�yV.^�"J[�i�>�A8�G]""�-�Y
£h7� ��)�:ޤ��b"�r��@����i���Шu8��O��ԩ�������s����06�����(^���,��=���]DPxv�ԝ����"4�x˔_�i0��#k��W|��P4�A=~\2����Y-�W(W�5�w�`�X�rA���$��:\0C�`�p���P�}*�2�@|̠B���ė��q������0�Q)�~�A�J��Bc˘�]�w��$�ai�Lf�B��ih�'��FM��j�7R!0©E��ҥ�i� i.(�g50@P3h��e�k��QC��uF�馜v�駠�*ꨤ�jꩨ��ꪬ��꫰�*무�j뭸�뮼���+��k��&���6���F+��Vk��f���V!� 9,���Ft���Tv����4^�����t��,R����Ln����d�����$N|���Df�������$J|d~���J|���\~����<^�|��4Z����Tr����l�����������F|���\z���������t��,V����Lr����l��������Dj�����<b������������pH,�Ȥrh�:�Y��Z�جv;T=J�p�t�q��zi���p'����Յ��Nx��v7}|�a���Y$�p�6���G~c{~-������8��I"*&#*
Yb�pq/��C7�#"W��}� ��)�%o3tUƣcv)��V'�}.�K
,�|~#j/o.7�H��%�U*��,�g"0���@C��
�l`�
[�l�Ҡ�8
2��!M��`���ig�q�`����g%EoP�������ԫ�Aވ����h(�,��x����,�G�-D(�E� ACe3.b
�
G=g��1�d-NU�9��a#�s
1���F��B��W�KLI��"���rJt��Q�K�� $9������^(8�Є�Y�v����(��
!l�`B��{�0S�z��o�t�^���Zι�m@RfS�� w��lpz�z�^��U����7H��@���Pp�x�AW��I_n�YPנA~�Bxʃ��8�X�V`� ��(���,���0�(�4�h�8��<���@)�D�CC�0�8|X�"8P-��$��q]�D�I��Y=,8I��ІU�k�Rc��xE�w1ASS�A@�C4�ZB���M��}jF�*zNYm���B�PN�n$ʩ tUMjrzi��AH�&1���j뭸�뮼���+��k��&���6���F+��Vk��f���v���+n�A!� :,���Ft������Tv�4^�������t�����,R����d��Ln���Ĵ�Ԅ��$N|Df����$J|d~����Ԍ��J|������\~�<^����4Z����l�������̄�����F|������\z�������|�����,V����l��Tr����Dj�����<b�������������@�pH,�ȤYӤfD��Z�جv;T%`@q��zI���eM�۫��X��u.|z�&%���Y2p�||��\!3.'sX0{�}b
��Un�2X��{T��F+�{,W��}p`��B7�¢c�Ụz+�Ə��`�K��6�ƚ��*U+��o��̢!V��7�(���\���D�Rm���@+7X�caBT5�̓S���0q��(Yd���r-ؼ�f*���� 3%oH@���L��0��ia|��Q��OW�g���:hd����lt��������F 3f`��_6�
Ōh&��EAAHyP]�UZ���a�!�P�����Q�S!������%�5
*7�4v�Pò�`�YI}}'A]��g:9�s�I�lc2��_m�Տ����;ނa�
���U�^g!��L�+iq��,2�4����E9#� /�� ǵ�
K2��N9L
,���!f��h�(���,���0�(�4�h�8��<���@)�Di�H&��L6��PF)�TVi�Xf��\v��`�)�d�9eoY�p�,&d0%R��Sn��U�@Ys�E Bꡄ������Q�s�29��kz�eM��i֓�5���1ق`ٸ�d����eMF
)>�B!6A���І� R��I�p��9��6pP@Nf&���6���F+��Vk��f�-�A!� <,���Ft���Tv����4^�������t�����,R����Ln�d�������Ĵ��$N|Df����$J|d~�����J|���\~����<^�|�����4Z����Tr�l����������̼��F|���\z���������t�����,V����Lr�l�����Dj�����<b�������������@�pH,�Ȥr�l:�Шt�$A�CIA�z�`%�@�˂Wx�n+s�y^���k˥B��^%f�r�(;x�T4 rt-S
���g0$��N�fg(R��sfv��H���89Q������D
t��(P-�����,��s8P6����ʺq���6O9��2*���O2����*�͠jO��f����q�R#��
�Vap���5("�3�F�M9p�k`��d��X`��a��4����:@0�낶9 "}���M]42�����+�ܸPC�DFM��!QUQ�6!pc��Z�ɱ��>ŊMq�^E�j-Tx�\�&���q7숆�P���7���z��Y�nô�v5��hd�6�2��Ȱ��.��,� #@�2@(�O�Z7�qn��.�С�qZw� {RL��[gR����_
0��C�.ӗ����&���P�t��.
���~���)ѯ�
���X�I�)�en2�+� � +��%
��&�5�)�\��
i^��8D��,�T�0�(�4�h�8��<���@)�Di�H&��L6��PF)�TVi�Xf��\v��`�)�d�i�h���l���p�)�t�i'�7
B�0sR�҆`���X2�H��0��$�R��-y��*=���f4��<ʵ٨7)w��@j��G.�G1�s�ْ��W�>��>8&%����SޠC
f$��lp!� 9,���Ft������\z�<^�����t��,R�������l��Dj���Ą��$N|������$J|d����Tr����J|������d~�Df����4Z�������t��Lr������̌�����F|������\~�<b����|��,V�������l��Ln���̄����������������pH,�Ȥr�l:�ШtJ�Z��hv�$ٰx�4N4:�"�*��{~��x4"'bw+#t�O(xwz'h)Xvy�}��H/w��+7V1��i���B-���'Uj��,�����1T6���x-��,���+T����džѵ�T�ĝՆ6�z�'T���8�+е���x0�t%�h���i�.O�}nX@�MDޖ�نp�e�
"�U�4*ҁ��- �h(�Qj"�$�ე�LҐ�E��4p�4r��;bb#
��h`��DC����XYsࠡb��!��j�& 1��r���m�1�yD���*
JD��pX���8��V�*2-07���WQ
��FM��W3��P.��`[-�n���=4
1:�%μ���УK�N����سk�ν���HL8�+�9�^�y10�SA��,)��s꾕�ѣMh�Aa�I�0C�S$�'0(�QU���Q@Вd�B�^�u��e��"��N̰X)!���zt���E22�MD��G'��c5��
)
���()�TVi�Xf��\v��`�)�d�i�h���l���p�)�t�i�x��|��矀*蠄j衈&�袌6�(�A!� ;,���Ft���Tv����4^�����t��,R����Ln����d��������$N|Df�������$J|d~��J|���\~����<^�|��4Z����Tr����l����������̼��F|���\z���������t��,V����Lr����l�����Dj�����<b���������������pH,�Ȥr�l:�ШԸB�h
�b��z�N�@�Ȋx�n;
��l6C6����'.5{��Q3ugt���G8���u/����et�y *��%���fl87�"j�����-k4�d,��:���'`
Ľ�&�{+���[_����yŭ.`����n �`��r��E+2����(%��
F��m� i�������5
�=T!�Bjg(tkb#��E'D�a#�����j6�A��1V�頍���jUG��!*�R�Ab�_�>�Ca
��
w&��82{e��'�����������#�l
�غao1�g�Ԙс
�q�-�ip��H:H�C̠�Ԁ�4�Ш���*E��;t��)��6:�4sB��۰Ĉa���ȓ+_μ���УK�N����سk�ν����ËO�����ӫ_Ͼ�����˟O��������Ͽ���(��
3�c��_��o��
eg����\~1l#��w�Z;YV�m��]�}3f�p_��s�}6��cS��0����}��� ����P��}*���4���
������ـ0�@a+��l���p�)�t�i�x��|��矀*蠄j衈�!� :,���Ft���Tv����4^�����t�����,R����d��Dj�������$N|������$J|d~�Df�����J|���\~����<^�|�����4Z����l��Lr����������F|���\z���������t�����,V����l��Ln��������<b�������������@�pH,�ȤR؈l�ǵ�Z�جv;T���*p��z9���D[��+��m$y��v7pr�a(���Yqc�����G8�}�0���1r~�o9�����}���x��~`��k9��� ��9-T[7��~8á
c�![��`5Ә* �q �Zݓ'�+/�/+[,�/*��<h�e��ph��Qv�Nd�а"��:�G"
z�裑��
p`��7ʹ`�ȺRa6����7ji�q����$H�&(�(�!
J�Ɵ'�Q@_@S3�pu�D��!e�C�'.o����� U2�;T���u�*�c����ѡ�[0�e�[Ld�L�'�R�����p�
lh�kߎ8�O��
±�w�[ٳ�aC��sN����ȓ+_μ���УK�N����سk�ν����ËO�����ӫ_Ͼ�����˟O��������Ͽ���(�h�&��6��F(�Vh�"��w@�(
_)\����cb���
�\��uV�$�wHL�
�
��A�
�T�j���>)�dz�� D���U�^T-uX�5�Nd�՞^y�b|0��Qfq͗���`C"f�`!� 6,���Ft������Tv�4^�������t�����,R�Ln������Ԅ��$N|���Df����$J|l������J|���<^�|�����4Z�Tr�����������F|������\z�������t�����,V�Lr���섞����Dj����l���<b����������@�pH,�Ȥri��V�I�Z�ج�SD^��-��h���
{���|N�"��<S��n`mx0��W&n��`q���Fx�z3���3���4��6&#
&i���'��4 o^
g/z�����'�y/�e(��_/Œ%��+�Z$��`|ӈϏ"
f(�o�*���*�Y*��_"��i`��
����B�̙�1X� �1�3B�
L�(���FDc�2�K%>r���#�d KP����A�It���J]JCC�/1�--Z㠛&�j¢ƈ$��K��ٳhӪ]˶��9H
��m�]�P�g��:���t4(���8sa�D9�Y�����\�#�}�
p��@r�o���th�9�}�ul<�A�������|g�$~����1�S!�-�OOc�
1\H�N�����ӫ_Ͼ�����˟O��������Ͽ���(�h�&��6��F(�Vh�f��v��
�(�$�h�(���,���0j!� 6,���Ft������Tv����<^����t��,R����d����Ԥ��Dj�$N|������$J|d~�����J|������\~�Df���Ԅ��4Z����l�������ܬ��Tr�F|������\z����<b����|��,V����l����ܤ��Ln��������������@�pH,�Ȥr�l:�ШtJ�Z�ج1�p�EK.���`Mb?`��@�x6�4�
zw���D!^,acd%�mk�)5�j�_pZyx�w*�}(��$+Y�����r5��yw�V!�z��q0���W������f^��x�V3�ǔ��d�τX)��w$�d&�Dž1X֫�,��Y��w�,8��:v�����LO9,-���!!���1�eF�{�,b1��}Z^d8G"��Аq���8��UI�o9�&A1� B�*���f(�J��իX�j�ʵ�ׯ`ÊK��ٳhӪ]˶�۷p�ʝK��ݻx���˷�߿�L���È+^̸���pC����(G�`�R�<�����(�#d!���fPB�c-7���Y���n���BÂy���7!>�QĎ:�q�R,�`A#u��5����0P�N4
˟O��������Ͽ���(�h�&��6��F(�Vh�f��!� 8,���Ft������Tv�4^�������t�����,R����Dj���Ĵ�Ԅ��$N|d�����$J|Df�����J|������d~�<^�|�����4Z����Lr������̄�����F|������\z�������t�����,V����Ln����l������<b�������������@�pH,�Ȥr�l:�ШtJ�Z�X\�"Pe����HJ�V��`�M?�~�@�iuh4y|��D!�v�g���0v�����o/���h1�!)$
�b���{*fv3�X���z,��4�V!�u�g�oʕ%-^�T˻i(o3�����S��h0o�h,�R.��o4��g�R�Y*��
O��-�'eD�J����
M�R
��Cǃ=3�U��q�
1b���gc#�g"��y��6e�
��9d^�=K-����,��
L�N�J�l�ԫ'S��z��ׯ`ÊK��ٳhӪ]˶�۷p�ʝK��ݻx���˷�߿�L���È+^̸��ǐ#K�L���˘3k�̹��ϠC�M���ӨS�^ͺ��װc˞M���۸s�kƃ2]6�)����XfG�d �p
y�#�H!�yɹcs��m�!�3�8�@R��ajs�Q�h�͊�1�������O�#�
�sr��`g�W�e�,�ۇ
�(�kA!� 3,���Ft������\z����4^����t�����,R���������Ln����l��$N|Df������$J|���d��������4Z��������������J|������\~����<b����|�����,V�������Tr����t��Dj������������pH,��$�#(��ШtJ�Z�)H�
]XװxL���ht�Sn���Wz�E��<�Η�a1|t0���J�|O����t+����s"��y"�i��o2�h��d[�1��a.����T&����R�
��Prt(��J+�+�������T
"+���+*s ��'0��
�����X�Je"�)
��<2��_B�1�IH*� ��x U�#9X'�@�K�Dm< )F�MX^r@��>��Ա[���q",,�I��ѣH�*]ʴ�ӧP�J�J��իX�j�ʵ�ׯ`ÊK��ٳhӪ]˶�۷p�ʝK��ݻx���˷�߿�L���È+^̸��ǐ#K�L���˘3k�̹��ϛ�!� ,,���Ft������Tv�����t��4^����d��Lr������܄��,R���Df����\~���������l����쌢�4Z�������\z������t��<b����l��Tr���܄��,V��Dj��������@�pH,�Ȥ��
,�Ш��Z�جv;�h�0`@����2#n4+�|N�~����+'xn~��Yw�m!���G
�nq����mT��~��a��u�a���h����g�����Z�{��W&����J�m)���GP'����������������������������������������
H�����!���� ��E�[�@X�h��ETp�4$ �0fTQ1� ^K�#
$ʙ"L�����p�S9A6� ��Jd�N�"�R!2Mx*�E*P��@�A��
a�C�hӪ]˶�۷p�ʝK��ݻx���˷�߿�L���È+^̸��ǐ#K�L���˘3k�̹��CA!� 4,���Ft���Tv����4^������t��,R������܄��Ln��$N|���d��������$J|���J|������Dj�����|��4Z���섞�Tr����l��F|���d~����<b����t��,V�������Lr����l������������������@�pH,�Ȥr�l:�ШtJ�Z��l2�y�J3�xLVj0�������u�Q�w�
�uxk�"
��By�yi��}x�v""
��c���"��X'���k2��T���!��P���v��L���k���H,Ǣw1��E+�����B���&���!�����)�"���+#2#���
H����*\Ȱ�Ç#J�H��ŋ3j�ȱ�Ǐ
C�I��ɓ(S�\ɲ�˗0cʜI��͛8s��ɳ��ϟ@�
J��ѣH�*]ʴ�ӧP�J�J��իMX0BA��'L�Z��.�(!���U̾L`��0]��g������REں�H�,���#.�5>���w���y��3_.��Q�ܹ�/[�ŔB�{טPA��c#\�,``��X�N����ȓ+_�\H!� #,���Ft������Tv����4^�t���������$N|���$J|������Ln�J|���l�����Df�|�����F|������d~����<b�t�������������������pH,�Ȥr�l:�ШtJ�Z�جv��z��xL.���z�n���x5����ՈDq
x�M}}���G��~�!��#���������������}�w
~���
�r�����q�����o�����n
|��� �o�ʼn�o Ĝ �o��
�p���qv�
H����*\Ȱ�Ç#J�H��ŋ3j�ȱ�Ǐ
C�I��ɓ(S�\ɲ�˗0cʜI��͛8s��ɳ�3ϟ@�
J��ѣH�*]ʴ�ӧP�J�J��իX�j�ʵ�ׯ`ÊK��ٳh9!� #,���Ft������Lr����4Z����l�����,R����$J|���d��������J|��̼��Dj�t�����F|������Tv����<^�t����ܬ�����l�����������pH,�Ȥr�l:�ШtJ�Z�جv��z��xL.���z�n���|N���~����������������������������������Z ���T���
�S!�����N���
�O�����K����K�Ѭ��J������H���H����H
�� D�;"
��\� `���I$����$��@�"�$
�汤ɓ(S�\ɲ�˗0cʜI��͛8s��ɳ�2ϟ@�
J��ѣH�*]ʴ�ӧP�J�J��իX�j�ʵ�ׯ`ÊK��ٳ�!� !,���Ft������Tv����<b����t�����,V�����$N|��Ԅ��$J|���d���Tr�������F|���������Dj����|��������l��������pH,�Ȥr�l:�ШtJ�Z�جv��z��xL.���z�n���|N���~�������������������������������������������������������������������������������������D
� �������������������q��ۂW���+���w��v�q��
�D��,�U@aD`]�X�ހX&�<�R���I<8K�)o�4�����M[ʴ�ӧP�J�J��իX�j�ʵ�ׯÂ;PK���[�#o,,assets/images/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[�#o,,assets/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[Yw+))assets/js/admin.jsnu�[���/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage admin.js
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
/* JS Document */
PK���[�#o,,assets/js/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���["���� �
config.xmlnu�[���<?xml version="1.0"
encoding="utf-8"?>
<config>
<fieldset
addrulepath="/administrator/components/com_molation/models/rules"
addfieldpath="/administrator/components/com_molation/models/fields"
name="global_config"
label="COM_MOLATION_CONFIG_GLOBAL_LABEL"
description="COM_MOLATION_CONFIG_GLOBAL_DESC">
<field
name="check_in"
type="list"
default="0"
label="COM_MOLATION_CONFIG_CHECK_TIMER_LABEL"
description="COM_MOLATION_CONFIG_CHECK_TIMER_DESC">
<option
value="-5
hours">COM_MOLATION_CONFIG_CHECK_TIMER_OPTION_ONE</option>
<option
value="-12
hours">COM_MOLATION_CONFIG_CHECK_TIMER_OPTION_TWO</option>
<option
value="-1
day">COM_MOLATION_CONFIG_CHECK_TIMER_OPTION_THREE</option>
<option
value="-2
day">COM_MOLATION_CONFIG_CHECK_TIMER_OPTION_FOUR</option>
<option
value="-1
week">COM_MOLATION_CONFIG_CHECK_TIMER_OPTION_FIVE</option>
<option
value="0">COM_MOLATION_CONFIG_CHECK_TIMER_OPTION_SIX</option>
</field>
<field type="spacer" name="spacerAuthor"
hr="true" />
<field
name="save_history"
type="radio"
class="btn-group btn-group-yesno"
default="1"
label="JGLOBAL_SAVE_HISTORY_OPTIONS_LABEL"
description="JGLOBAL_SAVE_HISTORY_OPTIONS_DESC"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field
name="history_limit"
type="text"
filter="integer"
label="JGLOBAL_HISTORY_LIMIT_OPTIONS_LABEL"
description="JGLOBAL_HISTORY_LIMIT_OPTIONS_DESC"
default="10"
/>
<field type="spacer" name="spacerHistory"
hr="true" />
<field name="autorTitle"
type="spacer"
label="COM_MOLATION_CONFIG_AUTHOR"
/>
<field name="autorName"
type="text"
label="COM_MOLATION_CONFIG_AUTHOR_NAME_LABEL"
description="COM_MOLATION_CONFIG_AUTHOR_NAME_DESC"
size="60"
default="farhad shahbazi"
readonly="true"
class="readonly"
/>
<field name="autorEmail"
type="email"
label="COM_MOLATION_CONFIG_AUTHOR_EMAIL_LABEL"
description="COM_MOLATION_CONFIG_AUTHOR_EMAIL_DESC"
size="60"
default="farhad.shahbazi0010@gmail.com"
readonly="true"
class="readonly"
/>
</fieldset>
<fieldset
name="permissions"
label="JCONFIG_PERMISSIONS_LABEL"
description="JCONFIG_PERMISSIONS_DESC">
<field
name="rules"
type="rules"
label="JCONFIG_PERMISSIONS_LABEL"
class="inputbox"
validate="rules"
filter="rules"
component="com_molation"
section="component"
/>
</fieldset>
</config>PK���[P2��&&controller.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage controller.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper;
/**
* General Controller of Molation component
*/
class MolationController extends JControllerLegacy
{
/**
* Constructor.
*
* @param array $config An optional associative array of configuration
settings.
* Recognized key values include 'name',
'default_task', 'model_path', and
* 'view_path' (this list is not meant to be comprehensive).
*
* @since 3.0
*/
public function __construct($config = array())
{
// set the default view
$config['default_view'] = 'molation';
parent::__construct($config);
}
/**
* display task
*
* @return void
*/
function display($cachable = false, $urlparams = false)
{
// set default view if not set
$view = $this->input->getCmd('view',
'molation');
$data = $this->getViewRelation($view);
$layout = $this->input->get('layout', null,
'WORD');
$id = $this->input->getInt('id');
// Check for edit form.
if(MolationHelper::checkArray($data))
{
if ($data['edit'] && $layout == 'edit'
&&
!$this->checkEditId('com_molation.edit.'.$data['view'],
$id))
{
// Somehow the person just went to the form - we don't allow that.
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID',
$id));
$this->setMessage($this->getError(), 'error');
// check if item was opend from other then its own list view
$ref = $this->input->getCmd('ref', 0);
$refid = $this->input->getInt('refid', 0);
// set redirect
if ($refid > 0 && MolationHelper::checkString($ref))
{
// redirect to item of ref
$this->setRedirect(JRoute::_('index.php?option=com_molation&view='.(string)$ref.'&layout=edit&id='.(int)$refid,
false));
}
elseif (MolationHelper::checkString($ref))
{
// redirect to ref
$this->setRedirect(JRoute::_('index.php?option=com_molation&view='.(string)$ref,
false));
}
else
{
// normal redirect back to the list view
$this->setRedirect(JRoute::_('index.php?option=com_molation&view='.$data['views'],
false));
}
return false;
}
}
return parent::display($cachable, $urlparams);
}
protected function getViewRelation($view)
{
// check the we have a value
if (MolationHelper::checkString($view))
{
// the view relationships
$views = array(
'm_relation' => 'm_relations'
);
// check if this is a list view
if (in_array($view, $views))
{
// this is a list view
return array('edit' => false, 'view' =>
array_search($view,$views), 'views' => $view);
}
// check if it is an edit view
elseif (array_key_exists($view, $views))
{
// this is a edit view
return array('edit' => true, 'view' => $view,
'views' => $views[$view]);
}
}
return false;
}
}
PK���[��mxxcontrollers/import.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage import.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper;
/**
* Molation Import Controller
*/
class MolationControllerImport extends JControllerLegacy
{
/**
* Import an spreadsheet.
*
* @return void
*/
public function import()
{
// Check for request forgeries
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
$model = $this->getModel('import');
if ($model->import())
{
$cache = JFactory::getCache('mod_menu');
$cache->clean();
// TODO: Reset the users acl here as well to kill off any missing bits
}
$app = JFactory::getApplication();
$redirect_url =
$app->getUserState('com_molation.redirect_url');
if (empty($redirect_url))
{
$redirect_url =
JRoute::_('index.php?option=com_molation&view=import',
false);
}
else
{
// wipe out the user state when we're going to redirect
$app->setUserState('com_molation.redirect_url',
'');
$app->setUserState('com_molation.message', '');
$app->setUserState('com_molation.extension_message',
'');
}
$this->setRedirect($redirect_url);
}
}
PK���[�#o,,controllers/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[U7l-��controllers/molation.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage molation.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
/**
* Molation Controller
*/
class MolationControllerMolation extends JControllerAdmin
{
}
PK���[w
M�%!%!controllers/m_relation.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage m_relation.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper;
/**
* M_relation Controller
*/
class MolationControllerM_relation extends JControllerForm
{
/**
* Current or most recently performed task.
*
* @var string
* @since 12.2
* @note Replaces _task.
*/
protected $task;
/**
* Class constructor.
*
* @param array $config A named array of configuration variables.
*
* @since 1.6
*/
public function __construct($config = array())
{
$this->view_list = 'M_relations'; // safeguard for setting
the return view listing to the main view.
parent::__construct($config);
}
/**
* Method override to check if you can add a new record.
*
* @param array $data An array of input data.
*
* @return boolean
*
* @since 1.6
*/
protected function allowAdd($data = array())
{
// Get user object.
$user = JFactory::getUser();
// Access check.
$access = $user->authorise('m_relation.access',
'com_molation');
if (!$access)
{
return false;
}
// In the absense of better information, revert to the component
permissions.
return parent::allowAdd($data);
}
/**
* Method override to check if you can edit an existing record.
*
* @param array $data An array of input data.
* @param string $key The name of the key for the primary key.
*
* @return boolean
*
* @since 1.6
*/
protected function allowEdit($data = array(), $key = 'id')
{
// get user object.
$user = JFactory::getUser();
// get record id.
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
if ($recordId)
{
// The record has been set. Check the record permissions.
$permission = $user->authorise('core.edit',
'com_molation.m_relation.' . (int) $recordId);
if (!$permission)
{
if ($user->authorise('core.edit.own',
'com_molation.m_relation.' . $recordId))
{
// Now test the owner is the user.
$ownerId = (int) isset($data['created_by']) ?
$data['created_by'] : 0;
if (empty($ownerId))
{
// Need to do a lookup from the model.
$record = $this->getModel()->getItem($recordId);
if (empty($record))
{
return false;
}
$ownerId = $record->created_by;
}
// If the owner matches 'me' then allow.
if ($ownerId == $user->id)
{
if ($user->authorise('core.edit.own',
'com_molation'))
{
return true;
}
}
}
return false;
}
}
// Since there is no permission, revert to the component permissions.
return parent::allowEdit($data, $key);
}
/**
* Gets the URL arguments to append to an item redirect.
*
* @param integer $recordId The primary key id for the item.
* @param string $urlVar The name of the URL variable for the id.
*
* @return string The arguments to append to the redirect URL.
*
* @since 1.6
*/
protected function getRedirectToItemAppend($recordId = null, $urlVar =
'id')
{
// get the referral options (old method use return instead see parent)
$ref = $this->input->get('ref', 0, 'string');
$refid = $this->input->get('refid', 0, 'int');
// get redirect info.
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
// set the referral options
if ($refid && $ref)
{
$append = '&ref=' . (string)$ref .
'&refid='. (int)$refid . $append;
}
elseif ($ref)
{
$append = '&ref='. (string)$ref . $append;
}
return $append;
}
/**
* Method to run batch operations.
*
* @param object $model The model.
*
* @return boolean True if successful, false otherwise and internal
error is set.
*
* @since 2.5
*/
public function batch($model = null)
{
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('M_relation', '',
array());
// Preset the redirect
$this->setRedirect(JRoute::_('index.php?option=com_molation&view=m_relations'
. $this->getRedirectToListAppend(), false));
return parent::batch($model);
}
/**
* Method to cancel an edit.
*
* @param string $key The name of the primary key of the URL variable.
*
* @return boolean True if access level checks pass, false otherwise.
*
* @since 12.2
*/
public function cancel($key = null)
{
// get the referral options
$this->ref = $this->input->get('ref', 0,
'word');
$this->refid = $this->input->get('refid', 0,
'int');
// Check if there is a return value
$return = $this->input->get('return', null,
'base64');
$cancel = parent::cancel($key);
if (!is_null($return) &&
JUri::isInternal(base64_decode($return)))
{
$redirect = base64_decode($return);
// Redirect to the return value.
$this->setRedirect(
JRoute::_(
$redirect, false
)
);
}
elseif ($this->refid && $this->ref)
{
$redirect = '&view=' . (string)$this->ref .
'&layout=edit&id=' . (int)$this->refid;
// Redirect to the item screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
elseif ($this->ref)
{
$redirect = '&view='.(string)$this->ref;
// Redirect to the list screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
return $cancel;
}
/**
* Method to save a record.
*
* @param string $key The name of the primary key of the URL
variable.
* @param string $urlVar The name of the URL variable if different
from the primary key (sometimes required to avoid router collisions).
*
* @return boolean True if successful, false otherwise.
*
* @since 12.2
*/
public function save($key = null, $urlVar = null)
{
// get the referral options
$this->ref = $this->input->get('ref', 0,
'word');
$this->refid = $this->input->get('refid', 0,
'int');
// Check if there is a return value
$return = $this->input->get('return', null,
'base64');
$canReturn = (!is_null($return) &&
JUri::isInternal(base64_decode($return)));
if ($this->ref || $this->refid || $canReturn)
{
// to make sure the item is checkedin on redirect
$this->task = 'save';
}
$saved = parent::save($key, $urlVar);
// This is not needed since parent save already does this
// Due to the ref and refid implementation we need to add this
if ($canReturn)
{
$redirect = base64_decode($return);
// Redirect to the return value.
$this->setRedirect(
JRoute::_(
$redirect, false
)
);
}
elseif ($this->refid && $this->ref)
{
$redirect = '&view=' . (string)$this->ref .
'&layout=edit&id=' . (int)$this->refid;
// Redirect to the item screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
elseif ($this->ref)
{
$redirect = '&view=' . (string)$this->ref;
// Redirect to the list screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
return $saved;
}
/**
* Function that allows child controller access to model data
* after the data has been saved.
*
* @param JModel &$model The data model object.
* @param array $validData The validated data.
*
* @return void
*
* @since 11.1
*/
protected function postSaveHook(JModelLegacy $model, $validData = array())
{
return;
}
}
PK���[c����controllers/m_relations.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage m_relations.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper;
/**
* M_relations Controller
*/
class MolationControllerM_relations extends JControllerAdmin
{
/**
* The prefix to use with controller messages.
*
* @var string
* @since 1.6
*/
protected $text_prefix = 'COM_MOLATION_M_RELATIONS';
/**
* Method to get a model object, loading it if required.
*
* @param string $name The model name. Optional.
* @param string $prefix The class prefix. Optional.
* @param array $config Configuration array for model. Optional.
*
* @return JModelLegacy The model.
*
* @since 1.6
*/
public function getModel($name = 'M_relation', $prefix =
'MolationModel', $config = array('ignore_request' =>
true))
{
return parent::getModel($name, $prefix, $config);
}
public function exportData()
{
// Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// check if export is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('m_relation.export',
'com_molation') &&
$user->authorise('core.export', 'com_molation'))
{
// Get the input
$input = JFactory::getApplication()->input;
$pks = $input->post->get('cid', array(),
'array');
// Sanitize the input
$pks = ArrayHelper::toInteger($pks);
// Get the model
$model = $this->getModel('M_relations');
// get the data to export
$data = $model->getExportData($pks);
if (MolationHelper::checkArray($data))
{
// now set the data to the spreadsheet
$date = JFactory::getDate();
MolationHelper::xls($data,'M_relations_'.$date->format('jS_F_Y'),'M
relations exported ('.$date->format('jS F,
Y').')','m relations');
}
}
// Redirect to the list screen with error.
$message = JText::_('COM_MOLATION_EXPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_molation&view=m_relations',
false), $message, 'error');
return;
}
public function importData()
{
// Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// check if import is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('m_relation.import',
'com_molation') &&
$user->authorise('core.import', 'com_molation'))
{
// Get the import model
$model = $this->getModel('M_relations');
// get the headers to import
$headers = $model->getExImPortHeaders();
if (MolationHelper::checkObject($headers))
{
// Load headers to session.
$session = JFactory::getSession();
$headers = json_encode($headers);
$session->set('m_relation_VDM_IMPORTHEADERS', $headers);
$session->set('backto_VDM_IMPORT',
'm_relations');
$session->set('dataType_VDM_IMPORTINTO',
'm_relation');
// Redirect to import view.
$message =
JText::_('COM_MOLATION_IMPORT_SELECT_FILE_FOR_M_RELATIONS');
$this->setRedirect(JRoute::_('index.php?option=com_molation&view=import',
false), $message);
return;
}
}
// Redirect to the list screen with error.
$message = JText::_('COM_MOLATION_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_molation&view=m_relations',
false), $message, 'error');
return;
}
}
PK���[<�����helpers/headercheck.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage headercheck.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
class molationHeaderCheck
{
function js_loaded($script_name)
{
// UIkit check point
if (strpos($script_name,'uikit') !== false)
{
$app = JFactory::getApplication();
$getTemplateName =
$app->getTemplate('template')->template;
if (strpos($getTemplateName,'yoo') !== false)
{
return true;
}
}
$document = JFactory::getDocument();
$head_data = $document->getHeadData();
foreach (array_keys($head_data['scripts']) as $script)
{
if (stristr($script, $script_name))
{
return true;
}
}
return false;
}
function css_loaded($script_name)
{
// UIkit check point
if (strpos($script_name,'uikit') !== false)
{
$app = JFactory::getApplication();
$getTemplateName =
$app->getTemplate('template')->template;
if (strpos($getTemplateName,'yoo') !== false)
{
return true;
}
}
$document = JFactory::getDocument();
$head_data = $document->getHeadData();
foreach (array_keys($head_data['styleSheets']) as $script)
{
if (stristr($script, $script_name))
{
return true;
}
}
return false;
}
}PK���[���G
G
helpers/html/batch_.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage batch_.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('JPATH_PLATFORM') or die;
/**
* Utility class to render a list view batch selection options
*
* @since 3.0
*/
abstract class JHtmlBatch_
{
/**
* ListSelection
*
* @var array
* @since 3.0
*/
protected static $ListSelection = array();
/**
* Render the batch selection options.
*
* @return string The necessary HTML to display the batch selection
options
*
* @since 3.0
*/
public static function render()
{
// Collect display data
$data = new stdClass;
$data->ListSelection = static::getListSelection();
// Create a layout object and ask it to render the batch selection
options
$layout = new JLayoutFile('batchselection');
$batchHtml = $layout->render($data);
return $batchHtml;
}
/**
* Method to add a list selection to the batch modal
*
* @param string $label Label for the menu item.
* @param string $name Name for the filter. Also used as id.
* @param string $options Options for the select field.
* @param bool $noDefault Don't the label as the empty option
*
* @return void
*
* @since 3.0
*/
public static function addListSelection($label, $name, $options,
$noDefault = false)
{
array_push(static::$ListSelection, array('label' => $label,
'name' => $name, 'options' => $options,
'noDefault' => $noDefault));
}
/**
* Returns an array of all ListSelection
*
* @return array
*
* @since 3.0
*/
public static function getListSelection()
{
return static::$ListSelection;
}
}
PK���[�#o,,helpers/html/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[�#o,,helpers/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[]V"*ۦۦhelpers/molation.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage molation.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\Filesystem\File;
use Joomla\CMS\Language\Language;
use Joomla\Registry\Registry;
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
use PhpOffice\PhpSpreadsheet\IOFactory;
use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
/**
* Molation component helper.
*/
abstract class MolationHelper
{
/**
* Composer Switch
*
* @var array
*/
protected static $composer = array();
/**
* The Main Active Language
*
* @var string
*/
public static $langTag;
/**
* Load the Composer Vendors
*/
public static function composerAutoload($target)
{
// insure we load the composer vendor only once
if (!isset(self::$composer[$target]))
{
// get the function name
$functionName = self::safeString('compose' . $target);
// check if method exist
if (method_exists(__CLASS__, $functionName))
{
return self::{$functionName}();
}
return false;
}
return self::$composer[$target];
}
/**
* Load the Component xml manifest.
*/
public static function manifest()
{
$manifestUrl =
JPATH_ADMINISTRATOR."/components/com_molation/molation.xml";
return simplexml_load_file($manifestUrl);
}
/**
* Joomla version object
*/
protected static $JVersion;
/**
* set/get Joomla version
*/
public static function jVersion()
{
// check if set
if (!self::checkObject(self::$JVersion))
{
self::$JVersion = new JVersion();
}
return self::$JVersion;
}
/**
* Load the Contributors details.
*/
public static function getContributors()
{
// get params
$params = JComponentHelper::getParams('com_molation');
// start contributors array
$contributors = array();
// get all Contributors (max 20)
$searchArray = range('0','20');
foreach($searchArray as $nr)
{
if ((NULL !== $params->get("showContributor".$nr))
&& ($params->get("showContributor".$nr) == 1 ||
$params->get("showContributor".$nr) == 3))
{
// set link based of selected option
if($params->get("useContributor".$nr) == 1)
{
$link_front = '<a
href="mailto:'.$params->get("emailContributor".$nr).'"
target="_blank">';
$link_back = '</a>';
}
elseif($params->get("useContributor".$nr) == 2)
{
$link_front = '<a
href="'.$params->get("linkContributor".$nr).'"
target="_blank">';
$link_back = '</a>';
}
else
{
$link_front = '';
$link_back = '';
}
$contributors[$nr]['title'] =
self::htmlEscape($params->get("titleContributor".$nr));
$contributors[$nr]['name'] =
$link_front.self::htmlEscape($params->get("nameContributor".$nr)).$link_back;
}
}
return $contributors;
}
/**
* Can be used to build help urls.
**/
public static function getHelpUrl($view)
{
return false;
}
/**
* Configure the Linkbar.
*/
public static function addSubmenu($submenu)
{
// load user for access menus
$user = JFactory::getUser();
// load the submenus to sidebar
JHtmlSidebar::addEntry(JText::_('COM_MOLATION_SUBMENU_DASHBOARD'),
'index.php?option=com_molation&view=molation', $submenu ===
'molation');
if ($user->authorise('m_relation.access',
'com_molation') &&
$user->authorise('m_relation.submenu',
'com_molation'))
{
JHtmlSidebar::addEntry(JText::_('COM_MOLATION_SUBMENU_M_RELATIONS'),
'index.php?option=com_molation&view=m_relations', $submenu
=== 'm_relations');
}
}
/**
* Prepares the xml document
*/
public static function xls($rows, $fileName = null, $title = null,
$subjectTab = null, $creator = 'lmskaran', $description = null,
$category = null,$keywords = null, $modified = null)
{
// set the user
$user = JFactory::getUser();
// set fileName if not set
if (!$fileName)
{
$fileName =
'exported_'.JFactory::getDate()->format('jS_F_Y');
}
// set modified if not set
if (!$modified)
{
$modified = $user->name;
}
// set title if not set
if (!$title)
{
$title = 'Book1';
}
// set tab name if not set
if (!$subjectTab)
{
$subjectTab = 'Sheet1';
}
// make sure we have the composer classes loaded
self::composerAutoload('phpspreadsheet');
// Create new Spreadsheet object
$spreadsheet = new Spreadsheet();
// Set document properties
$spreadsheet->getProperties()
->setCreator($creator)
->setCompany('lmskaran')
->setLastModifiedBy($modified)
->setTitle($title)
->setSubject($subjectTab);
// The file type
$file_type = 'Xls';
// set description
if ($description)
{
$spreadsheet->getProperties()->setDescription($description);
}
// set keywords
if ($keywords)
{
$spreadsheet->getProperties()->setKeywords($keywords);
}
// set category
if ($category)
{
$spreadsheet->getProperties()->setCategory($category);
}
// Some styles
$headerStyles = array(
'font' => array(
'bold' => true,
'color' => array('rgb' =>
'1171A3'),
'size' => 12,
'name' => 'Verdana'
));
$sideStyles = array(
'font' => array(
'bold' => true,
'color' => array('rgb' =>
'444444'),
'size' => 11,
'name' => 'Verdana'
));
$normalStyles = array(
'font' => array(
'color' => array('rgb' =>
'444444'),
'size' => 11,
'name' => 'Verdana'
));
// Add some data
if (($size = self::checkArray($rows)) !== false)
{
$i = 1;
// Based on data size we adapt the behaviour.
$xls_mode = 1;
if ($size > 3000)
{
$xls_mode = 3;
$file_type = 'Csv';
}
elseif ($size > 2000)
{
$xls_mode = 2;
}
// Set active sheet and get it.
$active_sheet = $spreadsheet->setActiveSheetIndex(0);
foreach ($rows as $array)
{
$a = 'A';
foreach ($array as $value)
{
$active_sheet->setCellValue($a.$i, $value);
if ($xls_mode != 3)
{
if ($i == 1)
{
$active_sheet->getColumnDimension($a)->setAutoSize(true);
$active_sheet->getStyle($a.$i)->applyFromArray($headerStyles);
$active_sheet->getStyle($a.$i)->getAlignment()->setHorizontal(PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_CENTER);
}
elseif ($a === 'A')
{
$active_sheet->getStyle($a.$i)->applyFromArray($sideStyles);
}
elseif ($xls_mode == 1)
{
$active_sheet->getStyle($a.$i)->applyFromArray($normalStyles);
}
}
$a++;
}
$i++;
}
}
else
{
return false;
}
// Rename worksheet
$spreadsheet->getActiveSheet()->setTitle($subjectTab);
// Set active sheet index to the first sheet, so Excel opens this as the
first sheet
$spreadsheet->setActiveSheetIndex(0);
// Redirect output to a client's web browser (Excel5)
header('Content-Type: application/vnd.ms-excel');
header('Content-Disposition: attachment;filename="' .
$fileName . '.' . strtolower($file_type) .'"');
header('Cache-Control: max-age=0');
// If you're serving to IE 9, then the following may be needed
header('Cache-Control: max-age=1');
// If you're serving to IE over SSL, then the following may be
needed
header ('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // Date in
the past
header ('Last-Modified: '.gmdate('D, d M Y
H:i:s').' GMT'); // always modified
header ('Cache-Control: cache, must-revalidate'); // HTTP/1.1
header ('Pragma: public'); // HTTP/1.0
$writer = IOFactory::createWriter($spreadsheet, $file_type);
$writer->save('php://output');
jexit();
}
/**
* Get CSV Headers
*/
public static function getFileHeaders($dataType)
{
// make sure we have the composer classes loaded
self::composerAutoload('phpspreadsheet');
// get session object
$session = JFactory::getSession();
$package = $session->get('package', null);
$package = json_decode($package, true);
// set the headers
if(isset($package['dir']))
{
// only load first three rows
$chunkFilter = new PhpOffice\PhpSpreadsheet\Reader\chunkReadFilter(2,1);
// identify the file type
$inputFileType = IOFactory::identify($package['dir']);
// create the reader for this file type
$excelReader = IOFactory::createReader($inputFileType);
// load the limiting filter
$excelReader->setReadFilter($chunkFilter);
$excelReader->setReadDataOnly(true);
// load the rows (only first three)
$excelObj = $excelReader->load($package['dir']);
$headers = array();
foreach ($excelObj->getActiveSheet()->getRowIterator() as $row)
{
if($row->getRowIndex() == 1)
{
$cellIterator = $row->getCellIterator();
$cellIterator->setIterateOnlyExistingCells(false);
foreach ($cellIterator as $cell)
{
if (!is_null($cell))
{
$headers[$cell->getColumn()] = $cell->getValue();
}
}
$excelObj->disconnectWorksheets();
unset($excelObj);
break;
}
}
return $headers;
}
return false;
}
/**
* Load the Composer Vendor phpspreadsheet
*/
protected static function composephpspreadsheet()
{
// load the autoloader for phpspreadsheet
require_once JPATH_SITE .
'/libraries/phpspreadsheet/vendor/autoload.php';
// do not load again
self::$composer['phpspreadsheet'] = true;
return true;
}
/**
* Get a Variable
*
* @param string $table The table from which to get the
variable
* @param string $where The value where
* @param string $whereString The target/field string where/name
* @param string $what The return field
* @param string $operator The operator between $whereString/field
and $where/value
* @param string $main The component in which the table is
found
*
* @return mix string/int/float
*
*/
public static function getVar($table, $where = null, $whereString =
'user', $what = 'id', $operator = '=', $main
= 'molation')
{
if(!$where)
{
$where = JFactory::getUser()->id;
}
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
$query->select($db->quoteName(array($what)));
if (empty($table))
{
$query->from($db->quoteName('#__'.$main));
}
else
{
$query->from($db->quoteName('#__'.$main.'_'.$table));
}
if (is_numeric($where))
{
$query->where($db->quoteName($whereString) . '
'.$operator.' '.(int) $where);
}
elseif (is_string($where))
{
$query->where($db->quoteName($whereString) . '
'.$operator.' '. $db->quote((string)$where));
}
else
{
return false;
}
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
return $db->loadResult();
}
return false;
}
/**
* Get array of variables
*
* @param string $table The table from which to get the
variables
* @param string $where The value where
* @param string $whereString The target/field string where/name
* @param string $what The return field
* @param string $operator The operator between $whereString/field
and $where/value
* @param string $main The component in which the table is
found
* @param bool $unique The switch to return a unique array
*
* @return array
*
*/
public static function getVars($table, $where = null, $whereString =
'user', $what = 'id', $operator = 'IN', $main
= 'molation', $unique = true)
{
if(!$where)
{
$where = JFactory::getUser()->id;
}
if (!self::checkArray($where) && $where > 0)
{
$where = array($where);
}
if (self::checkArray($where))
{
// prep main <-- why? well if $main='' is empty then $table
can be categories or users
if (self::checkString($main))
{
$main = '_'.ltrim($main, '_');
}
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
$query->select($db->quoteName(array($what)));
if (empty($table))
{
$query->from($db->quoteName('#__'.$main));
}
else
{
$query->from($db->quoteName('#_'.$main.'_'.$table));
}
// add strings to array search
if ('IN_STRINGS' === $operator || 'NOT IN_STRINGS'
=== $operator)
{
$query->where($db->quoteName($whereString) . ' ' .
str_replace('_STRINGS', '', $operator) . '
("' . implode('","',$where) .
'")');
}
else
{
$query->where($db->quoteName($whereString) . ' ' .
$operator . ' (' . implode(',',$where) .
')');
}
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
if ($unique)
{
return array_unique($db->loadColumn());
}
return $db->loadColumn();
}
}
return false;
}
public static function jsonToString($value, $sperator = ", ",
$table = null, $id = 'id', $name = 'name')
{
// do some table foot work
$external = false;
if (strpos($table, '#__') !== false)
{
$external = true;
$table = str_replace('#__', '', $table);
}
// check if string is JSON
$result = json_decode($value, true);
if (json_last_error() === JSON_ERROR_NONE)
{
// is JSON
if (self::checkArray($result))
{
if (self::checkString($table))
{
$names = array();
foreach ($result as $val)
{
if ($external)
{
if ($_name = self::getVar(null, $val, $id, $name, '=',
$table))
{
$names[] = $_name;
}
}
else
{
if ($_name = self::getVar($table, $val, $id, $name))
{
$names[] = $_name;
}
}
}
if (self::checkArray($names))
{
return (string) implode($sperator,$names);
}
}
return (string) implode($sperator,$result);
}
return (string) json_decode($value);
}
return $value;
}
public static function isPublished($id,$type)
{
if ($type == 'raw')
{
$type = 'item';
}
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->select(array('a.published'));
$query->from('#__molation_'.$type.' AS a');
$query->where('a.id = '. (int) $id);
$query->where('a.published = 1');
$db->setQuery($query);
$db->execute();
$found = $db->getNumRows();
if($found)
{
return true;
}
return false;
}
public static function getGroupName($id)
{
$db = JFactory::getDBO();
$query = $db->getQuery(true);
$query->select(array('a.title'));
$query->from('#__usergroups AS a');
$query->where('a.id = '. (int) $id);
$db->setQuery($query);
$db->execute();
$found = $db->getNumRows();
if($found)
{
return $db->loadResult();
}
return $id;
}
/**
* Get the action permissions
*
* @param string $view The related view name
* @param int $record The item to act upon
* @param string $views The related list view name
* @param mixed $target Only get this permission (like edit,
create, delete)
* @param string $component The target component
* @param object $user The user whose permissions we are loading
*
* @return object The JObject of permission/authorised actions
*
*/
public static function getActions($view, &$record = null, $views =
null, $target = null, $component = 'molation', $user =
'null')
{
// load the user if not given
if (!self::checkObject($user))
{
// get the user object
$user = JFactory::getUser();
}
// load the JObject
$result = new JObject;
// make view name safe (just incase)
$view = self::safeString($view);
if (self::checkString($views))
{
$views = self::safeString($views);
}
// get all actions from component
$actions = JAccess::getActionsFromFile(
JPATH_ADMINISTRATOR . '/components/com_' . $component .
'/access.xml',
"/access/section[@name='component']/"
);
// if non found then return empty JObject
if (empty($actions))
{
return $result;
}
// get created by if not found
if (self::checkObject($record) && !isset($record->created_by)
&& isset($record->id))
{
$record->created_by = self::getVar($view, $record->id,
'id', 'created_by', '=', $component);
}
// set actions only set in component settings
$componentActions = array('core.admin',
'core.manage', 'core.options',
'core.export');
// check if we have a target
$checkTarget = false;
if ($target)
{
// convert to an array
if (self::checkString($target))
{
$target = array($target);
}
// check if we are good to go
if (self::checkArray($target))
{
$checkTarget = true;
}
}
// loop the actions and set the permissions
foreach ($actions as $action)
{
// check target action filter
if ($checkTarget && self::filterActions($view, $action->name,
$target))
{
continue;
}
// set to use component default
$fallback = true;
// reset permission per/action
$permission = false;
$catpermission = false;
// set area
$area = 'comp';
// check if the record has an ID and the action is item related (not a
component action)
if (self::checkObject($record) && isset($record->id)
&& $record->id > 0 && !in_array($action->name,
$componentActions) &&
(strpos($action->name, 'core.') !== false ||
strpos($action->name, $view . '.') !== false))
{
// we are in item
$area = 'item';
// The record has been set. Check the record permissions.
$permission = $user->authorise($action->name, 'com_' .
$component . '.' . $view . '.' . (int) $record->id);
// if no permission found, check edit own
if (!$permission)
{
// With edit, if the created_by matches current user then dig deeper.
if (($action->name === 'core.edit' || $action->name
=== $view . '.edit') && $record->created_by > 0
&& ($record->created_by == $user->id))
{
// the correct target
$coreCheck = (array) explode('.', $action->name);
// check that we have both local and global access
if ($user->authorise($coreCheck[0] . '.edit.own',
'com_' . $component . '.' . $view . '.' .
(int) $record->id) &&
$user->authorise($coreCheck[0] . '.edit.own',
'com_' . $component))
{
// allow edit
$result->set($action->name, true);
// set not to use global default
// because we already validated it
$fallback = false;
}
else
{
// do not allow edit
$result->set($action->name, false);
$fallback = false;
}
}
}
elseif (self::checkString($views) && isset($record->catid)
&& $record->catid > 0)
{
// we are in item
$area = 'category';
// set the core check
$coreCheck = explode('.', $action->name);
$core = $coreCheck[0];
// make sure we use the core. action check for the categories
if (strpos($action->name, $view) !== false &&
strpos($action->name, 'core.') === false )
{
$coreCheck[0] = 'core';
$categoryCheck = implode('.', $coreCheck);
}
else
{
$categoryCheck = $action->name;
}
// The record has a category. Check the category permissions.
$catpermission = $user->authorise($categoryCheck, 'com_'
. $component . '.' . $views . '.category.' . (int)
$record->catid);
if (!$catpermission && !is_null($catpermission))
{
// With edit, if the created_by matches current user then dig deeper.
if (($action->name === 'core.edit' || $action->name
=== $view . '.edit') && $record->created_by > 0
&& ($record->created_by == $user->id))
{
// check that we have both local and global access
if ($user->authorise('core.edit.own', 'com_'
. $component . '.' . $views . '.category.' . (int)
$record->catid) &&
$user->authorise($core . '.edit.own', 'com_'
. $component))
{
// allow edit
$result->set($action->name, true);
// set not to use global default
// because we already validated it
$fallback = false;
}
else
{
// do not allow edit
$result->set($action->name, false);
$fallback = false;
}
}
}
}
}
// if allowed then fallback on component global settings
if ($fallback)
{
// if item/category blocks access then don't fall back on global
if ((($area === 'item') && !$permission) || (($area
=== 'category') && !$catpermission))
{
// do not allow
$result->set($action->name, false);
}
// Finally remember the global settings have the final say. (even if
item allow)
// The local item permissions can block, but it can't open and
override of global permissions.
// Since items are created by users and global permissions is set by
system admin.
else
{
$result->set($action->name,
$user->authorise($action->name, 'com_' . $component));
}
}
}
return $result;
}
/**
* Filter the action permissions
*
* @param string $action The action to check
* @param array $targets The array of target actions
*
* @return boolean true if action should be filtered out
*
*/
protected static function filterActions(&$view, &$action,
&$targets)
{
foreach ($targets as $target)
{
if (strpos($action, $view . '.' . $target) !== false ||
strpos($action, 'core.' . $target) !== false)
{
return false;
break;
}
}
return true;
}
/**
* Get any component's model
*/
public static function getModel($name, $path =
JPATH_COMPONENT_ADMINISTRATOR, $Component = 'Molation', $config =
array())
{
// fix the name
$name = self::safeString($name);
// full path to models
$fullPathModels = $path . '/models';
// load the model file
JModelLegacy::addIncludePath($fullPathModels, $Component .
'Model');
// make sure the table path is loaded
if (!isset($config['table_path']) ||
!self::checkString($config['table_path']))
{
// This is the JCB default path to tables in Joomla 3.x
$config['table_path'] = JPATH_ADMINISTRATOR .
'/components/com_' . strtolower($Component) .
'/tables';
}
// get instance
$model = JModelLegacy::getInstance($name, $Component . 'Model',
$config);
// if model not found (strange)
if ($model == false)
{
jimport('joomla.filesystem.file');
// get file path
$filePath = $path . '/' . $name . '.php';
$fullPathModel = $fullPathModels . '/' . $name .
'.php';
// check if it exists
if (File::exists($filePath))
{
// get the file
require_once $filePath;
}
elseif (File::exists($fullPathModel))
{
// get the file
require_once $fullPathModel;
}
// build class names
$modelClass = $Component . 'Model' . $name;
if (class_exists($modelClass))
{
// initialize the model
return new $modelClass($config);
}
}
return $model;
}
/**
* Add to asset Table
*/
public static function setAsset($id, $table, $inherit = true)
{
$parent = JTable::getInstance('Asset');
$parent->loadByName('com_molation');
$parentId = $parent->id;
$name = 'com_molation.'.$table.'.'.$id;
$title = '';
$asset = JTable::getInstance('Asset');
$asset->loadByName($name);
// Check for an error.
$error = $asset->getError();
if ($error)
{
return false;
}
else
{
// Specify how a new or moved node asset is inserted into the tree.
if ($asset->parent_id != $parentId)
{
$asset->setLocation($parentId, 'last-child');
}
// Prepare the asset to be stored.
$asset->parent_id = $parentId;
$asset->name = $name;
$asset->title = $title;
// get the default asset rules
$rules = self::getDefaultAssetRules('com_molation', $table,
$inherit);
if ($rules instanceof JAccessRules)
{
$asset->rules = (string) $rules;
}
if (!$asset->check() || !$asset->store())
{
JFactory::getApplication()->enqueueMessage($asset->getError(),
'warning');
return false;
}
else
{
// Create an asset_id or heal one that is corrupted.
$object = new stdClass();
// Must be a valid primary key value.
$object->id = $id;
$object->asset_id = (int) $asset->id;
// Update their asset_id to link to the asset table.
return
JFactory::getDbo()->updateObject('#__molation_'.$table,
$object, 'id');
}
}
return false;
}
/**
* Gets the default asset Rules for a component/view.
*/
protected static function getDefaultAssetRules($component, $view, $inherit
= true)
{
// if new or inherited
$assetId = 0;
// Only get the actual item rules if not inheriting
if (!$inherit)
{
// Need to find the asset id by the name of the component.
$db = JFactory::getDbo();
$query = $db->getQuery(true)
->select($db->quoteName('id'))
->from($db->quoteName('#__assets'))
->where($db->quoteName('name') . ' = ' .
$db->quote($component));
$db->setQuery($query);
$db->execute();
// check that there is a value
if ($db->getNumRows())
{
// asset already set so use saved rules
$assetId = (int) $db->loadResult();
}
}
// get asset rules
$result = JAccess::getAssetRules($assetId);
if ($result instanceof JAccessRules)
{
$_result = (string) $result;
$_result = json_decode($_result);
foreach ($_result as $name => &$rule)
{
$v = explode('.', $name);
if ($view !== $v[0])
{
// remove since it is not part of this view
unset($_result->$name);
}
elseif ($inherit)
{
// clear the value since we inherit
$rule = array();
}
}
// check if there are any view values remaining
if (count((array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);
// Instantiate and return the JAccessRules object for the asset rules.
$rules = new JAccessRules($_result);
// return filtered rules
return $rules;
}
}
return $result;
}
/**
* xmlAppend
*
* @param SimpleXMLElement $xml The XML element reference in
which to inject a comment
* @param mixed $node A SimpleXMLElement node to append
to the XML element reference, or a stdClass object containing a comment
attribute to be injected before the XML node and a fieldXML attribute
containing a SimpleXMLElement
*
* @return null
*
*/
public static function xmlAppend(&$xml, $node)
{
if (!$node)
{
// element was not returned
return;
}
switch (get_class($node))
{
case 'stdClass':
if (property_exists($node, 'comment'))
{
self::xmlComment($xml, $node->comment);
}
if (property_exists($node, 'fieldXML'))
{
self::xmlAppend($xml, $node->fieldXML);
}
break;
case 'SimpleXMLElement':
$domXML = dom_import_simplexml($xml);
$domNode = dom_import_simplexml($node);
$domXML->appendChild($domXML->ownerDocument->importNode($domNode,
true));
$xml = simplexml_import_dom($domXML);
break;
}
}
/**
* xmlComment
*
* @param SimpleXMLElement $xml The XML element reference in
which to inject a comment
* @param string $comment The comment to inject
*
* @return null
*
*/
public static function xmlComment(&$xml, $comment)
{
$domXML = dom_import_simplexml($xml);
$domComment = new DOMComment($comment);
$nodeTarget = $domXML->ownerDocument->importNode($domComment,
true);
$domXML->appendChild($nodeTarget);
$xml = simplexml_import_dom($domXML);
}
/**
* xmlAddAttributes
*
* @param SimpleXMLElement $xml The XML element reference in
which to inject a comment
* @param array $attributes The attributes to apply to
the XML element
*
* @return null
*
*/
public static function xmlAddAttributes(&$xml, $attributes = array())
{
foreach ($attributes as $key => $value)
{
$xml->addAttribute($key, $value);
}
}
/**
* xmlAddOptions
*
* @param SimpleXMLElement $xml The XML element reference in
which to inject a comment
* @param array $options The options to apply to the
XML element
*
* @return void
*
*/
public static function xmlAddOptions(&$xml, $options = array())
{
foreach ($options as $key => $value)
{
$addOption = $xml->addChild('option');
$addOption->addAttribute('value', $key);
$addOption[] = $value;
}
}
/**
* get the field object
*
* @param array $attributes The array of attributes
* @param string $default The default of the field
* @param array $options The options to apply to the XML
element
*
* @return object
*
*/
public static function getFieldObject(&$attributes, $default =
'', $options = null)
{
// make sure we have attributes and a type value
if (self::checkArray($attributes) &&
isset($attributes['type']))
{
// make sure the form helper class is loaded
if (!method_exists('JFormHelper', 'loadFieldType'))
{
jimport('joomla.form.form');
}
// get field type
$field = JFormHelper::loadFieldType($attributes['type'],
true);
// get field xml
$XML = self::getFieldXML($attributes, $options);
// setup the field
$field->setup($XML, $default);
// return the field object
return $field;
}
return false;
}
/**
* get the field xml
*
* @param array $attributes The array of attributes
* @param array $options The options to apply to the XML
element
*
* @return object
*
*/
public static function getFieldXML(&$attributes, $options = null)
{
// make sure we have attributes and a type value
if (self::checkArray($attributes))
{
// start field xml
$XML = new SimpleXMLElement('<field/>');
// load the attributes
self::xmlAddAttributes($XML, $attributes);
// check if we have options
if (self::checkArray($options))
{
// load the options
self::xmlAddOptions($XML, $options);
}
// return the field xml
return $XML;
}
return false;
}
/**
* Render Bool Button
*
* @param array $args All the args for the button
* 0) name
* 1) additional (options class) // not used
at this time
* 2) default
* 3) yes (name)
* 4) no (name)
*
* @return string The input html of the button
*
*/
public static function renderBoolButton()
{
$args = func_get_args();
// check if there is additional button class
$additional = isset($args[1]) ? (string) $args[1] : ''; // not
used at this time
// button attributes
$buttonAttributes = array(
'type' => 'radio',
'name' => isset($args[0]) ? self::htmlEscape($args[0]) :
'bool_button',
'label' => isset($args[0]) ?
self::safeString(self::htmlEscape($args[0]), 'Ww') : 'Bool
Button', // not seen anyway
'class' => 'btn-group',
'filter' => 'INT',
'default' => isset($args[2]) ? (int) $args[2] : 0);
// set the button options
$buttonOptions = array(
'1' => isset($args[3]) ? self::htmlEscape($args[3]) :
'JYES',
'0' => isset($args[4]) ? self::htmlEscape($args[4]) :
'JNO');
// return the input
return self::getFieldObject($buttonAttributes,
$buttonAttributes['default'], $buttonOptions)->input;
}
/**
* Check if have an json string
*
* @input string The json string to check
*
* @returns bool true on success
*/
public static function checkJson($string)
{
if (self::checkString($string))
{
json_decode($string);
return (json_last_error() === JSON_ERROR_NONE);
}
return false;
}
/**
* Check if have an object with a length
*
* @input object The object to check
*
* @returns bool true on success
*/
public static function checkObject($object)
{
if (isset($object) && is_object($object))
{
return count((array)$object) > 0;
}
return false;
}
/**
* Check if have an array with a length
*
* @input array The array to check
*
* @returns bool/int number of items in array on success
*/
public static function checkArray($array, $removeEmptyString = false)
{
if (isset($array) && is_array($array) && ($nr =
count((array)$array)) > 0)
{
// also make sure the empty strings are removed
if ($removeEmptyString)
{
foreach ($array as $key => $string)
{
if (empty($string))
{
unset($array[$key]);
}
}
return self::checkArray($array, false);
}
return $nr;
}
return false;
}
/**
* Check if have a string with a length
*
* @input string The string to check
*
* @returns bool true on success
*/
public static function checkString($string)
{
if (isset($string) && is_string($string) &&
strlen($string) > 0)
{
return true;
}
return false;
}
/**
* Check if we are connected
* Thanks https://stackoverflow.com/a/4860432/1429677
*
* @returns bool true on success
*/
public static function isConnected()
{
// If example.com is down, then probably the whole internet is down,
since IANA maintains the domain. Right?
$connected = @fsockopen("www.example.com", 80);
// website, port (try 80 or 443)
if ($connected)
{
//action when connected
$is_conn = true;
fclose($connected);
}
else
{
//action in connection failure
$is_conn = false;
}
return $is_conn;
}
/**
* Merge an array of array's
*
* @input array The arrays you would like to merge
*
* @returns array on success
*/
public static function mergeArrays($arrays)
{
if(self::checkArray($arrays))
{
$arrayBuket = array();
foreach ($arrays as $array)
{
if (self::checkArray($array))
{
$arrayBuket = array_merge($arrayBuket, $array);
}
}
return $arrayBuket;
}
return false;
}
// typo sorry!
public static function sorten($string, $length = 40, $addTip = true)
{
return self::shorten($string, $length, $addTip);
}
/**
* Shorten a string
*
* @input string The you would like to shorten
*
* @returns string on success
*/
public static function shorten($string, $length = 40, $addTip = true)
{
if (self::checkString($string))
{
$initial = strlen($string);
$words = preg_split('/([\s\n\r]+)/', $string, null,
PREG_SPLIT_DELIM_CAPTURE);
$words_count = count((array)$words);
$word_length = 0;
$last_word = 0;
for (; $last_word < $words_count; ++$last_word)
{
$word_length += strlen($words[$last_word]);
if ($word_length > $length)
{
break;
}
}
$newString = implode(array_slice($words, 0, $last_word));
$final = strlen($newString);
if ($initial != $final && $addTip)
{
$title = self::shorten($string, 400 , false);
return '<span class="hasTip"
title="'.$title.'"
style="cursor:help">'.trim($newString).'...</span>';
}
elseif ($initial != $final && !$addTip)
{
return trim($newString).'...';
}
}
return $string;
}
/**
* Making strings safe (various ways)
*
* @input string The you would like to make safe
*
* @returns string on success
*/
public static function safeString($string, $type = 'L', $spacer
= '_', $replaceNumbers = true, $keepOnlyCharacters = true)
{
if ($replaceNumbers === true)
{
// remove all numbers and replace with english text version (works well
only up to millions)
$string = self::replaceNumbers($string);
}
// 0nly continue if we have a string
if (self::checkString($string))
{
// create file name without the extention that is safe
if ($type === 'filename')
{
// make sure VDM is not in the string
$string = str_replace('VDM', 'vDm', $string);
// Remove anything which isn't a word, whitespace, number
// or any of the following caracters -_()
// If you don't need to handle multi-byte characters
// you can use preg_replace rather than mb_ereg_replace
// Thanks @Łukasz Rysiak!
// $string = mb_ereg_replace("([^\w\s\d\-_\(\)])",
'', $string);
$string = preg_replace("([^\w\s\d\-_\(\)])", '',
$string);
// http://stackoverflow.com/a/2021729/1429677
return preg_replace('/\s+/', ' ', $string);
}
// remove all other characters
$string = trim($string);
$string = preg_replace('/'.$spacer.'+/', '
', $string);
$string = preg_replace('/\s+/', ' ', $string);
// Transliterate string
$string = self::transliterate($string);
// remove all and keep only characters
if ($keepOnlyCharacters)
{
$string = preg_replace("/[^A-Za-z ]/", '',
$string);
}
// keep both numbers and characters
else
{
$string = preg_replace("/[^A-Za-z0-9 ]/", '',
$string);
}
// select final adaptations
if ($type === 'L' || $type === 'strtolower')
{
// replace white space with underscore
$string = preg_replace('/\s+/', $spacer, $string);
// default is to return lower
return strtolower($string);
}
elseif ($type === 'W')
{
// return a string with all first letter of each word uppercase(no
undersocre)
return ucwords(strtolower($string));
}
elseif ($type === 'w' || $type === 'word')
{
// return a string with all lowercase(no undersocre)
return strtolower($string);
}
elseif ($type === 'Ww' || $type === 'Word')
{
// return a string with first letter of the first word uppercase and
all the rest lowercase(no undersocre)
return ucfirst(strtolower($string));
}
elseif ($type === 'WW' || $type === 'WORD')
{
// return a string with all the uppercase(no undersocre)
return strtoupper($string);
}
elseif ($type === 'U' || $type === 'strtoupper')
{
// replace white space with underscore
$string = preg_replace('/\s+/', $spacer, $string);
// return all upper
return strtoupper($string);
}
elseif ($type === 'F' || $type === 'ucfirst')
{
// replace white space with underscore
$string = preg_replace('/\s+/', $spacer, $string);
// return with first caracter to upper
return ucfirst(strtolower($string));
}
elseif ($type === 'cA' || $type === 'cAmel' || $type
=== 'camelcase')
{
// convert all words to first letter uppercase
$string = ucwords(strtolower($string));
// remove white space
$string = preg_replace('/\s+/', '', $string);
// now return first letter lowercase
return lcfirst($string);
}
// return string
return $string;
}
// not a string
return '';
}
public static function transliterate($string)
{
// set tag only once
if (!self::checkString(self::$langTag))
{
// get global value
self::$langTag =
JComponentHelper::getParams('com_molation')->get('language',
'en-GB');
}
// Transliterate on the language requested
$lang = Language::getInstance(self::$langTag);
return $lang->transliterate($string);
}
public static function htmlEscape($var, $charset = 'UTF-8',
$shorten = false, $length = 40)
{
if (self::checkString($var))
{
$filter = new JFilterInput();
$string = $filter->clean(html_entity_decode(htmlentities($var,
ENT_COMPAT, $charset)), 'HTML');
if ($shorten)
{
return self::shorten($string,$length);
}
return $string;
}
else
{
return '';
}
}
public static function replaceNumbers($string)
{
// set numbers array
$numbers = array();
// first get all numbers
preg_match_all('!\d+!', $string, $numbers);
// check if we have any numbers
if (isset($numbers[0]) && self::checkArray($numbers[0]))
{
foreach ($numbers[0] as $number)
{
$searchReplace[$number] = self::numberToString((int)$number);
}
// now replace numbers in string
$string = str_replace(array_keys($searchReplace),
array_values($searchReplace),$string);
// check if we missed any, strange if we did.
return self::replaceNumbers($string);
}
// return the string with no numbers remaining.
return $string;
}
/**
* Convert an integer into an English word string
* Thanks to Tom Nicholson
<http://php.net/manual/en/function.strval.php#41988>
*
* @input an int
* @returns a string
*/
public static function numberToString($x)
{
$nwords = array( "zero", "one", "two",
"three", "four", "five", "six",
"seven",
"eight", "nine", "ten",
"eleven", "twelve", "thirteen",
"fourteen", "fifteen", "sixteen",
"seventeen", "eighteen",
"nineteen", "twenty", 30 => "thirty",
40 => "forty",
50 => "fifty", 60 => "sixty", 70 =>
"seventy", 80 => "eighty",
90 => "ninety" );
if(!is_numeric($x))
{
$w = $x;
}
elseif(fmod($x, 1) != 0)
{
$w = $x;
}
else
{
if($x < 0)
{
$w = 'minus ';
$x = -$x;
}
else
{
$w = '';
// ... now $x is a non-negative integer.
}
if($x < 21) // 0 to 20
{
$w .= $nwords[$x];
}
elseif($x < 100) // 21 to 99
{
$w .= $nwords[10 * floor($x/10)];
$r = fmod($x, 10);
if($r > 0)
{
$w .= ' '. $nwords[$r];
}
}
elseif($x < 1000) // 100 to 999
{
$w .= $nwords[floor($x/100)] .' hundred';
$r = fmod($x, 100);
if($r > 0)
{
$w .= ' and '. self::numberToString($r);
}
}
elseif($x < 1000000) // 1000 to 999999
{
$w .= self::numberToString(floor($x/1000)) .' thousand';
$r = fmod($x, 1000);
if($r > 0)
{
$w .= ' ';
if($r < 100)
{
$w .= 'and ';
}
$w .= self::numberToString($r);
}
}
else // millions
{
$w .= self::numberToString(floor($x/1000000)) .' million';
$r = fmod($x, 1000000);
if($r > 0)
{
$w .= ' ';
if($r < 100)
{
$w .= 'and ';
}
$w .= self::numberToString($r);
}
}
}
return $w;
}
/**
* Random Key
*
* @returns a string
*/
public static function randomkey($size)
{
$bag =
"abcefghijknopqrstuwxyzABCDDEFGHIJKLLMMNOPQRSTUVVWXYZabcddefghijkllmmnopqrstuvvwxyzABCEFGHIJKNOPQRSTUWXYZ";
$key = array();
$bagsize = strlen($bag) - 1;
for ($i = 0; $i < $size; $i++)
{
$get = rand(0, $bagsize);
$key[] = $bag[$get];
}
return implode($key);
}
}
PK���[�#o,,
index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[��%� � layouts/batchselection.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage batchselection.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('JPATH_BASE') or die;
JHtmlBehavior::core();
$divWrapper = range(1,120,2);
$counter = 0;
?>
<?php if ($displayData->ListSelection) : ?>
<div class="row-fluid">
<?php foreach ($displayData->ListSelection as $ListSelection) :
?>
<div class="control-group span6">
<div class="controls">
<label for="<?php echo $ListSelection['name'];
?>" class="element-invisible"><?php echo
$ListSelection['label']; ?></label>
<select name="<?php echo $ListSelection['name'];
?>" id="<?php echo $ListSelection['name'];
?>" class="span12 small">
<?php if (!$ListSelection['noDefault']) : ?>
<option value=""><?php echo
$ListSelection['label']; ?></option>
<?php endif; ?>
<?php echo $ListSelection['options']; ?>
</select>
</div>
</div>
<?php if (in_array($counter,$divWrapper)) : ?>
</div>
<div class="row-fluid">
<?php endif; ?>
<?php $counter++; ?>
<?php endforeach; ?>
</div>
<div class="control-group radio"
id="batch-move-copy">
<div class="controls">
<label class="radio"
id="batch[move_copy]c-lbl" for="batch[move_copy]c">
<input type="radio" value="c"
id="batch[move_copy]c"
name="batch[move_copy]"><?php echo
JText::_('Copy'); ?></label>
<label class="radio"
id="batch[move_copy]m-lbl" for="batch[move_copy]m">
<input type="radio" checked="checked"
value="m" id="batch[move_copy]m"
name="batch[move_copy]"><?php echo
JText::_('Update'); ?></label>
</div>
</div>
<?php endif;
?>PK���[�#o,,layouts/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[�t6��#layouts/m_relation/details_left.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage details_left.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model
method
// this name combination of tab and layout in the method name is the only
work around
// seeing that JCB uses those two values (tab_name & layout_name) as
the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'user'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type',
'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null,
array('class' => 'control-wrapper-' . $field));
?>
<?php endforeach; ?>
<?php endif; ?>
PK���[kϻ���$layouts/m_relation/details_right.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage details_right.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model
method
// this name combination of tab and layout in the method name is the only
work around
// seeing that JCB uses those two values (tab_name & layout_name) as
the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'module_id'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type',
'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null,
array('class' => 'control-wrapper-' . $field));
?>
<?php endforeach; ?>
<?php endif; ?>
PK���[�#o,,layouts/m_relation/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[�BHy��!layouts/m_relation/publishing.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage publishing.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model
method
// this name combination of tab and layout in the method name is the only
work around
// seeing that JCB uses those two values (tab_name & layout_name) as
the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'title',
'created',
'created_by',
'modified',
'modified_by'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type',
'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null,
array('class' => 'control-wrapper-' . $field));
?>
<?php endforeach; ?>
<?php endif; ?>
PK���[�#�6��!layouts/m_relation/publlshing.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage publlshing.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model
method
// this name combination of tab and layout in the method name is the only
work around
// seeing that JCB uses those two values (tab_name & layout_name) as
the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
'version',
'hits',
'id'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type',
'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null,
array('class' => 'control-wrapper-' . $field));
?>
<?php endforeach; ?>
<?php endif; ?>
PK���[�#o,,models/fields/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[�����#models/forms/filter_m_relations.xmlnu�[���<?xml
version="1.0" encoding="utf-8"?>
<form
addrulepath="/administrator/components/com_molation/models/rules"
addfieldpath="/administrator/components/com_molation/models/fields"
>
<fields name="filter">
<field
type="text"
name="search"
inputmode="search"
label="COM_MOLATION_FILTER_SEARCH"
description="COM_MOLATION_FILTER_SEARCH_M_RELATIONS"
hint="JSEARCH_FILTER"
/>
<field
type="status"
name="published"
label="COM_MOLATION_FILTER_PUBLISHED"
description="COM_MOLATION_FILTER_PUBLISHED_M_RELATIONS"
onchange="this.form.submit();"
>
<option value="">JOPTION_SELECT_PUBLISHED</option>
</field>
<field
type="accesslevel"
name="access"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
multiple="true"
class="multipleAccessLevels"
onchange="this.form.submit();"
/>
<input type="hidden" name="form_submited"
value="1"/>
</fields>
<fields name="list">
<field
name="fullordering"
type="list"
label="COM_CONTENT_LIST_FULL_ORDERING"
description="COM_CONTENT_LIST_FULL_ORDERING_DESC"
onchange="this.form.submit();"
default="a.id DESC"
validate="options"
>
<option value="">JGLOBAL_SORT_BY</option>
<option value="a.ordering
ASC">JGRID_HEADING_ORDERING_ASC</option>
<option value="a.ordering
DESC">JGRID_HEADING_ORDERING_DESC</option>
<option value="a.published
ASC">JSTATUS_ASC</option>
<option value="a.published
DESC">JSTATUS_DESC</option>
<option value="a.module_id
ASC">COM_MOLATION_FILTER_MODULE_ID_ASCENDING</option>
<option value="a.module_id
DESC">COM_MOLATION_FILTER_MODULE_ID_DESCENDING</option>
<option value="a.id
ASC">JGRID_HEADING_ID_ASC</option>
<option value="a.id
DESC">JGRID_HEADING_ID_DESC</option>
</field>
<field
name="limit"
type="limitbox"
label="COM_CONTENT_LIST_LIMIT"
description="COM_CONTENT_LIST_LIMIT_DESC"
class="input-mini"
default="25"
onchange="this.form.submit();"
/>
</fields>
</form>PK���[�#o,,models/forms/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[��gaamodels/forms/m_relation.xmlnu�[���<?xml
version="1.0" encoding="utf-8"?>
<form
addrulepath="/administrator/components/com_molation/models/rules"
addfieldpath="/administrator/components/com_molation/models/fields"
>
<fieldset name="details">
<!-- Default Fields.-->
<!-- Id Field. Type: Text (joomla)-->
<field name="id"
type="text"
class="readonly"
readonly="true"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
size="10"
default="0" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
type="calendar"
label="COM_MOLATION_M_RELATION_CREATED_DATE_LABEL"
description="COM_MOLATION_M_RELATION_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Created Field. Type: User (joomla)-->
<field name="created_by"
type="user"
label="COM_MOLATION_M_RELATION_CREATED_BY_LABEL"
description="COM_MOLATION_M_RELATION_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<option
value="1">JPUBLISHED</option>
<option
value="0">JUNPUBLISHED</option>
<option
value="2">JARCHIVED</option>
<option
value="-2">JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla)-->
<field name="modified"
type="calendar"
class="readonly"
label="COM_MOLATION_M_RELATION_MODIFIED_DATE_LABEL"
description="COM_MOLATION_M_RELATION_MODIFIED_DATE_DESC"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Modified Field. Type: User (joomla)-->
<field name="modified_by"
type="user"
label="COM_MOLATION_M_RELATION_MODIFIED_BY_LABEL"
description="COM_MOLATION_M_RELATION_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset" />
<!-- Access Field. Type: Accesslevel (joomla)-->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false" />
<!-- Ordering Field. Type: Numbers (joomla)-->
<field name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_MOLATION_M_RELATION_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
type="text"
class="readonly"
label="COM_MOLATION_M_RELATION_VERSION_LABEL"
description="COM_MOLATION_M_RELATION_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Was added due to Permissions JS needing a Title
field-->
<!-- Let us know at gh-629 should this change-->
<!--
https://github.com/vdm-io/Joomla-Component-Builder/issues/629#issuecomment-750117235-->
<field name="title"
type="hidden"
default="molation m_relation" />
<!-- Dynamic Fields.-->
<!-- User Field. Type: User. (joomla)-->
<field type="user"
name="user"
label="COM_MOLATION_M_RELATION_USER_LABEL"
/>
<!-- Module_id Field. Type: Text. (joomla)-->
<field type="text"
name="module_id"
label="COM_MOLATION_M_RELATION_MODULE_ID_LABEL"
size="10"
maxlength="50"
default=""
description="COM_MOLATION_M_RELATION_MODULE_ID_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="INT"
message="COM_MOLATION_M_RELATION_MODULE_ID_MESSAGE"
autocomplete="on" />
</fieldset>
<!-- Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- Asset Id Field. Type: Hidden (joomla) -->
<field
name="asset_id"
type="hidden"
filter="unset"
/>
<!-- Rules Field. Type: Rules (joomla) -->
<field
name="rules"
type="rules"
label="Permissions in relation to this m_relation"
translate_label="false"
filter="rules"
validate="rules"
class="inputbox"
component="com_molation"
section="m_relation"
/>
</fieldset>
</form>PK���[u�fJ�N�Nmodels/import.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage import.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\Filesystem\File;
use Joomla\CMS\Filesystem\Folder;
use Joomla\Utilities\ArrayHelper;
use PhpOffice\PhpSpreadsheet\IOFactory;
/**
* Molation Import Model
*/
class MolationModelImport extends JModelLegacy
{
// set uploading values
protected $use_streams = false;
protected $allow_unsafe = false;
protected $safeFileOptions = array();
/**
* @var object JTable object
*/
protected $_table = null;
/**
* @var object JTable object
*/
protected $_url = null;
/**
* Model context string.
*
* @var string
*/
protected $_context = 'com_molation.import';
/**
* Import Settings
*/
protected $getType = NULL;
protected $dataType = NULL;
/**
* Method to auto-populate the model state.
*
* Note. Calling getState in this method will result in recursion.
*
* @return void
*
*/
protected function populateState()
{
$app = JFactory::getApplication('administrator');
$this->setState('message',
$app->getUserState('com_molation.message'));
$app->setUserState('com_molation.message', '');
// Recall the 'Import from Directory' path.
$path = $app->getUserStateFromRequest($this->_context .
'.import_directory', 'import_directory',
$app->get('tmp_path'));
$this->setState('import.directory', $path);
parent::populateState();
}
/**
* Import an spreadsheet from either folder, url or upload.
*
* @return boolean result of import
*
*/
public function import()
{
$this->setState('action', 'import');
$app = JFactory::getApplication();
$session = JFactory::getSession();
$package = null;
$continue = false;
// get import type
$this->getType = $app->input->getString('gettype',
NULL);
// get import type
$this->dataType =
$session->get('dataType_VDM_IMPORTINTO', NULL);
if ($package === null)
{
switch ($this->getType)
{
case 'folder':
// Remember the 'Import from Directory' path.
$app->getUserStateFromRequest($this->_context .
'.import_directory', 'import_directory');
$package = $this->_getPackageFromFolder();
break;
case 'upload':
$package = $this->_getPackageFromUpload();
break;
case 'url':
$package = $this->_getPackageFromUrl();
break;
case 'continue':
$continue = true;
$package = $session->get('package', null);
$package = json_decode($package, true);
// clear session
$session->clear('package');
$session->clear('dataType');
$session->clear('hasPackage');
break;
default:
$app->setUserState('com_molation.message',
JText::_('COM_MOLATION_IMPORT_NO_IMPORT_TYPE_FOUND'));
return false;
break;
}
}
// Was the package valid?
if (!$package || !$package['type'])
{
if (in_array($this->getType, array('upload',
'url')))
{
$this->remove($package['packagename']);
}
$app->setUserState('com_molation.message',
JText::_('COM_MOLATION_IMPORT_UNABLE_TO_FIND_IMPORT_PACKAGE'));
return false;
}
// first link data to table headers
if(!$continue){
$package = json_encode($package);
$session->set('package', $package);
$session->set('dataType', $this->dataType);
$session->set('hasPackage', true);
return true;
}
// set the data
$headerList =
json_decode($session->get($this->dataType.'_VDM_IMPORTHEADERS',
false), true);
if (!$this->setData($package,$this->dataType,$headerList))
{
// There was an error importing the package
$msg = JText::_('COM_MOLATION_IMPORT_ERROR');
$back = $session->get('backto_VDM_IMPORT', NULL);
if ($back)
{
$app->setUserState('com_molation.redirect_url',
'index.php?option=com_molation&view='.$back);
$session->clear('backto_VDM_IMPORT');
}
$result = false;
}
else
{
// Package imported sucessfully
$msg = JText::sprintf('COM_MOLATION_IMPORT_SUCCESS',
$package['packagename']);
$back = $session->get('backto_VDM_IMPORT', NULL);
if ($back)
{
$app->setUserState('com_molation.redirect_url',
'index.php?option=com_molation&view='.$back);
$session->clear('backto_VDM_IMPORT');
}
$result = true;
}
// Set some model state values
$app->enqueueMessage($msg);
// remove file after import
$this->remove($package['packagename']);
$session->clear($this->getType.'_VDM_IMPORTHEADERS');
return $result;
}
/**
* Works out an importation spreadsheet from a HTTP upload
*
* @return spreadsheet definition or false on failure
*/
protected function _getPackageFromUpload()
{
// Get the uploaded file information
$app = JFactory::getApplication();
$input = $app->input;
// Do not change the filter type 'raw'. We need this to let
files containing PHP code to upload. See JInputFiles::get.
$userfile = $input->files->get('import_package', null,
'raw');
// Make sure that file uploads are enabled in php
if (!(bool) ini_get('file_uploads'))
{
$app->enqueueMessage(JText::_('COM_MOLATION_IMPORT_MSG_WARNIMPORTFILE'),
'warning');
return false;
}
// If there is no uploaded file, we have a problem...
if (!is_array($userfile))
{
$app->enqueueMessage(JText::_('COM_MOLATION_IMPORT_MSG_NO_FILE_SELECTED'),
'warning');
return false;
}
// Check if there was a problem uploading the file.
if ($userfile['error'] || $userfile['size'] < 1)
{
$app->enqueueMessage(JText::_('COM_MOLATION_IMPORT_MSG_WARNIMPORTUPLOADERROR'),
'warning');
return false;
}
// Build the appropriate paths
$config = JFactory::getConfig();
$tmp_dest = $config->get('tmp_path') . '/' .
$userfile['name'];
$tmp_src = $userfile['tmp_name'];
// Move uploaded file
jimport('joomla.filesystem.file');
$p_file = File::upload($tmp_src, $tmp_dest, $this->use_streams,
$this->allow_unsafe, $this->safeFileOptions);
// Was the package downloaded?
if (!$p_file)
{
$session = JFactory::getSession();
$session->clear('package');
$session->clear('dataType');
$session->clear('hasPackage');
// was not uploaded
return false;
}
// check that this is a valid spreadsheet
$package = $this->check($userfile['name']);
return $package;
}
/**
* Import an spreadsheet from a directory
*
* @return array Spreadsheet details or false on failure
*
*/
protected function _getPackageFromFolder()
{
$app = JFactory::getApplication();
$input = $app->input;
// Get the path to the package to import
$p_dir = $input->getString('import_directory');
$p_dir = JPath::clean($p_dir);
// Did you give us a valid path?
if (!file_exists($p_dir))
{
$app->enqueueMessage(JText::_('COM_MOLATION_IMPORT_MSG_PLEASE_ENTER_A_PACKAGE_DIRECTORY'),
'warning');
return false;
}
// Detect the package type
$type = $this->getType;
// Did you give us a valid package?
if (!$type)
{
$app->enqueueMessage(JText::_('COM_MOLATION_IMPORT_MSG_PATH_DOES_NOT_HAVE_A_VALID_PACKAGE'),
'warning');
}
// check the extention
if(!$this->checkExtension($p_dir))
{
// set error message
$app->enqueueMessage(JText::_('COM_MOLATION_IMPORT_MSG_DOES_NOT_HAVE_A_VALID_FILE_TYPE'),
'warning');
return false;
}
$package['packagename'] = null;
$package['dir'] = $p_dir;
$package['type'] = $type;
return $package;
}
/**
* Import an spreadsheet from a URL
*
* @return Package details or false on failure
*
*/
protected function _getPackageFromUrl()
{
$app = JFactory::getApplication();
$input = $app->input;
// Get the URL of the package to import
$url = $input->getString('import_url');
// Did you give us a URL?
if (!$url)
{
$app->enqueueMessage(JText::_('COM_MOLATION_IMPORT_MSG_ENTER_A_URL'),
'warning');
return false;
}
// Download the package at the URL given
$p_file = JInstallerHelper::downloadPackage($url);
// Was the package downloaded?
if (!$p_file)
{
$app->enqueueMessage(JText::_('COM_MOLATION_IMPORT_MSG_INVALID_URL'),
'warning');
return false;
}
// check that this is a valid spreadsheet
$package = $this->check($p_file);
return $package;
}
/**
* Check a file and verifies it as a spreadsheet file
* Supports .csv .xlsx .xls and .ods
*
* @param string $p_filename The uploaded package filename or import
directory
*
* @return array of elements
*
*/
protected function check($archivename)
{
$app = JFactory::getApplication();
// Clean the name
$archivename = JPath::clean($archivename);
// check the extention
if(!$this->checkExtension($archivename))
{
// Cleanup the import files
$this->remove($archivename);
$app->enqueueMessage(JText::_('COM_MOLATION_IMPORT_MSG_DOES_NOT_HAVE_A_VALID_FILE_TYPE'),
'warning');
return false;
}
$config = JFactory::getConfig();
// set Package Name
$check['packagename'] = $archivename;
// set directory
$check['dir'] = $config->get('tmp_path').
'/' .$archivename;
// set type
$check['type'] = $this->getType;
return $check;
}
/**
* Check the extension
*
* @param string $file Name of the uploaded file
*
* @return boolean True on success
*
*/
protected function checkExtension($file)
{
// check the extention
switch(strtolower(pathinfo($file, PATHINFO_EXTENSION)))
{
case 'xls':
case 'ods':
case 'csv':
return true;
break;
}
return false;
}
/**
* Clean up temporary uploaded spreadsheet
*
* @param string $package Name of the uploaded spreadsheet file
*
* @return boolean True on success
*
*/
protected function remove($package)
{
jimport('joomla.filesystem.file');
$config = JFactory::getConfig();
$package = $config->get('tmp_path'). '/'
.$package;
// Is the package file a valid file?
if (is_file($package))
{
File::delete($package);
}
elseif (is_file(JPath::clean($package)))
{
// It might also be just a base filename
File::delete(JPath::clean($package));
}
}
/**
* Set the data from the spreadsheet to the database
*
* @param string $package Paths to the uploaded package file
*
* @return boolean false on failure
*
**/
protected function setData($package,$table,$target_headers)
{
if (MolationHelper::checkArray($target_headers))
{
// make sure the file is loaded
MolationHelper::composerAutoload('phpspreadsheet');
$jinput = JFactory::getApplication()->input;
foreach($target_headers as $header)
{
if (($column = $jinput->getString($header, false)) !== false ||
($column = $jinput->getString(strtolower($header), false)) !==
false)
{
$data['target_headers'][$header] = $column;
}
else
{
$data['target_headers'][$header] = null;
}
}
// set the data
if(isset($package['dir']))
{
$inputFileType = IOFactory::identify($package['dir']);
$excelReader = IOFactory::createReader($inputFileType);
$excelReader->setReadDataOnly(true);
$excelObj = $excelReader->load($package['dir']);
$data['array'] =
$excelObj->getActiveSheet()->toArray(null, true,true,true);
$excelObj->disconnectWorksheets();
unset($excelObj);
return $this->save($data, $table);
}
}
return false;
}
/**
* Save the data from the file to the database
*
* @param string $package Paths to the uploaded package file
*
* @return boolean false on failure
*
**/
protected function save($data,$table)
{
// import the data if there is any
if(MolationHelper::checkArray($data['array']))
{
// get user object
$user = JFactory::getUser();
// remove header if it has headers
$id_key = $data['target_headers']['id'];
$published_key =
$data['target_headers']['published'];
$ordering_key = $data['target_headers']['ordering'];
// get the first array set
$firstSet = reset($data['array']);
// check if first array is a header array and remove if true
if($firstSet[$id_key] == 'id' || $firstSet[$published_key] ==
'published' || $firstSet[$ordering_key] == 'ordering')
{
array_shift($data['array']);
}
// make sure there is still values in array and that it was not only
headers
if(MolationHelper::checkArray($data['array']) &&
$user->authorise($table.'.import', 'com_molation')
&& $user->authorise('core.import',
'com_molation'))
{
// set target.
$target = array_flip($data['target_headers']);
// Get a db connection.
$db = JFactory::getDbo();
// set some defaults
$todayDate = JFactory::getDate()->toSql();
// get global action permissions
$canDo = MolationHelper::getActions($table);
$canEdit = $canDo->get('core.edit');
$canState = $canDo->get('core.edit.state');
$canCreate = $canDo->get('core.create');
$hasAlias = $this->getAliasesUsed($table);
// prosses the data
foreach($data['array'] as $row)
{
$found = false;
if (isset($row[$id_key]) && is_numeric($row[$id_key])
&& $row[$id_key] > 0)
{
// raw items import & update!
$query = $db->getQuery(true);
$query
->select('version')
->from($db->quoteName('#__molation_'.$table))
->where($db->quoteName('id') . ' = '.
$db->quote($row[$id_key]));
// Reset the query using our newly populated query object.
$db->setQuery($query);
$db->execute();
$found = $db->getNumRows();
}
if($found && $canEdit)
{
// update item
$id = $row[$id_key];
$version = $db->loadResult();
// reset all buckets
$query = $db->getQuery(true);
$fields = array();
// Fields to update.
foreach($row as $key => $cell)
{
// ignore column
if ('IGNORE' == $target[$key])
{
continue;
}
// update modified
if ('modified_by' == $target[$key])
{
continue;
}
// update modified
if ('modified' == $target[$key])
{
continue;
}
// update version
if ('version' == $target[$key])
{
$cell = (int) $version + 1;
}
// verify publish authority
if ('published' == $target[$key] && !$canState)
{
continue;
}
// set to update array
if(in_array($key, $data['target_headers']) &&
is_numeric($cell))
{
$fields[] = $db->quoteName($target[$key]) . ' = ' .
$cell;
}
elseif(in_array($key, $data['target_headers']) &&
is_string($cell))
{
$fields[] = $db->quoteName($target[$key]) . ' = ' .
$db->quote($cell);
}
elseif(in_array($key, $data['target_headers']) &&
is_null($cell))
{
// if import data is null then set empty
$fields[] = $db->quoteName($target[$key]) . " =
''";
}
}
// load the defaults
$fields[] = $db->quoteName('modified_by') . ' =
' . $db->quote($user->id);
$fields[] = $db->quoteName('modified') . ' = '
. $db->quote($todayDate);
// Conditions for which records should be updated.
$conditions = array(
$db->quoteName('id') . ' = ' . $id
);
$query->update($db->quoteName('#__molation_'.$table))->set($fields)->where($conditions);
$db->setQuery($query);
$db->execute();
}
elseif ($canCreate)
{
// insert item
$query = $db->getQuery(true);
// reset all buckets
$columns = array();
$values = array();
$version = false;
// Insert columns. Insert values.
foreach($row as $key => $cell)
{
// ignore column
if ('IGNORE' == $target[$key])
{
continue;
}
// remove id
if ('id' == $target[$key])
{
continue;
}
// update created
if ('created_by' == $target[$key])
{
continue;
}
// update created
if ('created' == $target[$key])
{
continue;
}
// Make sure the alias is incremented
if ('alias' == $target[$key])
{
$cell = $this->getAlias($cell,$table);
}
// update version
if ('version' == $target[$key])
{
$cell = 1;
$version = true;
}
// set to insert array
if(in_array($key, $data['target_headers']) &&
is_numeric($cell))
{
$columns[] = $target[$key];
$values[] = $cell;
}
elseif(in_array($key, $data['target_headers']) &&
is_string($cell))
{
$columns[] = $target[$key];
$values[] = $db->quote($cell);
}
elseif(in_array($key, $data['target_headers']) &&
is_null($cell))
{
// if import data is null then set empty
$columns[] = $target[$key];
$values[] = "''";
}
}
// load the defaults
$columns[] = 'created_by';
$values[] = $db->quote($user->id);
$columns[] = 'created';
$values[] = $db->quote($todayDate);
if (!$version)
{
$columns[] = 'version';
$values[] = 1;
}
// Prepare the insert query.
$query
->insert($db->quoteName('#__molation_'.$table))
->columns($db->quoteName($columns))
->values(implode(',', $values));
// Set the query using our newly populated query object and execute
it.
$db->setQuery($query);
$done = $db->execute();
if ($done)
{
$aId = $db->insertid();
// make sure the access of asset is set
MolationHelper::setAsset($aId,$table);
}
}
else
{
return false;
}
}
return true;
}
}
return false;
}
protected function getAlias($name,$type = false)
{
// sanitize the name to an alias
if (JFactory::getConfig()->get('unicodeslugs') == 1)
{
$alias = JFilterOutput::stringURLUnicodeSlug($name);
}
else
{
$alias = JFilterOutput::stringURLSafe($name);
}
// must be a uniqe alias
if ($type)
{
return $this->getUniqe($alias,'alias',$type);
}
return $alias;
}
/**
* Method to generate a uniqe value.
*
* @param string $field name.
* @param string $value data.
* @param string $type table.
*
* @return string New value.
*/
protected function getUniqe($value,$field,$type)
{
// insure the filed is always uniqe
while (isset($this->uniqeValueArray[$type][$field][$value]))
{
$value = JString::increment($value, 'dash');
}
$this->uniqeValueArray[$type][$field][$value] = $value;
return $value;
}
protected function getAliasesUsed($table)
{
// Get a db connection.
$db = JFactory::getDbo();
// first we check if there is a alias column
$columns = $db->getTableColumns('#__molation_'.$table);
if(isset($columns['alias'])){
// Create a new query object.
$query = $db->getQuery(true);
$query->select($db->quoteName(array('alias')));
$query->from($db->quoteName('#__molation_'.$table));
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
$aliases = $db->loadColumn();
foreach($aliases as $alias)
{
$this->uniqeValueArray[$table]['alias'][$alias] = $alias;
}
}
return true;
}
return false;
}
}
PK���[�#o,,models/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[T�1��models/molation.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage molation.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
/**
* Molation Model
*/
class MolationModelMolation extends JModelList
{
public function getIcons()
{
// load user for access menus
$user = JFactory::getUser();
// reset icon array
$icons = array();
// view groups array
$viewGroups = array(
'main' => array('png.m_relations')
);
// view access array
$viewAccess = array(
'm_relations.access' => 'm_relation.access',
'm_relation.access' => 'm_relation.access',
'm_relations.submenu' => 'm_relation.submenu',
'm_relations.dashboard_list' =>
'm_relation.dashboard_list');
// loop over the $views
foreach($viewGroups as $group => $views)
{
$i = 0;
if (MolationHelper::checkArray($views))
{
foreach($views as $view)
{
$add = false;
// external views (links)
if (strpos($view,'||') !== false)
{
$dwd = explode('||', $view);
if (count($dwd) == 3)
{
list($type, $name, $url) = $dwd;
$viewName = $name;
$alt = $name;
$url = $url;
$image = $name . '.' . $type;
$name = 'COM_MOLATION_DASHBOARD_' .
MolationHelper::safeString($name,'U');
}
}
// internal views
elseif (strpos($view,'.') !== false)
{
$dwd = explode('.', $view);
if (count($dwd) == 3)
{
list($type, $name, $action) = $dwd;
}
elseif (count($dwd) == 2)
{
list($type, $name) = $dwd;
$action = false;
}
if ($action)
{
$viewName = $name;
switch($action)
{
case 'add':
$url = 'index.php?option=com_molation&view=' . $name
. '&layout=edit';
$image = $name . '_' . $action. '.' . $type;
$alt = $name . ' ' . $action;
$name =
'COM_MOLATION_DASHBOARD_'.MolationHelper::safeString($name,'U').'_ADD';
$add = true;
break;
default:
// check for new convention (more stable)
if (strpos($action, '_qpo0O0oqp_') !== false)
{
list($action, $extension) = (array)
explode('_qpo0O0oqp_', $action);
$extension = str_replace('_po0O0oq_', '.',
$extension);
}
else
{
$extension = 'com_molation.' . $name;
}
$url =
'index.php?option=com_categories&view=categories&extension='
. $extension;
$image = $name . '_' . $action . '.' . $type;
$alt = $viewName . ' ' . $action;
$name = 'COM_MOLATION_DASHBOARD_' .
MolationHelper::safeString($name,'U') . '_' .
MolationHelper::safeString($action,'U');
break;
}
}
else
{
$viewName = $name;
$alt = $name;
$url = 'index.php?option=com_molation&view=' .
$name;
$image = $name . '.' . $type;
$name = 'COM_MOLATION_DASHBOARD_' .
MolationHelper::safeString($name,'U');
$hover = false;
}
}
else
{
$viewName = $view;
$alt = $view;
$url = 'index.php?option=com_molation&view=' . $view;
$image = $view . '.png';
$name = ucwords($view).'<br /><br />';
$hover = false;
}
// first make sure the view access is set
if (MolationHelper::checkArray($viewAccess))
{
// setup some defaults
$dashboard_add = false;
$dashboard_list = false;
$accessTo = '';
$accessAdd = '';
// access checking start
$accessCreate = (isset($viewAccess[$viewName.'.create'])) ?
MolationHelper::checkString($viewAccess[$viewName.'.create']):false;
$accessAccess = (isset($viewAccess[$viewName.'.access'])) ?
MolationHelper::checkString($viewAccess[$viewName.'.access']):false;
// set main controllers
$accessDashboard_add =
(isset($viewAccess[$viewName.'.dashboard_add'])) ?
MolationHelper::checkString($viewAccess[$viewName.'.dashboard_add']):false;
$accessDashboard_list =
(isset($viewAccess[$viewName.'.dashboard_list'])) ?
MolationHelper::checkString($viewAccess[$viewName.'.dashboard_list']):false;
// check for adding access
if ($add && $accessCreate)
{
$accessAdd = $viewAccess[$viewName.'.create'];
}
elseif ($add)
{
$accessAdd = 'core.create';
}
// check if access to view is set
if ($accessAccess)
{
$accessTo = $viewAccess[$viewName.'.access'];
}
// set main access controllers
if ($accessDashboard_add)
{
$dashboard_add =
$user->authorise($viewAccess[$viewName.'.dashboard_add'],
'com_molation');
}
if ($accessDashboard_list)
{
$dashboard_list =
$user->authorise($viewAccess[$viewName.'.dashboard_list'],
'com_molation');
}
if (MolationHelper::checkString($accessAdd) &&
MolationHelper::checkString($accessTo))
{
// check access
if($user->authorise($accessAdd, 'com_molation')
&& $user->authorise($accessTo, 'com_molation')
&& $dashboard_add)
{
$icons[$group][$i] = new StdClass;
$icons[$group][$i]->url = $url;
$icons[$group][$i]->name = $name;
$icons[$group][$i]->image = $image;
$icons[$group][$i]->alt = $alt;
}
}
elseif (MolationHelper::checkString($accessTo))
{
// check access
if($user->authorise($accessTo, 'com_molation')
&& $dashboard_list)
{
$icons[$group][$i] = new StdClass;
$icons[$group][$i]->url = $url;
$icons[$group][$i]->name = $name;
$icons[$group][$i]->image = $image;
$icons[$group][$i]->alt = $alt;
}
}
elseif (MolationHelper::checkString($accessAdd))
{
// check access
if($user->authorise($accessAdd, 'com_molation')
&& $dashboard_add)
{
$icons[$group][$i] = new StdClass;
$icons[$group][$i]->url = $url;
$icons[$group][$i]->name = $name;
$icons[$group][$i]->image = $image;
$icons[$group][$i]->alt = $alt;
}
}
else
{
$icons[$group][$i] = new StdClass;
$icons[$group][$i]->url = $url;
$icons[$group][$i]->name = $name;
$icons[$group][$i]->image = $image;
$icons[$group][$i]->alt = $alt;
}
}
else
{
$icons[$group][$i] = new StdClass;
$icons[$group][$i]->url = $url;
$icons[$group][$i]->name = $name;
$icons[$group][$i]->image = $image;
$icons[$group][$i]->alt = $alt;
}
$i++;
}
}
else
{
$icons[$group][$i] = false;
}
}
return $icons;
}
}
PK���[c �TTmodels/m_relation.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage m_relation.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\Registry\Registry;
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
/**
* Molation M_relation Model
*/
class MolationModelM_relation extends JModelAdmin
{
/**
* The tab layout fields array.
*
* @var array
*/
protected $tabLayoutFields = array(
'details' => array(
'left' => array(
'user'
),
'right' => array(
'module_id'
)
)
);
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_MOLATION';
/**
* The type alias for this content type.
*
* @var string
* @since 3.2
*/
public $typeAlias = 'com_molation.m_relation';
/**
* Returns a Table object, always creating it
*
* @param type $type The table type to instantiate
* @param string $prefix A prefix for the table class name. Optional.
* @param array $config Configuration array for model. Optional.
*
* @return JTable A database object
*
* @since 1.6
*/
public function getTable($type = 'm_relation', $prefix =
'MolationTable', $config = array())
{
// add table path for when model gets used from other component
$this->addTablePath(JPATH_ADMINISTRATOR .
'/components/com_molation/tables');
// get instance of the table
return JTable::getInstance($type, $prefix, $config);
}
/**
* Method to get a single record.
*
* @param integer $pk The id of the primary key.
*
* @return mixed Object on success, false on failure.
*
* @since 1.6
*/
public function getItem($pk = null)
{
if ($item = parent::getItem($pk))
{
if (!empty($item->params) && !is_array($item->params))
{
// Convert the params field to an array.
$registry = new Registry;
$registry->loadString($item->params);
$item->params = $registry->toArray();
}
if (!empty($item->metadata))
{
// Convert the metadata field to an array.
$registry = new Registry;
$registry->loadString($item->metadata);
$item->metadata = $registry->toArray();
}
}
return $item;
}
/**
* Method to get the record form.
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data
(default case), false if not.
* @param array $options Optional array of options for the form
creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true, $options =
array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// check if xpath was set in options
$xpath = false;
if (isset($options['xpath']))
{
$xpath = $options['xpath'];
unset($options['xpath']);
}
// check if clear form was set in options
$clear = false;
if (isset($options['clear']))
{
$clear = $options['clear'];
unset($options['clear']);
}
// Get the form.
$form = $this->loadForm('com_molation.m_relation',
'm_relation', $options, $clear, $xpath);
if (empty($form))
{
return false;
}
$jinput = JFactory::getApplication()->input;
// The front end calls this model and uses a_id to avoid id clashes so we
need to check for that first.
if ($jinput->get('a_id'))
{
$id = $jinput->get('a_id', 0, 'INT');
}
// The back end uses id so we use that the rest of the time and set it to
0 by default.
else
{
$id = $jinput->get('id', 0, 'INT');
}
$user = JFactory::getUser();
// Check for existing item.
// Modify the form based on Edit State access controls.
if ($id != 0 &&
(!$user->authorise('core.edit.state',
'com_molation.m_relation.' . (int) $id))
|| ($id == 0 &&
!$user->authorise('core.edit.state',
'com_molation')))
{
// Disable fields for display.
$form->setFieldAttribute('ordering', 'disabled',
'true');
$form->setFieldAttribute('published', 'disabled',
'true');
// Disable fields while saving.
$form->setFieldAttribute('ordering', 'filter',
'unset');
$form->setFieldAttribute('published', 'filter',
'unset');
}
// If this is a new item insure the greated by is set.
if (0 == $id)
{
// Set the created_by to this user
$form->setValue('created_by', null, $user->id);
}
// Modify the form based on Edit Creaded By access controls.
if (!$user->authorise('core.edit.created_by',
'com_molation'))
{
// Disable fields for display.
$form->setFieldAttribute('created_by',
'disabled', 'true');
// Disable fields for display.
$form->setFieldAttribute('created_by',
'readonly', 'true');
// Disable fields while saving.
$form->setFieldAttribute('created_by', 'filter',
'unset');
}
// Modify the form based on Edit Creaded Date access controls.
if (!$user->authorise('core.edit.created',
'com_molation'))
{
// Disable fields for display.
$form->setFieldAttribute('created', 'disabled',
'true');
// Disable fields while saving.
$form->setFieldAttribute('created', 'filter',
'unset');
}
// Only load these values if no id is found
if (0 == $id)
{
// Set redirected view name
$redirectedView = $jinput->get('ref', null,
'STRING');
// Set field name (or fall back to view name)
$redirectedField = $jinput->get('field', $redirectedView,
'STRING');
// Set redirected view id
$redirectedId = $jinput->get('refid', 0, 'INT');
// Set field id (or fall back to redirected view id)
$redirectedValue = $jinput->get('field_id', $redirectedId,
'INT');
if (0 != $redirectedValue && $redirectedField)
{
// Now set the local-redirected field default value
$form->setValue($redirectedField, null, $redirectedValue);
}
}
return $form;
}
/**
* Method to get the script that have to be included on the form
*
* @return string script files
*/
public function getScript()
{
return 'media/com_molation/js/m_relation.js';
}
/**
* Method to test whether a record can be deleted.
*
* @param object $record A record object.
*
* @return boolean True if allowed to delete the record. Defaults to the
permission set in the component.
*
* @since 1.6
*/
protected function canDelete($record)
{
if (!empty($record->id))
{
if ($record->published != -2)
{
return;
}
$user = JFactory::getUser();
// The record has been set. Check the record permissions.
return $user->authorise('core.delete',
'com_molation.m_relation.' . (int) $record->id);
}
return false;
}
/**
* Method to test whether a record can have its state edited.
*
* @param object $record A record object.
*
* @return boolean True if allowed to change the state of the record.
Defaults to the permission set in the component.
*
* @since 1.6
*/
protected function canEditState($record)
{
$user = JFactory::getUser();
$recordId = (!empty($record->id)) ? $record->id : 0;
if ($recordId)
{
// The record has been set. Check the record permissions.
$permission = $user->authorise('core.edit.state',
'com_molation.m_relation.' . (int) $recordId);
if (!$permission && !is_null($permission))
{
return false;
}
}
// In the absense of better information, revert to the component
permissions.
return parent::canEditState($record);
}
/**
* Method override to check if you can edit an existing record.
*
* @param array $data An array of input data.
* @param string $key The name of the key for the primary key.
*
* @return boolean
* @since 2.5
*/
protected function allowEdit($data = array(), $key = 'id')
{
// Check specific edit permission then general edit permission.
return JFactory::getUser()->authorise('core.edit',
'com_molation.m_relation.'. ((int) isset($data[$key]) ?
$data[$key] : 0)) or parent::allowEdit($data, $key);
}
/**
* Prepare and sanitise the table data prior to saving.
*
* @param JTable $table A JTable object.
*
* @return void
*
* @since 1.6
*/
protected function prepareTable($table)
{
$date = JFactory::getDate();
$user = JFactory::getUser();
if (isset($table->name))
{
$table->name = htmlspecialchars_decode($table->name, ENT_QUOTES);
}
if (isset($table->alias) && empty($table->alias))
{
$table->generateAlias();
}
if (empty($table->id))
{
$table->created = $date->toSql();
// set the user
if ($table->created_by == 0 || empty($table->created_by))
{
$table->created_by = $user->id;
}
// Set ordering to the last item if not set
if (empty($table->ordering))
{
$db = JFactory::getDbo();
$query = $db->getQuery(true)
->select('MAX(ordering)')
->from($db->quoteName('#__molation_m_relation'));
$db->setQuery($query);
$max = $db->loadResult();
$table->ordering = $max + 1;
}
}
else
{
$table->modified = $date->toSql();
$table->modified_by = $user->id;
}
if (!empty($table->id))
{
// Increment the items version number.
$table->version++;
}
}
/**
* Method to get the data that should be injected in the form.
*
* @return mixed The data for the form.
*
* @since 1.6
*/
protected function loadFormData()
{
// Check the session for previously entered form data.
$data =
JFactory::getApplication()->getUserState('com_molation.edit.m_relation.data',
array());
if (empty($data))
{
$data = $this->getItem();
// run the perprocess of the data
$this->preprocessData('com_molation.m_relation', $data);
}
return $data;
}
/**
* Method to get the unique fields of this table.
*
* @return mixed An array of field names, boolean false if none is set.
*
* @since 3.0
*/
protected function getUniqueFields()
{
return false;
}
/**
* Method to delete one or more records.
*
* @param array &$pks An array of record primary keys.
*
* @return boolean True if successful, false if an error occurs.
*
* @since 12.2
*/
public function delete(&$pks)
{
if (!parent::delete($pks))
{
return false;
}
return true;
}
/**
* Method to change the published state of one or more records.
*
* @param array &$pks A list of the primary keys to change.
* @param integer $value The value of the published state.
*
* @return boolean True on success.
*
* @since 12.2
*/
public function publish(&$pks, $value = 1)
{
if (!parent::publish($pks, $value))
{
return false;
}
return true;
}
/**
* Method to perform batch operations on an item or a set of items.
*
* @param array $commands An array of commands to perform.
* @param array $pks An array of item ids.
* @param array $contexts An array of item contexts.
*
* @return boolean Returns true on success, false on failure.
*
* @since 12.2
*/
public function batch($commands, $pks, $contexts)
{
// Sanitize ids.
$pks = array_unique($pks);
ArrayHelper::toInteger($pks);
// Remove any values of zero.
if (array_search(0, $pks, true))
{
unset($pks[array_search(0, $pks, true)]);
}
if (empty($pks))
{
$this->setError(JText::_('JGLOBAL_NO_ITEM_SELECTED'));
return false;
}
$done = false;
// Set some needed variables.
$this->user = JFactory::getUser();
$this->table = $this->getTable();
$this->tableClassName = get_class($this->table);
$this->contentType = new JUcmType;
$this->type =
$this->contentType->getTypeByTable($this->tableClassName);
$this->canDo = MolationHelper::getActions('m_relation');
$this->batchSet = true;
if (!$this->canDo->get('core.batch'))
{
$this->setError(JText::_('JLIB_APPLICATION_ERROR_INSUFFICIENT_BATCH_INFORMATION'));
return false;
}
if ($this->type == false)
{
$type = new JUcmType;
$this->type = $type->getTypeByAlias($this->typeAlias);
}
$this->tagsObserver =
$this->table->getObserverOfClass('JTableObserverTags');
if (!empty($commands['move_copy']))
{
$cmd = ArrayHelper::getValue($commands, 'move_copy',
'c');
if ($cmd == 'c')
{
$result = $this->batchCopy($commands, $pks, $contexts);
if (is_array($result))
{
foreach ($result as $old => $new)
{
$contexts[$new] = $contexts[$old];
}
$pks = array_values($result);
}
else
{
return false;
}
}
elseif ($cmd == 'm' && !$this->batchMove($commands,
$pks, $contexts))
{
return false;
}
$done = true;
}
if (!$done)
{
$this->setError(JText::_('JLIB_APPLICATION_ERROR_INSUFFICIENT_BATCH_INFORMATION'));
return false;
}
// Clear the cache
$this->cleanCache();
return true;
}
/**
* Batch copy items to a new category or current.
*
* @param integer $values The new values.
* @param array $pks An array of row IDs.
* @param array $contexts An array of item contexts.
*
* @return mixed An array of new IDs on success, boolean false on
failure.
*
* @since 12.2
*/
protected function batchCopy($values, $pks, $contexts)
{
if (empty($this->batchSet))
{
// Set some needed variables.
$this->user = JFactory::getUser();
$this->table = $this->getTable();
$this->tableClassName = get_class($this->table);
$this->canDo = MolationHelper::getActions('m_relation');
}
if (!$this->canDo->get('core.create') ||
!$this->canDo->get('core.batch'))
{
return false;
}
// get list of unique fields
$uniqueFields = $this->getUniqueFields();
// remove move_copy from array
unset($values['move_copy']);
// make sure published is set
if (!isset($values['published']))
{
$values['published'] = 0;
}
elseif (isset($values['published']) &&
!$this->canDo->get('core.edit.state'))
{
$values['published'] = 0;
}
$newIds = array();
// Parent exists so let's proceed
while (!empty($pks))
{
// Pop the first ID off the stack
$pk = array_shift($pks);
$this->table->reset();
// only allow copy if user may edit this item.
if (!$this->user->authorise('core.edit',
$contexts[$pk]))
{
// Not fatal error
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND',
$pk));
continue;
}
// Check that the row actually exists
if (!$this->table->load($pk))
{
if ($error = $this->table->getError())
{
// Fatal error
$this->setError($error);
return false;
}
else
{
// Not fatal error
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND',
$pk));
continue;
}
}
// insert all set values
if (MolationHelper::checkArray($values))
{
foreach ($values as $key => $value)
{
if (strlen($value) > 0 && isset($this->table->$key))
{
$this->table->$key = $value;
}
}
}
// update all unique fields
if (MolationHelper::checkArray($uniqueFields))
{
foreach ($uniqueFields as $uniqueField)
{
$this->table->$uniqueField =
$this->generateUnique($uniqueField,$this->table->$uniqueField);
}
}
// Reset the ID because we are making a copy
$this->table->id = 0;
// TODO: Deal with ordering?
// $this->table->ordering = 1;
// Check the row.
if (!$this->table->check())
{
$this->setError($this->table->getError());
return false;
}
if (!empty($this->type))
{
$this->createTagsHelper($this->tagsObserver, $this->type, $pk,
$this->typeAlias, $this->table);
}
// Store the row.
if (!$this->table->store())
{
$this->setError($this->table->getError());
return false;
}
// Get the new item ID
$newId = $this->table->get('id');
// Add the new ID to the array
$newIds[$pk] = $newId;
}
// Clean the cache
$this->cleanCache();
return $newIds;
}
/**
* Batch move items to a new category
*
* @param integer $value The new category ID.
* @param array $pks An array of row IDs.
* @param array $contexts An array of item contexts.
*
* @return boolean True if successful, false otherwise and internal
error is set.
*
* @since 12.2
*/
protected function batchMove($values, $pks, $contexts)
{
if (empty($this->batchSet))
{
// Set some needed variables.
$this->user = JFactory::getUser();
$this->table = $this->getTable();
$this->tableClassName = get_class($this->table);
$this->canDo = MolationHelper::getActions('m_relation');
}
if (!$this->canDo->get('core.edit') &&
!$this->canDo->get('core.batch'))
{
$this->setError(JText::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT'));
return false;
}
// make sure published only updates if user has the permission.
if (isset($values['published']) &&
!$this->canDo->get('core.edit.state'))
{
unset($values['published']);
}
// remove move_copy from array
unset($values['move_copy']);
// Parent exists so we proceed
foreach ($pks as $pk)
{
if (!$this->user->authorise('core.edit',
$contexts[$pk]))
{
$this->setError(JText::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT'));
return false;
}
// Check that the row actually exists
if (!$this->table->load($pk))
{
if ($error = $this->table->getError())
{
// Fatal error
$this->setError($error);
return false;
}
else
{
// Not fatal error
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND',
$pk));
continue;
}
}
// insert all set values.
if (MolationHelper::checkArray($values))
{
foreach ($values as $key => $value)
{
// Do special action for access.
if ('access' === $key && strlen($value) > 0)
{
$this->table->$key = $value;
}
elseif (strlen($value) > 0 &&
isset($this->table->$key))
{
$this->table->$key = $value;
}
}
}
// Check the row.
if (!$this->table->check())
{
$this->setError($this->table->getError());
return false;
}
if (!empty($this->type))
{
$this->createTagsHelper($this->tagsObserver, $this->type, $pk,
$this->typeAlias, $this->table);
}
// Store the row.
if (!$this->table->store())
{
$this->setError($this->table->getError());
return false;
}
}
// Clean the cache
$this->cleanCache();
return true;
}
/**
* Method to save the form data.
*
* @param array $data The form data.
*
* @return boolean True on success.
*
* @since 1.6
*/
public function save($data)
{
$input = JFactory::getApplication()->input;
$filter = JFilterInput::getInstance();
// set the metadata to the Item Data
if (isset($data['metadata']) &&
isset($data['metadata']['author']))
{
$data['metadata']['author'] =
$filter->clean($data['metadata']['author'],
'TRIM');
$metadata = new JRegistry;
$metadata->loadArray($data['metadata']);
$data['metadata'] = (string) $metadata;
}
// Set the Params Items to data
if (isset($data['params']) &&
is_array($data['params']))
{
$params = new JRegistry;
$params->loadArray($data['params']);
$data['params'] = (string) $params;
}
// Alter the unique field for save as copy
if ($input->get('task') === 'save2copy')
{
// Automatic handling of other unique fields
$uniqueFields = $this->getUniqueFields();
if (MolationHelper::checkArray($uniqueFields))
{
foreach ($uniqueFields as $uniqueField)
{
$data[$uniqueField] =
$this->generateUnique($uniqueField,$data[$uniqueField]);
}
}
}
if (parent::save($data))
{
return true;
}
return false;
}
/**
* Method to generate a unique value.
*
* @param string $field name.
* @param string $value data.
*
* @return string New value.
*
* @since 3.0
*/
protected function generateUnique($field,$value)
{
// set field value unique
$table = $this->getTable();
while ($table->load(array($field => $value)))
{
$value = StringHelper::increment($value);
}
return $value;
}
/**
* Method to change the title
*
* @param string $title The title.
*
* @return array Contains the modified title and alias.
*
*/
protected function _generateNewTitle($title)
{
// Alter the title
$table = $this->getTable();
while ($table->load(array('title' => $title)))
{
$title = StringHelper::increment($title);
}
return $title;
}
}
PK���[0�>;+;+models/m_relations.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage m_relations.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper;
/**
* M_relations Model
*/
class MolationModelM_relations extends JModelList
{
public function __construct($config = array())
{
if (empty($config['filter_fields']))
{
$config['filter_fields'] = array(
'a.id','id',
'a.published','published',
'a.access','access',
'a.ordering','ordering',
'a.created_by','created_by',
'a.modified_by','modified_by',
'a.module_id','module_id'
);
}
parent::__construct($config);
}
/**
* Method to auto-populate the model state.
*
* Note. Calling getState in this method will result in recursion.
*
* @param string $ordering An optional ordering field.
* @param string $direction An optional direction (asc|desc).
*
* @return void
*
*/
protected function populateState($ordering = null, $direction = null)
{
$app = JFactory::getApplication();
// Adjust the context to support modal layouts.
if ($layout = $app->input->get('layout'))
{
$this->context .= '.' . $layout;
}
// Check if the form was submitted
$formSubmited =
$app->input->post->get('form_submited');
$access = $this->getUserStateFromRequest($this->context .
'.filter.access', 'filter_access', 0, 'int');
if ($formSubmited)
{
$access = $app->input->post->get('access');
$this->setState('filter.access', $access);
}
$published = $this->getUserStateFromRequest($this->context .
'.filter.published', 'filter_published', '');
$this->setState('filter.published', $published);
$created_by = $this->getUserStateFromRequest($this->context .
'.filter.created_by', 'filter_created_by',
'');
$this->setState('filter.created_by', $created_by);
$created = $this->getUserStateFromRequest($this->context .
'.filter.created', 'filter_created');
$this->setState('filter.created', $created);
$sorting = $this->getUserStateFromRequest($this->context .
'.filter.sorting', 'filter_sorting', 0,
'int');
$this->setState('filter.sorting', $sorting);
$search = $this->getUserStateFromRequest($this->context .
'.filter.search', 'filter_search');
$this->setState('filter.search', $search);
$module_id = $this->getUserStateFromRequest($this->context .
'.filter.module_id', 'filter_module_id');
if ($formSubmited)
{
$module_id = $app->input->post->get('module_id');
$this->setState('filter.module_id', $module_id);
}
// List state information.
parent::populateState($ordering, $direction);
}
/**
* Method to get an array of data items.
*
* @return mixed An array of data items on success, false on failure.
*/
public function getItems()
{
// check in items
$this->checkInNow();
// load parent items
$items = parent::getItems();
// return items
return $items;
}
/**
* Method to build an SQL query to load the list data.
*
* @return string An SQL query
*/
protected function getListQuery()
{
// Get the user object.
$user = JFactory::getUser();
// Create a new query object.
$db = JFactory::getDBO();
$query = $db->getQuery(true);
// Select some fields
$query->select('a.*');
// From the molation_item table
$query->from($db->quoteName('#__molation_m_relation',
'a'));
// Filter by published state
$published = $this->getState('filter.published');
if (is_numeric($published))
{
$query->where('a.published = ' . (int) $published);
}
elseif ($published === '')
{
$query->where('(a.published = 0 OR a.published = 1)');
}
// Join over the asset groups.
$query->select('ag.title AS access_level');
$query->join('LEFT', '#__viewlevels AS ag ON ag.id =
a.access');
// Filter by access level.
$_access = $this->getState('filter.access');
if ($_access && is_numeric($_access))
{
$query->where('a.access = ' . (int) $_access);
}
elseif (MolationHelper::checkArray($_access))
{
// Secure the array for the query
$_access = ArrayHelper::toInteger($_access);
// Filter by the Access Array.
$query->where('a.access IN (' . implode(',',
$_access) . ')');
}
// Implement View Level Access
if (!$user->authorise('core.options',
'com_molation'))
{
$groups = implode(',', $user->getAuthorisedViewLevels());
$query->where('a.access IN (' . $groups . ')');
}
// Filter by search.
$search = $this->getState('filter.search');
if (!empty($search))
{
if (stripos($search, 'id:') === 0)
{
$query->where('a.id = ' . (int) substr($search, 3));
}
else
{
$search = $db->quote('%' . $db->escape($search) .
'%');
$query->where('(a.module_id LIKE '.$search.')');
}
}
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering',
'a.id');
$orderDirn = $this->state->get('list.direction',
'desc');
if ($orderCol != '')
{
$query->order($db->escape($orderCol . ' ' .
$orderDirn));
}
return $query;
}
/**
* Method to get list export data.
*
* @param array $pks The ids of the items to get
* @param JUser $user The user making the request
*
* @return mixed An array of data items on success, false on failure.
*/
public function getExportData($pks, $user = null)
{
// setup the query
if (($pks_size = MolationHelper::checkArray($pks)) !== false ||
'bulk' === $pks)
{
// Set a value to know this is export method. (USE IN CUSTOM CODE TO
ALTER OUTCOME)
$_export = true;
// Get the user object if not set.
if (!isset($user) || !MolationHelper::checkObject($user))
{
$user = JFactory::getUser();
}
// Create a new query object.
$db = JFactory::getDBO();
$query = $db->getQuery(true);
// Select some fields
$query->select('a.*');
// From the molation_m_relation table
$query->from($db->quoteName('#__molation_m_relation',
'a'));
// The bulk export path
if ('bulk' === $pks)
{
$query->where('a.id > 0');
}
// A large array of ID's will not work out well
elseif ($pks_size > 500)
{
// Use lowest ID
$query->where('a.id >= ' . (int) min($pks));
// Use highest ID
$query->where('a.id <= ' . (int) max($pks));
}
// The normal default path
else
{
$query->where('a.id IN (' . implode(',',$pks) .
')');
}
// Implement View Level Access
if (!$user->authorise('core.options',
'com_molation'))
{
$groups = implode(',', $user->getAuthorisedViewLevels());
$query->where('a.access IN (' . $groups . ')');
}
// Order the results by ordering
$query->order('a.ordering ASC');
// Load the items
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
$items = $db->loadObjectList();
// Set values to display correctly.
if (MolationHelper::checkArray($items))
{
foreach ($items as $nr => &$item)
{
// unset the values we don't want exported.
unset($item->asset_id);
unset($item->checked_out);
unset($item->checked_out_time);
}
}
// Add headers to items array.
$headers = $this->getExImPortHeaders();
if (MolationHelper::checkObject($headers))
{
array_unshift($items,$headers);
}
return $items;
}
}
return false;
}
/**
* Method to get header.
*
* @return mixed An array of data items on success, false on failure.
*/
public function getExImPortHeaders()
{
// Get a db connection.
$db = JFactory::getDbo();
// get the columns
$columns = $db->getTableColumns("#__molation_m_relation");
if (MolationHelper::checkArray($columns))
{
// remove the headers you don't import/export.
unset($columns['asset_id']);
unset($columns['checked_out']);
unset($columns['checked_out_time']);
$headers = new stdClass();
foreach ($columns as $column => $type)
{
$headers->{$column} = $column;
}
return $headers;
}
return false;
}
/**
* Method to get a store id based on model configuration state.
*
* @return string A store id.
*
*/
protected function getStoreId($id = '')
{
// Compile the store id.
$id .= ':' . $this->getState('filter.id');
$id .= ':' . $this->getState('filter.search');
$id .= ':' . $this->getState('filter.published');
// Check if the value is an array
$_access = $this->getState('filter.access');
if (MolationHelper::checkArray($_access))
{
$id .= ':' . implode(':', $_access);
}
// Check if this is only an number or string
elseif (is_numeric($_access)
|| MolationHelper::checkString($_access))
{
$id .= ':' . $_access;
}
$id .= ':' . $this->getState('filter.ordering');
$id .= ':' . $this->getState('filter.created_by');
$id .= ':' .
$this->getState('filter.modified_by');
$id .= ':' . $this->getState('filter.module_id');
return parent::getStoreId($id);
}
/**
* Build an SQL query to checkin all items left checked out longer then a
set time.
*
* @return a bool
*
*/
protected function checkInNow()
{
// Get set check in time
$time =
JComponentHelper::getParams('com_molation')->get('check_in');
if ($time)
{
// Get a db connection.
$db = JFactory::getDbo();
// reset query
$query = $db->getQuery(true);
$query->select('*');
$query->from($db->quoteName('#__molation_m_relation'));
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
// Get Yesterdays date
$date = JFactory::getDate()->modify($time)->toSql();
// reset query
$query = $db->getQuery(true);
// Fields to update.
$fields = array(
$db->quoteName('checked_out_time') .
'=\'0000-00-00 00:00:00\'',
$db->quoteName('checked_out') . '=0'
);
// Conditions for which records should be updated.
$conditions = array(
$db->quoteName('checked_out') . '!=0',
$db->quoteName('checked_out_time') .
'<\''.$date.'\''
);
// Check table
$query->update($db->quoteName('#__molation_m_relation'))->set($fields)->where($conditions);
$db->setQuery($query);
$db->execute();
}
}
return false;
}
}
PK���[�#o,,models/rules/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[���O��molation.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage molation.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.tabstate');
// Access check.
if (!JFactory::getUser()->authorise('core.manage',
'com_molation'))
{
throw new
JAccessExceptionNotallowed(JText::_('JERROR_ALERTNOAUTHOR'),
403);
};
// Add CSS file for all pages
$document = JFactory::getDocument();
$document->addStyleSheet('components/com_molation/assets/css/admin.css');
$document->addScript('components/com_molation/assets/js/admin.js');
// require helper files
JLoader::register('MolationHelper', __DIR__ .
'/helpers/molation.php');
JLoader::register('JHtmlBatch_', __DIR__ .
'/helpers/html/batch_.php');
// Get an instance of the controller prefixed by Molation
$controller = JControllerLegacy::getInstance('Molation');
// Perform the Request task
$controller->execute(JFactory::getApplication()->input->get('task'));
// Redirect if set by the controller
$controller->redirect();
PK���[N}�� � molation.xmlnu�[���<?xml
version="1.0" encoding="utf-8"?>
<extension type="component" version="3.2"
method="upgrade">
<name>COM_MOLATION</name>
<creationDate>24th July, 2022</creationDate>
<author>farhad shahbazi</author>
<authorEmail>farhad.shahbazi0010@gmail.com</authorEmail>
<authorUrl>http://lmskaran.ir</authorUrl>
<copyright>Copyright (C) 2015. All Rights Reserved</copyright>
<license>GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html</license>
<version>1.0.0</version>
<description><![CDATA[
<h1>Molation (v.1.0.0)</h1>
<div style="clear: both;"></div>
<p></p>
<p>Created by <a href="http://lmskaran.ir"
target="_blank">farhad shahbazi</a><br
/><small>Development started 13th July,
2022</small></p>
]]></description>
<!-- Runs on install; New in Joomla 1.5 -->
<install>
<sql>
<file driver="mysql"
charset="utf8">sql/install.mysql.utf8.sql</file>
</sql>
</install>
<!-- Runs on uninstall; New in Joomla 1.5 -->
<uninstall>
<sql>
<file driver="mysql"
charset="utf8">sql/uninstall.mysql.utf8.sql</file>
</sql>
</uninstall>
<!-- Runs on install/uninstall/update; New in Joomla 2.5 -->
<scriptfile>script.php</scriptfile>
<media destination="com_molation"
folder="media">
<filename>index.html</filename>
<folder>js</folder>
<folder>css</folder>
<folder>images</folder>
</media>
<!-- Update Schema; New in Joomla 2.5 -->
<update>
<schemas>
<schemapath
type="mysql">sql/updates/mysql/</schemapath>
</schemas>
</update>
<administration>
<menu>COM_MOLATION_MENU</menu>
<submenu>
<!-- Instead of link you can specify individual link attributes
-->
<menu option="com_molation"
view="m_relations">COM_MOLATION_MENU_M_RELATIONS</menu>
</submenu>
<files folder="admin">
<filename>access.xml</filename>
<filename>config.xml</filename>
<filename>controller.php</filename>
<filename>index.html</filename>
<filename>molation.php</filename>
<folder>assets</folder>
<folder>controllers</folder>
<folder>helpers</folder>
<folder>models</folder>
<folder>sql</folder>
<folder>tables</folder>
<folder>views</folder>
<folder>layouts</folder>
</files>
<languages folder="admin">
<language
tag="en-GB">language/en-GB/en-GB.com_molation.ini</language>
<language
tag="en-GB">language/en-GB/en-GB.com_molation.sys.ini</language>
<language
tag="fa-IR">language/fa-IR/fa-IR.com_molation.ini</language>
</languages>
</administration>
</extension>PK���[±sGG
script.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage script.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\Filesystem\File;
use Joomla\CMS\Filesystem\Folder;
JHTML::_('behavior.modal');
/**
* Script File of Molation Component
*/
class com_molationInstallerScript
{
/**
* Constructor
*
* @param JAdapterInstance $parent The object responsible for running
this script
*/
public function __construct(JAdapterInstance $parent) {}
/**
* Called on installation
*
* @param JAdapterInstance $parent The object responsible for running
this script
*
* @return boolean True on success
*/
public function install(JAdapterInstance $parent) {}
/**
* Called on uninstallation
*
* @param JAdapterInstance $parent The object responsible for running
this script
*/
public function uninstall(JAdapterInstance $parent)
{
// Get Application object
$app = JFactory::getApplication();
// Get The Database object
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
// Select id from content type table
$query->select($db->quoteName('type_id'));
$query->from($db->quoteName('#__content_types'));
// Where M_relation alias is found
$query->where( $db->quoteName('type_alias') . ' =
'. $db->quote('com_molation.m_relation') );
$db->setQuery($query);
// Execute query to see if alias is found
$db->execute();
$m_relation_found = $db->getNumRows();
// Now check if there were any rows
if ($m_relation_found)
{
// Since there are load the needed m_relation type ids
$m_relation_ids = $db->loadColumn();
// Remove M_relation from the content type table
$m_relation_condition = array( $db->quoteName('type_alias')
. ' = '. $db->quote('com_molation.m_relation') );
// Create a new query object.
$query = $db->getQuery(true);
$query->delete($db->quoteName('#__content_types'));
$query->where($m_relation_condition);
$db->setQuery($query);
// Execute the query to remove M_relation items
$m_relation_done = $db->execute();
if ($m_relation_done)
{
// If successfully remove M_relation add queued success message.
$app->enqueueMessage(JText::_('The (com_molation.m_relation)
type alias was removed from the <b>#__content_type</b>
table'));
}
// Remove M_relation items from the contentitem tag map table
$m_relation_condition = array( $db->quoteName('type_alias')
. ' = '. $db->quote('com_molation.m_relation') );
// Create a new query object.
$query = $db->getQuery(true);
$query->delete($db->quoteName('#__contentitem_tag_map'));
$query->where($m_relation_condition);
$db->setQuery($query);
// Execute the query to remove M_relation items
$m_relation_done = $db->execute();
if ($m_relation_done)
{
// If successfully remove M_relation add queued success message.
$app->enqueueMessage(JText::_('The (com_molation.m_relation)
type alias was removed from the <b>#__contentitem_tag_map</b>
table'));
}
// Remove M_relation items from the ucm content table
$m_relation_condition = array(
$db->quoteName('core_type_alias') . ' = ' .
$db->quote('com_molation.m_relation') );
// Create a new query object.
$query = $db->getQuery(true);
$query->delete($db->quoteName('#__ucm_content'));
$query->where($m_relation_condition);
$db->setQuery($query);
// Execute the query to remove M_relation items
$m_relation_done = $db->execute();
if ($m_relation_done)
{
// If successfully removed M_relation add queued success message.
$app->enqueueMessage(JText::_('The (com_molation.m_relation)
type alias was removed from the <b>#__ucm_content</b>
table'));
}
// Make sure that all the M_relation items are cleared from DB
foreach ($m_relation_ids as $m_relation_id)
{
// Remove M_relation items from the ucm base table
$m_relation_condition = array(
$db->quoteName('ucm_type_id') . ' = ' .
$m_relation_id);
// Create a new query object.
$query = $db->getQuery(true);
$query->delete($db->quoteName('#__ucm_base'));
$query->where($m_relation_condition);
$db->setQuery($query);
// Execute the query to remove M_relation items
$db->execute();
// Remove M_relation items from the ucm history table
$m_relation_condition = array(
$db->quoteName('ucm_type_id') . ' = ' .
$m_relation_id);
// Create a new query object.
$query = $db->getQuery(true);
$query->delete($db->quoteName('#__ucm_history'));
$query->where($m_relation_condition);
$db->setQuery($query);
// Execute the query to remove M_relation items
$db->execute();
}
}
// If All related items was removed queued success message.
$app->enqueueMessage(JText::_('All related items was removed from
the <b>#__ucm_base</b> table'));
$app->enqueueMessage(JText::_('All related items was removed from
the <b>#__ucm_history</b> table'));
// Remove molation assets from the assets table
$molation_condition = array( $db->quoteName('name') . '
LIKE ' . $db->quote('com_molation%') );
// Create a new query object.
$query = $db->getQuery(true);
$query->delete($db->quoteName('#__assets'));
$query->where($molation_condition);
$db->setQuery($query);
$m_relation_done = $db->execute();
if ($m_relation_done)
{
// If successfully removed molation add queued success message.
$app->enqueueMessage(JText::_('All related items was removed
from the <b>#__assets</b> table'));
}
// little notice as after service, in case of bad experience with
component.
echo '<h2>Did something go wrong? Are you
disappointed?</h2>
<p>Please let me know at <a
href="mailto:farhad.shahbazi0010@gmail.com">farhad.shahbazi0010@gmail.com</a>.
<br />We at lmskaran are committed to building extensions that
performs proficiently! You can help us, really!
<br />Send me your thoughts on improvements that is needed, trust
me, I will be very grateful!
<br />Visit us at <a href="http://lmskaran.ir"
target="_blank">http://lmskaran.ir</a>
today!</p>';
}
/**
* Called on update
*
* @param JAdapterInstance $parent The object responsible for running
this script
*
* @return boolean True on success
*/
public function update(JAdapterInstance $parent){}
/**
* Called before any type of action
*
* @param string $type Which action is happening
(install|uninstall|discover_install|update)
* @param JAdapterInstance $parent The object responsible for running
this script
*
* @return boolean True on success
*/
public function preflight($type, JAdapterInstance $parent)
{
// get application
$app = JFactory::getApplication();
// is redundant or so it seems ...hmmm let me know if it works again
if ($type === 'uninstall')
{
return true;
}
// the default for both install and update
$jversion = new JVersion();
if (!$jversion->isCompatible('3.8.0'))
{
$app->enqueueMessage('Please upgrade to at least Joomla! 3.8.0
before continuing!', 'error');
return false;
}
// do any updates needed
if ($type === 'update')
{
}
// do any install needed
if ($type === 'install')
{
}
// check if the PHPExcel stuff is still around
if (File::exists(JPATH_ADMINISTRATOR .
'/components/com_molation/helpers/PHPExcel.php'))
{
// We need to remove this old PHPExcel folder
$this->removeFolder(JPATH_ADMINISTRATOR .
'/components/com_molation/helpers/PHPExcel');
// We need to remove this old PHPExcel file
File::delete(JPATH_ADMINISTRATOR .
'/components/com_molation/helpers/PHPExcel.php');
}
return true;
}
/**
* Called after any type of action
*
* @param string $type Which action is happening
(install|uninstall|discover_install|update)
* @param JAdapterInstance $parent The object responsible for running
this script
*
* @return boolean True on success
*/
public function postflight($type, JAdapterInstance $parent)
{
// get application
$app = JFactory::getApplication();
// We check if we have dynamic folders to copy
$this->setDynamicF0ld3rs($app, $parent);
// set the default component settings
if ($type === 'install')
{
// Get The Database object
$db = JFactory::getDbo();
// Create the m_relation content type object.
$m_relation = new stdClass();
$m_relation->type_title = 'Molation M_relation';
$m_relation->type_alias = 'com_molation.m_relation';
$m_relation->table = '{"special":
{"dbtable": "#__molation_m_relation","key":
"id","type": "M_relation","prefix":
"molationTable","config":
"array()"},"common": {"dbtable":
"#__ucm_content","key":
"ucm_id","type":
"Corecontent","prefix":
"JTable","config": "array()"}}';
$m_relation->field_mappings = '{"common":
{"core_content_item_id": "id","core_title":
"user","core_state":
"published","core_alias":
"null","core_created_time":
"created","core_modified_time":
"modified","core_body":
"null","core_hits":
"hits","core_publish_up":
"null","core_publish_down":
"null","core_access":
"access","core_params":
"params","core_featured":
"null","core_metadata":
"null","core_language":
"null","core_images":
"null","core_urls":
"null","core_version":
"version","core_ordering":
"ordering","core_metakey":
"null","core_metadesc":
"null","core_catid":
"null","core_xreference":
"null","asset_id":
"asset_id"},"special":
{"user":"user","module_id":"module_id"}}';
$m_relation->router =
'MolationHelperRoute::getM_relationRoute';
$m_relation->content_history_options = '{"formFile":
"administrator/components/com_molation/models/forms/m_relation.xml","hideFields":
["asset_id","checked_out","checked_out_time","version"],"ignoreChanges":
["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt":
["published","ordering","user","module_id"],"displayLookup":
[{"sourceColumn": "created_by","targetTable":
"#__users","targetColumn":
"id","displayColumn":
"name"},{"sourceColumn":
"access","targetTable":
"#__viewlevels","targetColumn":
"id","displayColumn":
"title"},{"sourceColumn":
"modified_by","targetTable":
"#__users","targetColumn":
"id","displayColumn": "name"}]}';
// Set the object into the content types table.
$m_relation_Inserted =
$db->insertObject('#__content_types', $m_relation);
// Install the global extenstion params.
$query = $db->getQuery(true);
// Field to update.
$fields = array(
$db->quoteName('params') . ' = ' .
$db->quote('{"autorName":"farhad
shahbazi","autorEmail":"farhad.shahbazi0010@gmail.com","check_in":"-1
day","save_history":"1","history_limit":"10"}'),
);
// Condition.
$conditions = array(
$db->quoteName('element') . ' = ' .
$db->quote('com_molation')
);
$query->update($db->quoteName('#__extensions'))->set($fields)->where($conditions);
$db->setQuery($query);
$allDone = $db->execute();
echo '<a target="_blank"
href="http://lmskaran.ir" title="Molation">
<img
src="components/com_molation/assets/images/vdm-component.jpg"/>
</a>';
}
// do any updates needed
if ($type === 'update')
{
// Get The Database object
$db = JFactory::getDbo();
// Create the m_relation content type object.
$m_relation = new stdClass();
$m_relation->type_title = 'Molation M_relation';
$m_relation->type_alias = 'com_molation.m_relation';
$m_relation->table = '{"special":
{"dbtable": "#__molation_m_relation","key":
"id","type": "M_relation","prefix":
"molationTable","config":
"array()"},"common": {"dbtable":
"#__ucm_content","key":
"ucm_id","type":
"Corecontent","prefix":
"JTable","config": "array()"}}';
$m_relation->field_mappings = '{"common":
{"core_content_item_id": "id","core_title":
"user","core_state":
"published","core_alias":
"null","core_created_time":
"created","core_modified_time":
"modified","core_body":
"null","core_hits":
"hits","core_publish_up":
"null","core_publish_down":
"null","core_access":
"access","core_params":
"params","core_featured":
"null","core_metadata":
"null","core_language":
"null","core_images":
"null","core_urls":
"null","core_version":
"version","core_ordering":
"ordering","core_metakey":
"null","core_metadesc":
"null","core_catid":
"null","core_xreference":
"null","asset_id":
"asset_id"},"special":
{"user":"user","module_id":"module_id"}}';
$m_relation->router =
'MolationHelperRoute::getM_relationRoute';
$m_relation->content_history_options = '{"formFile":
"administrator/components/com_molation/models/forms/m_relation.xml","hideFields":
["asset_id","checked_out","checked_out_time","version"],"ignoreChanges":
["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt":
["published","ordering","user","module_id"],"displayLookup":
[{"sourceColumn": "created_by","targetTable":
"#__users","targetColumn":
"id","displayColumn":
"name"},{"sourceColumn":
"access","targetTable":
"#__viewlevels","targetColumn":
"id","displayColumn":
"title"},{"sourceColumn":
"modified_by","targetTable":
"#__users","targetColumn":
"id","displayColumn": "name"}]}';
// Check if m_relation type is already in content_type DB.
$m_relation_id = null;
$query = $db->getQuery(true);
$query->select($db->quoteName(array('type_id')));
$query->from($db->quoteName('#__content_types'));
$query->where($db->quoteName('type_alias') . ' LIKE
'. $db->quote($m_relation->type_alias));
$db->setQuery($query);
$db->execute();
// Set the object into the content types table.
if ($db->getNumRows())
{
$m_relation->type_id = $db->loadResult();
$m_relation_Updated =
$db->updateObject('#__content_types', $m_relation,
'type_id');
}
else
{
$m_relation_Inserted =
$db->insertObject('#__content_types', $m_relation);
}
echo '<a target="_blank"
href="http://lmskaran.ir" title="Molation">
<img
src="components/com_molation/assets/images/vdm-component.jpg"/>
</a>
<h3>Upgrade to Version 1.0.0 Was Successful! Let us know if
anything is not working as expected.</h3>';
}
return true;
}
/**
* Remove folders with files
*
* @param string $dir The path to folder to remove
* @param boolean $ignore The folders and files to ignore and not
remove
*
* @return boolean True in all is removed
*
*/
protected function removeFolder($dir, $ignore = false)
{
if (Folder::exists($dir))
{
$it = new RecursiveDirectoryIterator($dir);
$it = new RecursiveIteratorIterator($it,
RecursiveIteratorIterator::CHILD_FIRST);
// remove ending /
$dir = rtrim($dir, '/');
// now loop the files & folders
foreach ($it as $file)
{
if ('.' === $file->getBasename() || '..' ===
$file->getBasename()) continue;
// set file dir
$file_dir = $file->getPathname();
// check if this is a dir or a file
if ($file->isDir())
{
$keeper = false;
if ($this->checkArray($ignore))
{
foreach ($ignore as $keep)
{
if (strpos($file_dir, $dir.'/'.$keep) !== false)
{
$keeper = true;
}
}
}
if ($keeper)
{
continue;
}
Folder::delete($file_dir);
}
else
{
$keeper = false;
if ($this->checkArray($ignore))
{
foreach ($ignore as $keep)
{
if (strpos($file_dir, $dir.'/'.$keep) !== false)
{
$keeper = true;
}
}
}
if ($keeper)
{
continue;
}
File::delete($file_dir);
}
}
// delete the root folder if not ignore found
if (!$this->checkArray($ignore))
{
return Folder::delete($dir);
}
return true;
}
return false;
}
/**
* Check if have an array with a length
*
* @input array The array to check
*
* @returns bool/int number of items in array on success
*/
protected function checkArray($array, $removeEmptyString = false)
{
if (isset($array) && is_array($array) && ($nr =
count((array)$array)) > 0)
{
// also make sure the empty strings are removed
if ($removeEmptyString)
{
foreach ($array as $key => $string)
{
if (empty($string))
{
unset($array[$key]);
}
}
return $this->checkArray($array, false);
}
return $nr;
}
return false;
}
/**
* Method to set/copy dynamic folders into place (use with caution)
*
* @return void
*/
protected function setDynamicF0ld3rs($app, $parent)
{
// get the instalation path
$installer = $parent->getParent();
$installPath = $installer->getPath('source');
// get all the folders
$folders = Folder::folders($installPath);
// check if we have folders we may want to copy
$doNotCopy = array('media','admin','site');
// Joomla already deals with these
if (count((array) $folders) > 1)
{
foreach ($folders as $folder)
{
// Only copy if not a standard folders
if (!in_array($folder, $doNotCopy))
{
// set the source path
$src = $installPath.'/'.$folder;
// set the destination path
$dest = JPATH_ROOT.'/'.$folder;
// now try to copy the folder
if (!Folder::copy($src, $dest, '', true))
{
$app->enqueueMessage('Could not copy '.$folder.'
folder into place, please make sure destination is writable!',
'error');
}
}
}
}
}
}
PK���[�#o,,sql/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[
K���sql/install.mysql.utf8.sqlnu�[���CREATE TABLE IF
NOT EXISTS `#__molation_m_relation` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the
#__assets table.',
`module_id` INT(10) NOT NULL DEFAULT 0,
`user` INT(255) NOT NULL DEFAULT 0,
`params` text NOT NULL,
`published` TINYINT(3) NOT NULL DEFAULT 1,
`created_by` INT(10) unsigned NOT NULL DEFAULT 0,
`modified_by` INT(10) unsigned NOT NULL DEFAULT 0,
`created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00
00:00:00',
`version` INT(10) unsigned NOT NULL DEFAULT 1,
`hits` INT(10) unsigned NOT NULL DEFAULT 0,
`access` INT(10) unsigned NOT NULL DEFAULT 0,
`ordering` INT(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
KEY `idx_user` (`user`),
KEY `idx_access` (`access`),
KEY `idx_checkout` (`checked_out`),
KEY `idx_createdby` (`created_by`),
KEY `idx_modifiedby` (`modified_by`),
KEY `idx_state` (`published`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT
COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
PK���[ܤ*A00sql/uninstall.mysql.utf8.sqlnu�[���DROP
TABLE IF EXISTS `#__molation_m_relation`;
PK���[�#o,,sql/updates/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[�#o,,sql/updates/mysql/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[�#o,,tables/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[���x!x!tables/m_relation.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage m_relation.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\Registry\Registry;
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
/**
* M_relations Table class
*/
class MolationTableM_relation extends JTable
{
/**
* Ensure the params and metadata in json encoded in the bind method
*
* @var array
* @since 3.3
*/
protected $_jsonEncode = array('params', 'metadata');
/**
* Constructor
*
* @param object Database connector object
*/
function __construct(&$db)
{
parent::__construct('#__molation_m_relation', 'id',
$db);
// Adding History Options
JTableObserverContenthistory::createObserver($this,
array('typeAlias' => 'com_molation.m_relation'));
}
public function bind($array, $ignore = '')
{
if (isset($array['params']) &&
is_array($array['params']))
{
$registry = new JRegistry;
$registry->loadArray($array['params']);
$array['params'] = (string) $registry;
}
if (isset($array['metadata']) &&
is_array($array['metadata']))
{
$registry = new JRegistry;
$registry->loadArray($array['metadata']);
$array['metadata'] = (string) $registry;
}
// Bind the rules.
if (isset($array['rules']) &&
is_array($array['rules']))
{
$rules = new JAccessRules($array['rules']);
$this->setRules($rules);
}
return parent::bind($array, $ignore);
}
/**
* Overload the store method for the M_relation table.
*
* @param boolean Toggle whether null values should be updated.
* @return boolean True on success, false on failure.
* @since 1.6
*/
public function store($updateNulls = false)
{
$date = JFactory::getDate();
$user = JFactory::getUser();
if ($this->id)
{
// Existing item
$this->modified = $date->toSql();
$this->modified_by = $user->get('id');
}
else
{
// New m_relation. A m_relation created and created_by field can be set
by the user,
// so we don't touch either of these if they are set.
if (!(int) $this->created)
{
$this->created = $date->toSql();
}
if (empty($this->created_by))
{
$this->created_by = $user->get('id');
}
}
if (isset($this->alias))
{
// Verify that the alias is unique
$table = JTable::getInstance('m_relation',
'MolationTable');
if ($table->load(array('alias' => $this->alias))
&& ($table->id != $this->id || $this->id == 0))
{
$this->setError(JText::_('COM_MOLATION_M_RELATION_ERROR_UNIQUE_ALIAS'));
return false;
}
}
if (isset($this->url))
{
// Convert IDN urls to punycode
$this->url = JStringPunycode::urlToPunycode($this->url);
}
if (isset($this->website))
{
// Convert IDN urls to punycode
$this->website = JStringPunycode::urlToPunycode($this->website);
}
return parent::store($updateNulls);
}
/**
* Overloaded check method to ensure data integrity.
*
* @return boolean True on success.
*/
public function check()
{
if (isset($this->alias))
{
// Generate a valid alias
$this->generateAlias();
$table = JTable::getInstance('m_relation',
'molationTable');
while ($table->load(array('alias' => $this->alias))
&& ($table->id != $this->id || $this->id == 0))
{
$this->alias = StringHelper::increment($this->alias,
'dash');
}
}
/*
* Clean up keywords -- eliminate extra spaces between phrases
* and cr (\r) and lf (\n) characters from string.
* Only process if not empty.
*/
if (!empty($this->metakey))
{
// Array of characters to remove.
$bad_characters = array("\n", "\r",
"\"", "<", ">");
// Remove bad characters.
$after_clean = StringHelper::str_ireplace($bad_characters, "",
$this->metakey);
// Create array using commas as delimiter.
$keys = explode(',', $after_clean);
$clean_keys = array();
foreach ($keys as $key)
{
// Ignore blank keywords.
if (trim($key))
{
$clean_keys[] = trim($key);
}
}
// Put array back together delimited by ", "
$this->metakey = implode(", ", $clean_keys);
}
// Clean up description -- eliminate quotes and <> brackets
if (!empty($this->metadesc))
{
// Only process if not empty
$bad_characters = array("\"", "<",
">");
$this->metadesc = StringHelper::str_ireplace($bad_characters,
"", $this->metadesc);
}
// If we don't have any access rules set at this point just use an
empty JAccessRules class
if (!$this->getRules())
{
$rules =
$this->getDefaultAssetValues('com_molation.m_relation.'.$this->id);
$this->setRules($rules);
}
// Set ordering
if ($this->published < 0)
{
// Set ordering to 0 if state is archived or trashed
$this->ordering = 0;
}
return true;
}
/**
* Gets the default asset values for a component.
*
* @param $string $component The component asset name to search for
*
* @return JAccessRules The JAccessRules object for the asset
*/
protected function getDefaultAssetValues($component, $try = true)
{
// Need to find the asset id by the name of the component.
$db = JFactory::getDbo();
$query = $db->getQuery(true)
->select($db->quoteName('id'))
->from($db->quoteName('#__assets'))
->where($db->quoteName('name') . ' = ' .
$db->quote($component));
$db->setQuery($query);
$db->execute();
if ($db->loadRowList())
{
// asset already set so use saved rules
$assetId = (int) $db->loadResult();
return JAccess::getAssetRules($assetId); // (TODO) instead of keeping
inherited Allowed it becomes Allowed.
}
// try again
elseif ($try)
{
$try = explode('.',$component);
$result = $this->getDefaultAssetValues($try[0], false);
if ($result instanceof JAccessRules)
{
if (isset($try[1]))
{
$_result = (string) $result;
$_result = json_decode($_result);
foreach ($_result as $name => &$rule)
{
$v = explode('.', $name);
if ($try[1] !== $v[0])
{
// remove since it is not part of this view
unset($_result->$name);
}
else
{
// clear the value since we inherit
$rule = array();
}
}
// check if there are any view values remaining
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);
// Instantiate and return the JAccessRules object for the asset
rules.
$rules = new JAccessRules;
$rules->mergeCollection($_result);
return $rules;
}
}
return $result;
}
}
return JAccess::getAssetRules(0);
}
/**
* Method to compute the default name of the asset.
* The default name is in the form 'table_name.id'
* where id is the value of the primary key of the table.
*
* @return string
* @since 2.5
*/
protected function _getAssetName()
{
$k = $this->_tbl_key;
return 'com_molation.m_relation.'.(int) $this->$k;
}
/**
* Method to return the title to use for the asset table.
*
* @return string
* @since 2.5
*/
protected function _getAssetTitle()
{
if (isset($this->title))
{
return $this->title;
}
return '';
}
/**
* Get the parent asset id for the record
*
* @return int
* @since 2.5
*/
protected function _getAssetParentId(JTable $table = NULL, $id = NULL)
{
$asset = JTable::getInstance('Asset');
$asset->loadByName('com_molation');
return $asset->id;
}
/**
* This view does not actually have an alias
*
* @return bool
*/
public function generateAlias()
{
return false;
}
}
PK���[�#o,,views/import/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[Eo��$�$views/import/tmpl/default.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage default.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
JHtml::_('jquery.framework');
JHtml::_('bootstrap.tooltip');
JHtml::_('script', 'system/core.js', false, true);
JHtml::_('behavior.keepalive');
?>
<script type="text/javascript">
<?php if ($this->hasPackage &&
MolationHelper::checkArray($this->headerList)) : ?>
Joomla.continueImport = function()
{
var form = document.getElementById('adminForm');
var error = false;
var therequired = [<?php $i = 0; foreach($this->headerList as $name
=> $title) { echo ($i != 0)? ',
"vdm_'.$name.'"':'"vdm_'.$name.'"';
$i++; } ?>];
for(i = 0; i < therequired.length; i++)
{
if(jQuery('#'+therequired[i]).val() == "" )
{
error = true;
break;
}
}
// do field validation
if (error)
{
alert("<?php echo
JText::_('COM_MOLATION_IMPORT_MSG_PLEASE_SELECT_ALL_COLUMNS',
true); ?>");
}
else
{
jQuery('#loading').css('display',
'block');
form.gettype.value = 'continue';
form.submit();
}
};
<?php else: ?>
Joomla.submitbutton = function()
{
var form = document.getElementById('adminForm');
// do field validation
if (form.import_package.value == "")
{
alert("<?php echo
JText::_('COM_MOLATION_IMPORT_MSG_PLEASE_SELECT_A_FILE', true);
?>");
}
else
{
jQuery('#loading').css('display',
'block');
form.gettype.value = 'upload';
form.submit();
}
};
Joomla.submitbutton3 = function()
{
var form = document.getElementById('adminForm');
// do field validation
if (form.import_directory.value == ""){
alert("<?php echo
JText::_('COM_MOLATION_IMPORT_MSG_PLEASE_SELECT_A_DIRECTORY',
true); ?>");
}
else
{
jQuery('#loading').css('display',
'block');
form.gettype.value = 'folder';
form.submit();
}
};
Joomla.submitbutton4 = function()
{
var form = document.getElementById('adminForm');
// do field validation
if (form.import_url.value == "" || form.import_url.value ==
"http://")
{
alert("<?php echo
JText::_('COM_MOLATION_IMPORT_MSG_ENTER_A_URL', true);
?>");
}
else
{
jQuery('#loading').css('display',
'block');
form.gettype.value = 'url';
form.submit();
}
};
<?php endif; ?>
// Add spindle-wheel for importations:
jQuery(document).ready(function($) {
var outerDiv = $('body');
$('<div id="loading"></div>')
.css("background", "rgba(255, 255, 255, .8)
url('components/com_molation/assets/images/import.gif') 50% 15%
no-repeat")
.css("top", outerDiv.position().top - $(window).scrollTop())
.css("left", outerDiv.position().left - $(window).scrollLeft())
.css("width", outerDiv.width())
.css("height", outerDiv.height())
.css("position", "fixed")
.css("opacity", "0.80")
.css("-ms-filter",
"progid:DXImageTransform.Microsoft.Alpha(Opacity = 80)")
.css("filter", "alpha(opacity = 80)")
.css("display", "none")
.appendTo(outerDiv);
});
</script>
<div id="installer-import" class="clearfix">
<form enctype="multipart/form-data" action="<?php echo
JRoute::_('index.php?option=com_molation&view=import');?>"
method="post" name="adminForm" id="adminForm"
class="form-horizontal form-validate">
<?php if (!empty( $this->sidebar)) : ?>
<div id="j-sidebar-container" class="span2">
<?php echo $this->sidebar; ?>
</div>
<div id="j-main-container" class="span10">
<?php else : ?>
<div id="j-main-container">
<?php endif;?>
<?php if ($this->hasPackage &&
MolationHelper::checkArray($this->headerList) &&
MolationHelper::checkArray($this->headers)) : ?>
<fieldset class="uploadform">
<legend><?php echo
JText::_('COM_MOLATION_IMPORT_LINK_FILE_TO_TABLE_COLUMNS');
?></legend>
<div class="control-group">
<label class="control-label" ><h4><?php echo
JText::_('COM_MOLATION_IMPORT_TABLE_COLUMNS');
?></h4></label>
<div class="controls">
<label class="control-label" ><h4><?php echo
JText::_('COM_MOLATION_IMPORT_FILE_COLUMNS');
?></h4></label>
</div>
</div>
<?php foreach($this->headerList as $name => $title): ?>
<div class="control-group">
<label for="<?php echo $name; ?>"
class="control-label" ><?php echo $title;
?></label>
<div class="controls">
<select name="<?php echo $name; ?>"
id="vdm_<?php echo $name; ?>" required class="required
input_box" >
<option value=""><?php echo
JText::_('COM_MOLATION_IMPORT_PLEASE_SELECT_COLUMN');
?></option>
<option value="IGNORE"><?php echo
JText::_('COM_MOLATION_IMPORT_IGNORE_COLUMN');
?></option>
<?php foreach($this->headers as $value => $option): ?>
<?php $selected = (strtolower($option) == strtolower ($title) ||
strtolower($option) == strtolower($name))?
'selected="selected"':''; ?>
<option value="<?php echo
MolationHelper::htmlEscape($value); ?>" class="required"
<?php echo $selected ?>><?php echo
MolationHelper::htmlEscape($option); ?></option>
<?php endforeach; ?>
</select>
</div>
</div>
<?php endforeach; ?>
<div class="form-actions">
<input class="btn btn-primary" type="button"
value="<?php echo
JText::_('COM_MOLATION_IMPORT_CONTINUE'); ?>"
onclick="Joomla.continueImport()" />
</div>
</fieldset>
<input type="hidden" name="gettype"
value="continue" />
<?php else: ?>
<?php echo JHtml::_('bootstrap.startTabSet',
'myTab', array('active' => 'upload'));
?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab',
'upload', JText::_('COM_MOLATION_IMPORT_FROM_UPLOAD',
true)); ?>
<fieldset class="uploadform">
<legend><?php echo
JText::_('COM_MOLATION_IMPORT_UPDATE_DATA'); ?></legend>
<div class="control-group">
<label for="import_package"
class="control-label"><?php echo
JText::_('COM_MOLATION_IMPORT_SELECT_FILE'); ?></label>
<div class="controls">
<input class="input_box" id="import_package"
name="import_package" type="file" size="57"
/>
</div>
</div>
<div class="form-actions">
<input class="btn btn-primary" type="button"
value="<?php echo
JText::_('COM_MOLATION_IMPORT_UPLOAD_BOTTON'); ?>"
onclick="Joomla.submitbutton()"
/> <small><?php echo
JText::_('COM_MOLATION_IMPORT_FORMATS_ACCEPTED'); ?> (.csv
.xls .ods)</small>
</div>
</fieldset>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab',
'directory',
JText::_('COM_MOLATION_IMPORT_FROM_DIRECTORY', true)); ?>
<fieldset class="uploadform">
<legend><?php echo
JText::_('COM_MOLATION_IMPORT_UPDATE_DATA'); ?></legend>
<div class="control-group">
<label for="import_directory"
class="control-label"><?php echo
JText::_('COM_MOLATION_IMPORT_SELECT_FILE_DIRECTORY');
?></label>
<div class="controls">
<input type="text" id="import_directory"
name="import_directory" class="span5 input_box"
size="70" value="<?php echo
$this->state->get('import.directory'); ?>" />
</div>
</div>
<div class="form-actions">
<input type="button" class="btn btn-primary"
value="<?php echo
JText::_('COM_MOLATION_IMPORT_GET_BOTTON'); ?>"
onclick="Joomla.submitbutton3()"
/> <small><?php echo
JText::_('COM_MOLATION_IMPORT_FORMATS_ACCEPTED'); ?> (.csv
.xls .ods)</small>
</div>
</fieldset>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab',
'url', JText::_('COM_MOLATION_IMPORT_FROM_URL', true));
?>
<fieldset class="uploadform">
<legend><?php echo
JText::_('COM_MOLATION_IMPORT_UPDATE_DATA'); ?></legend>
<div class="control-group">
<label for="import_url"
class="control-label"><?php echo
JText::_('COM_MOLATION_IMPORT_SELECT_FILE_URL');
?></label>
<div class="controls">
<input type="text" id="import_url"
name="import_url" class="span5 input_box"
size="70" value="http://" />
</div>
</div>
<div class="form-actions">
<input type="button" class="btn btn-primary"
value="<?php echo
JText::_('COM_MOLATION_IMPORT_GET_BOTTON'); ?>"
onclick="Joomla.submitbutton4()"
/> <small><?php echo
JText::_('COM_MOLATION_IMPORT_FORMATS_ACCEPTED'); ?> (.csv
.xls .ods)</small>
</div>
</fieldset>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.endTabSet'); ?>
<input type="hidden" name="gettype"
value="upload" />
<?php endif; ?>
<input type="hidden" name="task"
value="import.import" />
<?php echo JHtml::_('form.token'); ?>
</form>
</div>PK���[�#o,,views/import/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[�9�XXviews/import/view.html.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage view.html.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
/**
* Molation Import View
*/
class MolationViewImport extends JViewLegacy
{
protected $headerList;
protected $hasPackage = false;
protected $headers;
protected $hasHeader = 0;
protected $dataType;
public function display($tpl = null)
{
if ($this->getLayout() !== 'modal')
{
// Include helper submenu
MolationHelper::addSubmenu('import');
}
$paths = new stdClass;
$paths->first = '';
$state = $this->get('state');
$this->paths = &$paths;
$this->state = &$state;
// get global action permissions
$this->canDo = MolationHelper::getActions('import');
// We don't need toolbar in the modal window.
if ($this->getLayout() !== 'modal')
{
$this->addToolbar();
$this->sidebar = JHtmlSidebar::render();
}
// get the session object
$session = JFactory::getSession();
// check if it has package
$this->hasPackage = $session->get('hasPackage', false);
$this->dataType = $session->get('dataType', false);
if($this->hasPackage && $this->dataType)
{
$this->headerList =
json_decode($session->get($this->dataType.'_VDM_IMPORTHEADERS',
false),true);
$this->headers =
MolationHelper::getFileHeaders($this->dataType);
// clear the data type
$session->clear('dataType');
}
// Check for errors.
if (count($errors = $this->get('Errors')))
{
throw new Exception(implode("\n", $errors), 500);
}
// Display the template
parent::display($tpl);
}
/**
* Setting the toolbar
*/
protected function addToolBar()
{
JToolBarHelper::title(JText::_('COM_MOLATION_IMPORT_TITLE'),
'upload');
JHtmlSidebar::setAction('index.php?option=com_molation&view=import');
if ($this->canDo->get('core.admin') ||
$this->canDo->get('core.options'))
{
JToolBarHelper::preferences('com_molation');
}
// set help url for this view if found
$help_url = MolationHelper::getHelpUrl('import');
if (MolationHelper::checkString($help_url))
{
JToolbarHelper::help('COM_MOLATION_HELP_MANAGER', false,
$help_url);
}
}
}
PK���[�#o,,views/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[�#o,,views/molation/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[��dž�views/molation/tmpl/default.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage default.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.tooltip');
?>
<div id="j-main-container">
<div class="span9">
<?php echo JHtml::_('bootstrap.startAccordion',
'dashboard_left', array('active' =>
'main')); ?>
<?php echo JHtml::_('bootstrap.addSlide',
'dashboard_left', 'cPanel', 'main'); ?>
<?php echo $this->loadTemplate('main');?>
<?php echo JHtml::_('bootstrap.endSlide'); ?>
<?php echo JHtml::_('bootstrap.endAccordion'); ?>
</div>
<div class="span3">
<?php echo JHtml::_('bootstrap.startAccordion',
'dashboard_right', array('active' =>
'vdm')); ?>
<?php echo JHtml::_('bootstrap.addSlide',
'dashboard_right', 'lmskaran', 'vdm'); ?>
<?php echo $this->loadTemplate('vdm');?>
<?php echo JHtml::_('bootstrap.endSlide'); ?>
<?php echo JHtml::_('bootstrap.endAccordion'); ?>
</div>
</div>PK���[�Ę ��$views/molation/tmpl/default_main.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage default_main.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
?>
<?php if(isset($this->icons['main']) &&
is_array($this->icons['main'])) :?>
<?php foreach($this->icons['main'] as $icon): ?>
<div class="dashboard-wraper">
<div class="dashboard-content">
<a class="icon" href="<?php echo $icon->url;
?>">
<img alt="<?php echo $icon->alt; ?>"
src="components/com_molation/assets/images/icons/<?php echo
$icon->image; ?>">
<span class="dashboard-title"><?php echo
JText::_($icon->name); ?></span>
</a>
</div>
</div>
<?php endforeach; ?>
<div class="clearfix"></div>
<?php else: ?>
<div class="alert alert-error"><h4
class="alert-heading"><?php echo JText::_("Permission
denied, or not correctly set"); ?></h4><div
class="alert-message"><?php echo JText::_("Please
notify your System Administrator if result is unexpected.");
?></div></div>
<?php endif; ?>PK���[
�W[5
5
#views/molation/tmpl/default_vdm.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage default_vdm.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
?>
<img alt="<?php echo JText::_('COM_MOLATION');
?>"
src="components/com_molation/assets/images/vdm-component.jpg">
<ul class="list-striped">
<li><b><?php echo
JText::_('COM_MOLATION_VERSION'); ?>:</b> <?php echo
$this->manifest->version; ?> <span
class="update-notice"></span></li>
<li><b><?php echo JText::_('COM_MOLATION_DATE');
?>:</b> <?php echo $this->manifest->creationDate;
?></li>
<li><b><?php echo
JText::_('COM_MOLATION_AUTHOR'); ?>:</b> <a
href="mailto:<?php echo $this->manifest->authorEmail;
?>"><?php echo $this->manifest->author;
?></a></li>
<li><b><?php echo
JText::_('COM_MOLATION_WEBSITE'); ?>:</b> <a
href="<?php echo $this->manifest->authorUrl; ?>"
target="_blank"><?php echo
$this->manifest->authorUrl; ?></a></li>
<li><b><?php echo
JText::_('COM_MOLATION_LICENSE'); ?>:</b> <?php echo
$this->manifest->license; ?></li>
<li><b><?php echo $this->manifest->copyright;
?></b></li>
</ul>
<div class="clearfix"></div>
<?php if(MolationHelper::checkArray($this->contributors)): ?>
<?php if(count($this->contributors) > 1): ?>
<h3><?php echo JText::_('COM_MOLATION_CONTRIBUTORS');
?></h3>
<?php else: ?>
<h3><?php echo JText::_('COM_MOLATION_CONTRIBUTOR');
?></h3>
<?php endif; ?>
<ul class="list-striped">
<?php foreach($this->contributors as $contributor): ?>
<li><b><?php echo $contributor['title'];
?>:</b> <?php echo $contributor['name'];
?></li>
<?php endforeach; ?>
</ul>
<div class="clearfix"></div>
<?php endif;
?>PK���[�#o,,views/molation/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[F;��YYviews/molation/view.html.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage view.html.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
/**
* Molation View class
*/
class MolationViewMolation extends JViewLegacy
{
/**
* View display method
* @return void
*/
function display($tpl = null)
{
// Assign data to the view
$this->icons = $this->get('Icons');
$this->contributors = MolationHelper::getContributors();
// get the manifest details of the component
$this->manifest = MolationHelper::manifest();
// Set the toolbar
$this->addToolBar();
// Check for errors.
if (count($errors = $this->get('Errors')))
{
throw new Exception(implode("\n", $errors), 500);
}
// Display the template
parent::display($tpl);
// Set the document
$this->setDocument();
}
/**
* Setting the toolbar
*/
protected function addToolBar()
{
$canDo = MolationHelper::getActions('molation');
JToolBarHelper::title(JText::_('COM_MOLATION_DASHBOARD'),
'grid-2');
// set help url for this view if found
$help_url = MolationHelper::getHelpUrl('molation');
if (MolationHelper::checkString($help_url))
{
JToolbarHelper::help('COM_MOLATION_HELP_MANAGER', false,
$help_url);
}
if ($canDo->get('core.admin') ||
$canDo->get('core.options'))
{
JToolBarHelper::preferences('com_molation');
}
}
/**
* Method to set up the document properties
*
* @return void
*/
protected function setDocument()
{
$document = JFactory::getDocument();
// add dashboard style sheets
$document->addStyleSheet(JURI::root() .
"administrator/components/com_molation/assets/css/dashboard.css");
// set page title
$document->setTitle(JText::_('COM_MOLATION_DASHBOARD'));
// add manifest to page JavaScript
$document->addScriptDeclaration("var manifest =
jQuery.parseJSON('" . json_encode($this->manifest) .
"');", "text/javascript");
}
}
PK���[����
views/m_relation/submitbutton.jsnu�[���/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage submitbutton.js
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
Joomla.submitbutton = function(task)
{
if (task == ''){
return false;
} else {
var action = task.split('.');
if (action[1] == 'cancel' || action[1] == 'close' ||
document.formvalidator.isValid(document.getElementById("adminForm"))){
Joomla.submitform(task, document.getElementById("adminForm"));
return true;
} else {
alert(Joomla.JText._('m_relation, some values are not
acceptable.','Some values are unacceptable'));
return false;
}
}
}PK���[�ܲ��views/m_relation/tmpl/edit.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage edit.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
JHtml::_('behavior.tooltip');
JHtml::_('behavior.formvalidation');
JHtml::_('formbehavior.chosen', 'select');
JHtml::_('behavior.keepalive');
$componentParams = $this->params; // will be removed just use
$this->params instead
?>
<script type="text/javascript">
// waiting spinner
var outerDiv = jQuery('body');
jQuery('<div id="loading"></div>')
.css("background", "rgba(255, 255, 255, .8)
url('components/com_molation/assets/images/import.gif') 50% 15%
no-repeat")
.css("top", outerDiv.position().top -
jQuery(window).scrollTop())
.css("left", outerDiv.position().left -
jQuery(window).scrollLeft())
.css("width", outerDiv.width())
.css("height", outerDiv.height())
.css("position", "fixed")
.css("opacity", "0.80")
.css("-ms-filter",
"progid:DXImageTransform.Microsoft.Alpha(Opacity = 80)")
.css("filter", "alpha(opacity = 80)")
.css("display", "none")
.appendTo(outerDiv);
jQuery('#loading').show();
// when page is ready remove and show
jQuery(window).load(function() {
jQuery('#molation_loader').fadeIn('fast');
jQuery('#loading').hide();
});
</script>
<div id="molation_loader" style="display: none;">
<form action="<?php echo
JRoute::_('index.php?option=com_molation&layout=edit&id='.
(int) $this->item->id . $this->referral); ?>"
method="post" name="adminForm" id="adminForm"
class="form-validate" enctype="multipart/form-data">
<div class="form-horizontal">
<?php echo JHtml::_('bootstrap.startTabSet',
'm_relationTab', array('active' =>
'details')); ?>
<?php echo JHtml::_('bootstrap.addTab',
'm_relationTab', 'details',
JText::_('COM_MOLATION_M_RELATION_DETAILS', true)); ?>
<div class="row-fluid form-horizontal-desktop">
<div class="span6">
<?php echo
JLayoutHelper::render('m_relation.details_left', $this); ?>
</div>
<div class="span6">
<?php echo
JLayoutHelper::render('m_relation.details_right', $this); ?>
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php $this->ignore_fieldsets =
array('details','metadata','vdmmetadata','accesscontrol');
?>
<?php $this->tab_name = 'm_relationTab'; ?>
<?php echo JLayoutHelper::render('joomla.edit.params',
$this); ?>
<?php if ($this->canDo->get('core.edit.created_by') ||
$this->canDo->get('core.edit.created') ||
$this->canDo->get('core.edit.state') ||
($this->canDo->get('core.delete') &&
$this->canDo->get('core.edit.state'))) : ?>
<?php echo JHtml::_('bootstrap.addTab',
'm_relationTab', 'publishing',
JText::_('COM_MOLATION_M_RELATION_PUBLISHING', true)); ?>
<div class="row-fluid form-horizontal-desktop">
<div class="span6">
<?php echo JLayoutHelper::render('m_relation.publishing',
$this); ?>
</div>
<div class="span6">
<?php echo JLayoutHelper::render('m_relation.publlshing',
$this); ?>
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php endif; ?>
<?php if ($this->canDo->get('core.admin')) : ?>
<?php echo JHtml::_('bootstrap.addTab',
'm_relationTab', 'permissions',
JText::_('COM_MOLATION_M_RELATION_PERMISSION', true)); ?>
<div class="row-fluid form-horizontal-desktop">
<div class="span12">
<fieldset class="adminform">
<div class="adminformlist">
<?php foreach
($this->form->getFieldset('accesscontrol') as $field):
?>
<div>
<?php echo $field->label; echo $field->input;?>
</div>
<div class="clearfix"></div>
<?php endforeach; ?>
</div>
</fieldset>
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php endif; ?>
<?php echo JHtml::_('bootstrap.endTabSet'); ?>
<div>
<input type="hidden" name="task"
value="m_relation.edit" />
<?php echo JHtml::_('form.token'); ?>
</div>
</div>
</form>
</div>
PK���[�#o,,
views/m_relation/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[5�$|views/m_relation/view.html.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage view.html.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
/**
* M_relation View class
*/
class MolationViewM_relation extends JViewLegacy
{
/**
* display method of View
* @return void
*/
public function display($tpl = null)
{
// set params
$this->params = JComponentHelper::getParams('com_molation');
// Assign the variables
$this->form = $this->get('Form');
$this->item = $this->get('Item');
$this->script = $this->get('Script');
$this->state = $this->get('State');
// get action permissions
$this->canDo = MolationHelper::getActions('m_relation',
$this->item);
// get input
$jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int');
$return = $jinput->get('return', null, 'base64');
// set the referral string
$this->referral = '';
if ($this->refid && $this->ref)
{
// return to the item that referred to this item
$this->referral = '&ref=' . (string)$this->ref .
'&refid=' . (int)$this->refid;
}
elseif($this->ref)
{
// return to the list view that referred to this item
$this->referral = '&ref=' . (string)$this->ref;
}
// check return value
if (!is_null($return))
{
// add the return value
$this->referral .= '&return=' . (string)$return;
}
// Set the toolbar
$this->addToolBar();
// Check for errors.
if (count($errors = $this->get('Errors')))
{
throw new Exception(implode("\n", $errors), 500);
}
// Display the template
parent::display($tpl);
// Set the document
$this->setDocument();
}
/**
* Setting the toolbar
*/
protected function addToolBar()
{
JFactory::getApplication()->input->set('hidemainmenu',
true);
$user = JFactory::getUser();
$userId = $user->id;
$isNew = $this->item->id == 0;
JToolbarHelper::title( JText::_($isNew ?
'COM_MOLATION_M_RELATION_NEW' :
'COM_MOLATION_M_RELATION_EDIT'), 'pencil-2
article-add');
// Built the actions for new and existing records.
if (MolationHelper::checkString($this->referral))
{
if ($this->canDo->get('core.create') && $isNew)
{
// We can create the record.
JToolBarHelper::save('m_relation.save',
'JTOOLBAR_SAVE');
}
elseif ($this->canDo->get('core.edit'))
{
// We can save the record.
JToolBarHelper::save('m_relation.save',
'JTOOLBAR_SAVE');
}
if ($isNew)
{
// Do not creat but cancel.
JToolBarHelper::cancel('m_relation.cancel',
'JTOOLBAR_CANCEL');
}
else
{
// We can close it.
JToolBarHelper::cancel('m_relation.cancel',
'JTOOLBAR_CLOSE');
}
}
else
{
if ($isNew)
{
// For new records, check the create permission.
if ($this->canDo->get('core.create'))
{
JToolBarHelper::apply('m_relation.apply',
'JTOOLBAR_APPLY');
JToolBarHelper::save('m_relation.save',
'JTOOLBAR_SAVE');
JToolBarHelper::custom('m_relation.save2new',
'save-new.png', 'save-new_f2.png',
'JTOOLBAR_SAVE_AND_NEW', false);
};
JToolBarHelper::cancel('m_relation.cancel',
'JTOOLBAR_CANCEL');
}
else
{
if ($this->canDo->get('core.edit'))
{
// We can save the new record
JToolBarHelper::apply('m_relation.apply',
'JTOOLBAR_APPLY');
JToolBarHelper::save('m_relation.save',
'JTOOLBAR_SAVE');
// We can save this record, but check the create permission to see
// if we can return to make a new one.
if ($this->canDo->get('core.create'))
{
JToolBarHelper::custom('m_relation.save2new',
'save-new.png', 'save-new_f2.png',
'JTOOLBAR_SAVE_AND_NEW', false);
}
}
$canVersion = ($this->canDo->get('core.version')
&& $this->canDo->get('m_relation.version'));
if ($this->state->params->get('save_history', 1)
&& $this->canDo->get('core.edit') &&
$canVersion)
{
JToolbarHelper::versions('com_molation.m_relation',
$this->item->id);
}
if ($this->canDo->get('core.create'))
{
JToolBarHelper::custom('m_relation.save2copy',
'save-copy.png', 'save-copy_f2.png',
'JTOOLBAR_SAVE_AS_COPY', false);
}
JToolBarHelper::cancel('m_relation.cancel',
'JTOOLBAR_CLOSE');
}
}
JToolbarHelper::divider();
// set help url for this view if found
$help_url = MolationHelper::getHelpUrl('m_relation');
if (MolationHelper::checkString($help_url))
{
JToolbarHelper::help('COM_MOLATION_HELP_MANAGER', false,
$help_url);
}
}
/**
* Escapes a value for output in a view script.
*
* @param mixed $var The output to escape.
*
* @return mixed The escaped value.
*/
public function escape($var)
{
if(strlen($var) > 30)
{
// use the helper htmlEscape method instead and shorten the string
return MolationHelper::htmlEscape($var, $this->_charset, true, 30);
}
// use the helper htmlEscape method instead.
return MolationHelper::htmlEscape($var, $this->_charset);
}
/**
* Method to set up the document properties
*
* @return void
*/
protected function setDocument()
{
$isNew = ($this->item->id < 1);
if (!isset($this->document))
{
$this->document = JFactory::getDocument();
}
$this->document->setTitle(JText::_($isNew ?
'COM_MOLATION_M_RELATION_NEW' :
'COM_MOLATION_M_RELATION_EDIT'));
$this->document->addStyleSheet(JURI::root() .
"administrator/components/com_molation/assets/css/m_relation.css",
(MolationHelper::jVersion()->isCompatible('3.8.0')) ?
array('version' => 'auto') : 'text/css');
$this->document->addScript(JURI::root() . $this->script,
(MolationHelper::jVersion()->isCompatible('3.8.0')) ?
array('version' => 'auto') :
'text/javascript');
$this->document->addScript(JURI::root() .
"administrator/components/com_molation/views/m_relation/submitbutton.js",
(MolationHelper::jVersion()->isCompatible('3.8.0')) ?
array('version' => 'auto') :
'text/javascript');
JText::script('view not acceptable. Error');
}
}
PK���[�#o,,views/m_relations/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[�|�"views/m_relations/tmpl/default.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage default.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.tooltip');
JHtml::_('behavior.multiselect');
JHtml::_('dropdown.init');
JHtml::_('formbehavior.chosen',
'.multipleAccessLevels', null,
array('placeholder_text_multiple' => '- ' .
JText::_('COM_MOLATION_FILTER_SELECT_ACCESS') . ' -'));
JHtml::_('formbehavior.chosen', 'select');
if ($this->saveOrder)
{
$saveOrderingUrl =
'index.php?option=com_molation&task=m_relations.saveOrderAjax&tmpl=component';
JHtml::_('sortablelist.sortable', 'm_relationList',
'adminForm', strtolower($this->listDirn), $saveOrderingUrl);
}
?>
<form action="<?php echo
JRoute::_('index.php?option=com_molation&view=m_relations');
?>" method="post" name="adminForm"
id="adminForm">
<?php if(!empty( $this->sidebar)): ?>
<div id="j-sidebar-container" class="span2">
<?php echo $this->sidebar; ?>
</div>
<div id="j-main-container" class="span10">
<?php else : ?>
<div id="j-main-container">
<?php endif; ?>
<?php
// Add the searchtools
echo JLayoutHelper::render('joomla.searchtools.default',
array('view' => $this));
?>
<?php if (empty($this->items)): ?>
<div class="alert alert-no-items">
<?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
</div>
<?php else : ?>
<table class="table table-striped"
id="m_relationList">
<thead><?php echo
$this->loadTemplate('head');?></thead>
<tfoot><?php echo
$this->loadTemplate('foot');?></tfoot>
<tbody><?php echo
$this->loadTemplate('body');?></tbody>
</table>
<?php // Load the batch processing form. ?>
<?php if ($this->canCreate && $this->canEdit) : ?>
<?php echo JHtml::_(
'bootstrap.renderModal',
'collapseModal',
array(
'title' =>
JText::_('COM_MOLATION_M_RELATIONS_BATCH_OPTIONS'),
'footer' =>
$this->loadTemplate('batch_footer')
),
$this->loadTemplate('batch_body')
); ?>
<?php endif; ?>
<input type="hidden" name="boxchecked"
value="0" />
</div>
<?php endif; ?>
<input type="hidden" name="task" value=""
/>
<?php echo JHtml::_('form.token'); ?>
</form>
PK���[s�U��-views/m_relations/tmpl/default_batch_body.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage default_batch_body.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
?>
<p><?php echo
JText::_('COM_MOLATION_M_RELATIONS_BATCH_TIP'); ?></p>
<?php echo $this->batchDisplay;
?>PK���[��?���/views/m_relations/tmpl/default_batch_footer.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage default_batch_footer.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
?>
<!-- clear the batch values if cancel -->
<button class="btn" type="button"
onclick="" data-dismiss="modal">
<?php echo JText::_('JCANCEL'); ?>
</button>
<!-- post the batch values if process -->
<button class="btn btn-success" type="submit"
onclick="Joomla.submitbutton('m_relation.batch');">
<?php echo JText::_('JGLOBAL_BATCH_PROCESS'); ?>
</button>PK���[��#��'views/m_relations/tmpl/default_body.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage default_body.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$edit =
"index.php?option=com_molation&view=m_relations&task=m_relation.edit";
?>
<?php foreach ($this->items as $i => $item): ?>
<?php
$canCheckin = $this->user->authorise('core.manage',
'com_checkin') || $item->checked_out == $this->user->id
|| $item->checked_out == 0;
$userChkOut = JFactory::getUser($item->checked_out);
$canDo =
MolationHelper::getActions('m_relation',$item,'m_relations');
?>
<tr class="row<?php echo $i % 2; ?>">
<td class="order nowrap center hidden-phone">
<?php if ($canDo->get('core.edit.state')): ?>
<?php
$iconClass = '';
if (!$this->saveOrder)
{
$iconClass = ' inactive tip-top" hasTooltip"
title="' . JHtml::tooltipText('JORDERINGDISABLED');
}
?>
<span class="sortable-handler<?php echo $iconClass;
?>">
<i class="icon-menu"></i>
</span>
<?php if ($this->saveOrder) : ?>
<input type="text" style="display:none"
name="order[]" size="5"
value="<?php echo $item->ordering; ?>"
class="width-20 text-area-order " />
<?php endif; ?>
<?php else: ?>
⋮
<?php endif; ?>
</td>
<td class="nowrap center">
<?php if ($canDo->get('core.edit')): ?>
<?php if ($item->checked_out) : ?>
<?php if ($canCheckin) : ?>
<?php echo JHtml::_('grid.id', $i, $item->id); ?>
<?php else: ?>
□
<?php endif; ?>
<?php else: ?>
<?php echo JHtml::_('grid.id', $i, $item->id); ?>
<?php endif; ?>
<?php else: ?>
□
<?php endif; ?>
</td>
<td class="nowrap">
<div class="name">
<?php if ($canDo->get('core.edit')): ?>
<a href="<?php echo $edit; ?>&id=<?php echo
$item->id; ?>"><?php echo
JFactory::getUser((int)$item->user)->name; ?></a>
<?php if ($item->checked_out): ?>
<?php echo JHtml::_('jgrid.checkedout', $i,
$userChkOut->name, $item->checked_out_time, 'm_relations.',
$canCheckin); ?>
<?php endif; ?>
<?php else: ?>
<?php echo JFactory::getUser((int)$item->user)->name; ?>
<?php endif; ?>
</div>
</td>
<td class="hidden-phone">
<?php echo $this->escape($item->module_id); ?>
</td>
<td class="center">
<?php if ($canDo->get('core.edit.state')) : ?>
<?php if ($item->checked_out) : ?>
<?php if ($canCheckin) : ?>
<?php echo JHtml::_('jgrid.published',
$item->published, $i, 'm_relations.', true, 'cb');
?>
<?php else: ?>
<?php echo JHtml::_('jgrid.published',
$item->published, $i, 'm_relations.', false, 'cb');
?>
<?php endif; ?>
<?php else: ?>
<?php echo JHtml::_('jgrid.published',
$item->published, $i, 'm_relations.', true, 'cb');
?>
<?php endif; ?>
<?php else: ?>
<?php echo JHtml::_('jgrid.published', $item->published,
$i, 'm_relations.', false, 'cb'); ?>
<?php endif; ?>
</td>
<td class="nowrap center hidden-phone">
<?php echo $item->id; ?>
</td>
</tr>
<?php endforeach;
?>PK���[�ݢ���'views/m_relations/tmpl/default_foot.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage default_foot.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
?>
<tr>
<td colspan="6"><?php echo
$this->pagination->getListFooter(); ?></td>
</tr>PK���[���� � 'views/m_relations/tmpl/default_head.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage default_head.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
?>
<tr>
<?php if ($this->canEdit&& $this->canState): ?>
<th width="1%" class="nowrap center
hidden-phone">
<?php echo JHtml::_('searchtools.sort', '',
'a.ordering', $this->listDirn, $this->listOrder, null,
'asc', 'JGRID_HEADING_ORDERING',
'icon-menu-2'); ?>
</th>
<th width="20" class="nowrap center">
<?php echo JHtml::_('grid.checkall'); ?>
</th>
<?php else: ?>
<th width="20" class="nowrap center
hidden-phone">
▾
</th>
<th width="20" class="nowrap center">
■
</th>
<?php endif; ?>
<th class="nowrap" >
<?php echo JText::_('COM_MOLATION_M_RELATION_USER_LABEL');
?>
</th>
<th class="nowrap hidden-phone" >
<?php echo JHtml::_('searchtools.sort',
'COM_MOLATION_M_RELATION_MODULE_ID_LABEL',
'a.module_id', $this->listDirn, $this->listOrder); ?>
</th>
<?php if ($this->canState): ?>
<th width="10" class="nowrap center" >
<?php echo JHtml::_('searchtools.sort',
'COM_MOLATION_M_RELATION_STATUS', 'a.published',
$this->listDirn, $this->listOrder); ?>
</th>
<?php else: ?>
<th width="10" class="nowrap center" >
<?php echo JText::_('COM_MOLATION_M_RELATION_STATUS');
?>
</th>
<?php endif; ?>
<th width="5" class="nowrap center hidden-phone"
>
<?php echo JHtml::_('searchtools.sort',
'COM_MOLATION_M_RELATION_ID', 'a.id',
$this->listDirn, $this->listOrder); ?>
</th>
</tr>PK���[�>�55*views/m_relations/tmpl/default_toolbar.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage default_toolbar.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
?>
<div id="filter-bar" class="btn-toolbar">
<div class="filter-search btn-group pull-left">
<label for="filter_search"
class="element-invisible"><?php echo
JText::_('Search');?></label>
<input type="text" name="filter_search"
id="filter_search" placeholder="<?php echo
JText::_('JSEARCH_FILTER'); ?>" value="<?php echo
$this->escape($this->state->get('filter.search'));
?>" class="hasTooltip" title="<?php echo
JHtml::tooltipText('Search M_relations'); ?>" />
</div>
<div class="btn-group pull-left">
<button type="submit" class="btn
hasTooltip" title="<?php echo
JHtml::tooltipText('JSEARCH_FILTER_SUBMIT'); ?>"><i
class="icon-search"></i></button>
<button type="button" class="btn
hasTooltip" title="<?php echo
JHtml::tooltipText('JSEARCH_FILTER_CLEAR'); ?>"
onclick="document.id('filter_search').value='';this.form.submit();"><i
class="icon-remove"></i></button>
</div>
<div class="btn-group pull-right hidden-phone">
<label for="limit"
class="element-invisible"><?php echo
JText::_('JFIELD_PLG_SEARCH_SEARCHLIMIT_DESC');?></label>
<?php echo $this->pagination->getLimitBox(); ?>
</div>
<div class="btn-group pull-right hidden-phone">
<label for="directionTable"
class="element-invisible"><?php echo
JText::_('JFIELD_ORDERING_DESC');?></label>
<select name="directionTable"
id="directionTable" class="input-medium"
onchange="Joomla.orderTable()">
<option value=""><?php echo
JText::_('JFIELD_ORDERING_DESC');?></option>
<option value="asc" <?php if
($this->listDirn == 'asc') echo
'selected="selected"'; ?>><?php echo
JText::_('JGLOBAL_ORDER_ASCENDING');?></option>
<option value="desc" <?php if
($this->listDirn == 'desc') echo
'selected="selected"'; ?>><?php echo
JText::_('JGLOBAL_ORDER_DESCENDING');?></option>
</select>
</div>
<div class="btn-group pull-right">
<label for="sortTable"
class="element-invisible"><?php echo
JText::_('JGLOBAL_SORT_BY');?></label>
<select name="sortTable" id="sortTable"
class="input-medium" onchange="Joomla.orderTable()">
<option value=""><?php echo
JText::_('JGLOBAL_SORT_BY');?></option>
<?php echo JHtml::_('select.options',
$this->getSortFields(), 'value', 'text',
$this->listOrder);?>
</select>
</div>
</div>
<div class="clearfix">
</div>PK���[�#o,,!views/m_relations/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[�
���views/m_relations/view.html.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage view.html.php
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
/**
* Molation View class for the M_relations
*/
class MolationViewM_relations extends JViewLegacy
{
/**
* M_relations view display method
* @return void
*/
function display($tpl = null)
{
if ($this->getLayout() !== 'modal')
{
// Include helper submenu
MolationHelper::addSubmenu('m_relations');
}
// Assign data to the view
$this->items = $this->get('Items');
$this->pagination = $this->get('Pagination');
$this->state = $this->get('State');
$this->user = JFactory::getUser();
// Load the filter form from xml.
$this->filterForm = $this->get('FilterForm');
// Load the active filters.
$this->activeFilters = $this->get('ActiveFilters');
// Add the list ordering clause.
$this->listOrder =
$this->escape($this->state->get('list.ordering',
'a.id'));
$this->listDirn =
$this->escape($this->state->get('list.direction',
'DESC'));
$this->saveOrder = $this->listOrder == 'a.ordering';
// set the return here value
$this->return_here = urlencode(base64_encode((string)
JUri::getInstance()));
// get global action permissions
$this->canDo = MolationHelper::getActions('m_relation');
$this->canEdit = $this->canDo->get('core.edit');
$this->canState =
$this->canDo->get('core.edit.state');
$this->canCreate = $this->canDo->get('core.create');
$this->canDelete = $this->canDo->get('core.delete');
$this->canBatch = $this->canDo->get('core.batch');
// We don't need toolbar in the modal window.
if ($this->getLayout() !== 'modal')
{
$this->addToolbar();
$this->sidebar = JHtmlSidebar::render();
// load the batch html
if ($this->canCreate && $this->canEdit &&
$this->canState)
{
$this->batchDisplay = JHtmlBatch_::render();
}
}
// Check for errors.
if (count($errors = $this->get('Errors')))
{
throw new Exception(implode("\n", $errors), 500);
}
// Display the template
parent::display($tpl);
// Set the document
$this->setDocument();
}
/**
* Setting the toolbar
*/
protected function addToolBar()
{
JToolBarHelper::title(JText::_('COM_MOLATION_M_RELATIONS'),
'joomla');
JHtmlSidebar::setAction('index.php?option=com_molation&view=m_relations');
JFormHelper::addFieldPath(JPATH_COMPONENT . '/models/fields');
if ($this->canCreate)
{
JToolBarHelper::addNew('m_relation.add');
}
// Only load if there are items
if (MolationHelper::checkArray($this->items))
{
if ($this->canEdit)
{
JToolBarHelper::editList('m_relation.edit');
}
if ($this->canState)
{
JToolBarHelper::publishList('m_relations.publish');
JToolBarHelper::unpublishList('m_relations.unpublish');
JToolBarHelper::archiveList('m_relations.archive');
if ($this->canDo->get('core.admin'))
{
JToolBarHelper::checkin('m_relations.checkin');
}
}
// Add a batch button
if ($this->canBatch && $this->canCreate &&
$this->canEdit && $this->canState)
{
// Get the toolbar object instance
$bar = JToolBar::getInstance('toolbar');
// set the batch button name
$title = JText::_('JTOOLBAR_BATCH');
// Instantiate a new JLayoutFile instance and render the batch button
$layout = new JLayoutFile('joomla.toolbar.batch');
// add the button to the page
$dhtml = $layout->render(array('title' => $title));
$bar->appendButton('Custom', $dhtml, 'batch');
}
if ($this->state->get('filter.published') == -2
&& ($this->canState && $this->canDelete))
{
JToolbarHelper::deleteList('',
'm_relations.delete', 'JTOOLBAR_EMPTY_TRASH');
}
elseif ($this->canState && $this->canDelete)
{
JToolbarHelper::trash('m_relations.trash');
}
if ($this->canDo->get('core.export') &&
$this->canDo->get('m_relation.export'))
{
JToolBarHelper::custom('m_relations.exportData',
'download', '', 'COM_MOLATION_EXPORT_DATA',
true);
}
}
if ($this->canDo->get('core.import') &&
$this->canDo->get('m_relation.import'))
{
JToolBarHelper::custom('m_relations.importData',
'upload', '', 'COM_MOLATION_IMPORT_DATA',
false);
}
// set help url for this view if found
$help_url = MolationHelper::getHelpUrl('m_relations');
if (MolationHelper::checkString($help_url))
{
JToolbarHelper::help('COM_MOLATION_HELP_MANAGER', false,
$help_url);
}
// add the options comp button
if ($this->canDo->get('core.admin') ||
$this->canDo->get('core.options'))
{
JToolBarHelper::preferences('com_molation');
}
// Only load published batch if state and batch is allowed
if ($this->canState && $this->canBatch)
{
JHtmlBatch_::addListSelection(
JText::_('COM_MOLATION_KEEP_ORIGINAL_STATE'),
'batch[published]',
JHtml::_('select.options',
JHtml::_('jgrid.publishedOptions', array('all' =>
false)), 'value', 'text', '', true)
);
}
// Only load access batch if create, edit and batch is allowed
if ($this->canBatch && $this->canCreate &&
$this->canEdit)
{
JHtmlBatch_::addListSelection(
JText::_('COM_MOLATION_KEEP_ORIGINAL_ACCESS'),
'batch[access]',
JHtml::_('select.options',
JHtml::_('access.assetgroups'), 'value',
'text')
);
}
}
/**
* Method to set up the document properties
*
* @return void
*/
protected function setDocument()
{
if (!isset($this->document))
{
$this->document = JFactory::getDocument();
}
$this->document->setTitle(JText::_('COM_MOLATION_M_RELATIONS'));
$this->document->addStyleSheet(JURI::root() .
"administrator/components/com_molation/assets/css/m_relations.css",
(MolationHelper::jVersion()->isCompatible('3.8.0')) ?
array('version' => 'auto') : 'text/css');
}
/**
* Escapes a value for output in a view script.
*
* @param mixed $var The output to escape.
*
* @return mixed The escaped value.
*/
public function escape($var)
{
if(strlen($var) > 50)
{
// use the helper htmlEscape method instead and shorten the string
return MolationHelper::htmlEscape($var, $this->_charset, true);
}
// use the helper htmlEscape method instead.
return MolationHelper::htmlEscape($var, $this->_charset);
}
/**
* Returns an array of fields the table can be sorted by
*
* @return array Array containing the field name to sort by as the key
and display text as value
*/
protected function getSortFields()
{
return array(
'a.ordering' =>
JText::_('JGRID_HEADING_ORDERING'),
'a.published' => JText::_('JSTATUS'),
'a.module_id' =>
JText::_('COM_MOLATION_M_RELATION_MODULE_ID_LABEL'),
'a.id' => JText::_('JGRID_HEADING_ID')
);
}
}
PK(��[�#o,,css/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK(��[�#o,,images/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK(��[�#o,,
js/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK(��[f�V�js/m_relation.jsnu�[���/*----------------------------------------------------------------------------------|
www.vdm.io |----/
lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.0
@build 24th July, 2022
@created 13th July, 2022
@package Molation
@subpackage m_relation.js
@author farhad shahbazi <http://lmskaran.ir>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
PK���[�
�
�
access.xmlnu�[���PK���[�ϩQQ�
assets/css/admin.cssnu�[���PK���[���ߞ��assets/css/dashboard.cssnu�[���PK���[�#o,,i$assets/css/index.htmlnu�[���PK���[Xyy�22�$assets/css/m_relation.cssnu�[���PK���[��133U)assets/css/m_relations.cssnu�[���PK���[�#o,,�-assets/images/icons/index.htmlnu�[���PK���[/o����L.assets/images/import.gifnu�[���PK���[�#o,,�.assets/images/index.htmlnu�[���PK���[�#o,,�.assets/index.htmlnu�[���PK���[Yw+))a/assets/js/admin.jsnu�[���PK���[�#o,,�3assets/js/index.htmlnu�[���PK���["���� �
<4config.xmlnu�[���PK���[P2��&&>controller.phpnu�[���PK���[��mxx}Mcontrollers/import.phpnu�[���PK���[�#o,,;Vcontrollers/index.htmlnu�[���PK���[U7l-���Vcontrollers/molation.phpnu�[���PK���[w
M�%!%!�[controllers/m_relation.phpnu�[���PK���[c����4}controllers/m_relations.phpnu�[���PK���[<�����R�helpers/headercheck.phpnu�[���PK���[���G
G
w�helpers/html/batch_.phpnu�[���PK���[�#o,,�helpers/html/index.htmlnu�[���PK���[�#o,,x�helpers/index.htmlnu�[���PK���[]V"*ۦۦ�helpers/molation.phpnu�[���PK���[�#o,,
Jindex.htmlnu�[���PK���[��%� � kJlayouts/batchselection.phpnu�[���PK���[�#o,,�Tlayouts/index.htmlnu�[���PK���[�t6��#"Ulayouts/m_relation/details_left.phpnu�[���PK���[kϻ���$4^layouts/m_relation/details_right.phpnu�[���PK���[�#o,,Mglayouts/m_relation/index.htmlnu�[���PK���[�BHy��!�glayouts/m_relation/publishing.phpnu�[���PK���[�#�6��!
qlayouts/m_relation/publlshing.phpnu�[���PK���[�#o,,Tzmodels/fields/index.htmlnu�[���PK���[�����#�zmodels/forms/filter_m_relations.xmlnu�[���PK���[�#o,,قmodels/forms/index.htmlnu�[���PK���[��gaaL�models/forms/m_relation.xmlnu�[���PK���[u�fJ�N�N��models/import.phpnu�[���PK���[�#o,,��models/index.htmlnu�[���PK���[T�1��f�models/molation.phpnu�[���PK���[c �TT�models/m_relation.phpnu�[���PK���[0�>;+;+�[models/m_relations.phpnu�[���PK���[�#o,,p�models/rules/index.htmlnu�[���PK���[���O���molation.phpnu�[���PK���[N}�� � �molation.xmlnu�[���PK���[±sGG
Ιscript.phpnu�[���PK���[�#o,,�sql/index.htmlnu�[���PK���[
K���z�sql/install.mysql.utf8.sqlnu�[���PK���[ܤ*A00g�sql/uninstall.mysql.utf8.sqlnu�[���PK���[�#o,,��sql/updates/index.htmlnu�[���PK���[�#o,,U�sql/updates/mysql/index.htmlnu�[���PK���[�#o,,��tables/index.htmlnu�[���PK���[���x!x!:�tables/m_relation.phpnu�[���PK���[�#o,,� views/import/index.htmlnu�[���PK���[Eo��$�$j
views/import/tmpl/default.phpnu�[���PK���[�#o,,P/views/import/tmpl/index.htmlnu�[���PK���[�9�XX�/views/import/view.html.phpnu�[���PK���[�#o,,j<views/index.htmlnu�[���PK���[�#o,,�<views/molation/index.htmlnu�[���PK���[��dž�K=views/molation/tmpl/default.phpnu�[���PK���[�Ę ��$
Eviews/molation/tmpl/default_main.phpnu�[���PK���[
�W[5
5
#"Mviews/molation/tmpl/default_vdm.phpnu�[���PK���[�#o,,�Wviews/molation/tmpl/index.htmlnu�[���PK���[F;��YY$Xviews/molation/view.html.phpnu�[���PK���[����
�cviews/m_relation/submitbutton.jsnu�[���PK���[�ܲ��jviews/m_relation/tmpl/edit.phpnu�[���PK���[�#o,,
T}views/m_relation/tmpl/index.htmlnu�[���PK���[5�$|�}views/m_relation/view.html.phpnu�[���PK���[�#o,,!�views/m_relations/index.htmlnu�[���PK���[�|�"��views/m_relations/tmpl/default.phpnu�[���PK���[s�U��-��views/m_relations/tmpl/default_batch_body.phpnu�[���PK���[��?���/@�views/m_relations/tmpl/default_batch_footer.phpnu�[���PK���[��#��'��views/m_relations/tmpl/default_body.phpnu�[���PK���[�ݢ���'q�views/m_relations/tmpl/default_foot.phpnu�[���PK���[���� � '��views/m_relations/tmpl/default_head.phpnu�[���PK���[�>�55*��views/m_relations/tmpl/default_toolbar.phpnu�[���PK���[�#o,,!.�views/m_relations/tmpl/index.htmlnu�[���PK���[�
�����views/m_relations/view.html.phpnu�[���PK(��[�#o,,�css/index.htmlnu�[���PK(��[�#o,,2�images/index.htmlnu�[���PK(��[�#o,,
��js/index.htmlnu�[���PK(��[f�V��js/m_relation.jsnu�[���PKQQ!f