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/reload/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/reload/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/reload/languages/'.LANGUAGE .'.php'); |
|
| 36 |
} |
|
| 37 |
|
|
| 29 | 38 |
// Check if user selected what add-ons to reload |
| 30 | 39 |
if(isset($_POST['submit']) AND $_POST['submit'] != '') {
|
| 31 | 40 |
// Include functions file |
| ... | ... | |
| 43 | 52 |
} |
| 44 | 53 |
closedir($handle); |
| 45 | 54 |
} |
| 46 |
echo '<br />'.$MESSAGE['MOD_RELOAD']['MODULES_RELOADED'];
|
|
| 55 |
echo '<br />'.$MOD_RELOAD['MODULES_RELOADED'];
|
|
| 47 | 56 |
} |
| 48 | 57 |
if(isset($_POST['reload_templates'])) {
|
| 49 | 58 |
// Remove all templates |
| ... | ... | |
| 57 | 66 |
} |
| 58 | 67 |
closedir($handle); |
| 59 | 68 |
} |
| 60 |
echo '<br />'.$MESSAGE['MOD_RELOAD']['TEMPLATES_RELOADED'];
|
|
| 69 |
echo '<br />'.$MOD_RELOAD['TEMPLATES_RELOADED'];
|
|
| 61 | 70 |
} |
| 62 | 71 |
if(isset($_POST['reload_languages'])) {
|
| 63 | 72 |
// Remove all languages |
| ... | ... | |
| 71 | 80 |
} |
| 72 | 81 |
closedir($handle); |
| 73 | 82 |
} |
| 74 |
echo '<br />'.$MESSAGE['MOD_RELOAD']['LANGUAGES_RELOADED'];
|
|
| 83 |
echo '<br />'.$MOD_RELOAD['LANGUAGES_RELOADED'];
|
|
| 75 | 84 |
} |
| 76 | 85 |
?> |
| 77 | 86 |
<br /><br /> |
| ... | ... | |
| 84 | 93 |
<form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post"> |
| 85 | 94 |
<table cellpadding="4" cellspacing="0" border="0"> |
| 86 | 95 |
<tr> |
| 87 |
<td colspan="2"><?php echo $MESSAGE['MOD_RELOAD']['PLEASE_SELECT']; ?>:</td>
|
|
| 96 |
<td colspan="2"><?php echo $MOD_RELOAD['PLEASE_SELECT']; ?>:</td>
|
|
| 88 | 97 |
</tr> |
| 89 | 98 |
<tr> |
| 90 | 99 |
<td width="20"><input type="checkbox" name="reload_modules" id="reload_modules" value="true" /></td> |
| 91 |
<td><label for="reload_modules"><?php echo $MENU['MODULES']; ?></label></td>
|
|
| 100 |
<td><label for="reload_modules"><?php echo $MOD_RELOAD['MODULES']; ?></label></td>
|
|
| 92 | 101 |
</tr> |
| 93 | 102 |
<tr> |
| 94 | 103 |
<td><input type="checkbox" name="reload_templates" id="reload_templates" value="true" /></td> |
| 95 |
<td><label for="reload_templates"><?php echo $MENU['TEMPLATES']; ?></label></td>
|
|
| 104 |
<td><label for="reload_templates"><?php echo $MOD_RELOAD['TEMPLATES']; ?></label></td>
|
|
| 96 | 105 |
</tr> |
| 97 | 106 |
<tr> |
| 98 | 107 |
<td><input type="checkbox" name="reload_languages" id="reload_languages" value="true" /></td> |
| 99 |
<td><label for="reload_languages"><?php echo $MENU['LANGUAGES']; ?></label></td>
|
|
| 108 |
<td><label for="reload_languages"><?php echo $MOD_RELOAD['LANGUAGES']; ?></label></td>
|
|
| 100 | 109 |
</tr> |
| 101 | 110 |
<tr> |
| 102 | 111 |
<td> </td> |
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.