-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuninstall.wbty_shop.php
More file actions
37 lines (29 loc) · 975 Bytes
/
uninstall.wbty_shop.php
File metadata and controls
37 lines (29 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* @package AkeebaReleaseSystem
* @copyright Copyright (c)2010-2011 Nicholas K. Dionysopoulos
* @license GNU General Public License version 3, or later
* @version $Id: ars.php 123 2011-04-13 07:47:16Z nikosdion $
*/
// no direct access
defined('_JEXEC') or die('');
jimport('joomla.installer.installer');
$db = & JFactory::getDBO();
$status = new JObject();
$status->modules = array();
$status->plugins = array();
$src = $this->parent->getPath('source');
$src = dirname(__FILE__);
// -- Download ID=
$db->setQuery('SELECT `id` FROM #__modules WHERE `module` = "mod_wbty_shop"');
$id = $db->loadResult();
if($id)
{
$installer = new JInstaller;
$result = $installer->uninstall('module',$id,1);
$status->modules[] = array('name'=>'mod_wbty_shop','client'=>'site', 'result'=>$result);
}
?>
<h1>WBTY Shop - Product Component & Module</h1>
<h2>Uninstalled</h2>
<p>Thank you for installing WBTY Shop. This installation includes the component and module.</p>