-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuninstall.php
executable file
·67 lines (55 loc) · 1.45 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
<?php
/*
* This file is part of Monkeychow - http://shokk.wordpress.com/tag/monkeychow/
*
* uninstall.php - if confirmed, drops FoF's tables
*
*
* Copyright (C) 2006 Ernie Oporto
* ernieoporto@yahoo.com - http://www.shokk.com/blog/
*
* Copyright (C) 2004 Stephen Minutillo
* steve@minutillo.com - http://minutillo.com/steve/
*
* Distributed under the GPL - see LICENSE
*
*/
include_once("fof-main.php");
include_once("init.php");
header("Content-Type: text/html; charset=utf-8");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>MonkeyChow - <?php echo _("uninstallation")?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="fof-common.css" media="all" />
<script src="fof.js" type="text/javascript"></script>
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
</head>
<body id="panel-page">
<?php
if($_REQUEST['really'])
{
$query = <<<EOQ
DROP TABLE `feeds`;
EOQ;
fof_do_query($query);
$query = <<<EOQ
DROP TABLE `items`;
EOQ;
fof_do_query($query);
echo _("Done. Now just delete this entire directory and we'll forget this ever happened.");
}
else
{
?>
<script>
if(confirm( _("Do you really want to uninstall MonkeyChow?") ))
{
document.location = document.location + '?really=really';
}
</script>
<a href="."><b>panel</b></a>
</body></html>
<?php } ?>