forked from RomanSixty/Feed-on-Feeds
-
Notifications
You must be signed in to change notification settings - Fork 3
/
uninstall.php
executable file
·62 lines (54 loc) · 1.39 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/*
* This file is part of FEED ON FEEDS - http://feedonfeeds.com/
*
* uninstall.php - if confirmed, drops FoF's tables
*
*
* Copyright (C) 2004-2007 Stephen Minutillo
* [email protected] - http://minutillo.com/steve/
*
* Distributed under the GPL - see LICENSE
*
*/
include_once "fof-main.php";
fof_set_content_type();
?>
<!DOCTYPE html>
<html>
<head>
<title>feed on feeds - uninstallation</title>
<link rel="stylesheet" href="fof.css" media="screen" />
<script src="fof.js" type="text/javascript"></script>
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
</head>
<body id="panel-page">
<?php
if (!empty($_GET['really'])) {
$queries = array(
"DROP TABLE $FOF_FEED_TABLE",
"DROP TABLE $FOF_ITEM_TABLE",
"DROP TABLE $FOF_TAG_TABLE",
"DROP TABLE $FOF_ITEM_TAG_TABLE",
"DROP TABLE $FOF_SUBSCRIPTION_TABLE",
"DROP TABLE $FOF_USER_TABLE",
);
try {
foreach ($queries as $query) {
$fof_connection->exec($query);
}
} catch (PDOException $e) {
die('Cannot drop table: <pre>' . $e->GetMessage() . '</pre>');
}
echo 'Done. Now just delete this entire directory and we\'ll forget this ever happened.';
} else {
?>
<script>
if(confirm('This is your last chance. Do you really want to uninstall Feed on Feeds?'))
{
document.location = './uninstall.php?really=really';
}
</script>
<a href="."><b>phew!</b></a>
</body></html>
<?php }?>