Revision 587
Added by doc almost 18 years ago
| tool.php | ||
|---|---|---|
| 26 | 26 |
// Direct access prevention |
| 27 | 27 |
defined('WB_PATH') OR die(header('Location: ../index.php'));
|
| 28 | 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 |
|
|
| 29 | 38 |
// Show form |
| 30 | 39 |
?> |
| 31 | 40 |
<br /> |
| 32 | 41 |
<form name="prompt" method="post" action="<?php echo WB_URL; ?>/modules/backup/backup-sql.php"> |
| 33 |
<input type="radio" checked="checked" name="tables" value="ALL"><?php echo $TEXT['BACKUP_ALL_TABLES']; ?><br>
|
|
| 34 |
<input type="radio" name="tables" value="WB"><?php echo $TEXT['BACKUP_WB_SPECIFIC']; ?><br><br>
|
|
| 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>
|
|
| 35 | 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; }" />
|
| 36 | 45 |
</form> |
Also available in: Unified diff
Added multi-lingual Admin tool description. Moved Admin tool language text from global language file to module language files. Added function get_variable_content to allow extraction of variable without including files.