-
Notifications
You must be signed in to change notification settings - Fork 1
/
uninstall.php
executable file
·30 lines (25 loc) · 1.01 KB
/
uninstall.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
<?php
/**
*
* @category page
* @package External Calendar
* @version 1.2.6
* @authors Martin Hecht
* @copyright (c) 2015 - 2018, Martin Hecht (mrbaseman)
* @link https://github.com/WebsiteBaker-modules/extcal
* @license GNU General Public License
* @platform WebsiteBaker 2.8.x
* @requirements PHP 5.3 and higher and Curl
*
**/
/* -------------------------------------------------------- */
// Must include code to stop this file being accessed directly
if(!defined('WB_PATH')) {
// Stop this file being access directly
if(!headers_sent()) header("Location: ../index.php",TRUE,301);
die('<head><title>Access denied</title></head><body><h2 style="color:red;margin:3em auto;text-align:center;">Cannot access this file directly</h2></body></html>');
}
/* -------------------------------------------------------- */
// Drop table
$mod_extcal = "DROP TABLE IF EXISTS `".TABLE_PREFIX."mod_extcal`";
$database->query($mod_extcal);