Project

General

Profile

1
<?php
2
/**
3
 *
4
 * @category        modules
5
 * @package         news
6
 * @author          WebsiteBaker Project
7
 * @copyright       WebsiteBaker Org. e.V.
8
 * @link            http://www.websitebaker.org/
9
 * @license         http://www.gnu.org/licenses/gpl.html
10
 * @platform        WebsiteBaker 2.8.3
11
 * @requirements    PHP 5.3.6 and higher
12
 * @version         $Id: uninstall.php 2 2017-07-02 15:14:29Z Manuela $
13
 * @filesource      $HeadURL: svn://isteam.dynxs.de/wb/2.10.x/trunk/modules/news/uninstall.php $
14
 * @lastmodified    $Date: 2017-07-02 17:14:29 +0200 (Sun, 02 Jul 2017) $
15
 *
16
 */
17
if(defined('WB_PATH'))
18
{
19
require_once(WB_PATH.'/framework/functions.php');
20
    // create tables from sql dump file
21
    if (is_readable(__DIR__.'/install-struct.sql')) {
22
        $database->SqlImport(__DIR__.'/install-struct.sql', TABLE_PREFIX, __FILE__ );
23
        rm_full_dir(WB_PATH.PAGES_DIRECTORY.'/posts');
24
        rm_full_dir(WB_PATH.MEDIA_DIRECTORY.'/.news');
25
    }
26
}
(34-34/36)