Spade
Mini Shell
| Directory:~$ /home/lmsyaran/public_html/joomla4/ |
| [Home] [System Details] [Kill Me] |
PK�p�[�#o,,
index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK�p�[Cg
��6language/en-GB/en-GB.plg_search_reservation_search.ininu�[���PLG_SEARCH_RESERVATION_SEARCH="Search
- Reservation_search"
PLG_SEARCH_RESERVATION_SEARCH_DESCRIPTION="reservation search"
PLG_SEARCH_RESERVATION_SEARCH_XML_DESCRIPTION="<h1>Search -
Reservation_search (v.1.0.0)</h1> <div style='clear:
both;'></div><p>reservation
search</p><p>Created by <a
href='http://farhad.com' target='_blank'>farhad
shahbazi</a><br /><small>Development started 15th March,
2023</small></p>"PK�p�[Cg
��:language/en-GB/en-GB.plg_search_reservation_search.sys.ininu�[���PLG_SEARCH_RESERVATION_SEARCH="Search
- Reservation_search"
PLG_SEARCH_RESERVATION_SEARCH_DESCRIPTION="reservation search"
PLG_SEARCH_RESERVATION_SEARCH_XML_DESCRIPTION="<h1>Search -
Reservation_search (v.1.0.0)</h1> <div style='clear:
both;'></div><p>reservation
search</p><p>Created by <a
href='http://farhad.com' target='_blank'>farhad
shahbazi</a><br /><small>Development started 15th March,
2023</small></p>"PK�p�[�#o,,language/en-GB/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK�p�[�#o,,language/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK�p�[k�0>>reservation_search.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
fdsh
/-------------------------------------------------------------------------------------------------------/
@version 1.0.36
@build 28th March, 2023
@created 17th December, 2020
@package Reservation
@subpackage reservation_search.php
@author farhad shahbazi <http://farhad.com>
@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');
/***[JCBGUI.class_extends.head.1.$$$$]***/
use Joomla\CMS\Application\CMSApplication;
use Joomla\CMS\Plugin\CMSPlugin;
/***[/JCBGUI$$$$]***/
/***[JCBGUI.class_extends.comment.1.$$$$]***/
/**
* Search - Reservation_search plugin.
*
* @package Reservation_search
* @since 1.0.0
*//***[/JCBGUI$$$$]***/
class PlgSearchReservation_search extends CMSPlugin
{
/***[JCBGUI.joomla_plugin.main_class_code.68.$$$$]***/
public function __construct(&$subject, $config)
{
parent::__construct($subject, $config);
$this->loadLanguage();
}
function onContentSearchAreas()
{
return array('reservation' =>
JText::_("JRESERVATION")); // translate_need
}
function onContentSearch($text, $phrase='',
$ordering='', $areas=null)
{
$db = JFactory::getDBO();
$like= $db->quote('%'.str_replace('
','%',trim($text)).'%');
$query = $db->getQuery(true);
$query
->select('u.name, ca.title, c.account, c.id as c_d_id,
c.published')
->from($db->quoteName('#__reservation_consultant',
'c'))
->join('INNER',
$db->quoteName('#__users', 'u') . ' ON ' .
$db->quoteName('c.userid') . ' = ' .
$db->quoteName('u.id'))
->join('INNER',
$db->quoteName('#__categories', 'ca') . ' ON
' . $db->quoteName('c.catid') . ' = ' .
$db->quoteName('ca.id'))
->where($db->quoteName('u.name') . ' LIKE
' . $like)
->orwhere($db->quoteName('ca.title') . ' LIKE
' . $like);
$db->setQuery($query);
$rows = $db->loadAssocList();
$rows_result = array ();
foreach($rows as $key => $row) {
if($row['published'] == 1)
{
$obj = new JObject ();
$obj->title= $row['name'];
$obj->section = $row['title'];
$obj->created = "";
$obj->browsernav = '1'; // 1 = new window, 2 =
same window
if ($row['account']== 'consultant')
{
$obj->href =
JRoute::_("/index.php?option=com_reservation&view=consultantitem&id={$row['c_d_id']}",
true);
$obj->text = "text";
}
else if ($row['account']== 'doctor')
{
$obj->href =
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$row['remoteid'],
true);
$obj->text = "";
}
else if ($row['account']== 'both')
{
$obj->href =
JRoute::_("/index.php?option=com_reservation&view=consultantitem&id={$row['c_d_id']}",
true);
$obj->text = "";
}
$rows_result[] = $obj;
}
}
// echo '<pre>';
// var_dump($rows);
// echo '</pre>';
// exit();
return $rows_result;
}/***[/JCBGUI$$$$]***/
}
PK�p�[�z�
��reservation_search.xmlnu�[���<?xml
version="1.0" encoding="utf-8"?>
<extension type="plugin" version="3.8"
group="search" method="upgrade">
<name>PLG_SEARCH_RESERVATION_SEARCH</name>
<creationDate>28th March, 2023</creationDate>
<author>farhad shahbazi</author>
<authorEmail>farhad.shahbazi0010@gmail.com</authorEmail>
<authorUrl>http://farhad.com</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>PLG_SEARCH_RESERVATION_SEARCH_XML_DESCRIPTION</description>
<!-- Language files -->
<languages folder="language">
<language
tag="en-GB">en-GB/en-GB.plg_search_reservation_search.ini</language>
<language
tag="en-GB">en-GB/en-GB.plg_search_reservation_search.sys.ini</language>
</languages>
<!-- Plugin files -->
<files>
<filename
plugin="reservation_search">reservation_search.php</filename>
<filename>index.html</filename>
<folder>language</folder>
</files>
</extension>PK�p�[�#o,,
index.htmlnu�[���PK�p�[Cg
��6flanguage/en-GB/en-GB.plg_search_reservation_search.ininu�[���PK�p�[Cg
��:ilanguage/en-GB/en-GB.plg_search_reservation_search.sys.ininu�[���PK�p�[�#o,,planguage/en-GB/index.htmlnu�[���PK�p�[�#o,,�language/index.htmlnu�[���PK�p�[k�0>>Treservation_search.phpnu�[���PK�p�[�z�
���reservation_search.xmlnu�[���PK�