| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Old Sites/ees_request/administrator/components/com_extplorer/ |
Upload File : |
<?php
// ensure this file is being included by a parent file
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
/**
* @version $Id: install.extplorer.php 182 2011-01-06 09:34:30Z soeren $
* @package eXtplorer
* @copyright (C) 2005-2008 Soeren
* @license GNU / GPL
* @author soeren
* eXtplorer is Free Software
*/
function com_install(){
global $database;
if( is_callable( array( 'JFactory', 'getDBO' ))) {
$database = JFactory::getDBO();
}
$mypath = dirname(__FILE__);
require_once($mypath . "/include/functions.php");
require_once($mypath . "/libraries/Archive/archive.php");
ext_RaiseMemoryLimit( '50M' );
error_reporting( E_ALL ^ E_NOTICE );
$archive_name = $mypath.'/scripts.tar.gz';
$extract_dir = $mypath.'/';
$result = extArchive::extract( $archive_name, $extract_dir );
if( !PEAR::isError( $result )) {
unlink( $archive_name );
} else {
echo '<pre style="color:white; font-weight:bold; background-color:red;">Error!
'.$result->getMessage().'
</pre>';
}
if( !is_callable( array( $database, 'loadNextRow' ))) {
$database->setQuery( "SELECT id FROM #__components WHERE admin_menu_link = 'option=com_extplorer'" );
$id = $database->loadResult();
//add new admin menu images
$database->setQuery( "UPDATE #__components SET admin_menu_img = '../administrator/components/com_extplorer/images/joomla_x_icon.png', admin_menu_link = 'option=com_extplorer' WHERE id=$id");
$database->query();
}
}
?>