1
|
<?php
|
2
|
/**
|
3
|
*
|
4
|
* @category modules
|
5
|
* @package SecureFormSwitcher
|
6
|
* @author WebsiteBaker Project
|
7
|
* @copyright 2004-2009, Ryan Djurovich
|
8
|
* @copyright 2009-2011, Website Baker Org. e.V.
|
9
|
* @link http://www.websitebaker2.org/
|
10
|
* @license http://www.gnu.org/licenses/gpl.html
|
11
|
* @platform WebsiteBaker 2.8.2
|
12
|
* @requirements PHP 5.2.2 and higher
|
13
|
* @version $Id: uninstall.php 1479 2011-07-25 00:42:10Z Luisehahne $
|
14
|
* @filesource $HeadURL: svn://isteam.dynxs.de/wb-archiv/tags/2.8.2/wb/modules/SecureFormSwitcher/uninstall.php $
|
15
|
* @lastmodified $Date: 2011-07-25 02:42:10 +0200 (Mon, 25 Jul 2011) $
|
16
|
*
|
17
|
*/
|
18
|
|
19
|
// Must include code to stop this file being access directly
|
20
|
if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); }
|
21
|
|
22
|
require_once(WB_PATH.'/framework/class.database.php');
|
23
|
require_once(WB_PATH.'/framework/functions.php');
|
24
|
|
25
|
$sql = 'DELETE FROM `'.TABLE_PREFIX.'settings` ';
|
26
|
$sql .= 'WHERE `name`=\'wb_secform_useip\' ';
|
27
|
$sql .= 'OR `name`=\'wb_secform_usefp\' ';
|
28
|
$sql .= 'OR `name`=\'wb_secform_tokenname\' ';
|
29
|
$sql .= 'OR `name`=\'wb_secform_timeout\' ';
|
30
|
$sql .= 'OR `name`=\'wb_secform_secrettime\' ';
|
31
|
$sql .= 'OR `name`=\'wb_secform_secret\' ';
|
32
|
$sql .= 'OR `name`=\'secure_form_module\' ';
|
33
|
$database->query($sql);
|
34
|
$dest_to_delete = WB_PATH.'/framework/SecureForm.mtab.php';
|
35
|
if(is_writeable(WB_PATH.'/framework') ) {
|
36
|
@chmod($dest_to_delete, 0666);
|
37
|
@unlink($dest_to_delete);
|
38
|
}
|
39
|
|
40
|
|
41
|
|