Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.217.35 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/ptitsanes/plugins/extension/solidres/ |
Upload File : |
<?php
/**
------------------------------------------------------------------------
SOLIDRES - Accommodation booking extension for Joomla
------------------------------------------------------------------------
* @author Solidres Team <contact@solidres.com>
* @website https://www.solidres.com
* @copyright Copyright (C) 2013 - 2019 Solidres. All Rights Reserved.
* @license GNU General Public License version 3, or later
------------------------------------------------------------------------
*/
defined('_JEXEC') or die;
/**
* Custom script to hook into installation process
*
*/
class plgExtensionSolidresInstallerScript
{
function install($parent)
{
//echo '<p>'. JText::_('1.6 Custom install script') . '</p>';
}
function uninstall($parent)
{
//echo '<p>'. JText::_('1.6 Custom uninstall script') .'</p>';
}
function update($parent)
{
//echo '<p>'. JText::_('1.6 Custom update script') .'</p>';
}
function preflight($type, $parent)
{
//echo '<p>'. JText::sprintf('1.6 Preflight for %s', $type) .'</p>';
}
function postflight($type, $parent)
{
echo '<p>' . JText::_('Solidres - Extension plugin is installed successfully.') . '</p>';
$dbo = JFactory::getDbo();
$query = $dbo->getQuery(true);
$query->clear();
$query->update($dbo->quoteName('#__extensions'));
$query->set('enabled = 1');
$query->where("element = 'solidres'");
$query->where("type = 'plugin'");
$query->where("folder = 'extension'");
$dbo->setQuery($query);
$result = $dbo->execute();
if (!$result)
{
throw new RuntimeException('plgExtensionSolidres: publishing failed');
}
else
{
echo '<p>' . JText::_('Solidres - Extension plugin is published successfully.') . '</p>';
}
}
}