Project

General

Profile

1 1224 Luisehahne
<?php
2 1271 Luisehahne
/*
3 1224 Luisehahne
*
4 1271 Luisehahne
*                       About WebsiteBaker
5 1224 Luisehahne
*
6
* Website Baker is a PHP-based Content Management System (CMS)
7
* designed with one goal in mind: to enable its users to produce websites
8
* with ease.
9
*
10 1271 Luisehahne
*                       LICENSE INFORMATION
11 1224 Luisehahne
*
12
* WebsiteBaker is free software; you can redistribute it and/or
13
* modify it under the terms of the GNU General Public License
14
* as published by the Free Software Foundation; either version 2
15
* of the License, or (at your option) any later version.
16
*
17
* WebsiteBaker is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20
* See the GNU General Public License for more details.
21
*
22
* You should have received a copy of the GNU General Public License
23
* along with this program; if not, write to the Free Software
24
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
25 1271 Luisehahne
*
26
*                   WebsiteBaker Extra Information
27
*
28
*
29
*/
30 1224 Luisehahne
/**
31
 *
32 1271 Luisehahne
 * @category        modules
33
 * @package         backup
34
 * @author          WebsiteBaker Project
35
 * @copyright       2004-2009, Ryan Djurovich
36
 * @copyright       2009-2010, Website Baker Org. e.V.
37
 * @link			http://www.websitebaker2.org/
38
 * @license         http://www.gnu.org/licenses/gpl.html
39
 * @platform        WebsiteBaker 2.8.x
40
 * @requirements    PHP 4.3.4 and higher
41
 * @version         $Id$
42
 * @filesource		$HeadURL$
43
 * @lastmodified    $Date$
44 1224 Luisehahne
 *
45 1271 Luisehahne
*/
46 1224 Luisehahne
47
// Direct access prevention
48
defined('WB_PATH') OR die(header('Location: ../index.php'));
49
50
// check if module language file exists for the language set by the user (e.g. DE, EN)
51
if(!file_exists(WB_PATH .'/modules/backup/languages/'.LANGUAGE .'.php')) {
52
	// no module language file exists for the language set by the user, include default module language file EN.php
53
	require_once(WB_PATH .'/modules/backup/languages/EN.php');
54
} else {
55
	// a module language file exists for the language defined by the user, load it
56
	require_once(WB_PATH .'/modules/backup/languages/'.LANGUAGE .'.php');
57
}
58
59
// Show form
60
?>
61
<br />
62
<form name="prompt" method="post" action="<?php echo WB_URL; ?>/modules/backup/backup-sql.php">
63
		<input type="radio" checked="checked" name="tables" value="ALL"><?php echo $MOD_BACKUP['BACKUP_ALL_TABLES']; ?><br>
64
		<input type="radio" name="tables" value="WB"><?php echo $MOD_BACKUP['BACKUP_WB_SPECIFIC']; ?><br><br>
65
	<input type="submit" name="backup" value="<?php echo $TEXT['BACKUP_DATABASE']; ?>" onClick="javascript: if(!confirm('<?php echo $MESSAGE['GENERIC']['PLEASE_BE_PATIENT']; ?>')) { return false; }" />
66 183 ryan
</form>