Spade
Mini Shell
| Directory:~$ /home/lmsyaran/public_html/joomla4/ |
| [Home] [System Details] [Kill Me] |
PK--�[��0F��blog.phpnu�[���<?php
/**
* @package blog.Plugin
* @subpackage Content.blog
*
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All
rights reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
JLoader::register('NotiflyMessageHelper', JPATH_ADMINISTRATOR .
'/components/com_notifly/helpers/message.php');
/**
* Example Content Plugin
*
* @since 1.6
*/
class PlgNotiflyBlog extends JPlugin
{
public function __construct(&$subject , $params)
{
$input = JFactory::getApplication()->input;
$this->extension = $input->get('option');
$this->view = $input->get('view');
// Load language file for use throughout the plugin
JFactory::getLanguage()->load('com_blog', JPATH_ROOT);
parent::__construct($subject, $params);
}
/**
* Method Call After Save Content
*
* This method creates a contact for the saved user
*
* @param string $context Context name give data request come
from which context
* @param array $article give article info
* @param boolean $isNew True if item is new o therwise false
*
* @return boolean
*
* @since 1.6
*/
function onContentAfterSave($context, $article, $isNew)
{
// add judirectory new events
if($context != "com_content.article"){
return;
}
/* If article is not new then return false
@params $isNew : check article is new or old
*/
if (!$isNew) {
return;
}
// check if event is enabled
if (!$this->params->get('enable_article_item', 0)) {
return;
}
$user_id = $article->created_by;
$user = JFactory::getUser($user_id);
// If the user id appears invalid then bail out just in case
if (empty($user)) {
return false;
}
// register users registration event
$this->logUsersArticleCreation($user, $article);
return true;
}
public function logUsersArticleCreation($user, $article)
{
$plugin = $this->getPluginInfo();
$extension_id = $plugin->extension_id;
$template = 'new_articale_created';
$template = $this->getTemplateInfo($extension_id);
$table = $this->getTable();
$table->template_id = $template->id;
$table->extension_id = $extension_id;
$table->url =
"index.php?option=com_content&view=article&id=" .
$article->id . ":" . $article->title .
"&catid=" . $article->catid;
if (!$template->image_disable) {
if ($template->avatar) {
$table->image_url =
NotiflyMessageHelper::getGravater($user->email);
} else {
$table->image_url = $template->image_url;
}
}
// get location from helper
$ip = NotiflyMessageHelper::getRealIpAddr();
$location = NotiflyMessageHelper::getLocation($ip);
$table->title = $article->title;
$table->name = $user->name;
$table->email = $user->email;
$table->ip = $ip;
$table->city = $location->city;
$table->state = $location->region_name;
$table->country = $location->country_name;
$table->created = JHtml::date('now', 'Y-m-d
H:i:s');
$table->published = 1;
$table->store();
return true;
}
public function getPluginInfo()
{
$db = JFactory::getDBO();
$sql = "SELECT * from `#__extensions` WHERE `type` =
'plugin' AND `folder` = 'notifly' AND `element` =
'blog'";
$db->setQuery($sql);
return $db->loadObject();
}
public function getTemplateInfo($extension_id)
{
$db = JFactory::getDBO();
$sql = "SELECT * from `#__notifly_templates` WHERE `extension_id` =
'" . $extension_id . "' AND `alias` =
'new_articale_created'";
$db->setQuery($sql);
return $db->loadObject();
}
public function getTable()
{
JTable::addIncludePath(JPATH_ADMINISTRATOR .
'/components/com_notifly/tables');
return JTable::getInstance('Event', 'NotiflyTable',
array());
}
}
PK--�[�wb���blog.xmlnu�[���<?xml
version="1.0" encoding="utf-8"?>
<extension version="3.1" type="plugin"
group="notifly" method="upgrade">
<name>plg_notifly_blog</name>
<author>ThemeXpert</author>
<creationDate>November 2010</creationDate>
<copyright>Copyright (C) 2005 - 2017 Open Source Matters. All rights
reserved.</copyright>
<license>GNU General Public License version 2 or later; see
LICENSE.txt</license>
<authorEmail>info@themexpert.com</authorEmail>
<authorUrl>www.themexpert.com</authorUrl>
<version>1.0.0</version>
<description>PLG_NOTIFLY_BLOG_XML_DESCRIPTION</description>
<files>
<filename plugin="blog">blog.php</filename>
<folder>media</folder>
</files>
<scriptfile>script.php</scriptfile>
<languages folder="language">
<language
tag="en-GB">en-GB/en-GB.plg_notifly_blog.ini</language>
<language
tag="en-GB">en-GB/en-GB.plg_notifly_blog.sys.ini</language>
</languages>
<config>
<fields name="params">
<fieldset name="basic">
<field
name="enable_article_item"
type="radio"
label="enable_article_item"
description="enable_article_item"
class="btn-group btn-group-yesno"
default="1"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
</fieldset>
</fields>
</config>
</extension>
PKL~�[��x���media/logo.pngnu�[����PNG
IHDR����'�tEXtSoftwareAdobe
ImageReadyq�e<*iTXtXML:com.adobe.xmp<?xpacket
begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP
Core 5.6-c132 79.159284, 2016/04/19-13:13:40 "> <rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about=""
xmlns:xmp="http://ns.adobe.com/xap/1.0/"
xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#"
xmp:CreatorTool="Adobe Photoshop CC 2015.5 (Macintosh)"
xmpMM:InstanceID="xmp.iid:0F606B26B0C411E7AE6F9DEDDB13D255"
xmpMM:DocumentID="xmp.did:0F606B27B0C411E7AE6F9DEDDB13D255">
<xmpMM:DerivedFrom
stRef:instanceID="xmp.iid:BE8B48FFB0C311E7AE6F9DEDDB13D255"
stRef:documentID="xmp.did:BE8B4900B0C311E7AE6F9DEDDB13D255"/>
</rdf:Description> </rdf:RDF> </x:xmpmeta> <?xpacket
end="r"?>:�#B,IDATx��] |Tչ��-�DB$��P�by��Hk��q�Z��j}m�V�EH�V�>����V��SQܞOъK�JB
�` DY'���}��!�L2����ܙ�I��s���?�;ߑE�t�,�@@S@@S@S@@S@S@@S@@S@S@@S@S@@S@S@@S@@S@S@@S@S@@S@S@
�`�q�%oL���C�NB�څh��Jz�fZ5�h;��u�S#z��>�S��(�O�G=m$��}�m|���F�Gێ��h��㹸}ޫ�O�8p�4��о�&���I̾��Gۊ�0�+�w�8�F����X8��,4�>��_Јu�>��q�-h�@�h�|�6�GѾ*x�/���ik7{�X�la���L&���6�]�õ�Dیv��_T\���J�u)뷟e1-h�G��X�란�'���3�vX����[��F��Ĥ!�7h?A�q�~�R��'U���#�õm�˛�F�h?4�s*X���o�h����<�W���h>kt��r4��v>�<g%�_��ȸ�x�;�<K�Yn�C9��o�وy�U)�
���
�Hy��F�*�Ϧ!&
'�7hX�B�2Hl~�̐�-L�gs�g^��vq
;�V�N�b�¾o�p1�oS�\��S�X㳈��B�5o#q2�o]�k�<�K�4�6�D�q�%/�x-%�Ԡ�A��h��֨)��t�Yr�������K����V3��4�$7�݈��k�e,Q&ͧhϡ=�v�d�)��,>���VV��_J�hFs�A[���Y��eO
('�eF!e<�b��Gh.��kh�;��a�:HR�N��bL��8
�ƞ������Ø��v;h9�@�K;L����a6�ie�A����Mh�-Z
E���LJn^����q�����̞���dp'�cC�����gAKvpBf���:�;b��!�
��e~-KF^��W��3}Y���0,��^Z��h
mE(�R*��M�1i���l蕐�a6ť�|�i}�X?�11���e����0��R{v�2=(���u�4�:�ߦ
&���A�����ۇ�Ï�����2l�����X?�j��!0�d{P�@R*
܂��RLCR> �
cdl��g01 F{)�z�/�GBR~�IYW�y�'������ϼ.Λ��A��f���Ǽ��3��>Y�)����Y�v����|��֘B�7��=�
Ӊ�YS�`��uŨ���A����Bg}������+��n�,�o�V��;h��(���3
s\7�)t0���$t�:a�V�r.=��ES�0e<�byӇ�"h�ؤ���1�$P�5�"R�1*�0��6kT*��!kd�(� �eQJ��B��nB�qΤ$B� Z�?����RV��~�i��zK�6<,Ku����7�sQ�T�g?E��Y�2��2R|�5���E�j�'��i�b���l�]$L1�EĔ�h+A[9
����{��t/{��]�n�C�`��H!��?�ٳ�n��u�����-��r�AK��U�+�3�����UHH?:S�Bg=gRV��"^AA�A�-
o�����M}�VC�kދ�}AS����1�A���N�tʠ.���P �����;ҘO��/ٟT�え��9l֠"a������h�Gh�N��t/^�1䫾i�%G���2zJ%_r��Rbqo0ӉI���(5BBᮁHI���5�2RҎѝ�=�`��J5R�:vy�L9�ߥ�ތ4̎�"i
(�g��E��$"Sk��;D�I);$�B��c������D_a�=�NL���S\�t�t˪��"|���((�ʚ(�1
i����s>�$:9-{��ݳ�#����MH����P[A:�\���P�4?Leυ�vX����=�S��i�͢�n̗A��9�}�>�ӖՓu����GJ���
�bs��(���?�8(u+�I]+�F�<K���uEp[c5!I�S��&�J�j����,PI)O.DY�7��NJ���y�d��f+����="p�;��h>ڑ���2����"�12l�i�
�@�Ia�Y����)� �Jʲ����i��y�%�;�FsdP:�H�#�R����|y
!���$>�L��m��(Σ2�g^�
���m�NL�i��V�Q#zd�7���c�HB'$wy�^��5�t�5�}���R�r�%��ネ�{�1�JC�S���uBh[#X����fd�6����O��.7B����냮;���oB�5�%��6A�ӕ�7,�*0���R�9/ț�{u�TI)�����tW�kz�p�B�у�[c�V{�3�g�����i9��D�i=U��5�C���U�����|�N
��:�ף��%/V�x5�=�����f?�X�T{_�A��W�Dk^T�L#{���C.lUԩ�(0F��s�B�CSB4t��]D��}Y�y��ݨ�r-�(8�S�N�)�w)��6��Ĕ@�ݔ4�֧BMѷ�b{J�Bg
�j��e�)��ξ&^
!�HL�ޭ��@�14\w��X�){`��C���F�f�'W��ޅ�с�����dz���)5�3IY�7�{S&���
�>P���Q�1��]m(!A�0��m��J�a�z:��:�Iy}oW<,�g�3J�\�B�o�a$�O1*�D�FNU����L���i��A��;v�YHΰ"g
1)h��]��;�L�Й�B�s$Ѓ���'y�HMtӹ;��DC߯%A@q�T���/�ЭZ�����t��
�*�n�B�3#H�[RO��A��GD����J�{��C�m�!^3]���
th%�TrڔcC��c�*T̳YL�w�z��%�h(�TOI���u��W��d�5?B��סzΈ�tY��ej���W�]�$*�9��{����Bq�_��V�ѻ���A��:N��C�`h{S�4�*I�Sh]]'��ya�ѐ>�V�-�{M!ݠ�M���+:��(�ԧN8��b�7H�J��e2��˳�{:v��o�̠��$��F�`yp�A�r�9��]:}+J��;pGI��<^n�B��e�PN�t�:_s�3[>͕N__$U%XmUt&��֬�C[�&�R�7�*�^�Ұ�y8-�:�����␚��e�LLڨ��랙���J���`�-��CN�d���D�t�H�'T��ܭ�&KN�/��nI�ҿ<���°ig.��+��1ԬH2܌x���fp���4��Lq�V���Br��?����A��:��Ė��ܴ����˕�5+deФ�jRF�x��.oɋ�sV��U��f�1gb
2?�f<H�$��lh�5����(�*!�"�lN�:��N䔐����
�c�Y "��t��~ÁAC
-�8�s� Q��I�5���IU�c�Y��
�:�KC�m��e?��
���N"�L'AD{�#��q���nu�D��x�.��&�j�g:1���c��$��(�/R-����)��>�3�)�����[-ǘ����:�P�hA4�
p�yk@+˓��Vn���l�]
X�B����h��"(��Ii���Y��HI��A䲯�xw�*�|�\�YƜ��Y'^+�ș!�s�S��K����\�-l�v>�R$�p�1���AzUw�P6��O�+�vT�}�-�E�N)���D |U�z��.u9
�s�S���ؖ�g��I=�s��O����q�EbZ�n�R
��]R8���`�8nO*��#�A ��8��bqCK�T���G�����-0��m8�u/��K:�+�㗂��
�an�+o��S�&�Ֆ�V[�� ����d�W6d��-�P�X^�('��*�WxY$ 8��Pn
���b����|p�y��uՏ���g˫����
�H��i r^Y$~a�nD�ߋ?���xw[넙襸
"�jE�isP�<�p/�w<���+K�4�JG�]a
y���ɂ���l�ǀ�Δ�Pڒ�{\��:a������U^�2,�x=����o�TrMɃ���V�
WmB�nA��JҹཪI)+�7���uW[�Y�Uq$'��e;�bZڣ��z�}�Po��
�ז�q�m˝��e�ۖ&���LT��@�-��5��x��~��խ͓�p���x/��mQ��<���1j(I�
|�[6�\=���w���x�Qf/��M�L��sm�7.�+�7ˑ���Z�)Ø��39I�M���7�9��Ԗ1s�a��W9�<�u*��+�v�
b�:�d��&I��@u�bʿB���(��t<��عF�i��.ˌ&�ݐ@��4D��P�#9�(�~
�Q6����6�'��D��N�0J�aB�*���Pe��L�:q?n� ��A��"�NĤ�{zR_��
�e_����uD������w�:�s1�cV�Om�
�lﭟ��Es$)�[m���H|(��='1|�+�6�������<��
$���t�C���7��+�!A��\��6�JQd���Rآ(R��c~n�N��,uoWD��o��a��?����{��<�S1���u�����`�ՠ(�O1Z#o�#欶X����/^��b��)"���6>��W
'䡇OOADj�L�'h��$���)S���.�r7)�
��Y�D��P�ΦƋ�Z;��Oe���Bg��n�#�}ii�~��A̾S��:��<�wC��D�DS�X���?�Í��X;W��ֲ�hY�:�����H&��e�P}�ngI*
[zlO�I�!�������>8�8}���FR*�<%ͪ��5�&�u�-e&��هO9
�15P�a:]��(ȗ��q���!��C�_���n��]Vk�r���|��)�0(�� ����&t��[��ԏ���
@���z��S<�-�$���E�CD$t����Ç.Y�Ŕ\WK(1zIwO�9aj�8�y7�-=NN��&���3))����X���=���
���D��
2\��&%}�-&zF���笩�!�Jy�S1�ſ��I�ωа�@2�`Q��-�ox.�x�E�N*������D�(emi8���}2����{Θ1g�E�
([��Z�k���Z �1�EI�FŸP@���
I%��Z���/9S,t"bǍ���Q�w? 7������d=����%k�<z�L�|�v�ܱ/iuAk�duh����G��?!�Q=)s6A��8����#��A���;��!t�#v؇�ך��n���*�������������}xA�cmLO�&NL�:'�}���>�"hm�-G�w��
�aX�8�h���sJ��Б��� cJ�MW�$%�p��b_!e?j����\�|��O(t�Ng�3j�MB��;���@�5zUS�-:15r"�ԟZ�'���c�Ç����@=������H��.���0"t���ג�vt۾��^�D�(��}0����\|�\��Nw����S_��쩎o�_��jfw�� ��礈�/�T����r��WL�$wZ�n�[��l���@�Sm��N�q�_���F�VVP�{m�4����gh��z�J�+��"D��j�bW�,�;Q��#%
�v{�}���[�z���s���R*�1R� |_J�8O�ۣ�V�RGe��:���4E@��Y����h9�Vs��W���kw�{FK��+��9������$/Og���.G.�6��Y��DvM�N�r�$؎������m#��u&e��IT���X���au��֜�R�p�����ǚ|�=DT~�ǥ.e�<�iL`������I�\��]�Z����K��d
�t�ȏ��X�"FH�I���0�:kF��/Z�����܀��%v�Iv�S݊�"�9��x2]�b
|����]K\�RgJb�Zڑ"�
���J����{��.t~����y�G�7��AjWf�l�z�N�ML�HB+�@ja5��P����>�)��ھ`Tn�M������=�f��R�ǘT�h1d�
��ͨ�'g��[ԖJwbN���mČ"t�͠�'�~�jFb���mh����Ψ�::w�*�>��O�Z�?5��a6b�2��,��nk�jR�$t��'�V��$esY?����"qcV��� �Mq�o��Fళ�1i��,:KP蜕aBg
\��Ĥ�Ƽ�)�k�5}�d�A:�2L��<�ߦ
�Y�1k�;.�ju��x�Z�5�]8�,�<;%h�
K��A5#H��M��i�FU�l��$�;��-���E+�Bk�T�,!f�Y�����@)`��2��ʴ]�Ж�<N��3'�h{ehsw��|e�/a��&�"�i<h�~��7ʎ���]͆�=����i�s��|�դ���$��ځt=*��.�U3��7��*Jλ
�O�a���C��t�/�=�Ȥ7��Q�/e��<
%�θx2�Fm{�-?�k)&f�Y��:��@vh����J��/���*�!�
h��P���`O�6T����6���)������ϙ��h���F;=��Y���5h�]iS�sQ�N�a��AH/�@��^��/��7SH�
�oSĘ�4oMQCQG�ڏ� �!)!����{
�)�8le�m
bRU�GR�X$*�����Уh��N��ߦ fd��4֟
Ja�G��F���`&b�����l`C=��d'c��(4��m11 ���.�����I
c�T#̾���e���0b��C�MT���*z�X;|��s���LL���+k9yN�kx�:&�?X{�xH��o�˪Fm��af!hk�:ߗ�6]"Ѕ�X��)>�Y�-4"\2z�7M-P��u��\"����ng�V�L�/v������`d�5N��
�5؍,F��۩H� q��]�8/����_��sR���{)w`�S���**S�df�-�鱣о
ڙ�#�k$��2�G��D�&��A�X�y�TR�*�Q��s@[���/R���̆n�=���R�M@�l1���
�� ��� �� ��� ��� �� ��� ��
��� �� ��� ��� �� ��� �� ���
�� ��� ��@���Qգ=5ܙIEND�B`�PKL~�[^|1�j
j
script.phpnu�[���<?php
/**
* @package Quix
* @author ThemeXpert http://www.themexpert.com
* @copyright Copyright (c) 2010-2015 ThemeXpert. All rights reserved.
* @license GNU General Public License version 3 or later; see LICENSE.txt
* @since 1.0.0
*/
defined('_JEXEC') or die;
class plgNotiflyBlogInstallerScript
{
function preflight( $type, $parent ) {
// if($type == 'install' or $type ==
'discover_install'){
// self::incertTemplateInfo();
// }
return;
}
/**
* Function to perform changes during install
*
* @param JInstallerAdapterComponent $parent The class calling this
method
*
* @return void
*
* @since 3.4
*/
public function postflight($parent)
{
self::incertTemplateInfo();
return;
}
/**
* enable necessary plugins to avoid bad experience
*/
function incertTemplateInfo()
{
$db = JFactory::getDBO();
$sql = "SELECT extension_id from `#__extensions` WHERE `type` =
'plugin' AND `folder` = 'notifly' AND `element` =
'blog'";
$db->setQuery($sql);
$plugin = $db->loadObject();
$sql = "SELECT * from `#__notifly_templates` WHERE `extension_id` =
'".$plugin->extension_id."' AND `alias` =
'new_articale_created'";
$db->setQuery($sql);
$templates = $db->loadObjectList();
if(!count($templates)){
// Create a new query object.
$query = $db->getQuery(true);
// Insert columns.
$columns = array('extension_id', 'name',
'alias', 'message', 'state',
'published', 'access', 'language');
// Insert values.
$values = array($plugin->extension_id, $db->quote('New Blog
Created'), $db->quote('new_articale_created'),
$db->quote('{{ name }} in {{ city }} Just Created New Article! {{
time_ago }}'), '1', '1', '0',
$db->quote('*'));
// Prepare the insert query.
$query
->insert($db->quoteName('#__notifly_templates'))
->columns($db->quoteName($columns))
->values(implode(',', $values));
// Set the query using our newly populated query object and execute it.
$db->setQuery($query);
$db->execute();
$templatesid = $db->insertid();
// Create a new query object.
$query = $db->getQuery(true);
// Insert columns.
$columns = array('template_id', 'extension_id',
'url');
// Insert values.
$values = array($templatesid, $plugin->extension_id,
$db->quote('#'));
// Prepare the insert query.
$query
->insert($db->quoteName('#__notifly_events'))
->columns($db->quoteName($columns))
->values(implode(',', $values));
// Set the query using our newly populated query object and execute it.
$db->setQuery($query);
$db->execute();
if ($db->execute()) {
die();
}
}
return true;
}
}
PK--�[��0F��blog.phpnu�[���PK--�[�wb����blog.xmlnu�[���PKL~�[��x���,media/logo.pngnu�[���PKL~�[^|1�j
j
*4script.phpnu�[���PK(�>