-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.php
30 lines (24 loc) · 1.05 KB
/
install.php
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
<?php
/**
*
* @category snippet
* @package rss feed all
* @version 0.4.1
* @authors Martin Hecht (mrbaseman)
* @copyright (c) 2018, Martin Hecht (mrbaseman)
* @link https://github.com/WebsiteBaker-modules/rss-feed-all
* @link http://forum.wbce.org/viewtopic.php?id=655
* @license GNU General Public License
* @platform WebsiteBaker 2.8.x
* @requirements PHP 5.4 and higher
*
**/
if (file_exists(WB_PATH."/modules/rss-feed-all/config.php"))
rename(WB_PATH."/modules/rss-feed-all/config.php",
WB_PATH."/modules/rss_feed_all/config.php");
if (!file_exists(WB_PATH."/modules/rss_feed_all/config.php"))
rename(WB_PATH."/modules/rss_feed_all/config.default.php",
WB_PATH."/modules/rss_feed_all/config.php");
if (file_exists(WB_PATH."/modules/rss-feed-all"))
rm_full_dir(WB_PATH."/modules/rss-feed-all");
$database->query("DELETE FROM ".TABLE_PREFIX."addons WHERE directory = 'rss-feed-all' AND type = 'module'");