Файловый менеджер - Редактировать - /var/www/iplanru/data/www/i-plan.ru/plugins/search/zoosearch/file.script.php
Назад
<?php /** * @package Search - ZOO * @author YOOtheme http://www.yootheme.com * @copyright Copyright (C) YOOtheme GmbH * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only */ class plgsearchzoosearchInstallerScript { public function install($parent) {} public function uninstall($parent) {} public function update($parent) {} public function preflight($type, $parent) { if (strtolower($type) == 'update') { // load config require_once(JPATH_ADMINISTRATOR.'/components/com_zoo/config.php'); // get app $zoo = App::getInstance('zoo'); foreach ($zoo->filesystem->readDirectoryFiles($parent->getParent()->getPath('source'), $parent->getParent()->getPath('source').'/', '/(positions\.(config|xml)|metadata\.xml)$/', true) as $file) { JFile::delete($file); } } } public function postflight($type, $parent) {} }
| ver. 1.4 |
Github
|
.
| PHP 5.4.45-1~dotdeb+6.1 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка