PATH:
home
/
centosnipponia
/
public_html
/
nipponiacom2
/
administrator
/
components
/
com_georedirects
<?php /** * @package GEO Redirects * @copyright Copyright (C) 2019 SiteGuarding.com. All rights reserved. * @GNU General Public License */ defined('_JEXEC') or die('Restricted access'); class com_georedirectsInstallerScript { function install($parent) { jimport('joomla.installer.installer'); $src_plugins = dirname(__FILE__). DIRECTORY_SEPARATOR .'plugin'; $installer = new JInstaller; $result = $installer->install($src_plugins); $status->plugins[] = array('name'=>'georedirects','group'=>'system', 'result'=>$result); $db = JFactory::getDBO(); $db->setQuery("UPDATE #__extensions SET enabled = '1' WHERE `element` = 'georedirects' AND `type` = 'plugin'"); $db->query(); } function uninstall($parent) { jimport('joomla.installer.installer'); $db = JFactory::getDBO(); $db->setQuery('SELECT `extension_id` FROM #__extensions WHERE `type` = "plugin" AND `element` = "georedirects" AND `folder` = "system"'); $id = $db->loadResult(); if($id) { $installer = new JInstaller; $result = $installer->uninstall('plugin', $id , 1); } } }
[+]
..
[-] com_redirects.xml
[edit]
[-] geo.check.redirect.php
[edit]
[-] geo.mmdb
[edit]
[-] geo.php
[edit]
[-] georedirects.php
[edit]
[-] index.html
[edit]
[-] script.php
[edit]
[-] settings.php
[edit]
[-] .htaccess.disabled
[edit]