Revision 1224
Added by Dietmar almost 15 years ago
branches/2.8.x/CHANGELOG | ||
---|---|---|
12 | 12 |
|
13 | 13 |
------------------------------------- 2.8.1 ------------------------------------- |
14 | 14 |
28-Dec-2009 Dietmar Woellbrink (Luisehahne) |
15 |
! update header |
|
16 |
28-Dec-2009 Dietmar Woellbrink (Luisehahne) |
|
17 |
! update header |
|
18 |
28-Dec-2009 Dietmar Woellbrink (Luisehahne) |
|
15 | 19 |
! validate code |
16 | 20 |
28-Dec-2009 Dietmar Woellbrink (Luisehahne) |
17 | 21 |
! change page_title to menu_title in dropdown list |
branches/2.8.x/wb/modules/index.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id$ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
7 |
Website Baker Project <http://www.websitebaker.org/> |
|
8 |
Copyright (C) 2004-2009, Ryan Djurovich |
|
9 |
|
|
10 |
Website Baker is free software; you can redistribute it and/or modify |
|
11 |
it under the terms of the GNU General Public License as published by |
|
12 |
the Free Software Foundation; either version 2 of the License, or |
|
13 |
(at your option) any later version. |
|
14 |
|
|
15 |
Website Baker is distributed in the hope that it will be useful, |
|
16 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 |
GNU General Public License for more details. |
|
19 |
|
|
20 |
You should have received a copy of the GNU General Public License |
|
21 |
along with Website Baker; if not, write to the Free Software |
|
22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 |
|
|
24 |
*/ |
|
25 |
|
|
26 |
header("Location: ../index.php"); |
|
27 |
|
|
1 |
<?php |
|
2 |
/**************************************************************************** |
|
3 |
* SVN Version information: |
|
4 |
* |
|
5 |
* $Id$ |
|
6 |
* |
|
7 |
***************************************************************************** |
|
8 |
* WebsiteBaker |
|
9 |
* |
|
10 |
* WebsiteBaker Project <http://www.websitebaker2.org/> |
|
11 |
* Copyright (C) 2009, Website Baker Org. e.V. |
|
12 |
* http://start.websitebaker2.org/impressum-datenschutz.php |
|
13 |
* Copyright (C) 2004-2009, Ryan Djurovich |
|
14 |
* |
|
15 |
* About WebsiteBaker |
|
16 |
* |
|
17 |
* Website Baker is a PHP-based Content Management System (CMS) |
|
18 |
* designed with one goal in mind: to enable its users to produce websites |
|
19 |
* with ease. |
|
20 |
* |
|
21 |
***************************************************************************** |
|
22 |
* |
|
23 |
***************************************************************************** |
|
24 |
* LICENSE INFORMATION |
|
25 |
* |
|
26 |
* WebsiteBaker is free software; you can redistribute it and/or |
|
27 |
* modify it under the terms of the GNU General Public License |
|
28 |
* as published by the Free Software Foundation; either version 2 |
|
29 |
* of the License, or (at your option) any later version. |
|
30 |
* |
|
31 |
* WebsiteBaker is distributed in the hope that it will be useful, |
|
32 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
33 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
34 |
* See the GNU General Public License for more details. |
|
35 |
* |
|
36 |
* You should have received a copy of the GNU General Public License |
|
37 |
* along with this program; if not, write to the Free Software |
|
38 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
39 |
**************************************************************************** |
|
40 |
* |
|
41 |
* WebsiteBaker Extra Information |
|
42 |
* |
|
43 |
* |
|
44 |
* |
|
45 |
* |
|
46 |
*****************************************************************************/ |
|
47 |
/** |
|
48 |
* |
|
49 |
* @category backend |
|
50 |
* @package modules |
|
51 |
* @author Ryan Djurovich |
|
52 |
* @copyright 2004-2009, Ryan Djurovich |
|
53 |
* @copyright 2009, Website Baker Org. e.V. |
|
54 |
* @version $Id$ |
|
55 |
* @platform WebsiteBaker 2.8.x |
|
56 |
* @requirements >= PHP 4.3.4 |
|
57 |
* @license http://www.gnu.org/licenses/gpl.html |
|
58 |
* |
|
59 |
*/ |
|
60 |
|
|
61 |
header("Location: ../index.php"); |
|
62 |
|
|
28 | 63 |
?> |
branches/2.8.x/wb/modules/edit_module_files.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id$ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
7 |
Website Baker Project <http://www.websitebaker.org/> |
|
8 |
Copyright (C) 2004-2009, Ryan Djurovich |
|
9 |
|
|
10 |
Website Baker is free software; you can redistribute it and/or modify |
|
11 |
it under the terms of the GNU General Public License as published by |
|
12 |
the Free Software Foundation; either version 2 of the License, or |
|
13 |
(at your option) any later version. |
|
14 |
|
|
15 |
Website Baker is distributed in the hope that it will be useful, |
|
16 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 |
GNU General Public License for more details. |
|
19 |
|
|
20 |
You should have received a copy of the GNU General Public License |
|
21 |
along with Website Baker; if not, write to the Free Software |
|
22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 |
|
|
24 |
*/ |
|
25 |
|
|
26 |
/** |
|
27 |
This file contains the routines to edit the optional module files: frontend.css and backend.css |
|
28 |
Mechanism was introduced with WB 2.7 to provide a global solution for all modules |
|
29 |
*/ |
|
30 |
|
|
31 |
// prevent this file from being accessed directly |
|
32 |
if(!(isset($_POST['page_id']) && isset($_POST['section_id']) && isset($_POST['action']) |
|
33 |
&& isset($_POST['mod_dir']) && isset($_POST['edit_file']))) die(header('Location: index.php')); |
|
34 |
|
|
35 |
// include configuration file and admin wrapper script |
|
36 |
require('../config.php'); |
|
37 |
|
|
38 |
// include the and admin wrapper script |
|
39 |
require(WB_PATH.'/modules/admin.php'); |
|
40 |
|
|
41 |
// leave if the required module.functions.php file does not exist |
|
42 |
if(!file_exists(WB_PATH .'/framework/module.functions.php')) { |
|
43 |
echo 'The required file: /framework/module.functions.php is missing - script stopped.'; |
|
44 |
die; |
|
45 |
} |
|
46 |
|
|
47 |
// register the textarea to use edit_area |
|
48 |
echo (function_exists('registerEditArea')) ? registerEditArea('code_area', 'css', false) : ''; |
|
49 |
|
|
50 |
// set default text output if varibles are not defined in the global WB language files |
|
51 |
$HEADING_CSS_FILE = (isset($GLOBALS['TEXT']['HEADING_CSS_FILE'])) ?$GLOBALS['TEXT']['HEADING_CSS_FILE'] :'Actual module file: '; |
|
52 |
$TXT_EDIT_CSS_FILE = (isset($GLOBALS['TEXT']['TXT_EDIT_CSS_FILE'])) ?$GLOBALS['TEXT']['TXT_EDIT_CSS_FILE'] :'Edit the CSS definitions in the textarea below.'; |
|
53 |
|
|
54 |
// include functions to edit the optional module CSS files (frontend.css, backend.css) |
|
55 |
require_once(WB_PATH .'/framework/module.functions.php'); |
|
56 |
|
|
57 |
// check if the module directory is valid |
|
58 |
$mod_dir = check_module_dir($_POST['mod_dir']); |
|
59 |
if($mod_dir == '') { |
|
60 |
echo 'The specified module directory is invalid - script stopped.'; |
|
61 |
die; |
|
62 |
}; |
|
63 |
|
|
64 |
// check if action is: save or edit |
|
65 |
if($_POST['action'] == 'save' && mod_file_exists($mod_dir, $_POST['edit_file'])) { |
|
66 |
/** |
|
67 |
SAVE THE UPDATED CONTENTS TO THE CSS FILE |
|
68 |
*/ |
|
69 |
$css_content = ''; |
|
70 |
if (isset($_POST['css_data']) && strlen($_POST['css_data']) > 0) { |
|
71 |
$css_content = stripslashes($_POST['css_data']); |
|
72 |
} |
|
73 |
|
|
74 |
$bytes = 0; |
|
75 |
if ($css_content != '') { |
|
76 |
// open the module CSS file for writting |
|
77 |
$mod_file = @fopen(WB_PATH .'/modules/' .$mod_dir .'/' .$_POST['edit_file'], 'wb'); |
|
78 |
// write new content to the module CSS file |
|
79 |
$bytes = @fwrite($mod_file, $css_content); |
|
80 |
// close the file |
|
81 |
@fclose($mod_file); |
|
82 |
} |
|
83 |
|
|
84 |
// write out status message |
|
85 |
if($bytes == 0 ) { |
|
86 |
$admin->print_error($TEXT['ERROR'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id); |
|
87 |
} else { |
|
88 |
$admin->print_success($TEXT['SUCCESS'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id); |
|
89 |
} |
|
90 |
|
|
91 |
|
|
92 |
} else { |
|
93 |
/** |
|
94 |
MODIFY CONTENTS OF THE CSS FILE VIA TEXT AREA |
|
95 |
*/ |
|
96 |
// check if module backend.css file needs to be included into the <body> |
|
97 |
if((!method_exists($admin, 'register_backend_modfiles') || !isset($_GET['page_id'])) |
|
98 |
&& file_exists(WB_PATH .'/modules/'.$mod_dir.'/backend.css')) { |
|
99 |
echo '<style type="text/css">'; |
|
100 |
include(WB_PATH .'/modules/' .$mod_dir .'/backend.css'); |
|
101 |
echo "\n</style>\n"; |
|
102 |
} |
|
103 |
|
|
104 |
// check which module file to edit (frontend.css, backend.css or '') |
|
105 |
$css_file = (in_array($_POST['edit_file'], array('frontend.css', 'backend.css'))) ? $_POST['edit_file'] : ''; |
|
106 |
|
|
107 |
// display output |
|
108 |
if($css_file == '') { |
|
109 |
// no valid module file to edit; display error message and backlink to modify.php |
|
110 |
echo "<h2>Nothing to edit</h2>"; |
|
111 |
echo "<p>No valid module file exists for this module.</p>"; |
|
112 |
$output = "<a href=\"#\" onclick=\"javascript: window.location = '"; |
|
113 |
$output .= ADMIN_URL ."/pages/modify.php?page_id=" .$page_id ."'\">back</a>"; |
|
114 |
echo $output; |
|
115 |
|
|
116 |
} else { |
|
117 |
// store content of the module file in variable |
|
118 |
$css_content = @file_get_contents(WB_PATH .'/modules/' .$mod_dir .'/' .$css_file); |
|
119 |
// write out heading |
|
120 |
echo '<h2>' .$HEADING_CSS_FILE .'"' .$css_file .'"</h2>'; |
|
121 |
// include button to switch between frontend.css and backend.css (only shown if both files exists) |
|
122 |
toggle_css_file($mod_dir, $css_file); |
|
123 |
echo '<p>' .$TXT_EDIT_CSS_FILE .'</p>'; |
|
124 |
|
|
125 |
// output content of module file to textareas |
|
126 |
?> |
|
127 |
<form name="edit_module_file" action="<?php echo $_SERVER['PHP_SELF'];?>" method="post" style="margin: 0;"> |
|
128 |
<input type="hidden" name="page_id" value="<?php echo $page_id; ?>" /> |
|
129 |
<input type="hidden" name="section_id" value="<?php echo $section_id; ?>" /> |
|
130 |
<input type="hidden" name="mod_dir" value="<?php echo $mod_dir; ?>" /> |
|
131 |
<input type="hidden" name="edit_file" value="<?php echo $css_file; ?>" /> |
|
132 |
<input type="hidden" name="action" value="save" /> |
|
133 |
<textarea id="code_area" name="css_data" cols="115" rows="25" wrap="VIRTUAL" style="margin:2px;"><?php |
|
134 |
echo htmlspecialchars($css_content); ?> |
|
135 |
</textarea> |
|
136 |
|
|
137 |
<table cellpadding="0" cellspacing="0" border="0" width="100%"> |
|
138 |
<tr> |
|
139 |
<td align="left"> |
|
140 |
<input name="save" type="submit" value="<?php echo $TEXT['SAVE'];?>" style="width: 100px; margin-top: 5px;" /> |
|
141 |
</td> |
|
142 |
<td align="right"> |
|
143 |
<input type="button" value="<?php echo $TEXT['CANCEL']; ?>" |
|
144 |
onclick="javascript: window.location = '<?php echo ADMIN_URL;?>/pages/modify.php?page_id=<?php echo $page_id; ?>';" |
|
145 |
style="width: 100px; margin-top: 5px;" /> |
|
146 |
</td> |
|
147 |
</tr> |
|
148 |
</table> |
|
149 |
</form> |
|
150 |
<?php |
|
151 |
} |
|
152 |
} |
|
153 |
|
|
154 |
// Print admin footer |
|
155 |
$admin->print_footer(); |
|
156 |
|
|
1 |
<?php |
|
2 |
/**************************************************************************** |
|
3 |
* SVN Version information: |
|
4 |
* |
|
5 |
* $Id$ |
|
6 |
* |
|
7 |
***************************************************************************** |
|
8 |
* WebsiteBaker |
|
9 |
* |
|
10 |
* WebsiteBaker Project <http://www.websitebaker2.org/> |
|
11 |
* Copyright (C) 2009, Website Baker Org. e.V. |
|
12 |
* http://start.websitebaker2.org/impressum-datenschutz.php |
|
13 |
* Copyright (C) 2004-2009, Ryan Djurovich |
|
14 |
* |
|
15 |
* About WebsiteBaker |
|
16 |
* |
|
17 |
* Website Baker is a PHP-based Content Management System (CMS) |
|
18 |
* designed with one goal in mind: to enable its users to produce websites |
|
19 |
* with ease. |
|
20 |
* |
|
21 |
***************************************************************************** |
|
22 |
* |
|
23 |
***************************************************************************** |
|
24 |
* LICENSE INFORMATION |
|
25 |
* |
|
26 |
* WebsiteBaker is free software; you can redistribute it and/or |
|
27 |
* modify it under the terms of the GNU General Public License |
|
28 |
* as published by the Free Software Foundation; either version 2 |
|
29 |
* of the License, or (at your option) any later version. |
|
30 |
* |
|
31 |
* WebsiteBaker is distributed in the hope that it will be useful, |
|
32 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
33 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
34 |
* See the GNU General Public License for more details. |
|
35 |
* |
|
36 |
* You should have received a copy of the GNU General Public License |
|
37 |
* along with this program; if not, write to the Free Software |
|
38 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
39 |
**************************************************************************** |
|
40 |
* |
|
41 |
* WebsiteBaker Extra Information |
|
42 |
* |
|
43 |
* |
|
44 |
* |
|
45 |
* |
|
46 |
*****************************************************************************/ |
|
47 |
/** |
|
48 |
* |
|
49 |
* @category backend |
|
50 |
* @package modules |
|
51 |
* @author Ryan Djurovich |
|
52 |
* @copyright 2004-2009, Ryan Djurovich |
|
53 |
* @copyright 2009, Website Baker Org. e.V. |
|
54 |
* @version $Id$ |
|
55 |
* @platform WebsiteBaker 2.8.x |
|
56 |
* @requirements >= PHP 4.3.4 |
|
57 |
* @license http://www.gnu.org/licenses/gpl.html |
|
58 |
* |
|
59 |
*/ |
|
60 |
|
|
61 |
// prevent this file from being accessed directly |
|
62 |
if(!(isset($_POST['page_id']) && isset($_POST['section_id']) && isset($_POST['action']) |
|
63 |
&& isset($_POST['mod_dir']) && isset($_POST['edit_file']))) die(header('Location: index.php')); |
|
64 |
|
|
65 |
// include configuration file and admin wrapper script |
|
66 |
require('../config.php'); |
|
67 |
|
|
68 |
// include the and admin wrapper script |
|
69 |
require(WB_PATH.'/modules/admin.php'); |
|
70 |
|
|
71 |
// leave if the required module.functions.php file does not exist |
|
72 |
if(!file_exists(WB_PATH .'/framework/module.functions.php')) { |
|
73 |
echo 'The required file: /framework/module.functions.php is missing - script stopped.'; |
|
74 |
die; |
|
75 |
} |
|
76 |
|
|
77 |
// register the textarea to use edit_area |
|
78 |
echo (function_exists('registerEditArea')) ? registerEditArea('code_area', 'css', false) : ''; |
|
79 |
|
|
80 |
// set default text output if varibles are not defined in the global WB language files |
|
81 |
$HEADING_CSS_FILE = (isset($GLOBALS['TEXT']['HEADING_CSS_FILE'])) ?$GLOBALS['TEXT']['HEADING_CSS_FILE'] :'Actual module file: '; |
|
82 |
$TXT_EDIT_CSS_FILE = (isset($GLOBALS['TEXT']['TXT_EDIT_CSS_FILE'])) ?$GLOBALS['TEXT']['TXT_EDIT_CSS_FILE'] :'Edit the CSS definitions in the textarea below.'; |
|
83 |
|
|
84 |
// include functions to edit the optional module CSS files (frontend.css, backend.css) |
|
85 |
require_once(WB_PATH .'/framework/module.functions.php'); |
|
86 |
|
|
87 |
// check if the module directory is valid |
|
88 |
$mod_dir = check_module_dir($_POST['mod_dir']); |
|
89 |
if($mod_dir == '') { |
|
90 |
echo 'The specified module directory is invalid - script stopped.'; |
|
91 |
die; |
|
92 |
}; |
|
93 |
|
|
94 |
// check if action is: save or edit |
|
95 |
if($_POST['action'] == 'save' && mod_file_exists($mod_dir, $_POST['edit_file'])) { |
|
96 |
/** |
|
97 |
SAVE THE UPDATED CONTENTS TO THE CSS FILE |
|
98 |
*/ |
|
99 |
$css_content = ''; |
|
100 |
if (isset($_POST['css_data']) && strlen($_POST['css_data']) > 0) { |
|
101 |
$css_content = stripslashes($_POST['css_data']); |
|
102 |
} |
|
103 |
|
|
104 |
$bytes = 0; |
|
105 |
if ($css_content != '') { |
|
106 |
// open the module CSS file for writting |
|
107 |
$mod_file = @fopen(WB_PATH .'/modules/' .$mod_dir .'/' .$_POST['edit_file'], 'wb'); |
|
108 |
// write new content to the module CSS file |
|
109 |
$bytes = @fwrite($mod_file, $css_content); |
|
110 |
// close the file |
|
111 |
@fclose($mod_file); |
|
112 |
} |
|
113 |
|
|
114 |
// write out status message |
|
115 |
if($bytes == 0 ) { |
|
116 |
$admin->print_error($TEXT['ERROR'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id); |
|
117 |
} else { |
|
118 |
$admin->print_success($TEXT['SUCCESS'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id); |
|
119 |
} |
|
120 |
|
|
121 |
|
|
122 |
} else { |
|
123 |
/** |
|
124 |
MODIFY CONTENTS OF THE CSS FILE VIA TEXT AREA |
|
125 |
*/ |
|
126 |
// check if module backend.css file needs to be included into the <body> |
|
127 |
if((!method_exists($admin, 'register_backend_modfiles') || !isset($_GET['page_id'])) |
|
128 |
&& file_exists(WB_PATH .'/modules/'.$mod_dir.'/backend.css')) { |
|
129 |
echo '<style type="text/css">'; |
|
130 |
include(WB_PATH .'/modules/' .$mod_dir .'/backend.css'); |
|
131 |
echo "\n</style>\n"; |
|
132 |
} |
|
133 |
|
|
134 |
// check which module file to edit (frontend.css, backend.css or '') |
|
135 |
$css_file = (in_array($_POST['edit_file'], array('frontend.css', 'backend.css'))) ? $_POST['edit_file'] : ''; |
|
136 |
|
|
137 |
// display output |
|
138 |
if($css_file == '') { |
|
139 |
// no valid module file to edit; display error message and backlink to modify.php |
|
140 |
echo "<h2>Nothing to edit</h2>"; |
|
141 |
echo "<p>No valid module file exists for this module.</p>"; |
|
142 |
$output = "<a href=\"#\" onclick=\"javascript: window.location = '"; |
|
143 |
$output .= ADMIN_URL ."/pages/modify.php?page_id=" .$page_id ."'\">back</a>"; |
|
144 |
echo $output; |
|
145 |
|
|
146 |
} else { |
|
147 |
// store content of the module file in variable |
|
148 |
$css_content = @file_get_contents(WB_PATH .'/modules/' .$mod_dir .'/' .$css_file); |
|
149 |
// write out heading |
|
150 |
echo '<h2>' .$HEADING_CSS_FILE .'"' .$css_file .'"</h2>'; |
|
151 |
// include button to switch between frontend.css and backend.css (only shown if both files exists) |
|
152 |
toggle_css_file($mod_dir, $css_file); |
|
153 |
echo '<p>' .$TXT_EDIT_CSS_FILE .'</p>'; |
|
154 |
|
|
155 |
// output content of module file to textareas |
|
156 |
?> |
|
157 |
<form name="edit_module_file" action="<?php echo $_SERVER['PHP_SELF'];?>" method="post" style="margin: 0;"> |
|
158 |
<input type="hidden" name="page_id" value="<?php echo $page_id; ?>" /> |
|
159 |
<input type="hidden" name="section_id" value="<?php echo $section_id; ?>" /> |
|
160 |
<input type="hidden" name="mod_dir" value="<?php echo $mod_dir; ?>" /> |
|
161 |
<input type="hidden" name="edit_file" value="<?php echo $css_file; ?>" /> |
|
162 |
<input type="hidden" name="action" value="save" /> |
|
163 |
<textarea id="code_area" name="css_data" cols="115" rows="25" wrap="VIRTUAL" style="margin:2px;"><?php |
|
164 |
echo htmlspecialchars($css_content); ?> |
|
165 |
</textarea> |
|
166 |
|
|
167 |
<table cellpadding="0" cellspacing="0" border="0" width="100%"> |
|
168 |
<tr> |
|
169 |
<td align="left"> |
|
170 |
<input name="save" type="submit" value="<?php echo $TEXT['SAVE'];?>" style="width: 100px; margin-top: 5px;" /> |
|
171 |
</td> |
|
172 |
<td align="right"> |
|
173 |
<input type="button" value="<?php echo $TEXT['CANCEL']; ?>" |
|
174 |
onclick="javascript: window.location = '<?php echo ADMIN_URL;?>/pages/modify.php?page_id=<?php echo $page_id; ?>';" |
|
175 |
style="width: 100px; margin-top: 5px;" /> |
|
176 |
</td> |
|
177 |
</tr> |
|
178 |
</table> |
|
179 |
</form> |
|
180 |
<?php |
|
181 |
} |
|
182 |
} |
|
183 |
|
|
184 |
// Print admin footer |
|
185 |
$admin->print_footer(); |
|
186 |
|
|
157 | 187 |
?> |
branches/2.8.x/wb/modules/backup/info.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id$ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
7 |
Website Baker Project <http://www.websitebaker.org/> |
|
8 |
Copyright (C) 2004-2009, Ryan Djurovich |
|
9 |
|
|
10 |
Website Baker is free software; you can redistribute it and/or modify |
|
11 |
it under the terms of the GNU General Public License as published by |
|
12 |
the Free Software Foundation; either version 2 of the License, or |
|
13 |
(at your option) any later version. |
|
14 |
|
|
15 |
Website Baker is distributed in the hope that it will be useful, |
|
16 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 |
GNU General Public License for more details. |
|
19 |
|
|
20 |
You should have received a copy of the GNU General Public License |
|
21 |
along with Website Baker; if not, write to the Free Software |
|
22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 |
|
|
24 |
*/ |
|
25 |
|
|
26 |
$module_directory = 'backup'; |
|
27 |
$module_name = 'Backup'; |
|
28 |
$module_function = 'tool'; |
|
29 |
$module_version = '2.7'; |
|
30 |
$module_platform = '2.7 | 2.8.x'; |
|
31 |
$module_author = 'Ryan Djurovich, John'; |
|
32 |
$module_license = 'GNU General Public License'; |
|
33 |
$module_description = 'This module allows you to backup your database.'; |
|
34 |
|
|
1 |
<?php |
|
2 |
/**************************************************************************** |
|
3 |
* SVN Version information: |
|
4 |
* |
|
5 |
* $Id$ |
|
6 |
* |
|
7 |
***************************************************************************** |
|
8 |
* |
|
9 |
***************************************************************************** |
|
10 |
* WebsiteBaker |
|
11 |
* |
|
12 |
* WebsiteBaker Project <http://www.websitebaker2.org/> |
|
13 |
* Copyright (C) 2009, Website Baker Org. e.V. |
|
14 |
* http://start.websitebaker2.org/impressum-datenschutz.php |
|
15 |
* Copyright (C) 2004-2009, Ryan Djurovich |
|
16 |
* |
|
17 |
* About WebsiteBaker |
|
18 |
* |
|
19 |
* Website Baker is a PHP-based Content Management System (CMS) |
|
20 |
* designed with one goal in mind: to enable its users to produce websites |
|
21 |
* with ease. |
|
22 |
* |
|
23 |
***************************************************************************** |
|
24 |
* |
|
25 |
***************************************************************************** |
|
26 |
* WebsiteBaker Extra Information (where needed) |
|
27 |
* |
|
28 |
* |
|
29 |
* |
|
30 |
***************************************************************************** |
|
31 |
* |
|
32 |
***************************************************************************** |
|
33 |
* LICENSE INFORMATION |
|
34 |
* |
|
35 |
* WebsiteBaker is free software; you can redistribute it and/or |
|
36 |
* modify it under the terms of the GNU General Public License |
|
37 |
* as published by the Free Software Foundation; either version 2 |
|
38 |
* of the License, or (at your option) any later version. |
|
39 |
* |
|
40 |
* WebsiteBaker is distributed in the hope that it will be useful, |
|
41 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
42 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
43 |
* See the GNU General Public License for more details. |
|
44 |
* |
|
45 |
* You should have received a copy of the GNU General Public License |
|
46 |
* along with this program; if not, write to the Free Software |
|
47 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
48 |
*****************************************************************************/ |
|
49 |
/** |
|
50 |
* |
|
51 |
* @category modules |
|
52 |
* @package backup |
|
53 |
* @author Ryan Djurovich |
|
54 |
* @copyright 2004-2009, Ryan Djurovich |
|
55 |
* @copyright 2009, Website Baker Org. e.V. |
|
56 |
* @version $Id$ |
|
57 |
* @platform WebsiteBaker 2.8.x |
|
58 |
* @requirements >= PHP 4.3.4 |
|
59 |
* @license http://www.gnu.org/licenses/gpl.html |
|
60 |
* |
|
61 |
* |
|
62 |
*/ |
|
63 |
|
|
64 |
$module_directory = 'backup'; |
|
65 |
$module_name = 'Backup'; |
|
66 |
$module_function = 'tool'; |
|
67 |
$module_version = '2.7'; |
|
68 |
$module_platform = '2.7 | 2.8.x'; |
|
69 |
$module_author = 'Ryan Djurovich, John'; |
|
70 |
$module_license = 'GNU General Public License'; |
|
71 |
$module_description = 'This module allows you to backup your database.'; |
|
72 |
|
|
35 | 73 |
?> |
branches/2.8.x/wb/modules/backup/tool.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id$ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
7 |
Website Baker Project <http://www.websitebaker.org/> |
|
8 |
Copyright (C) 2004-2009, Ryan Djurovich |
|
9 |
|
|
10 |
Website Baker is free software; you can redistribute it and/or modify |
|
11 |
it under the terms of the GNU General Public License as published by |
|
12 |
the Free Software Foundation; either version 2 of the License, or |
|
13 |
(at your option) any later version. |
|
14 |
|
|
15 |
Website Baker is distributed in the hope that it will be useful, |
|
16 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 |
GNU General Public License for more details. |
|
19 |
|
|
20 |
You should have received a copy of the GNU General Public License |
|
21 |
along with Website Baker; if not, write to the Free Software |
|
22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 |
|
|
24 |
*/ |
|
25 |
|
|
26 |
// Direct access prevention |
|
27 |
defined('WB_PATH') OR die(header('Location: ../index.php')); |
|
28 |
|
|
29 |
// check if module language file exists for the language set by the user (e.g. DE, EN) |
|
30 |
if(!file_exists(WB_PATH .'/modules/backup/languages/'.LANGUAGE .'.php')) { |
|
31 |
// no module language file exists for the language set by the user, include default module language file EN.php |
|
32 |
require_once(WB_PATH .'/modules/backup/languages/EN.php'); |
|
33 |
} else { |
|
34 |
// a module language file exists for the language defined by the user, load it |
|
35 |
require_once(WB_PATH .'/modules/backup/languages/'.LANGUAGE .'.php'); |
|
36 |
} |
|
37 |
|
|
38 |
// Show form |
|
39 |
?> |
|
40 |
<br /> |
|
41 |
<form name="prompt" method="post" action="<?php echo WB_URL; ?>/modules/backup/backup-sql.php"> |
|
42 |
<input type="radio" checked="checked" name="tables" value="ALL"><?php echo $MOD_BACKUP['BACKUP_ALL_TABLES']; ?><br> |
|
43 |
<input type="radio" name="tables" value="WB"><?php echo $MOD_BACKUP['BACKUP_WB_SPECIFIC']; ?><br><br> |
|
44 |
<input type="submit" name="backup" value="<?php echo $TEXT['BACKUP_DATABASE']; ?>" onClick="javascript: if(!confirm('<?php echo $MESSAGE['GENERIC']['PLEASE_BE_PATIENT']; ?>')) { return false; }" /> |
|
1 |
<?php |
|
2 |
|
|
3 |
/**************************************************************************** |
|
4 |
* SVN Version information: |
|
5 |
* |
|
6 |
* $Id$ |
|
7 |
* |
|
8 |
***************************************************************************** |
|
9 |
* |
|
10 |
***************************************************************************** |
|
11 |
* WebsiteBaker |
|
12 |
* |
|
13 |
* WebsiteBaker Project <http://www.websitebaker2.org/> |
|
14 |
* Copyright (C) 2009, Website Baker Org. e.V. |
|
15 |
* http://start.websitebaker2.org/impressum-datenschutz.php |
|
16 |
* Copyright (C) 2004-2009, Ryan Djurovich |
|
17 |
* |
|
18 |
* About WebsiteBaker |
|
19 |
* |
|
20 |
* Website Baker is a PHP-based Content Management System (CMS) |
|
21 |
* designed with one goal in mind: to enable its users to produce websites |
|
22 |
* with ease. |
|
23 |
* |
|
24 |
***************************************************************************** |
|
25 |
* |
|
26 |
***************************************************************************** |
|
27 |
* WebsiteBaker Extra Information (where needed) |
|
28 |
* |
|
29 |
* |
|
30 |
* |
|
31 |
***************************************************************************** |
|
32 |
* |
|
33 |
***************************************************************************** |
|
34 |
* LICENSE INFORMATION |
|
35 |
* |
|
36 |
* WebsiteBaker is free software; you can redistribute it and/or |
|
37 |
* modify it under the terms of the GNU General Public License |
|
38 |
* as published by the Free Software Foundation; either version 2 |
|
39 |
* of the License, or (at your option) any later version. |
|
40 |
* |
|
41 |
* WebsiteBaker is distributed in the hope that it will be useful, |
|
42 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
43 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
44 |
* See the GNU General Public License for more details. |
|
45 |
* |
|
46 |
* You should have received a copy of the GNU General Public License |
|
47 |
* along with this program; if not, write to the Free Software |
|
48 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
49 |
*****************************************************************************/ |
|
50 |
/** |
|
51 |
* |
|
52 |
* @category modules |
|
53 |
* @package backup |
|
54 |
* @author Ryan Djurovich |
|
55 |
* @copyright 2004-2009, Ryan Djurovich |
|
56 |
* @copyright 2009, Website Baker Org. e.V. |
|
57 |
* @version $Id$ |
|
58 |
* @platform WebsiteBaker 2.8.x |
|
59 |
* @requirements >= PHP 4.3.4 |
|
60 |
* @license http://www.gnu.org/licenses/gpl.html |
|
61 |
* |
|
62 |
* |
|
63 |
*/ |
|
64 |
|
|
65 |
// Direct access prevention |
|
66 |
defined('WB_PATH') OR die(header('Location: ../index.php')); |
|
67 |
|
|
68 |
// check if module language file exists for the language set by the user (e.g. DE, EN) |
|
69 |
if(!file_exists(WB_PATH .'/modules/backup/languages/'.LANGUAGE .'.php')) { |
|
70 |
// no module language file exists for the language set by the user, include default module language file EN.php |
|
71 |
require_once(WB_PATH .'/modules/backup/languages/EN.php'); |
|
72 |
} else { |
|
73 |
// a module language file exists for the language defined by the user, load it |
|
74 |
require_once(WB_PATH .'/modules/backup/languages/'.LANGUAGE .'.php'); |
|
75 |
} |
|
76 |
|
|
77 |
// Show form |
|
78 |
?> |
|
79 |
<br /> |
|
80 |
<form name="prompt" method="post" action="<?php echo WB_URL; ?>/modules/backup/backup-sql.php"> |
|
81 |
<input type="radio" checked="checked" name="tables" value="ALL"><?php echo $MOD_BACKUP['BACKUP_ALL_TABLES']; ?><br> |
|
82 |
<input type="radio" name="tables" value="WB"><?php echo $MOD_BACKUP['BACKUP_WB_SPECIFIC']; ?><br><br> |
|
83 |
<input type="submit" name="backup" value="<?php echo $TEXT['BACKUP_DATABASE']; ?>" onClick="javascript: if(!confirm('<?php echo $MESSAGE['GENERIC']['PLEASE_BE_PATIENT']; ?>')) { return false; }" /> |
|
45 | 84 |
</form> |
branches/2.8.x/wb/modules/backup/languages/NL.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id$ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
7 |
Website Baker Project <http://www.websitebaker.org/> |
|
8 |
Copyright (C) 2004-2009, Ryan Djurovich |
|
9 |
|
|
10 |
Website Baker is free software; you can redistribute it and/or modify |
|
11 |
it under the terms of the GNU General Public License as published by |
|
12 |
the Free Software Foundation; either version 2 of the License, or |
|
13 |
(at your option) any later version. |
|
14 |
|
|
15 |
Website Baker is distributed in the hope that it will be useful, |
|
16 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 |
GNU General Public License for more details. |
|
19 |
|
|
20 |
You should have received a copy of the GNU General Public License |
|
21 |
along with Website Baker; if not, write to the Free Software |
|
22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 |
|
|
24 |
----------------------------------------------------------------------------------------- |
|
25 |
DUTCH LANGUAGE FILE FOR THE ADDON: BACKUP |
|
26 |
----------------------------------------------------------------------------------------- |
|
27 |
*/ |
|
28 |
|
|
29 |
// text outputs |
|
30 |
$MOD_BACKUP['BACKUP_ALL_TABLES'] = 'Backup van alle tabellen in de database'; |
|
31 |
$MOD_BACKUP['BACKUP_WB_SPECIFIC'] = 'Backup enkel de WB specifieke tabellen'; |
|
32 |
$TEXT['BACKUP_DATABASE'] = 'Backup Database'; |
|
33 |
|
|
1 |
<?php |
|
2 |
|
|
3 |
/**************************************************************************** |
|
4 |
* SVN Version information: |
|
5 |
* |
|
6 |
* $Id$ |
|
7 |
* |
|
8 |
***************************************************************************** |
|
9 |
* |
|
10 |
***************************************************************************** |
|
11 |
* WebsiteBaker |
|
12 |
* |
|
13 |
* WebsiteBaker Project <http://www.websitebaker2.org/> |
|
14 |
* Copyright (C) 2009, Website Baker Org. e.V. |
|
15 |
* http://start.websitebaker2.org/impressum-datenschutz.php |
|
16 |
* Copyright (C) 2004-2009, Ryan Djurovich |
|
17 |
* |
|
18 |
* About WebsiteBaker |
|
19 |
* |
|
20 |
* Website Baker is a PHP-based Content Management System (CMS) |
|
21 |
* designed with one goal in mind: to enable its users to produce websites |
|
22 |
* with ease. |
|
23 |
* |
|
24 |
***************************************************************************** |
|
25 |
* |
|
26 |
***************************************************************************** |
|
27 |
* WebsiteBaker Extra Information (where needed) |
|
28 |
* |
|
29 |
* DUTCH LANGUAGE FILE FOR THE ADDON: BACKUP |
|
30 |
* |
|
31 |
***************************************************************************** |
|
32 |
* |
|
33 |
***************************************************************************** |
|
34 |
* LICENSE INFORMATION |
|
35 |
* |
|
36 |
* WebsiteBaker is free software; you can redistribute it and/or |
|
37 |
* modify it under the terms of the GNU General Public License |
|
38 |
* as published by the Free Software Foundation; either version 2 |
|
39 |
* of the License, or (at your option) any later version. |
|
40 |
* |
|
41 |
* WebsiteBaker is distributed in the hope that it will be useful, |
|
42 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
43 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
44 |
* See the GNU General Public License for more details. |
|
45 |
* |
|
46 |
* You should have received a copy of the GNU General Public License |
|
47 |
* along with this program; if not, write to the Free Software |
|
48 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
49 |
*****************************************************************************/ |
|
50 |
|
|
51 |
// text outputs |
|
52 |
$MOD_BACKUP['BACKUP_ALL_TABLES'] = 'Backup van alle tabellen in de database'; |
|
53 |
$MOD_BACKUP['BACKUP_WB_SPECIFIC'] = 'Backup enkel de WB specifieke tabellen'; |
|
54 |
$TEXT['BACKUP_DATABASE'] = 'Backup Database'; |
|
55 |
|
|
34 | 56 |
?> |
branches/2.8.x/wb/modules/backup/languages/NO.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id$ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
7 |
Website Baker Project <http://www.websitebaker.org/> |
|
8 |
Copyright (C) 2004-2009, Ryan Djurovich |
|
9 |
|
|
10 |
Website Baker is free software; you can redistribute it and/or modify |
|
11 |
it under the terms of the GNU General Public License as published by |
|
12 |
the Free Software Foundation; either version 2 of the License, or |
|
13 |
(at your option) any later version. |
|
14 |
|
|
15 |
Website Baker is distributed in the hope that it will be useful, |
|
16 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 |
GNU General Public License for more details. |
|
19 |
|
|
20 |
You should have received a copy of the GNU General Public License |
|
21 |
along with Website Baker; if not, write to the Free Software |
|
22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 |
|
|
24 |
----------------------------------------------------------------------------------------- |
|
25 |
NORWEGIAN LANGUAGE FILE FOR THE ADDON: BACKUP |
|
26 |
----------------------------------------------------------------------------------------- |
|
27 |
*/ |
|
28 |
|
|
29 |
// text outputs |
|
30 |
$MOD_BACKUP['BACKUP_ALL_TABLES'] ='Sikkerhetskopier alle tabellene i databsen'; |
|
31 |
$MOD_BACKUP['BACKUP_WB_SPECIFIC'] ='Sikkerhetskopier bare WB sine tabeller'; |
|
32 |
$TEXT['BACKUP_DATABASE'] ='Sikkerhetskopier Databsen'; |
|
33 |
|
|
1 |
<?php |
|
2 |
|
|
3 |
/**************************************************************************** |
|
4 |
* SVN Version information: |
|
5 |
* |
|
6 |
* $Id$ |
|
7 |
* |
|
8 |
***************************************************************************** |
|
9 |
* |
|
10 |
***************************************************************************** |
|
11 |
* WebsiteBaker |
|
12 |
* |
|
13 |
* WebsiteBaker Project <http://www.websitebaker2.org/> |
|
14 |
* Copyright (C) 2009, Website Baker Org. e.V. |
|
15 |
* http://start.websitebaker2.org/impressum-datenschutz.php |
|
16 |
* Copyright (C) 2004-2009, Ryan Djurovich |
|
17 |
* |
|
18 |
* About WebsiteBaker |
|
19 |
* |
|
20 |
* Website Baker is a PHP-based Content Management System (CMS) |
|
21 |
* designed with one goal in mind: to enable its users to produce websites |
|
22 |
* with ease. |
|
23 |
* |
|
24 |
***************************************************************************** |
|
25 |
* |
|
26 |
***************************************************************************** |
|
27 |
* WebsiteBaker Extra Information (where needed) |
|
28 |
* |
|
29 |
* NORWEGIAN LANGUAGE FILE FOR THE ADDON: BACKUP |
|
30 |
* |
|
31 |
***************************************************************************** |
|
32 |
* |
|
33 |
***************************************************************************** |
|
34 |
* LICENSE INFORMATION |
|
35 |
* |
|
36 |
* WebsiteBaker is free software; you can redistribute it and/or |
|
37 |
* modify it under the terms of the GNU General Public License |
|
38 |
* as published by the Free Software Foundation; either version 2 |
|
39 |
* of the License, or (at your option) any later version. |
|
40 |
* |
|
41 |
* WebsiteBaker is distributed in the hope that it will be useful, |
|
42 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
43 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
44 |
* See the GNU General Public License for more details. |
|
45 |
* |
|
46 |
* You should have received a copy of the GNU General Public License |
|
47 |
* along with this program; if not, write to the Free Software |
|
48 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
49 |
*****************************************************************************/ |
|
50 |
|
|
51 |
// text outputs |
|
52 |
$MOD_BACKUP['BACKUP_ALL_TABLES'] ='Sikkerhetskopier alle tabellene i databsen'; |
|
53 |
$MOD_BACKUP['BACKUP_WB_SPECIFIC'] ='Sikkerhetskopier bare WB sine tabeller'; |
|
54 |
$TEXT['BACKUP_DATABASE'] ='Sikkerhetskopier Databsen'; |
|
55 |
|
|
34 | 56 |
?> |
branches/2.8.x/wb/modules/backup/languages/EN.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id$ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
7 |
Website Baker Project <http://www.websitebaker.org/> |
|
8 |
Copyright (C) 2004-2009, Ryan Djurovich |
|
9 |
|
|
10 |
Website Baker is free software; you can redistribute it and/or modify |
|
11 |
it under the terms of the GNU General Public License as published by |
|
12 |
the Free Software Foundation; either version 2 of the License, or |
|
13 |
(at your option) any later version. |
|
14 |
|
|
15 |
Website Baker is distributed in the hope that it will be useful, |
|
16 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 |
GNU General Public License for more details. |
|
19 |
|
|
20 |
You should have received a copy of the GNU General Public License |
|
21 |
along with Website Baker; if not, write to the Free Software |
|
22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 |
|
|
24 |
----------------------------------------------------------------------------------------- |
|
25 |
ENGLISH LANGUAGE FILE FOR THE ADDON: BACKUP |
|
26 |
----------------------------------------------------------------------------------------- |
|
27 |
*/ |
|
28 |
|
|
29 |
// text outputs |
|
30 |
$MOD_BACKUP['BACKUP_ALL_TABLES'] = 'Backup all tables in database'; |
|
31 |
$MOD_BACKUP['BACKUP_WB_SPECIFIC'] = 'Backup only WB-specific tables'; |
|
32 |
$TEXT['BACKUP_DATABASE'] = 'Backup Database'; |
|
33 |
|
|
1 |
<?php |
|
2 |
|
|
3 |
/**************************************************************************** |
|
4 |
* SVN Version information: |
|
5 |
* |
|
6 |
* $Id$ |
|
7 |
* |
|
8 |
***************************************************************************** |
|
9 |
* |
|
10 |
***************************************************************************** |
|
11 |
* WebsiteBaker |
|
12 |
* |
|
13 |
* WebsiteBaker Project <http://www.websitebaker2.org/> |
|
14 |
* Copyright (C) 2009, Website Baker Org. e.V. |
|
15 |
* http://start.websitebaker2.org/impressum-datenschutz.php |
|
16 |
* Copyright (C) 2004-2009, Ryan Djurovich |
|
17 |
* |
|
18 |
* About WebsiteBaker |
|
19 |
* |
|
20 |
* Website Baker is a PHP-based Content Management System (CMS) |
|
21 |
* designed with one goal in mind: to enable its users to produce websites |
|
22 |
* with ease. |
|
23 |
* |
|
24 |
***************************************************************************** |
|
25 |
* |
|
26 |
***************************************************************************** |
|
27 |
* WebsiteBaker Extra Information (where needed) |
|
28 |
* |
|
29 |
* ENGLISH LANGUAGE FILE FOR THE ADDON: BACKUP |
|
30 |
* |
|
31 |
***************************************************************************** |
|
32 |
* |
|
33 |
***************************************************************************** |
|
34 |
* LICENSE INFORMATION |
|
35 |
* |
|
36 |
* WebsiteBaker is free software; you can redistribute it and/or |
|
37 |
* modify it under the terms of the GNU General Public License |
|
38 |
* as published by the Free Software Foundation; either version 2 |
|
39 |
* of the License, or (at your option) any later version. |
|
40 |
* |
|
41 |
* WebsiteBaker is distributed in the hope that it will be useful, |
|
42 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
43 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
44 |
* See the GNU General Public License for more details. |
|
45 |
* |
|
46 |
* You should have received a copy of the GNU General Public License |
|
47 |
* along with this program; if not, write to the Free Software |
|
48 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
49 |
*****************************************************************************/ |
|
50 |
|
|
51 |
// text outputs |
|
52 |
$MOD_BACKUP['BACKUP_ALL_TABLES'] = 'Backup all tables in database'; |
|
53 |
$MOD_BACKUP['BACKUP_WB_SPECIFIC'] = 'Backup only WB-specific tables'; |
|
54 |
$TEXT['BACKUP_DATABASE'] = 'Backup Database'; |
|
55 |
|
|
34 | 56 |
?> |
branches/2.8.x/wb/modules/backup/languages/DA.php | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 |
// $Id$ |
|
3 |
/**************************************************************************** |
|
4 |
* SVN Version information: |
|
5 |
* |
|
6 |
* $Id$ |
|
7 |
* |
|
8 |
***************************************************************************** |
|
9 |
* |
|
10 |
***************************************************************************** |
|
11 |
* WebsiteBaker |
|
12 |
* |
|
13 |
* WebsiteBaker Project <http://www.websitebaker2.org/> |
|
14 |
* Copyright (C) 2009, Website Baker Org. e.V. |
|
15 |
* http://start.websitebaker2.org/impressum-datenschutz.php |
|
16 |
* Copyright (C) 2004-2009, Ryan Djurovich |
|
17 |
* |
|
18 |
* About WebsiteBaker |
|
19 |
* |
|
20 |
* Website Baker is a PHP-based Content Management System (CMS) |
|
21 |
* designed with one goal in mind: to enable its users to produce websites |
|
22 |
* with ease. |
|
23 |
* |
|
24 |
***************************************************************************** |
|
25 |
* |
|
26 |
***************************************************************************** |
|
27 |
* WebsiteBaker Extra Information (where needed) |
|
28 |
* |
|
29 |
* DANISH LANGUAGE FILE FOR THE ADDON: BACKUP |
|
30 |
* |
|
31 |
***************************************************************************** |
|
32 |
* |
|
33 |
***************************************************************************** |
|
34 |
* LICENSE INFORMATION |
|
35 |
* |
|
36 |
* WebsiteBaker is free software; you can redistribute it and/or |
|
37 |
* modify it under the terms of the GNU General Public License |
|
38 |
* as published by the Free Software Foundation; either version 2 |
|
39 |
* of the License, or (at your option) any later version. |
|
40 |
* |
|
41 |
* WebsiteBaker is distributed in the hope that it will be useful, |
|
42 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
43 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
44 |
* See the GNU General Public License for more details. |
|
45 |
* |
|
46 |
* You should have received a copy of the GNU General Public License |
|
47 |
* along with this program; if not, write to the Free Software |
|
48 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
49 |
*****************************************************************************/ |
|
4 | 50 |
|
5 |
/* |
|
6 |
|
|
7 |
Website Baker Project <http://www.websitebaker.org/> |
|
8 |
Copyright (C) 2004-2009, Ryan Djurovich |
|
9 |
|
|
10 |
Website Baker is free software; you can redistribute it and/or modify |
|
11 |
it under the terms of the GNU General Public License as published by |
|
12 |
the Free Software Foundation; either version 2 of the License, or |
|
13 |
(at your option) any later version. |
|
14 |
|
|
15 |
Website Baker is distributed in the hope that it will be useful, |
|
16 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 |
GNU General Public License for more details. |
|
19 |
|
|
20 |
You should have received a copy of the GNU General Public License |
|
21 |
along with Website Baker; if not, write to the Free Software |
|
22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 |
|
|
24 |
----------------------------------------------------------------------------------------- |
|
25 |
DANISH LANGUAGE FILE FOR THE ADDON: BACKUP |
|
26 |
----------------------------------------------------------------------------------------- |
|
27 |
*/ |
|
28 |
|
|
29 | 51 |
// text outputs |
30 | 52 |
$MOD_BACKUP['BACKUP_ALL_TABLES'] = 'Tag backup af alle tabeller i databasen'; |
31 | 53 |
$MOD_BACKUP['BACKUP_WB_SPECIFIC'] = 'Tag kun backup af WB-tabeller i databasen'; |
32 | 54 |
$TEXT['BACKUP_DATABASE'] = 'Tag backup af databasen'; |
33 | 55 |
|
34 |
?>
|
|
56 |
?> |
branches/2.8.x/wb/modules/backup/languages/RU.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id$ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
7 |
Website Baker Project http://www.websitebaker.org/ |
|
8 |
Copyright (C) 2004-2009, Ryan Djurovich |
|
9 |
|
|
10 |
Website Baker is free software; you can redistribute it and/or modify |
|
11 |
it under the terms of the GNU General Public License as published by |
|
12 |
the Free Software Foundation; either version 2 of the License, or |
|
13 |
(at your option) any later version. |
|
14 |
|
|
15 |
Website Baker is distributed in the hope that it will be useful, |
|
16 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 |
GNU General Public License for more details. |
|
19 |
|
|
20 |
You should have received a copy of the GNU General Public License |
|
21 |
along with Website Baker; if not, write to the Free Software |
|
22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 |
|
|
24 |
----------------------------------------------------------------------------------------- |
|
25 |
RUSSIAN LANGUAGE FILE FOR THE ADDON: BACKUP |
|
26 |
----------------------------------------------------------------------------------------- |
|
27 |
*/ |
|
28 |
|
|
29 |
// text outputs |
|
30 |
$MOD_BACKUP['BACKUP_ALL_TABLES'] = 'Backup всех таблиц базы'; |
|
31 |
$MOD_BACKUP['BACKUP_WB_SPECIFIC'] = 'Backup только таблиц CMS'; |
|
32 |
$TEXT['BACKUP_DATABASE'] = 'Выполнить Backup'; |
|
33 |
|
|
34 |
?> |
|
1 |
<?php |
|
2 |
|
|
3 |
/**************************************************************************** |
|
4 |
* SVN Version information: |
|
5 |
* |
|
6 |
* $Id$ |
|
7 |
* |
|
8 |
***************************************************************************** |
|
9 |
* |
|
10 |
***************************************************************************** |
|
11 |
* WebsiteBaker |
|
12 |
* |
|
13 |
* WebsiteBaker Project <http://www.websitebaker2.org/> |
|
14 |
* Copyright (C) 2009, Website Baker Org. e.V. |
|
15 |
* http://start.websitebaker2.org/impressum-datenschutz.php |
|
16 |
* Copyright (C) 2004-2009, Ryan Djurovich |
|
17 |
* |
|
18 |
* About WebsiteBaker |
|
19 |
* |
|
20 |
* Website Baker is a PHP-based Content Management System (CMS) |
|
21 |
* designed with one goal in mind: to enable its users to produce websites |
|
22 |
* with ease. |
|
23 |
* |
|
24 |
***************************************************************************** |
|
25 |
* |
|
26 |
***************************************************************************** |
|
27 |
* WebsiteBaker Extra Information (where needed) |
|
28 |
* |
|
29 |
* RUSSIAN LANGUAGE FILE FOR THE ADDON: BACKUP |
|
30 |
* |
|
31 |
***************************************************************************** |
|
32 |
* |
|
33 |
***************************************************************************** |
|
34 |
* LICENSE INFORMATION |
|
35 |
* |
|
36 |
* WebsiteBaker is free software; you can redistribute it and/or |
|
37 |
* modify it under the terms of the GNU General Public License |
|
38 |
* as published by the Free Software Foundation; either version 2 |
|
39 |
* of the License, or (at your option) any later version. |
|
40 |
* |
|
41 |
* WebsiteBaker is distributed in the hope that it will be useful, |
|
42 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
43 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
44 |
* See the GNU General Public License for more details. |
|
45 |
* |
|
46 |
* You should have received a copy of the GNU General Public License |
|
47 |
* along with this program; if not, write to the Free Software |
|
48 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
49 |
*****************************************************************************/ |
|
50 |
|
|
51 |
// text outputs |
|
52 |
$MOD_BACKUP['BACKUP_ALL_TABLES'] = 'Backup всех таблиц базы'; |
|
53 |
$MOD_BACKUP['BACKUP_WB_SPECIFIC'] = 'Backup только таблиц CMS'; |
|
54 |
$TEXT['BACKUP_DATABASE'] = 'Выполнить Backup'; |
|
55 |
|
|
56 |
?> |
branches/2.8.x/wb/modules/backup/languages/FR.php | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 |
// $Id$ |
|
3 |
/**************************************************************************** |
|
4 |
* SVN Version information: |
|
5 |
* |
|
6 |
* $Id$ |
|
7 |
* |
|
8 |
***************************************************************************** |
|
9 |
* |
|
10 |
***************************************************************************** |
|
11 |
* WebsiteBaker |
|
12 |
* |
|
13 |
* WebsiteBaker Project <http://www.websitebaker2.org/> |
|
14 |
* Copyright (C) 2009, Website Baker Org. e.V. |
|
15 |
* http://start.websitebaker2.org/impressum-datenschutz.php |
|
16 |
* Copyright (C) 2004-2009, Ryan Djurovich |
|
17 |
* |
|
18 |
* About WebsiteBaker |
|
19 |
* |
|
20 |
* Website Baker is a PHP-based Content Management System (CMS) |
|
21 |
* designed with one goal in mind: to enable its users to produce websites |
|
22 |
* with ease. |
|
23 |
* |
|
24 |
***************************************************************************** |
|
25 |
* |
|
26 |
***************************************************************************** |
|
27 |
* WebsiteBaker Extra Information (where needed) |
|
28 |
* |
|
29 |
* FRENCH LANGUAGE FILE FOR THE ADDON: BACKUP |
|
30 |
* |
|
31 |
***************************************************************************** |
|
32 |
* |
|
33 |
***************************************************************************** |
|
34 |
* LICENSE INFORMATION |
|
35 |
* |
|
36 |
* WebsiteBaker is free software; you can redistribute it and/or |
|
37 |
* modify it under the terms of the GNU General Public License |
|
38 |
* as published by the Free Software Foundation; either version 2 |
|
39 |
* of the License, or (at your option) any later version. |
|
40 |
* |
|
41 |
* WebsiteBaker is distributed in the hope that it will be useful, |
|
42 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
43 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
44 |
* See the GNU General Public License for more details. |
|
45 |
* |
|
46 |
* You should have received a copy of the GNU General Public License |
|
47 |
* along with this program; if not, write to the Free Software |
|
48 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
49 |
*****************************************************************************/ |
|
4 | 50 |
|
5 |
/* |
|
6 |
|
|
7 |
Website Baker Project <http://www.websitebaker.org/> |
|
8 |
Copyright (C) 2004-2009, Ryan Djurovich |
|
9 |
|
|
10 |
Website Baker is free software; you can redistribute it and/or modify |
|
11 |
it under the terms of the GNU General Public License as published by |
|
12 |
the Free Software Foundation; either version 2 of the License, or |
|
13 |
(at your option) any later version. |
|
14 |
|
|
15 |
Website Baker is distributed in the hope that it will be useful, |
|
16 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 |
GNU General Public License for more details. |
|
19 |
|
|
20 |
You should have received a copy of the GNU General Public License |
|
21 |
along with Website Baker; if not, write to the Free Software |
|
22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 |
|
|
24 |
----------------------------------------------------------------------------------------- |
|
25 |
FRENCH LANGUAGE FILE FOR THE ADDON: BACKUP |
|
26 |
----------------------------------------------------------------------------------------- |
|
27 |
*/ |
|
28 | 51 |
//Module Description |
29 | 52 |
$module_description = 'Ce module permets de sauvegarder votre base de données'; |
30 | 53 |
|
branches/2.8.x/wb/modules/backup/languages/index.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id$ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
7 |
Website Baker Project <http://www.websitebaker.org/> |
|
8 |
Copyright (C) 2004-2009, Ryan Djurovich |
|
9 |
|
|
10 |
Website Baker is free software; you can redistribute it and/or modify |
|
11 |
it under the terms of the GNU General Public License as published by |
|
12 |
the Free Software Foundation; either version 2 of the License, or |
|
13 |
(at your option) any later version. |
|
14 |
|
|
15 |
Website Baker is distributed in the hope that it will be useful, |
|
16 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 |
GNU General Public License for more details. |
|
19 |
|
|
20 |
You should have received a copy of the GNU General Public License |
|
21 |
along with Website Baker; if not, write to the Free Software |
|
22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 |
|
|
24 |
*/ |
|
25 |
|
|
26 |
header("Location: ../../../index.php"); |
|
27 |
|
|
1 |
<?php |
|
2 |
|
|
3 |
/**************************************************************************** |
|
4 |
* SVN Version information: |
|
5 |
* |
|
6 |
* $Id$ |
|
7 |
* |
|
8 |
***************************************************************************** |
|
9 |
* |
|
10 |
***************************************************************************** |
|
11 |
* WebsiteBaker |
|
12 |
* |
|
13 |
* WebsiteBaker Project <http://www.websitebaker2.org/> |
|
14 |
* Copyright (C) 2009, Website Baker Org. e.V. |
|
15 |
* http://start.websitebaker2.org/impressum-datenschutz.php |
|
16 |
* Copyright (C) 2004-2009, Ryan Djurovich |
|
17 |
* |
|
18 |
* About WebsiteBaker |
|
19 |
* |
|
20 |
* Website Baker is a PHP-based Content Management System (CMS) |
|
21 |
* designed with one goal in mind: to enable its users to produce websites |
|
22 |
* with ease. |
|
23 |
* |
|
24 |
***************************************************************************** |
|
25 |
* |
|
26 |
***************************************************************************** |
|
27 |
* WebsiteBaker Extra Information (where needed) |
|
28 |
* |
|
29 |
* |
|
30 |
* |
|
31 |
***************************************************************************** |
|
32 |
* |
|
33 |
***************************************************************************** |
|
34 |
* LICENSE INFORMATION |
|
35 |
* |
|
36 |
* WebsiteBaker is free software; you can redistribute it and/or |
|
37 |
* modify it under the terms of the GNU General Public License |
|
38 |
* as published by the Free Software Foundation; either version 2 |
|
39 |
* of the License, or (at your option) any later version. |
|
40 |
* |
|
41 |
* WebsiteBaker is distributed in the hope that it will be useful, |
|
42 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
43 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
44 |
* See the GNU General Public License for more details. |
|
45 |
* |
|
46 |
* You should have received a copy of the GNU General Public License |
|
47 |
* along with this program; if not, write to the Free Software |
|
48 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
49 |
*****************************************************************************/ |
|
50 |
|
|
51 |
header("Location: ../../../index.php"); |
|
52 |
|
|
28 | 53 |
?> |
branches/2.8.x/wb/modules/backup/languages/DE.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id$ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
7 |
Website Baker Project <http://www.websitebaker.org/> |
|
8 |
Copyright (C) 2004-2009, Ryan Djurovich |
|
9 |
|
|
10 |
Website Baker is free software; you can redistribute it and/or modify |
|
11 |
it under the terms of the GNU General Public License as published by |
|
12 |
the Free Software Foundation; either version 2 of the License, or |
|
13 |
(at your option) any later version. |
|
14 |
|
|
15 |
Website Baker is distributed in the hope that it will be useful, |
|
16 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 |
GNU General Public License for more details. |
|
19 |
|
|
20 |
You should have received a copy of the GNU General Public License |
|
21 |
along with Website Baker; if not, write to the Free Software |
|
22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 |
|
|
24 |
----------------------------------------------------------------------------------------- |
|
25 |
DEUTSCHE SPRACHDATEI FUER DAS MODUL: BACKUP |
|
26 |
----------------------------------------------------------------------------------------- |
|
27 |
*/ |
|
28 |
|
|
29 |
// Deutsche Modulbeschreibung |
|
30 |
$module_description = 'Dieses Modul ermöglicht die Erstellung einer Datenbanksicherung.'; |
|
31 |
|
|
32 |
// Textausgaben |
|
33 |
$MOD_BACKUP['BACKUP_ALL_TABLES'] = 'Sichern Sie alle Tabellen der Datenbank'; |
|
34 |
$MOD_BACKUP['BACKUP_WB_SPECIFIC'] = 'Sichern Sie nur die von Website Baker generierten Tabellen der Datenbank'; |
|
35 |
$TEXT['BACKUP_DATABASE'] = 'Erstelle Datenbanksicherung'; |
|
36 |
|
|
1 |
<?php |
|
2 |
|
|
3 |
/**************************************************************************** |
|
4 |
* SVN Version information: |
|
5 |
* |
|
6 |
* $Id$ |
|
7 |
* |
|
8 |
***************************************************************************** |
|
9 |
* |
|
10 |
***************************************************************************** |
|
11 |
* WebsiteBaker |
|
12 |
* |
|
13 |
* WebsiteBaker Project <http://www.websitebaker2.org/> |
|
14 |
* Copyright (C) 2009, Website Baker Org. e.V. |
|
15 |
* http://start.websitebaker2.org/impressum-datenschutz.php |
|
16 |
* Copyright (C) 2004-2009, Ryan Djurovich |
|
17 |
* |
|
18 |
* About WebsiteBaker |
|
19 |
* |
|
20 |
* Website Baker is a PHP-based Content Management System (CMS) |
|
21 |
* designed with one goal in mind: to enable its users to produce websites |
|
22 |
* with ease. |
|
23 |
* |
|
24 |
***************************************************************************** |
|
25 |
* |
|
26 |
***************************************************************************** |
|
27 |
* WebsiteBaker Extra Information (where needed) |
|
28 |
* |
|
29 |
* DEUTSCHE SPRACHDATEI FUER DAS MODUL: BACKUP |
|
30 |
* |
|
31 |
***************************************************************************** |
|
32 |
* |
|
33 |
***************************************************************************** |
|
34 |
* LICENSE INFORMATION |
|
35 |
* |
|
36 |
* WebsiteBaker is free software; you can redistribute it and/or |
|
37 |
* modify it under the terms of the GNU General Public License |
|
38 |
* as published by the Free Software Foundation; either version 2 |
|
39 |
* of the License, or (at your option) any later version. |
|
40 |
* |
|
41 |
* WebsiteBaker is distributed in the hope that it will be useful, |
|
42 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
43 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
44 |
* See the GNU General Public License for more details. |
|
45 |
* |
|
46 |
* You should have received a copy of the GNU General Public License |
|
47 |
* along with this program; if not, write to the Free Software |
|
48 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
49 |
*****************************************************************************/ |
|
50 |
|
|
51 |
// Deutsche Modulbeschreibung |
|
52 |
$module_description = 'Dieses Modul ermöglicht die Erstellung einer Datenbanksicherung.'; |
|
53 |
|
|
54 |
// Textausgaben |
|
55 |
$MOD_BACKUP['BACKUP_ALL_TABLES'] = 'Sichern Sie alle Tabellen der Datenbank'; |
|
56 |
$MOD_BACKUP['BACKUP_WB_SPECIFIC'] = 'Sichern Sie nur die von WebsiteBaker generierten Tabellen der Datenbank'; |
|
57 |
$TEXT['BACKUP_DATABASE'] = 'Erstelle Datenbanksicherung'; |
|
58 |
|
|
37 | 59 |
?> |
branches/2.8.x/wb/modules/backup/backup-sql.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id$ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
7 |
Website Baker Project <http://www.websitebaker.org/> |
|
8 |
Copyright (C) 2004-2009, Ryan Djurovich |
|
9 |
|
|
10 |
Website Baker is free software; you can redistribute it and/or modify |
|
11 |
it under the terms of the GNU General Public License as published by |
|
12 |
the Free Software Foundation; either version 2 of the License, or |
|
13 |
(at your option) any later version. |
|
14 |
|
|
15 |
Website Baker is distributed in the hope that it will be useful, |
|
16 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 |
GNU General Public License for more details. |
|
19 |
|
|
20 |
You should have received a copy of the GNU General Public License |
|
21 |
along with Website Baker; if not, write to the Free Software |
|
22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 |
|
|
24 |
*/ |
|
25 |
|
|
26 |
// Filename to use |
|
27 |
$filename = $_SERVER['HTTP_HOST'].'-backup-'.gmdate('Y-m-d', time()+TIMEZONE).'.sql'; |
|
28 |
|
|
29 |
// Check if user clicked on the backup button |
|
30 |
if(!isset($_POST['backup'])){ |
|
31 |
header('Location: ../'); |
|
32 |
exit(0); |
|
33 |
} |
|
34 |
|
|
35 |
// Include config |
|
36 |
require_once('../../config.php'); |
|
37 |
|
|
38 |
// Begin output var |
|
39 |
$output = "". |
|
40 |
"#\n". |
|
41 |
"# Website Baker ".WB_VERSION." Database Backup\n". |
|
42 |
"# ".WB_URL."\n". |
|
43 |
"# ".gmdate(DATE_FORMAT, time()+TIMEZONE).", ".gmdate(TIME_FORMAT, time()+TIMEZONE)."\n". |
|
44 |
"#". |
|
45 |
"\n"; |
|
46 |
|
|
47 |
// Get table names |
|
48 |
// Use this one for ALL tables in DB |
|
49 |
$query = "SHOW TABLES"; |
|
50 |
|
|
51 |
if ($_POST['tables']=='WB') { |
Also available in: Unified diff
update header