Revision 587
Added by doc almost 17 years ago
trunk/CHANGELOG | ||
---|---|---|
11 | 11 |
! = Update/Change |
12 | 12 |
|
13 | 13 |
------------------------------------- 2.7.0 ------------------------------------- |
14 |
22-Jan-2008 Christian Sommer |
|
15 |
+ Added language support for the Admin tools (backup, reload, mail_filter) |
|
16 |
- Removed all admin tool text outputs from global language file to module language files |
|
17 |
! Introduced language support for the overview page of the Admin tools |
|
18 |
+ Added function get_variable_content to allow extraction of variable content without including files |
|
19 |
! Changed language support for Addons -> Moduls -> Details |
|
14 | 20 |
22-Jan-2008 Matthias Gallas |
15 | 21 |
+ Added keywords to new mail filter files |
16 | 22 |
22-Jan-2008 Thomas Hornik |
trunk/wb/admin/modules/details.php | ||
---|---|---|
25 | 25 |
|
26 | 26 |
// Include the config file |
27 | 27 |
require('../../config.php'); |
28 |
require_once(WB_PATH .'/framework/functions.php'); |
|
28 | 29 |
|
29 | 30 |
// Get module name |
30 | 31 |
if(!isset($_POST['file']) OR $_POST['file'] == "") { |
... | ... | |
55 | 56 |
$module = $result->fetchRow(); |
56 | 57 |
} |
57 | 58 |
|
58 |
// Get language description if available |
|
59 |
// First get users defined language |
|
60 |
$query = "SELECT language FROM ".TABLE_PREFIX."users WHERE user_id = '".$admin->get_user_id()."'"; |
|
61 |
$results = $database->query($query); |
|
62 |
if($results->numRows() > 0) { |
|
63 |
// We found a language for the user, store it |
|
64 |
$user_info=$results->fetchRow(); |
|
65 |
$user_language = $user_info['language']; |
|
66 |
|
|
67 |
// Next check for language file in module dir and insert the variables from that file |
|
68 |
if(file_exists(WB_PATH.'/modules/'.$file.'/languages/'.$user_language.'.php')) { |
|
69 |
require(WB_PATH.'/modules/'.$file.'/languages/'.$user_language.'.php'); |
|
70 |
|
|
71 |
// Check to see if new variable exists... -> $module_description |
|
72 |
if (isset($module_description)) { |
|
73 |
// Override the module-description with correct desription in users language |
|
74 |
$module['description']=$module_description; |
|
75 |
} |
|
76 |
} |
|
59 |
// check if a module description exists for the displayed backend language |
|
60 |
$tool_description = false; |
|
61 |
if(function_exists('file_get_contents') && file_exists(WB_PATH.'/modules/'.$file.'/languages/'.LANGUAGE .'.php')) { |
|
62 |
// read contents of the module language file into string |
|
63 |
$data = @file_get_contents(WB_PATH .'/modules/' .$file .'/languages/' .LANGUAGE .'.php'); |
|
64 |
// use regular expressions to fetch the content of the variable from the string |
|
65 |
$tool_description = get_variable_content('module_description', $data, true, false); |
|
66 |
} |
|
67 |
if($tool_description !== false) { |
|
68 |
// Override the module-description with correct desription in users language |
|
69 |
$module['description'] = $tool_description; |
|
77 | 70 |
} |
78 | 71 |
|
79 | 72 |
$template->set_var(array( |
trunk/wb/admin/admintools/index.php | ||
---|---|---|
46 | 46 |
while($tool = $results->fetchRow()) { |
47 | 47 |
$template->set_var('TOOL_NAME', $tool['name']); |
48 | 48 |
$template->set_var('TOOL_DIR', $tool['directory']); |
49 |
$template->set_var('TOOL_DESCRIPTION', $tool['description']); |
|
49 |
// check if a module description exists for the displayed backend language |
|
50 |
$tool_description = false; |
|
51 |
if(function_exists('file_get_contents') && file_exists(WB_PATH.'/modules/'.$tool['directory'].'/languages/'.LANGUAGE .'.php')) { |
|
52 |
// read contents of the module language file into string |
|
53 |
$data = @file_get_contents(WB_PATH .'/modules/' .$tool['directory'] .'/languages/' .LANGUAGE .'.php'); |
|
54 |
$tool_description = get_variable_content('module_description', $data, true, false); |
|
55 |
} |
|
56 |
$template->set_var('TOOL_DESCRIPTION', ($tool_description === False)? $tool['description'] :$tool_description); |
|
50 | 57 |
$template->parse('tool_list', 'tool_list_block', true); |
51 | 58 |
} |
52 | 59 |
} else { |
trunk/wb/framework/functions.php | ||
---|---|---|
825 | 825 |
} |
826 | 826 |
} |
827 | 827 |
|
828 |
// extracts the content of a string variable from a string (save alternative to including files) |
|
829 |
if(!function_exists('get_variable_content')) { |
|
830 |
function get_variable_content($search, $data, $striptags=true, $convert_to_entities=true) { |
|
831 |
$match = ''; |
|
832 |
// search for $variable followed by 0-n whitespace then by = then by 0-n whitespace |
|
833 |
// then either " or ' then 0-n characters then either " or ' followed by 0-n whitespace and ; |
|
834 |
// the variable name is returned in $match[1], the content in $match[3] |
|
835 |
if (preg_match('/(\$' .$search .')\s*=\s*("|\')(.*)\2\s*;/', $data, $match)) { |
|
836 |
if(strip_tags(trim($match[1])) == '$' .$search) { |
|
837 |
// variable name matches, return it?s value |
|
838 |
$match[3] = ($striptags == true) ? strip_tags($match[3]) : $match[3]; |
|
839 |
$match[3] = ($convert_to_entities == true) ? htmlentities($match[3]) : $match[3]; |
|
840 |
return $match[3]; |
|
841 |
} |
|
842 |
} |
|
843 |
return false; |
|
844 |
} |
|
845 |
} |
|
846 |
|
|
828 | 847 |
?> |
trunk/wb/languages/EN.php | ||
---|---|---|
388 | 388 |
$TEXT['RESTORE'] = 'Restore'; |
389 | 389 |
$TEXT['BACKUP_DATABASE'] = 'Backup Database'; |
390 | 390 |
$TEXT['RESTORE_DATABASE'] = 'Restore Database'; |
391 |
$TEXT['BACKUP_ALL_TABLES'] = 'Backup all tables in database'; |
|
392 |
$TEXT['BACKUP_WB_SPECIFIC'] = 'Backup only WB-specific tables'; |
|
393 | 391 |
$TEXT['BACKUP_MEDIA'] = 'Backup Media'; |
394 | 392 |
$TEXT['RESTORE_MEDIA'] = 'Restore Media'; |
395 | 393 |
$TEXT['ADMINISTRATION_TOOL'] = 'Administration tool'; |
... | ... | |
546 | 544 |
$MESSAGE['MOD_FORM']['EXCESS_SUBMISSIONS'] = 'Sorry, this form has been submitted too many times so far this hour. Please retry in the next hour.'; |
547 | 545 |
$MESSAGE['MOD_FORM']['INCORRECT_CAPTCHA'] = 'The verification number (also known as Captcha) that you entered is incorrect. If you are having problems reading the Captcha, please email: '.SERVER_EMAIL; |
548 | 546 |
|
549 |
$MESSAGE['MOD_RELOAD']['PLEASE_SELECT'] = 'Please selected which add-ons you would like to have reloaded'; |
|
550 |
$MESSAGE['MOD_RELOAD']['MODULES_RELOADED'] = 'Modules reloaded successfully'; |
|
551 |
$MESSAGE['MOD_RELOAD']['TEMPLATES_RELOADED'] = 'Templates reloaded successfully'; |
|
552 |
$MESSAGE['MOD_RELOAD']['LANGUAGES_RELOADED'] = 'Languages reloaded successfully'; |
|
553 |
|
|
554 | 547 |
?> |
trunk/wb/modules/backup/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> |
trunk/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-2008, 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 ADMIN TOOL: 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 |
|
|
34 |
?> |
trunk/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-2008, 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 |
DEUTSCHES SPRACHDATEI FUER DAS ADMIN TOOL: 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'] = 'Sichere alle Tabellen der Datenbank'; |
|
34 |
$MOD_BACKUP['BACKUP_WB_SPECIFIC'] = 'Sichere nur die von Website Baker generierten Tabellen der Datenbank'; |
|
35 |
$TEXT['BACKUP_DATABASE'] = 'Erstelle Datenbanksicherung'; |
|
36 |
|
|
37 |
?> |
trunk/wb/modules/reload/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> |
trunk/wb/modules/reload/languages/EN.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id$ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
7 |
Website Baker Project <http://www.websitebaker.org/> |
|
8 |
Copyright (C) 2004-2008, 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 ADMIN TOOL: RELOAD ADDINS |
|
26 |
----------------------------------------------------------------------------------------- |
|
27 |
*/ |
|
28 |
|
|
29 |
// Headings and text outputs |
|
30 |
$MOD_RELOAD['PLEASE_SELECT'] = 'Please selected which add-ons you would like to have reloaded'; |
|
31 |
$MOD_RELOAD['MODULES'] = 'Modules'; |
|
32 |
$MOD_RELOAD['TEMPLATES'] = 'Templates'; |
|
33 |
$MOD_RELOAD['LANGUAGES'] = 'Languages'; |
|
34 |
$MOD_RELOAD['MODULES_RELOADED'] = 'Modules reloaded successfully'; |
|
35 |
$MOD_RELOAD['TEMPLATES_RELOADED'] = 'Templates reloaded successfully'; |
|
36 |
$MOD_RELOAD['LANGUAGES_RELOADED'] = 'Languages reloaded successfully'; |
|
37 |
|
|
38 |
?> |
trunk/wb/modules/reload/languages/DE.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id$ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
7 |
Website Baker Project <http://www.websitebaker.org/> |
|
8 |
Copyright (C) 2004-2008, 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 |
DEUTSCHES SPRACHDATEI FUER DAS ADMIN TOOL: RELOAD ADDONS |
|
26 |
----------------------------------------------------------------------------------------- |
|
27 |
*/ |
|
28 |
|
|
29 |
// Deutsche Modulbeschreibung |
|
30 |
$module_description = 'Dieses Modul gleicht die Addon Informationen der Datenbank mit Ihrer WB Installation ab.'; |
|
31 |
|
|
32 |
// Textausgaben |
|
33 |
$MOD_RELOAD['PLEASE_SELECT'] = 'Wähle die Addons aus, deren Informationen mit der Datenbank abgeglichen werden sollen'; |
|
34 |
$MOD_RELOAD['MODULES'] = 'Module'; |
|
35 |
$MOD_RELOAD['TEMPLATES'] = 'Designvorlagen'; |
|
36 |
$MOD_RELOAD['LANGUAGES'] = 'Sprachdateien'; |
|
37 |
$MOD_RELOAD['MODULES_RELOADED'] = 'Module erfolgreich abgeglichen'; |
|
38 |
$MOD_RELOAD['TEMPLATES_RELOADED'] = 'Designvorlagen erfolgreich abgeglichen'; |
|
39 |
$MOD_RELOAD['LANGUAGES_RELOADED'] = 'Sprachdateien erfolgreich abgeglichen'; |
|
40 |
|
|
41 |
?> |
trunk/wb/modules/mail_filter/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/mail_filter/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/mail_filter/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/mail_filter/languages/'.LANGUAGE .'.php'); |
|
36 |
} |
|
29 | 37 |
// check if data was submitted |
30 | 38 |
if(isset($_POST['save_settings'])) { |
31 | 39 |
// get configuration settings |
... | ... | |
51 | 59 |
|
52 | 60 |
} else { |
53 | 61 |
// write out heading |
54 |
echo '<h2>Email Output Filter</h2>';
|
|
62 |
echo '<h2>' .$MOD_MAIL_FILTER['HEADING'] .'</h2>';
|
|
55 | 63 |
|
56 | 64 |
// include filter functions |
57 | 65 |
require_once(WB_PATH .'/modules/mail_filter/filter-routines.php'); |
... | ... | |
60 | 68 |
$data = get_mail_filter_settings(); |
61 | 69 |
|
62 | 70 |
// output the form with values from the database |
71 |
echo '<p>' .$MOD_MAIL_FILTER['HOWTO'] .'</p>'; |
|
63 | 72 |
?> |
64 |
|
|
65 |
<p>You can enable/disable the output filtering of email adresses with the options below. The Javascript mailto: encryption requires to enable the register_frontend_modfiles in your browser.</p> |
|
66 | 73 |
<form name="store_settings" action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post"> |
67 | 74 |
<table width="98%" cellspacing="0" cellpadding="5px" class="row_a"> |
68 |
<tr><td colspan="2"><strong>Basic Configuration:</strong></td></tr>
|
|
75 |
<tr><td colspan="2"><strong><?php echo $MOD_MAIL_FILTER['BASIC_CONF'];?>:</strong></td></tr>
|
|
69 | 76 |
<tr> |
70 |
<td width="35%">Email Output Filter:</td>
|
|
77 |
<td width="35%"><?php echo $MOD_MAIL_FILTER['EMAIL_FILTER'];?>:</td>
|
|
71 | 78 |
<td> |
72 | 79 |
<input type="radio" <?php echo ($data['email_filter']=='1') ?'checked="checked"' :'';?> |
73 |
name="email_filter" value="1">Enabled
|
|
80 |
name="email_filter" value="1"><?php echo $MOD_MAIL_FILTER['ENABLED'];?>
|
|
74 | 81 |
<input type="radio" <?php echo ($data['email_filter']=='0') ?'checked="checked"' :'';?> |
75 |
name="email_filter" value="0">Disabled
|
|
82 |
name="email_filter" value="0"><?php echo $MOD_MAIL_FILTER['DISABLED'];?>
|
|
76 | 83 |
</td> |
77 | 84 |
</tr> |
78 | 85 |
<tr> |
79 |
<td>Javascript Encryption (mailto):</td>
|
|
86 |
<td><?php echo $MOD_MAIL_FILTER['MAILTO_FILTER'];?>:</td>
|
|
80 | 87 |
<td> |
81 | 88 |
<input type="radio" <?php echo ($data['mailto_filter']=='1') ?'checked="checked"' :'';?> |
82 |
name="mailto_filter" value="1">Enabled
|
|
89 |
name="mailto_filter" value="1"><?php echo $MOD_MAIL_FILTER['ENABLED'];?>
|
|
83 | 90 |
<input type="radio" <?php echo (($data['mailto_filter'])=='0') ?'checked="checked"' :'';?> |
84 |
name="mailto_filter" value="0">Disabled
|
|
91 |
name="mailto_filter" value="0"><?php echo $MOD_MAIL_FILTER['DISABLED'];?>
|
|
85 | 92 |
</td> |
86 | 93 |
</tr> |
87 |
<tr><td colspan="2"><br /><strong>Email Replacements:</strong></td></tr>
|
|
94 |
<tr><td colspan="2"><br /><strong><?php echo $MOD_MAIL_FILTER['REPLACEMENT_CONF'];?>:</strong></td></tr>
|
|
88 | 95 |
<tr> |
89 |
<td>Replacement for "@":</td>
|
|
96 |
<td><?php echo $MOD_MAIL_FILTER['AT_REPLACEMENT'];?>:</td>
|
|
90 | 97 |
<td><input type="text" style="width: 160px" value="<?php echo $data['at_replacement'];?>" |
91 | 98 |
name="at_replacement"/></td> |
92 | 99 |
</tr> |
93 | 100 |
<tr> |
94 |
<td>Replacement for ".":</td>
|
|
101 |
<td><?php echo $MOD_MAIL_FILTER['DOT_REPLACEMENT'];?>:</td>
|
|
95 | 102 |
<td><input type="text" style="width: 160px" value="<?php echo $data['dot_replacement'];?>" |
96 | 103 |
name="dot_replacement"/></td> |
97 | 104 |
</tr> |
trunk/wb/modules/mail_filter/languages/EN.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id$ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
7 |
Website Baker Project <http://www.websitebaker.org/> |
|
8 |
Copyright (C) 2004-2008, 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 MAIL FILTER ADMIN TOOL |
|
26 |
----------------------------------------------------------------------------------------- |
|
27 |
*/ |
|
28 |
|
|
29 |
// Headings and text outputs |
|
30 |
$MOD_MAIL_FILTER['HEADING'] = 'Email Output Filter'; |
|
31 |
$MOD_MAIL_FILTER['HOWTO'] = 'You can enable/disable the output filtering of emails with the options below. For Javascript mailto: encryption you need to add the <em>register_frontend_modfiles(\'js\')</em> PHP function call to the index.php of your template.'; |
|
32 |
|
|
33 |
// Text and captions of form elements |
|
34 |
$MOD_MAIL_FILTER['BASIC_CONF'] = 'Basic Configuration'; |
|
35 |
$MOD_MAIL_FILTER['EMAIL_FILTER'] = 'Email Output Filter'; |
|
36 |
$MOD_MAIL_FILTER['MAILTO_FILTER'] = 'Javascript Encryption (mailto)'; |
|
37 |
$MOD_MAIL_FILTER['ENABLED'] = 'Enabled'; |
|
38 |
$MOD_MAIL_FILTER['DISABLED'] = 'Disabled'; |
|
39 |
|
|
40 |
$MOD_MAIL_FILTER['REPLACEMENT_CONF'] = 'Email Replacements'; |
|
41 |
$MOD_MAIL_FILTER['AT_REPLACEMENT'] = 'Replace "@" by'; |
|
42 |
$MOD_MAIL_FILTER['DOT_REPLACEMENT'] = 'Replace "." by'; |
|
43 |
|
|
44 |
?> |
trunk/wb/modules/mail_filter/languages/DE.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id$ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
7 |
Website Baker Project <http://www.websitebaker.org/> |
|
8 |
Copyright (C) 2004-2008, 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 |
DEUTSCHES SPRACHDATEI FUER DAS MAIL_FILTER ADMINISTRATIONS TOOL |
|
26 |
----------------------------------------------------------------------------------------- |
|
27 |
*/ |
|
28 |
|
|
29 |
// Deutsche Modulbeschreibung |
|
30 |
$module_description = 'Dieses Modul erlaubt Emailfilterung vor der Ausgabe (z.B. <em>name@email.de</em> --> <em>name(at)email(dot).de</em>).'; |
|
31 |
|
|
32 |
// ?berschriften und Textausgaben |
|
33 |
$MOD_MAIL_FILTER['HEADING'] = 'Email Ausgabe Filterung'; |
|
34 |
$MOD_MAIL_FILTER['HOWTO'] = 'Mit nachfolgenden Optionen kann die Emailfilterung ein- und ausgeschaltet werden. Um die Javascript mailto: Verschlüsselung zu aktivieren, muss die PHP Funktion <em>register_frontend_modfiles(\'js\')</em> in der index.php des Templates eingebunden werden.'; |
|
35 |
|
|
36 |
// Text and captions of form elements |
|
37 |
$MOD_MAIL_FILTER['BASIC_CONF'] = 'Grundeinstellungen'; |
|
38 |
$MOD_MAIL_FILTER['EMAIL_FILTER'] = 'Email Filterung'; |
|
39 |
$MOD_MAIL_FILTER['MAILTO_FILTER'] = 'Javascript Verschlüsselung (mailto)'; |
|
40 |
$MOD_MAIL_FILTER['ENABLED'] = 'Aktiviert'; |
|
41 |
$MOD_MAIL_FILTER['DISABLED'] = 'Ausgeschaltet'; |
|
42 |
|
|
43 |
$MOD_MAIL_FILTER['REPLACEMENT_CONF'] = 'Email Ersetzungen'; |
|
44 |
$MOD_MAIL_FILTER['AT_REPLACEMENT'] = 'Ersetzte "@" durch'; |
|
45 |
$MOD_MAIL_FILTER['DOT_REPLACEMENT'] = 'Ersetze "." durch'; |
|
46 |
|
|
47 |
?> |
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.