File manager - Edit - /home/verseaumee/ptitsanes/plugins/system/solidres/solidres.scriptfile.php
Back
<?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 plgSystemSolidresInstallerScript { 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 - System 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 = 'system'"); $dbo->setQuery($query); $result = $dbo->execute(); if (!$result) { throw new RuntimeException('plgSystemSolidres: publishing failed', -1); } else { echo '<p>' . JText::_('Solidres - System plugin is published successfully.') . '</p>'; } } }
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings