Spade

Mini Shell

Directory:~$ /home/lmsyaran/public_html/joomla4/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ /home/lmsyaran/public_html/joomla4/contacts.tar

images/con_address.png000064400000000700151155062440011003 0ustar00�PNG


IHDR��h6tRNS���7X}uIDATxu�)�
��F��h4R�F��H4R�D"�H4R�D���o�w��x�|��?,@�n�^�߇o17�K0��*n({_��L�#
l�xf��\��?���~��t`��_�ޙ����o��oy��c�X����IY*�P:
���{����&�f���^1]?�DVC������H(����L���wP|<��q#
u��9��T��-ҐN_�Z��;@O�ր5�O'�̟�a�(�����"��.����8�a�G�(H�ց36irG�^�
:�0�Q�%�+����"M#�{`o��M�xq
S�Wo���R�e>��H/�k�wZ������U����l�����]�M2����������IEND�B`�images/con_fax.png000064400000000630151155062440010136
0ustar00�PNG


IHDR�a_IDATx��)��
��GF�E"�X$�E"�����^�J��ك��8���$}�CԲ,ڶM뺞P��T���:���D�
r)
1�9G��ak�ƈ���0�����X�O@�Z�RR�YƘݠ�*
u�M�����¨cIrթ3N�5�QH��Es��	^3��&�e�Ȃbp;�m�aպ,�"�v�~�L�/D���*[<�a�ք7ꛘw�=D@P�SJ/�.��?
�k�FؽWwN�$���C��y�5�3���`_��6b�`��3��!F�p��
�(�^/c�K�DŽu^���xeJ�lx@~&L����
X@�X��o�g�Dit��tIEND�B`�images/con_info.png000064400000000720151155062440010313
0ustar00�PNG


IHDR�a�IDATx}�+̬0�+��Xd%��r%v%Y[�Db����J�J�ʕ����f�'����L_
��[��o}��]@�{_qS��zIBܱ�P��~>Xw��	����+��Y�$F"n�
����'@��
��Ѝ�b�;��
<)�$>J=c����A9��>�����z3-1o��ܔ�jfFP��Z�b�|Å�
�?Ն�{���1�G�۶s)
a?���PO����T~�f�v��D��
�E�(ړ�$�		խ����J�#cDB��x�Gx�lP��'?��K]��8T���
T�OL		}�>���(�-�{���
b�/���A�ݨk򕷄6�ebf�$��j`
I
�o7�63�c��'�B!�M���ϝE,}��	U�Tڡ2�Q.,���+��Qѱ�IEND�B`�images/con_mobile.png000064400000001040151155062440010623
0ustar00�PNG


IHDR�a�IDATx���k��`ѻ�ޮj�֫m�5b5Fm�qmm_m۶ט��o��;_t�#E��F�z�+�F�sUǜ���4]{��p�>�H��ȣ�}���|/��޽M����;b\!J�<�P�V�̅m��G���Y�M��3�Ӕ�����7QT�U
àW�q�)J������pp�z����ˡi���Rᷤe��h9��(��n���ݞ!��*&L)_�F�8�ȁ�`�
���f�=TΧ�ӘGN���H%��1u�ѯHG3�V�+"xbNCI�(�)	����G������
�<��^�.g2,�b��x�!tE�e�0�^�MS%#�
�c4Ԯ_�@��"cˠj�vPTB<-g@d���V�:����h�0��|t
Ȃ
�2�i�����i�^⧜G���	S���4��*�`Ҩ�Okuj{�f�<���7\n�Q�6u�Μ=����'����<�?M����Ѻ'_�nIEND�B`�images/con_tel.png000064400000000776151155062440010157
0ustar00�PNG


IHDR��h6tRNS���7X}�IDATxu��
�����`��p��a��a��a8<������v_��w���g�3���tq��B�9n
o���}'�(�Ƙ�?��í�&Z��y������
!k�K�
(�A��/�ۄ��)��ޭ!�)ƏR1��@�
/��q��j
���-8)E�4)s�?s����V�L��a�ۘn��6�v�RΣ�q]���yb�4!�ޘ_�Q�۟�u�[k�#��45����T�j��a�<��Ċ纖yF=�֥7��@�.k��j�P���.K��x��}x��}?�q�q�v9��c�`��|;�w+`�Dwc�I�sL	N`�:����oT�!9�_X���r�Ǐ�y�ֱ��$YMN����k�낐~�������72;y
�=Z�5�k=~r.�Z��S�۵��E��t_�'�{��J�IEND�B`�images/emailButton.png000064400000000400151155062440010777
0ustar00�PNG


IHDR��h6tRNS���7X}�IDATxc�O"�����???�4c������߷_�<y��Ϋ�����������÷?/>����קD�.�X4�,|ڴ����ן�<|��ڳ@����5`ṷ�
���u�/�l�0�y�����e�����N����O@��s�C���y�O��|�]�q����T˦��IEND�B`�contacts.php000064400000012104151160174370007076
0ustar00<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Search.contacts
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Contacts search plugin.
 *
 * @since  1.6
 */
class PlgSearchContacts extends JPlugin
{
	/**
	 * Load the language file on instantiation.
	 *
	 * @var    boolean
	 * @since  3.1
	 */
	protected $autoloadLanguage = true;

	/**
	 * Determine areas searchable by this plugin.
	 *
	 * @return  array  An array of search areas.
	 *
	 * @since   1.6
	 */
	public function onContentSearchAreas()
	{
		static $areas = array(
			'contacts' => 'PLG_SEARCH_CONTACTS_CONTACTS'
		);

		return $areas;
	}

	/**
	 * Search content (contacts).
	 *
	 * The SQL must return the following fields that are used in a common
display
	 * routine: href, title, section, created, text, browsernav.
	 *
	 * @param   string  $text      Target search string.
	 * @param   string  $phrase    Matching option (possible values:
exact|any|all).  Default is "any".
	 * @param   string  $ordering  Ordering option (possible values:
newest|oldest|popular|alpha|category).  Default is "newest".
	 * @param   string  $areas     An array if the search is to be restricted
to areas or null to search all areas.
	 *
	 * @return  array  Search results.
	 *
	 * @since   1.6
	 */
	public function onContentSearch($text, $phrase = '', $ordering =
'', $areas = null)
	{
		JLoader::register('ContactHelperRoute', JPATH_SITE .
'/components/com_contact/helpers/route.php');

		$db     = JFactory::getDbo();
		$app    = JFactory::getApplication();
		$user   = JFactory::getUser();
		$groups = implode(',', $user->getAuthorisedViewLevels());

		if (is_array($areas) && !array_intersect($areas,
array_keys($this->onContentSearchAreas())))
		{
			return array();
		}

		$sContent  = $this->params->get('search_content', 1);
		$sArchived = $this->params->get('search_archived', 1);
		$limit     = $this->params->def('search_limit', 50);
		$state     = array();

		if ($sContent)
		{
			$state[] = 1;
		}

		if ($sArchived)
		{
			$state[] = 2;
		}

		if (empty($state))
		{
			return array();
		}

		$text = trim($text);

		if ($text === '')
		{
			return array();
		}

		$section = JText::_('PLG_SEARCH_CONTACTS_CONTACTS');

		switch ($ordering)
		{
			case 'alpha':
				$order = 'a.name ASC';
				break;

			case 'category':
				$order = 'c.title ASC, a.name ASC';
				break;

			case 'popular':
			case 'newest':
			case 'oldest':
			default:
				$order = 'a.name DESC';
		}

		$text = $db->quote('%' . $db->escape($text, true) .
'%', false);

		$query = $db->getQuery(true);

		// SQLSRV changes.
		$case_when  = ' CASE WHEN ';
		$case_when .= $query->charLength('a.alias', '!=',
'0');
		$case_when .= ' THEN ';
		$a_id = $query->castAsChar('a.id');
		$case_when .= $query->concatenate(array($a_id, 'a.alias'),
':');
		$case_when .= ' ELSE ';
		$case_when .= $a_id . ' END as slug';

		$case_when1  = ' CASE WHEN ';
		$case_when1 .= $query->charLength('c.alias', '!=',
'0');
		$case_when1 .= ' THEN ';
		$c_id        = $query->castAsChar('c.id');
		$case_when1 .= $query->concatenate(array($c_id, 'c.alias'),
':');
		$case_when1 .= ' ELSE ';
		$case_when1 .= $c_id . ' END as catslug';

		$query->select(
			'a.name AS title, \'\' AS created, a.con_position,
a.misc, '
				. $case_when . ',' . $case_when1 . ', '
				. $query->concatenate(array('a.name',
'a.con_position', 'a.misc'), ',') . ' AS
text,'
				. $query->concatenate(array($db->quote($section),
'c.title'), ' / ') . ' AS section,'
				. '\'2\' AS browsernav'
		);
		$query->from('#__contact_details AS a')
			->join('INNER', '#__categories AS c ON c.id =
a.catid')
			->where(
				'(a.name LIKE ' . $text . ' OR a.misc LIKE ' .
$text . ' OR a.con_position LIKE ' . $text
					. ' OR a.address LIKE ' . $text . ' OR a.suburb LIKE
' . $text . ' OR a.state LIKE ' . $text
					. ' OR a.country LIKE ' . $text . ' OR a.postcode LIKE
' . $text . ' OR a.telephone LIKE ' . $text
					. ' OR a.fax LIKE ' . $text . ') AND a.published IN
(' . implode(',', $state) . ') AND c.published=1 '
					. ' AND a.access IN (' . $groups . ') AND c.access IN
(' . $groups . ')'
			)
			->order($order);

		// Filter by language.
		if ($app->isClient('site') &&
JLanguageMultilang::isEnabled())
		{
			$tag = JFactory::getLanguage()->getTag();
			$query->where('a.language in (' . $db->quote($tag) .
',' . $db->quote('*') . ')')
				->where('c.language in (' . $db->quote($tag) .
',' . $db->quote('*') . ')');
		}

		$db->setQuery($query, 0, $limit);

		try
		{
			$rows = $db->loadObjectList();
		}
		catch (RuntimeException $e)
		{
			$rows = array();
			JFactory::getApplication()->enqueueMessage(JText::_('JERROR_AN_ERROR_HAS_OCCURRED'),
'error');
		}

		if ($rows)
		{
			foreach ($rows as $key => $row)
			{
				$rows[$key]->href  =
ContactHelperRoute::getContactRoute($row->slug, $row->catslug);
				$rows[$key]->text  = $row->title;
				$rows[$key]->text .= $row->con_position ? ', ' .
$row->con_position : '';
				$rows[$key]->text .= $row->misc ? ', ' . $row->misc
: '';
			}
		}

		return $rows;
	}
}
contacts.xml000064400000003363151160174370007116 0ustar00<?xml
version="1.0" encoding="utf-8"?>
<extension version="3.1" type="plugin"
group="search" method="upgrade">
	<name>plg_search_contacts</name>
	<author>Joomla! Project</author>
	<creationDate>November 2005</creationDate>
	<copyright>Copyright (C) 2005 - 2020 Open Source Matters. All rights
reserved.</copyright>
	<license>GNU General Public License version 2 or later; see
LICENSE.txt</license>
	<authorEmail>admin@joomla.org</authorEmail>
	<authorUrl>www.joomla.org</authorUrl>
	<version>3.0.0</version>
	<description>PLG_SEARCH_CONTACTS_XML_DESCRIPTION</description>
	<files>
		<filename plugin="contacts">contacts.php</filename>
	</files>
	<languages>
		<language
tag="en-GB">en-GB.plg_search_contacts.ini</language>
		<language
tag="en-GB">en-GB.plg_search_contacts.sys.ini</language>
	</languages>
	<config>
		<fields name="params">
			<fieldset name="basic">
				<field
					name="search_limit"
					type="number"
					label="JFIELD_PLG_SEARCH_SEARCHLIMIT_LABEL"
					description="JFIELD_PLG_SEARCH_SEARCHLIMIT_DESC"
					default="50"
					filter="integer"
					size="5"
				/>

				<field
					name="search_content"
					type="radio"
					label="JFIELD_PLG_SEARCH_ALL_LABEL"
					description="JFIELD_PLG_SEARCH_ALL_DESC"
					class="btn-group btn-group-yesno"
					default="0"
					filter="integer"
					>
					<option value="1">JYES</option>
					<option value="0">JNO</option>
				</field>

				<field
					name="search_archived"
					type="radio"
					label="JFIELD_PLG_SEARCH_ARCHIVED_LABEL"
					description="JFIELD_PLG_SEARCH_ARCHIVED_DESC"
					class="btn-group btn-group-yesno"
					default="0"
					filter="integer"
					>
					<option value="1">JYES</option>
					<option value="0">JNO</option>
				</field>
			</fieldset>
		</fields>
	</config>
</extension>