-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathuninstall.php
86 lines (66 loc) · 1.41 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?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($_GET['really'])
{
$query = <<<EOQ
DROP TABLE `$FOF_FEED_TABLE`;
EOQ;
fof_db_query($query);
$query = <<<EOQ
DROP TABLE `$FOF_ITEM_TABLE`;
EOQ;
fof_db_query($query);
$query = <<<EOQ
DROP TABLE `$FOF_TAG_TABLE`;
EOQ;
fof_db_query($query);
$query = <<<EOQ
DROP TABLE `$FOF_ITEM_TAG_TABLE`;
EOQ;
fof_db_query($query);
$query = <<<EOQ
DROP TABLE `$FOF_SUBSCRIPTION_TABLE`;
EOQ;
fof_db_query($query);
$query = <<<EOQ
DROP TABLE `$FOF_USER_TABLE`;
EOQ;
fof_db_query($query);
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 } ?>