2
// ensure this file is being included by a parent file
3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
5
* @version $Id: install.extplorer.php 116 2009-01-15 20:39:58Z soeren $
7
* @copyright (C) 2005-2008 Soeren
10
* eXtplorer is Free Software
12
function com_install(){
15
if( is_callable( array( 'JFactory', 'getDBO' ))) {
16
$database = JFactory::getDBO();
18
$mypath = dirname(__FILE__);
19
require_once($mypath . "/include/functions.php");
20
require_once($mypath . "/libraries/Archive/archive.php");
22
ext_RaiseMemoryLimit( '50M' );
23
error_reporting( E_ALL ^ E_NOTICE );
25
$archive_name = $mypath.'/scripts.tar.gz';
26
$extract_dir = $mypath.'/';
28
$result = extArchive::extract( $archive_name, $extract_dir );
29
if( !PEAR::isError( $result )) {
30
unlink( $archive_name );
32
echo '<pre style="color:white; font-weight:bold; background-color:red;">Error!
33
'.$result->getMessage().'
36
$database->setQuery( "SELECT id FROM #__components WHERE admin_menu_link = 'option=com_extplorer'" );
37
$id = $database->loadResult();
39
//add new admin menu images
40
$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");
b'\\ No newline at end of file'