git-svn-id: https://192.168.0.254/svn/Proyectos.MatritumCantat_Web/trunk@2 8e3496fd-7892-4c45-be36-0ff06e9dacc6
36 lines
1.0 KiB
PHP
36 lines
1.0 KiB
PHP
<?php
|
|
/**
|
|
* DOCman 1.4.x - Joomla! Document Manager
|
|
* @version $Id: uninstall.docman.php 766 2009-01-08 11:41:35Z mathias $
|
|
* @package DOCman_1.4
|
|
* @copyright (C) 2003-2009 Joomlatools
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
|
|
* @link http://www.joomlatools.eu/ Official website
|
|
**/
|
|
defined('_VALID_MOS') or die('Restricted access');
|
|
|
|
require_once( dirname(__FILE__).DIRECTORY_SEPARATOR.'install.docman.helper.php');
|
|
|
|
function com_uninstall() {
|
|
global $_DOCMAN;
|
|
|
|
// remove modules
|
|
if( defined('_DM_J15')) {
|
|
DMInstallHelper::moduleFilesJ15('delete');
|
|
} else {
|
|
DMInstallHelper::moduleFiles('delete');
|
|
}
|
|
|
|
DMInstallHelper::pluginFiles('delete');
|
|
DMInstallHelper::pluginDb('delete');
|
|
|
|
// if there's no more data, we remove the tables
|
|
if( DMInstallHelper::cntDbRecords() == 0 ) {
|
|
DMInstallHelper::removeTables();
|
|
}
|
|
|
|
// delete the data folder if it's empty
|
|
if ( DMInstallHelper::cntFiles() == 0 ) {
|
|
DMInstallHelper::removeDmdocuments();
|
|
}
|
|
} |