forked from WebsiteBaker-modules/extcal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuninstall.php
executable file
·32 lines (27 loc) · 1.03 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
30
31
<?php
/**
*
* @category page
* @package External Calendar
* @version 1.2.14
* @authors Martin Hecht
* @copyright (c) 2015 - 2025, Martin Hecht (mrbaseman)
* @link https://github.com/mrbaseman/extcal
* @license GNU General Public License
* @platform WebsiteBaker 2.8.x
* @requirements PHP 7 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);