Spade
Mini Shell
| Directory:~$ /home/lmsyaran/public_html/joomla4/ |
| [Home] [System Details] [Kill Me] |
assignticket/assignticket.php000064400000004246151160274530012447
0ustar00<?php
/**
* @version 4.3.0
* @package Joomla
* @subpackage Helpdesk Pro
* @author Tuan Pham Ngoc
* @copyright Copyright (C) 2013 - 2021 Ossolution Team
* @license GNU/GPL, see LICENSE.php
*/
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Plugin\CMSPlugin;
use Joomla\CMS\Uri\Uri;
use OSSolution\HelpdeskPro\Site\Helper\Database as
HelpdeskproHelperDatabase;
use OSSolution\HelpdeskPro\Site\Helper\Helper as HelpdeskproHelper;
defined('_JEXEC') or die;
class plgHelpdeskProAssignticket extends CMSPlugin
{
public function onViewTicket($row)
{
HTMLHelper::_('behavior.core');
$config = HelpdeskproHelper::getConfig();
$rowUsers =
HelpdeskproHelperDatabase::getAllStaffs($config->staff_group_id);
$user = JFactory::getUser();
$document = JFactory::getDocument();
$document->addScript(Uri::root(true) .
'/media/com_helpdeskpro/js/plug_helpdeskpro_assignticket.js');
$document->addScriptOptions('ticket_id', $row->id);
$document->addScriptOptions('hpdBaseUri', Uri::base(true));
Text::script('HDP_ASSIGN_TICKET_SUCCESS');
$displayField = $config->get('staff_display_field',
'username') ?: 'username';
if (count($rowUsers) &&
$user->authorise('helpdeskpro.assignticket',
'com_helpdeskpro'))
{
ob_start();
?>
<tr>
<th colspan="2"><?php echo
Text::_('HDP_ASSIGN_TICKET_TO_STAFF'); ?></th>
</tr>
<?php
?>
<tr>
<td colspan="2">
<?php
$options = array();
$options[] = HTMLHelper::_('select.option', 0,
Text::_('HDP_SELECT_STAFF'), 'id', $displayField);
$options = array_merge($options, $rowUsers);
echo HTMLHelper::_('select.genericlist', $options,
'user_id', 'class="chosen"', 'id',
$displayField, $row->staff_id);
?>
<input type="button" id="ajaxButton"
value="<?php echo Text::_('HDP_ASSIGN') ?>"
class="btn btn-primary">
<img style="display: none;"
class="ajax-loading" alt=""
src="<?php echo Uri::root(true) .
'/plugins/helpdeskpro/assignticket/loading.gif';
?>"><br>
</td>
</tr>
<?php
return ob_get_clean();
}
return null;
}
} assignticket/assignticket.xml000064400000001404151160274530012451
0ustar00<?xml version="1.0" encoding="utf-8"?>
<extension version="1.6.0" type="plugin"
group="helpdeskpro" method="upgrade">
<name>Helpdesk Pro - Assign Ticket</name>
<author>Tuan Pham Ngoc</author>
<creationDate>October 2012</creationDate>
<copyright>Ossolution Team</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html
GNU/GPL</license>
<authorEmail>contact@joomdonation.com</authorEmail>
<authorUrl>www.joomdonation.com</authorUrl>
<version>4.3.0</version>
<description>This plugin display list of staffs and allow
admin/manage asssign one of the staff to the current
ticket.</description>
<files>
<filename
plugin="assignticket">assignticket.php</filename>
<filename
plugin="assignticket">loading.gif</filename>
</files>
</extension>
assignticket/loading.gif000064400000000624151160274530011346
0ustar00GIF89a+�����q����q!�Created with
ajaxload.info!�
!�NETSCAPE2.0,+2��˖���
�V�˅�6�XY�f'}ޚ��g-Iׇ�.�ij�>�� 2L!�
,+=�
ac���Ǭ|�a��d���ʡJCJp,�kͱ��$�eoX�}��N��,bRǯ!�
,+=���0ac��j[�o�
�y�y��Ԡ�����Lc6�����R���5�0�G���,bR��!�
,+@��˖�ؘ��~���eL�4�GQ*t'Ů���6�������dC]��+Jv�E�`"��;attachments/attachments.php000064400000005053151160274530012112
0ustar00<?php
/**
* @version 4.3.0
* @package Joomla
* @subpackage Helpdesk Pro
* @author Tuan Pham Ngoc
* @copyright Copyright (C) 2013 - 2021 Ossolution Team
* @license GNU/GPL, see LICENSE.php
*/
defined('_JEXEC') or die;
use Joomla\CMS\Filesystem\File;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Plugin\CMSPlugin;
use Joomla\CMS\Router\Route;
class plgHelpdeskProAttachments extends CMSPlugin
{
/**
* Display list of attachments for this ticket
*
* @param $row
*
* @return null|string
*/
public function onViewTicket($row)
{
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->select('attachments, original_filenames')
->from('#__helpdeskpro_messages')
->where('ticket_id = ' . $row->id);
$db->setQuery($query);
$rowAttachments = array_merge(array($row), $db->loadObjectList());
$hasAttachment = false;
foreach ($rowAttachments As $rowAttachment)
{
if ($rowAttachment->original_filenames)
{
$hasAttachment = true;
break;
}
}
if ($hasAttachment)
{
ob_start();
?>
<tr>
<th colspan="2"><?php echo
Text::_('HDP_TICKET_ATTACHMENTS'); ?></th>
</tr>
<?php
$imageFileTypes = array('gif', 'jpg',
'jpeg', 'png');
$attachmentsPath = JPATH_ROOT .
'/media/com_helpdeskpro/attachments/';
foreach ($rowAttachments as $rowAttachment)
{
if ($rowAttachment->original_filenames)
{
$originalFileNames = explode('|',
$rowAttachment->original_filenames);
$attachments = explode('|',
$rowAttachment->attachments);
for ($i = 0, $n = count($originalFileNames); $i < $n; $i++)
{
$filename = $attachments[$i];
$filePath = $attachmentsPath . $filename;
if (file_exists($attachmentsPath . $filename))
{
$fileExt = strtolower(File::getExt($filename));
if (in_array($fileExt, $imageFileTypes))
{
$linkClass = 'class="hdp-modal"';
}
else
{
$linkClass = '';
}
?>
<tr>
<td colspan="2">
<a <?php echo $linkClass; ?>
href="<?php echo
Route::_('index.php?option=com_helpdeskpro&task=ticket.download_attachment&filename='
. $filename . '&original_filename=' .
$originalFileNames[$i]); ?>"><?php echo
$originalFileNames[$i]; ?></a>
(<?php echo HelpdeskproHelper::getSize($filePath); ?>)
</td>
</tr>
<?php
}
}
}
}
return ob_get_clean();
}
return null;
}
} attachments/attachments.xml000064400000001323151160274530012117
0ustar00<?xml version="1.0" encoding="utf-8"?>
<extension version="1.6.0" type="plugin"
group="helpdeskpro" method="upgrade">
<name>Helpdesk Pro - Ticket Attachments</name>
<author>Tuan Pham Ngoc</author>
<creationDate>October 2012</creationDate>
<copyright>Ossolution Team</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html
GNU/GPL</license>
<authorEmail>contact@joomdonation.com</authorEmail>
<authorUrl>www.joomdonation.com</authorUrl>
<version>4.3.0</version>
<description>This plugin is used to to display attachments of a
support ticket when admin/manager view ticket from
back-end</description>
<files>
<filename
plugin="attachments">attachments.php</filename>
</files>
</extension>
helpdesk_bale_sms/classes/bale_webhook.php000064400000001322151160274530015001
0ustar00<?php
require_once __DIR__.'/send.php';
$param= file_get_contents('php://input');
$param= json_decode($param);
$first_name= $param->message->from->first_name;
$chat_id= $param->message->chat->id;
$message_id= $param->message->message_id;
$message= $param->message->text;
$type= $param->message->chat->type;
if ($message!= '###id###')
exit();
if ($type== 'group')
$text= "سلام {$first_name} شناسه عددی گروه
{$chat_id} میباشد ";
elseif ($type== 'private')
$text= "سلام {$first_name} شناسه عددی شما
{$chat_id} میباشد ";
$data= [[
'chat_id'=> $chat_id,
'text'=> $text
]];
$send= new send;
$send->send_bale_message($data);helpdesk_bale_sms/classes/send.php000064400000005767151160274530013332
0ustar00<?php
class send{
public function __construct()
{
$this->bot_token=
'247613582:sQcricwPWDBezGv7bbpvGE33iSFFHD7HzihuNzio';
$this->getupdates_url=
"https://tapi.bale.ai/bot{$this->bot_token}/getupdates";
$this->sendmessage_url=
"https://tapi.bale.ai/bot{$this->bot_token}/sendMessage";
}
public function send_bale_message($data=[])
{
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $this->sendmessage_url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_POST, 1);
foreach ($data as $item)
{
curl_setopt($curl, CURLOPT_POSTFIELDS, $item);
$response = curl_exec($curl);
}
$response = json_decode($response);
// $err = curl_error($curl);
curl_close($curl);
return $response;
}
public function send_sms($mobilenumber, $smsService_input_data,
$smsService_pattern_code, $smsService_username, $smsService_password)
{
$SoapClient = new
SoapClient("http://panel.smsema.com/class/sms/wsdlservice/server.php?wsdl");
$smsService_from = "+983000505";
for($i=0; $i< 3; $i++)
{
$result= $SoapClient->sendPatternSms($smsService_from,
(array)$mobilenumber, $smsService_username, $smsService_password,
$smsService_pattern_code, $smsService_input_data);
if ($result)
return $result;
}
}
public function getMobile($mobile_number_source,
$mobile_number_source_field, $user_id)
{
$db = JFactory::getDbo();
$query = $db->getQuery(true);
if ($mobile_number_source == 'additional') {
$query->select('value');
$query->from($db->quoteName('#__fields',
'f'));
$query->join('inner',
$db->quoteName('#__fields_values', 'fv') .
'on' . $db->quoteName('f.id') . '=' .
$db->quoteName('fv.field_id'));
$query->where($db->quoteName('context') .
'=' . $db->quote('com_users.user'));
$query->where($db->quoteName('item_id') .
'=' . $user_id);
$query->where($db->quoteName('f.name') .
'=' . $db->quote($mobile_number_source_field));
$db->setQuery($query);
$result = $db->loadResult();
} elseif ($mobile_number_source == 'community_builder')
{
$query->select($mobile_number_source_field);
$query->from($db->quoteName('#__comprofiler',
'cp'));
$query->where($db->quoteName('user_id') .
'=' . $user_id);
$db->setQuery($query);
$result = $db->loadResult();
}
elseif ($mobile_number_source == 'username')
{
$query->select('username');
$query->from($db->quoteName('#__users',
'u'));
$query->where($db->quoteName('id') .
'=' . $user_id);
$db->setQuery($query);
$result = $db->loadResult();
}
return $result;
}
}helpdesk_bale_sms/helpdesk_bale_sms.php000064400000014442151160274530014376
0ustar00<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
fdsh
/-------------------------------------------------------------------------------------------------------/
@version 1.0.36
@build 28th March, 2023
@created 17th December, 2020
@package Reservation
@subpackage helpdesk_bale_sms.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.$$$$]***/
/**
* Helpdeskpro - Helpdesk_bale_sms plugin.
*
* @package Helpdesk_bale_sms
* @since 1.0.0
*//***[/JCBGUI$$$$]***/
class PlgHelpdeskproHelpdesk_bale_sms extends CMSPlugin
{
/***[JCBGUI.joomla_plugin.main_class_code.1.$$$$]***/
public function onAfterStoreTicket($row)
{
require_once __DIR__.'/classes/send.php';
$bale_id= $this->params->get('bale_id',0);
$params= [
'bale_id'=> $bale_id,
'id'=> $row->get('id'),
'subject'=> $row->get('subject'),
'message'=> $row->get('message'),
'name'=> $row->get('name'),
'created_date'=>
$row->get('created_date'),
'status_id'=> $row->get('status_id'),
'priority_id'=>
$row->get('priority_id'),
'category_id'=>
$row->get('category_id'),
'user_id'=> $row->get('user_id')
];
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->select('title');
$query->from($db->quoteName('#__helpdeskpro_statuses'));
$query->where($db->quoteName('id').'='.$db->quote($params['status_id']));
$db->setQuery($query);
$params['status_title'] = $db->loadResult();
$query = $db->getQuery(true);
$query->select('title');
$query->from($db->quoteName('#__helpdeskpro_priorities'));
$query->where($db->quoteName('id').'='.$db->quote($params['priority_id']));
$db->setQuery($query);
$params['priority_title'] = $db->loadResult();
$query = $db->getQuery(true);
$query->select('title');
$query->from($db->quoteName('#__helpdeskpro_categories'));
$query->where($db->quoteName('id').'='.$db->quote($params['category_id']));
$db->setQuery($query);
$params['category_title'] = $db->loadResult();
// echo '<pre>';
// var_dump($row);
// echo '</pre>';
// exit();
$text= "
شناسه تیکت : {$params['id']}
نام فرستنده : {$params['name']}
مجموعه : {$params['category_title']}
وضعیت : {$params['status_title']}
اولویت : {$params['priority_title']}
تاریخ ایجاد : {$params['created_date']}
موضوع : {$params['subject']}
متن : {$params['message']} ";
$send= new send;
foreach (explode(',',$params['bale_id']) as $item)
{
$data[]= ['chat_id'=> $item,
'text'=>$text];
}
$send->send_bale_message($data);
$mobile_number_source =
$this->params->get('mobile_number_source');
$mobile_number_source_field =
$this->params->get('mobile_number_source_field');
$smsService_input_data = array(
"username" => 'تیکت شما',
"password" => 'ثبت شد',
"link" => 'https://www.daneh.ir'
);
$smsService_pattern_code =
$this->params->get('sms_pattern', 0);
$smsService_username =
$this->params->get('sms_username', 0);
$smsService_password =
$this->params->get('sms_password', 0);
$mobile= $send->getMobile($mobile_number_source,
$mobile_number_source_field, $params['user_id']);
$send->send_sms($mobile, $smsService_input_data,
$smsService_pattern_code, $smsService_username, $smsService_password);
}
public function onAfterStoreComment($row, $ticket)
{
require_once __DIR__.'/classes/send.php';
$bale_id= $this->params->get('bale_id',0);
$params= [
'bale_id'=> $bale_id,
'id'=> $row->get('id'),
'ticket_id'=> $row->get('ticket_id'),
'user_id'=> $row->get('user_id'),
'message'=> $row->get('message'),
'name'=> $row->get('name'),
'date_added'=> $row->get('date_added'),
];
$user= JFactory::getUser($params['user_id']);
$text= "
#پاسخ
شناسه تیکت : {$params['ticket_id']}
شناسه تیکت پاسخ : {$params['id']}
نام فرستنده : {$user->get('name')}
تاریخ ایجاد : {$params['date_added']}
متن : {$params['message']} ";
$send= new send;
foreach (explode(',',$params['bale_id']) as $item)
{
$data[]= ['chat_id'=> $item,
'text'=>$text];
}
$send->send_bale_message($data);
$mobile_number_source =
$this->params->get('mobile_number_source');
$mobile_number_source_field =
$this->params->get('mobile_number_source_field');
$smsService_input_data = array(
"username" => 'تیکت شما',
"password" => 'پاسخ داده شد',
"link" => 'https://www.daneh.ir'
);
$smsService_pattern_code =
$this->params->get('sms_pattern', 0);
$smsService_username =
$this->params->get('sms_username', 0);
$smsService_password =
$this->params->get('sms_password', 0);
$mobile= $send->getMobile($mobile_number_source,
$mobile_number_source_field, $params['user_id']);
$send->send_sms($mobile, $smsService_input_data,
$smsService_pattern_code, $smsService_username, $smsService_password);
}
public function onViewTicket($row)
{
// echo '<pre>';
// var_dump($row);
// echo '</pre>';
// exit();
}
}/***[/JCBGUI$$$$]***/
}
helpdesk_bale_sms/helpdesk_bale_sms.xml000064400000012726151160274530014412
0ustar00<?xml version="1.0" encoding="utf-8"?>
<extension type="plugin" version="3.8"
group="helpdeskpro" method="upgrade">
<name>PLG_HELPDESKPRO_HELPDESK_BALE_SMS</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_HELPDESKPRO_HELPDESK_BALE_SMS_XML_DESCRIPTION</description>
<!-- Language files -->
<languages folder="language">
<language
tag="en-GB">en-GB/en-GB.plg_helpdeskpro_helpdesk_bale_sms.ini</language>
<language
tag="en-GB">en-GB/en-GB.plg_helpdeskpro_helpdesk_bale_sms.sys.ini</language>
</languages>
<!-- Plugin files -->
<files>
<filename
plugin="helpdesk_bale_sms">helpdesk_bale_sms.php</filename>
<filename>index.html</filename>
<folder>language</folder>
<folder>classes</folder>
</files>
<!-- Config parameter -->
<config
addrulepath="/administrator/components/com_reservation/models/rules"
addfieldpath="/administrator/components/com_reservation/models/fields"
>
<fields name="params">
<fieldset name="mobilenumber"
label="PLG_HELPDESKPRO_HELPDESK_BALE_SMS_MOBILE_NUMBER">
<!-- Mobile_number_source Field. Type: List. (joomla) -->
<field type="list"
name="mobile_number_source"
label="PLG_HELPDESKPRO_HELPDESK_BALE_SMS_MOBILE_NUMBER_SOURCE_LABEL"
description="PLG_HELPDESKPRO_HELPDESK_BALE_SMS_MOBILE_NUMBER_SOURCE_DESCRIPTION"
class="list_class"
multiple="false"
default="">
<!-- Option Set.-->
<option
value="additional">PLG_HELPDESKPRO_HELPDESK_BALE_SMS_JOOMLA_UESRS_ADDITIONAL_FIELD</option>
<option
value="community_builder">PLG_HELPDESKPRO_HELPDESK_BALE_SMS_COMMUNITY_BUILDER</option>
<option
value="username">PLG_HELPDESKPRO_HELPDESK_BALE_SMS_JOOMLA_USERNAME_FIELD</option>
</field>
<!-- Mobile_number_source_field Field. Type: Text. (joomla) -->
<field type="text"
name="mobile_number_source_field"
label="PLG_HELPDESKPRO_HELPDESK_BALE_SMS_MOBILE_NUMBER_SOURCE_FIELD_LABEL"
size="10"
maxlength="50"
default=""
description="PLG_HELPDESKPRO_HELPDESK_BALE_SMS_MOBILE_NUMBER_SOURCE_FIELD_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="STRING"
message="PLG_HELPDESKPRO_HELPDESK_BALE_SMS_MOBILE_NUMBER_SOURCE_FIELD_MESSAGE"
autocomplete="on"
showon="mobile_number_source:additional,community_builder" />
<!-- Sms_pattern Field. Type: Text. (joomla) -->
<field type="text"
name="sms_pattern"
label="PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_PATTERN_LABEL"
size="10"
maxlength="50"
default=""
description="PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_PATTERN_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="STRING"
message="PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_PATTERN_MESSAGE"
autocomplete="on" />
</fieldset>
<fieldset name="panelsetting"
label="PLG_HELPDESKPRO_HELPDESK_BALE_SMS_PANEL_SETTING">
<!-- Sms_username Field. Type: Text. (joomla) -->
<field type="text"
name="sms_username"
label="PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_USERNAME_LABEL"
size="10"
maxlength="50"
default=""
description="PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_USERNAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="STRING"
message="PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_USERNAME_MESSAGE"
autocomplete="on" />
<!-- Sms_password Field. Type: Text. (joomla) -->
<field type="text"
name="sms_password"
label="PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_PASSWORD_LABEL"
size="10"
maxlength="50"
default=""
description="PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_PASSWORD_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="STRING"
message="PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_PASSWORD_MESSAGE"
autocomplete="on" />
</fieldset>
<fieldset name="basic" label="basic">
<!-- Bale_id Field. Type: Text. (joomla) -->
<field type="text"
name="bale_id"
label="PLG_HELPDESKPRO_HELPDESK_BALE_SMS_BALE_ID_LABEL"
size="10"
maxlength="50"
default=""
description="PLG_HELPDESKPRO_HELPDESK_BALE_SMS_BALE_ID_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="STRING"
message="PLG_HELPDESKPRO_HELPDESK_BALE_SMS_BALE_ID_MESSAGE"
autocomplete="on" />
</fieldset>
</fields>
</config>
</extension>helpdesk_bale_sms/index.html000064400000000054151160274530012210
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>helpdesk_bale_sms/language/en-GB/en-GB.plg_helpdeskpro_helpdesk_bale_sms.ini000064400000005275151160274530023176
0ustar00PLG_HELPDESKPRO_HELPDESK_BALE_SMS="Helpdeskpro -
Helpdesk_bale_sms"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_DESCRIPTION="connect helpdesk to
bale social network and sms panel"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_XML_DESCRIPTION="<h1>Helpdeskpro
- Helpdesk_bale_sms (v.1.0.0)</h1> <div style='clear:
both;'></div><p>connect helpdesk to bale social network
and sms panel </p><p>Created by <a
href='http://farhad.com' target='_blank'>farhad
shahbazi</a><br /><small>Development started 27th July,
2021</small></p>"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_MOBILE_NUMBER="Mobile Number"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_PANEL_SETTING="Panel Setting"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_MOBILE_NUMBER_SOURCE_LABEL="Mobile
Number Source"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_MOBILE_NUMBER_SOURCE_DESCRIPTION="the
source from which the mobile number is read. If you select the Joomla
option, the user username will be used as the phone number"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_JOOMLA_UESRS_ADDITIONAL_FIELD="joomla
uesrs additional field"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_COMMUNITY_BUILDER="community
builder"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_JOOMLA_USERNAME_FIELD="joomla
username field"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_MOBILE_NUMBER_SOURCE_FIELD_LABEL="Mobile
Number Source Field"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_MOBILE_NUMBER_SOURCE_FIELD_DESCRIPTION="the
name of the column in which the mobile number is stored"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_MOBILE_NUMBER_SOURCE_FIELD_MESSAGE="Error!
Please add some text here."
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_PATTERN_LABEL="Sms Pattern"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_PATTERN_DESCRIPTION="Sms
Pattern"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_PATTERN_MESSAGE="Error! Please
add some text here."
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_USERNAME_LABEL="Username"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_USERNAME_DESCRIPTION="sms panel
username. If the username is empty, the SMS system will remain
inactive"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_USERNAME_MESSAGE="Error! Please
add some text here."
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_PASSWORD_LABEL="Password"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_PASSWORD_DESCRIPTION="sms panel
password.If the password is empty, the SMS system will remain
inactive"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_PASSWORD_MESSAGE="Error! Please
add some text here."
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_BALE_ID_LABEL="Bale ID"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_BALE_ID_DESCRIPTION="You can get
help from Bale @isnullbot to get the group ID.
To get the channel ID, refer to the channel information section in Bale.
To send messages to multiple groups and channels, just separate their
identifiers with (,)"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_BALE_ID_MESSAGE="Error! Please add
some text
here."helpdesk_bale_sms/language/en-GB/en-GB.plg_helpdeskpro_helpdesk_bale_sms.sys.ini000064400000005275151160274530024013
0ustar00PLG_HELPDESKPRO_HELPDESK_BALE_SMS="Helpdeskpro -
Helpdesk_bale_sms"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_DESCRIPTION="connect helpdesk to
bale social network and sms panel"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_XML_DESCRIPTION="<h1>Helpdeskpro
- Helpdesk_bale_sms (v.1.0.0)</h1> <div style='clear:
both;'></div><p>connect helpdesk to bale social network
and sms panel </p><p>Created by <a
href='http://farhad.com' target='_blank'>farhad
shahbazi</a><br /><small>Development started 27th July,
2021</small></p>"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_MOBILE_NUMBER="Mobile Number"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_PANEL_SETTING="Panel Setting"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_MOBILE_NUMBER_SOURCE_LABEL="Mobile
Number Source"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_MOBILE_NUMBER_SOURCE_DESCRIPTION="the
source from which the mobile number is read. If you select the Joomla
option, the user username will be used as the phone number"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_JOOMLA_UESRS_ADDITIONAL_FIELD="joomla
uesrs additional field"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_COMMUNITY_BUILDER="community
builder"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_JOOMLA_USERNAME_FIELD="joomla
username field"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_MOBILE_NUMBER_SOURCE_FIELD_LABEL="Mobile
Number Source Field"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_MOBILE_NUMBER_SOURCE_FIELD_DESCRIPTION="the
name of the column in which the mobile number is stored"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_MOBILE_NUMBER_SOURCE_FIELD_MESSAGE="Error!
Please add some text here."
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_PATTERN_LABEL="Sms Pattern"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_PATTERN_DESCRIPTION="Sms
Pattern"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_PATTERN_MESSAGE="Error! Please
add some text here."
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_USERNAME_LABEL="Username"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_USERNAME_DESCRIPTION="sms panel
username. If the username is empty, the SMS system will remain
inactive"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_USERNAME_MESSAGE="Error! Please
add some text here."
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_PASSWORD_LABEL="Password"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_PASSWORD_DESCRIPTION="sms panel
password.If the password is empty, the SMS system will remain
inactive"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_SMS_PASSWORD_MESSAGE="Error! Please
add some text here."
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_BALE_ID_LABEL="Bale ID"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_BALE_ID_DESCRIPTION="You can get
help from Bale @isnullbot to get the group ID.
To get the channel ID, refer to the channel information section in Bale.
To send messages to multiple groups and channels, just separate their
identifiers with (,)"
PLG_HELPDESKPRO_HELPDESK_BALE_SMS_BALE_ID_MESSAGE="Error! Please add
some text
here."helpdesk_bale_sms/language/en-GB/index.html000064400000000054151160274530014663
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>helpdesk_bale_sms/language/index.html000064400000000054151160274540013774
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>prereply/prereply.php000064400000003370151160274540010771
0ustar00<?php
/**
* @version 4.3.0
* @package Joomla
* @subpackage Helpdesk Pro
* @author Tuan Pham Ngoc
* @copyright Copyright (C) 2013 - 2021 Ossolution Team
* @license GNU/GPL, see LICENSE.php
*/
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Plugin\CMSPlugin;
use Joomla\CMS\Uri\Uri;
use OSSolution\HelpdeskPro\Site\Helper\Helper as HelpdeskproHelper;
class plgHelpdeskProPrereply extends CMSPlugin
{
public function onViewTicket($row)
{
$role = HelpdeskproHelper::getUserRole();
if ($role == 'user')
{
return;
}
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->select("id AS value, title AS text")
->from("#__helpdeskpro_replies")
->where("published = 1")
->order("ordering");
$db->setQuery($query);
$rowReplies = $db->loadObjectList();
if (!count($rowReplies))
{
return;
}
$document = JFactory::getDocument();
$document->addScript(Uri::root(true) .
'/media/com_helpdeskpro/js/plug_helpdeskpro_prereply.js');
$document->addScriptOptions('siteUrl', Uri::root(true));
$document->addScriptOptions('ticket_id', $row->id);
ob_start();
?>
<tr>
<th colspan="2"><?php echo
Text::_('HDP_PRE_REPLIES'); ?></th>
</tr>
<?php
?>
<tr>
<td colspan="2">
<?php
echo HTMLHelper::_('select.genericlist', $rowReplies,
'replies_id', 'class="chosen" ',
'value', 'text', '');
?>
<input type="button" class="btn
btn-primary" id="ajaxAssign"
value="<?php echo
Text::_('HDP_ADD_REPLY') ?>" />
</td>
</tr>
<?php
return ob_get_clean();
}
} prereply/prereply.xml000064400000001334151160274540011000
0ustar00<?xml version="1.0" encoding="utf-8"?>
<extension version="1.6.0" type="plugin"
group="helpdeskpro" method="upgrade">
<name>Helpdesk Pro - Pre-reply messages</name>
<author>Tuan Pham Ngoc</author>
<creationDate>October 2012</creationDate>
<copyright>Ossolution Team</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html
GNU/GPL</license>
<authorEmail>contact@joomdonation.com</authorEmail>
<authorUrl>www.joomdonation.com</authorUrl>
<version>4.3.0</version>
<description>This plugin display list of available pre-replies
messages and allows admin to use these messages to add comment to a
ticket</description>
<files>
<filename
plugin="prereply">prereply.php</filename>
</files>
</extension>
tickethistory/tickethistory.php000064400000002230151160274540013071
0ustar00<?php
/**
* @version 4.3.0
* @package Joomla
* @subpackage Helpdesk Pro
* @author Tuan Pham Ngoc
* @copyright Copyright (C) 2013 - 2021 Ossolution Team
* @license GNU/GPL, see LICENSE.php
*/
defined('_JEXEC') or die;
use Joomla\CMS\Plugin\CMSPlugin;
use Joomla\CMS\Plugin\PluginHelper;
class plgHelpdeskProTicketHistory extends CMSPlugin
{
public function onViewTicket($row)
{
$limit = (int) $this->params->get('limit', 10);
$dateFormat = $this->params->get('date_format',
'm-d-Y');
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->select('id, subject, created_date')
->from('#__helpdeskpro_tickets')
->where('(user_id = ' . (int) $row->user_id . ' OR
email = ' . $db->quote($row->email) . ')')
->order('id DESC');
$db->setQuery($query, 0, $limit);
$rows = $db->loadObjectList();
if (count($rows))
{
// Get the path for the layout file
$path = PluginHelper::getLayoutPath('helpdeskpro',
'tickethistory');
// Render the layout
ob_start();
include $path;
return ob_get_clean();
}
return null;
}
} tickethistory/tickethistory.xml000064400000001751151160274540013111
0ustar00<?xml version="1.0" encoding="utf-8"?>
<extension version="1.6.0" type="plugin"
group="helpdeskpro" method="upgrade">
<name>Helpdesk Pro - Tickethistory</name>
<author>Tuan Pham Ngoc</author>
<creationDate>October 2012</creationDate>
<copyright>Ossolution Team</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html
GNU/GPL</license>
<authorEmail>contact@joomdonation.com</authorEmail>
<authorUrl>www.joomdonation.com</authorUrl>
<version>4.3.0</version>
<description>This plugin displays tickets history the user who
submitted the current ticket</description>
<files>
<filename
plugin="tickethistory">tickethistory.php</filename>
<folder>tmpl</folder>
</files>
<config>
<fields name="params">
<fieldset name="basic">
<field name="limit" type="text"
default="10" label="Limit" description=""
/>
<field name="date_format" type="text"
default="m-d-Y" label="Date Format"
description="" />
</fieldset>
</fields>
</config>
</extension>
tickethistory/tmpl/default.php000064400000001525151160274540012572
0ustar00<?php
/**
* @version 3.4.0
* @package Joomla
* @subpackage Helpdesk Pro
* @author Tuan Pham Ngoc
* @copyright Copyright (C) 2013 - 2021 Ossolution Team
* @license GNU/GPL, see LICENSE.php
*/
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
?>
<tr>
<th colspan="2"><?php echo
Text::_('HDP_TICKET_HISTORY'); ?></th>
</tr>
<?php
foreach ($rows as $row)
{
?>
<tr id="footer_result">
<td colspan="2">
<a href="<?php echo
Route::_('index.php?option=com_helpdeskpro&task=ticket.edit&cid[]='
. (int) $row->id) ?>"
target="_blank">
[#<?php echo $row->id; ?>] - <?php echo
$row->subject ?>
(<?php echo HTMLHelper::_('date', $row->created_date,
$dateFormat); ?>)
</a>
</td>
</tr>
<?php
}
helpdeskpro.php000064400000003071151161215070007575 0ustar00<?php
/**
* @package Joomla
* @subpackage Helpdesk Pro
* @author Tuan Pham Ngoc
* @copyright Copyright (C) 2012 - 2021 Ossolution Team
* @license GNU/GPL, see LICENSE.php
*/
defined('_JEXEC') or die;
use Joomla\CMS\Plugin\CMSPlugin;
use Joomla\CMS\Uri\Uri;
class plgInstallerHelpdeskPro extends CMSPlugin
{
public function onInstallerBeforePackageDownload(&$url,
&$headers)
{
$uri = Uri::getInstance($url);
$host = $uri->getHost();
$validHosts = array('joomdonation.com',
'www.joomdonation.com');
if (!in_array($host, $validHosts))
{
return true;
}
$documentId = $uri->getVar('document_id');
if ($documentId != 67)
{
return true;
}
if (!file_exists(JPATH_ADMINISTRATOR .
'/components/com_helpdeskpro/init.php'))
{
return true;
}
// Get Download ID and append it to the URL
require_once JPATH_ADMINISTRATOR .
'/components/com_helpdeskpro/init.php';
require_once JPATH_ROOT .
'/components/com_helpdeskpro/Helper/Helper.php';
$config = \OSSolution\HelpdeskPro\Site\Helper\Helper::getConfig();
// Append the Download ID to the download URL
if (!empty($config->download_id))
{
$uri->setVar('download_id', $config->download_id);
$url = $uri->toString();
// Append domain to URL for logging
$siteUri = Uri::getInstance();
$uri->setVar('domain', $siteUri->getHost());
$uri->setVar('version',
\OSSolution\HelpdeskPro\Site\Helper\Helper::getInstalledVersion());
$url = $uri->toString();
}
return true;
}
}helpdeskpro.xml000064400000001574151161215070007614 0ustar00<?xml
version="1.0" encoding="utf-8"?>
<extension version="3.0" type="plugin"
group="installer" method="upgrade">
<name>Installer - Helpdesk Pro</name>
<author>Tuan Pham Ngoc</author>
<authorEmail>tuanpn@joomdonation.com</authorEmail>
<authorUrl>http://www.joomdonation.com</authorUrl>
<copyright>Copyright (C) 2010 - 2019 Ossolution
Team</copyright>
<license>GNU General Public License version 3, or
later</license>
<creationDate>August 2016</creationDate>
<version>4.3.0</version>
<description>Allows the installation of Helpdesk Pro updates.
This plugin MUST be installed for the Helpdesk Pro updates to be installed
under your Joomla site. Otherwise you will see the updates but you will not
be able to install them.</description>
<files>
<filename
plugin="helpdeskpro">helpdeskpro.php</filename>
</files>
</extension>script.php000064400000001626151166614450006577
0ustar00<?php
/**
* @package Joomla
* @subpackage Helpdesk Pro
* @author Tuan Pham Ngoc
* @copyright Copyright (C) 2012 - 2016 Ossolution Team
* @license GNU/GPL, see LICENSE.php
*/
class Pkg_HelpdeskproInstallerScript
{
/**
* Perform basic system requirements check before installing the package
*
* @param string $type
* @param JAdapter $parent
*
* @return bool
*/
public function preflight($type, $parent)
{
if (version_compare(JVERSION, '3.9.0', '<'))
{
JError::raiseWarning(null, 'Cannot install Helpdesk Pro in a
Joomla! release prior to 3.9.0');
return false;
}
if (version_compare(PHP_VERSION, '5.4.0', '<'))
{
JError::raiseWarning(null, 'Helpdesk Pro requires PHP 5.4.0+ to
work. Please contact your hosting provider, ask them to update PHP version
for your hosting account.');
return false;
}
}
}