This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (document, Joomla) { | |
document.addEventListener('DOMContentLoaded', function () { | |
var calendarEl = document.getElementById('eb_full_calendar'); | |
var calendarOptions = Joomla.getOptions('calendarOptions'); | |
calendarOptions['eventDidMount'] = function (arg) { | |
if (arg.event.extendedProps.tooltip) { | |
var element = jQuery(arg.el); | |
element.tooltip({ | |
title: arg.event.extendedProps.tooltip, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$_REQUEST['option'] = 'com_osmembership'; | |
$_REQUEST['task'] = 'recurring_payment_confirm'; | |
$_REQUEST['payment_method'] = 'os_paypal'; | |
require_once '../../../index.php'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class plgInstallerSample extends JPlugin | |
{ | |
public function onInstallerBeforePackageDownload(&$url, &$headers) | |
{ | |
$uri = JUri::getInstance($url); | |
$uri->setVar('blahblah', 'blahblah'); | |
$uri->setVar('pid', 'xx'); | |
$uri->setVar('token', 'xxxxxx-xxxxxx-xxxxxx'); | |
$url = $uri->toString(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class EventbookingHelper | |
{ | |
/** | |
* Convert payment amount to USD currency in case the currency is not supported by the payment gateway | |
* | |
* @param $amount | |
* @param $currency | |
* | |
* @return float |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package Joomla | |
* @subpackage Event Booking | |
* @author Tuan Pham Ngoc | |
* @copyright Copyright (C) 2010 - 2018 Ossolution Team | |
* @license GNU/GPL, see LICENSE.php | |
*/ | |
defined('_JEXEC') or die; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function delete_attachments() | |
{ | |
$db = Factory::getDbo(); | |
$query = $db->getQuery(true); | |
$query->select('attachments') | |
->from('#__helpdeskpro_tickets') | |
->where('attachments != ""') | |
->where('YEAR(created_date) <= 2019'); | |
$db->setQuery($query); | |
$messages = $db->loadObjectList(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package Joomla.Administrator | |
* @subpackage com_users | |
* | |
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved. | |
* @license GNU General Public License version 2 or later; see LICENSE.txt | |
*/ | |
defined('_JEXEC') or die; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Convert payment amount to USD currency in case the currency is not supported by the payment gateway | |
* | |
* @param $amount | |
* @param $currency | |
* | |
* @return float | |
*/ | |
public static function convertAmountToUSD($amount, $currency) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function test_paygate() | |
{ | |
require_once JPATH_ROOT . '/components/com_eventbooking/payments/paygatepayweb3/paygate.payweb3.php'; | |
$payWeb3 = new PayGate_PayWeb3(); | |
$payWeb3->setEncryptionKey('secret'); | |
$requestData = array( | |
'PAYGATE_ID' => '10011072130', | |
'REFERENCE' => 'REGISTRATION#40', |
NewerOlder