Project

General

Profile

« Previous | Next » 

Revision 1713

Added by Dietmar about 12 years ago

! remove html markup from code to a template

View differences:

branches/2.8.x/CHANGELOG
13 13

  
14 14

  
15 15

  
16
29 Aug-2012 Build 1713 Dietmar Woellbrink (Luisehahne)
17
! remove html markup from code to a template
16 18
29 Aug-2012 Build 1712 Dietmar Woellbrink (Luisehahne)
17 19
! update folder admin/addons admin/skel/htt
18 20
29 Aug-2012 Build 1711 Dietmar Woellbrink (Luisehahne)
branches/2.8.x/wb/admin/interface/version.php
51 51

  
52 52
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
53 53
if(!defined('VERSION')) define('VERSION', '2.8.3');
54
if(!defined('REVISION')) define('REVISION', '1712');
54
if(!defined('REVISION')) define('REVISION', '1713');
55 55
if(!defined('SP')) define('SP', '');
branches/2.8.x/wb/modules/SecureFormSwitcher/htt/switchform.htt
1 1
<!-- BEGIN main_block -->
2
<script language="JavaScript" type="text/javascript">
3
/*<![CDATA[*/
4
if('{BACKLINK}'!=false) {
5
	redirect_to_page ('{BACKLINK}', 0);
6
}
7
/*]]>*/
8
</script>
9
   <table class="switch-ftan-info" summary="" cellpadding="4" cellspacing="0" border="0">
10
	<thead>
11
		<tr>
12
			<th colspan="3">Status: <span class="{FTAN_COLOR}">{TXT_HEADING}</span></th>
13
		</tr>
14
	</thead>
15
	<tbody>
16
		<tr>
17
			<td colspan="2" class="module-info"><p>{TEXT_INFO}</p></td>
18
		</tr>
19
		<tr>
20
			<td colspan="2"><p {FILE_FORMTAB_WARNING}>{FILE_FORMTAB_NOT_GOUND}</p></td>
21
		</tr>
22
	</tbody>
23
   </table>
24

  
2
<script src="{WB_URL}/include/jquery/overlib_mini.js" type="text/javascript"></script>
3
<div class="form-wrapper">
25 4
   <form class="secure_switch" name="store_settings" action="{SERVER_REQUEST_URI}" method="post" >
26 5
	{FTAN}
27 6
	<input type="hidden" name="{SUBMIT_TYPE}" value="true" />
28
	<div class="left-content">
29
	   <table class="switch-ftan-form" summary="" cellpadding="4" cellspacing="0" border="0">
30
		<tbody>
31
			<tr>
32
				<td width="20"><input type="radio" name="ftan_switch" id="ftan_switch" value=""{SELECTED}/></td>
33
				<td><label for="ftan_switch">{TXT_SUBMIT_FORM}</label></td>
34
			</tr>
35
			<tr>
36
				<td width="20"><input type="radio" name="ftan_switch" id="ftan_switch_tab" value="mtab"{SELECTED_TAB}/></td>
37
				<td><label for="ftan_switch_tab">{TXT_SUBMIT_FORMTAB}</label></td>
38
			</tr>
39
			<tr>
40
				<td colspan="2">&nbsp;</td>
41
			</tr>
42
<!-- BEGIN show_mtab_block -->
43
			<tr>
44
				<td colspan="2">&nbsp;</td>
45
			</tr>
46
			<tr>
47
				<td colspan="2">&nbsp;</td>
48
			</tr>
49
			<tr>
50
				<td colspan="2">&nbsp;</td>
51
			</tr>
52
			<tr>
53
				<td colspan="2">&nbsp;</td>
54
			</tr>
55
			<tr>
56
				<td colspan="2">&nbsp;</td>
57
			</tr>
58
<!-- END show_mtab_block -->
59
			<tr>
60
				<td colspan="2">
61
					<input type="submit" name="save_settings" value="{TEXT_SUBMIT}" />
62
					<input type="submit" name="cancel" value="{TEXT_CANCEL}" />
63
				</td>
64
			</tr>
65
		</tbody>
66
	   </table>
67
	</div>
68
	<div class="right-content">
69
	   <table class="switch-ftan-form" summary="" cellpadding="4" cellspacing="0" border="0">
70
		<tbody>
71
			<tr>
72
				<td colspan="2">
73
					<select name="fingerprint_with_ip_octets">
7
	<fieldset class="switch-ftan-form">
8
		<legend>Status: <b class="{FTAN_COLOR}">{TXT_HEADING}</b></legend>
9
		<p class="info">{TEXT_INFO}</p>
10
		<p class="{DISPLAY_MISSING_MTAB}" >{FILE_FORMTAB_NOT_FOUND}</p>
11
	</fieldset><br class="" />
12
	<fieldset class="switch-ftan-form left-content">
13
		<div class="content-ftan">
14
			<div class="mbox">
15
				<div>
16
				<input type="radio" name="ftan_switch" id="ftan_switch" value=""{SELECTED}/>
17
				<label for="ftan_switch">{TXT_SUBMIT_FORM}</label>
18
				</div>
19
			</div>
20
			<div class="mbox">
21
				<div>
22
				<input type="radio" name="ftan_switch" id="ftan_switch_tab" value="mtab"{SELECTED_TAB}/>
23
				<label for="ftan_switch_tab">{TXT_SUBMIT_FORMTAB}</label>
24
				</div>
25
			</div>
26
		</div>
27
	</fieldset>
28
	<fieldset class="switch-ftan-form right-content">
29
		<div  class="content-mftan">
30
			<div class="mbox">
31
				<div>
32
					<select style=" width :203px;" name="fingerprint_with_ip_octets" id="fingerprint_with_ip_octets">
74 33
						<option value="{USEIP_DEFAULT}"{USEIP_DEFAULT_SELECTED}>{TEXT_DEFAULT_SETTINGS}</option>
75
	<!-- BEGIN useip_mtab_loop -->
34
			<!-- BEGIN useip_mtab_loop -->
76 35
						<option value="{USEIP_VALUE}"{USEIP_SELECTED}>{USEIP_VALUE}</option>
77
	<!-- END useip_mtab_loop -->
36
			<!-- END useip_mtab_loop -->
78 37
					</select>
79
				</td>
80
				<td><label for="fingerprint_with_ip_octets">{TXT_SECFORM_USEIP}
81
						<a class="tooltip" href="#">? {TXT_SECFORM_USEIP_TOOLTIP}</a>
82
				</label></td>
83
			</tr>
38
					<label title="" for="fingerprint_with_ip_octets" {p_wb_secform_useip} style="background-image: url({MODULES_URL}/icons/help_16.png);" >
39
					{TXT_SECFORM_USEIP}</label>
40
				</div>
41
			</div>
84 42
	<!-- BEGIN mtab_block -->
85
			<tr>
86
				<td colspan="2"><input type="text" name="wb_secform_tokenname" id="wb_secform_tokenname" value="{WB_SECFORM_TOKENNAME}"/></td>
87
				<td><label for="wb_secform_tokenname">{TXT_SECFORM_TOKENNAME}
88
					<a class="tooltip" href="#">? {TXT_SECFORM_TOKENNAME_TOOLTIP}</a>
89
				</label></td>
90
			</tr>
91
			<tr>
92
				<td colspan="2"><input type="text" name="wb_secform_secret" id="wb_secform_secret" value="{WB_SECFORM_SECRET}"/></td>
93
				<td><label for="wb_secform_secret">{TXT_SECFORM_SECRET}
94
					<a class="tooltip" href="#">? {TXT_SECFORM_SECRET_TOOLTIP}</a>
95
				</label></td>
96
			</tr>
97
			<tr>
98
				<td colspan="2"><input type="text" name="wb_secform_secrettime" id="wb_secform_secrettime" value="{WB_SECFORM_SECRETTIME}"/></td>
99
				<td><label for="wb_secform_secrettime">{TXT_SECFORM_SECRETTIME}
100
					<a class="tooltip" href="#">? {TXT_SECFORM_SECRETTIME_TOOLTIP}</a>
101
				</label></td>
102
			</tr>
103
			<tr>
104
				<td colspan="2"><input type="text" name="wb_secform_timeout" id="wb_secform_timeout" value="{WB_SECFORM_TIMEOUT}"/></td>
105
				<td><label for="wb_secform_timeout">{TXT_SECFORM_TIMEOUT}
106
					<a class="tooltip" href="#">? {TXT_SECFORM_TIMEOUT_TOOLTIP}</a>
107
				</label></td>
108
			</tr>
109
			<tr>
110
				<td>
43
			<div class="mbox">
44
				<div>
45
				<input style=" width :200px;" type="text" name="wb_secform_tokenname" id="wb_secform_tokenname" value="{WB_SECFORM_TOKENNAME}"/>
46
				<label for="wb_secform_tokenname" {p_wb_secform_tokenname} style="background-image: url({MODULES_URL}/icons/help_16.png);">
47
				{TXT_SECFORM_TOKENNAME}
48
				</label>
49
				</div>
50
			</div>
51
			<div class="mbox">
52
				<div>
53
				<input style=" width :200px;" type="text" name="wb_secform_secret" id="wb_secform_secret" value="{WB_SECFORM_SECRET}"/>
54
				<label for="wb_secform_secret" {p_wb_secform_secret} style="background-image: url({MODULES_URL}/icons/help_16.png);">
55
				{TXT_SECFORM_SECRET}
56
				</label>
57
				</div>
58
			</div>
59
			<div class="mbox">
60
				<div>
61
				<input style=" width :200px;" type="text" name="wb_secform_secrettime" id="wb_secform_secrettime" value="{WB_SECFORM_SECRETTIME}"/>
62
				<label for="wb_secform_secrettime" {p_wb_secform_secrettime} style="background-image: url({MODULES_URL}/icons/help_16.png);">
63
				{TXT_SECFORM_SECRETTIME}
64
				</label>
65
				</div>
66
			</div>
67
			<div class="mbox">
68
				<div>
69
				<input style=" width :200px;" type="text" name="wb_secform_timeout" id="wb_secform_timeout" value="{WB_SECFORM_TIMEOUT}"/>
70
				<label for="wb_secform_timeout" {p_wb_secform_timeout} style="background-image: url({MODULES_URL}/icons/help_16.png);">
71
				{TXT_SECFORM_TIMEOUT}
72
				</label>
73
				</div>
74
			</div>
75
			<div class="mbox">
76
				<div>
77
				<span style=" width :102px;">
78
					<input type="radio" name="wb_secform_usefp" id="wb_secform_usefp_true" value="true" {USEFP_CHECKED_TRUE} />
111 79
					<label for="wb_secform_usefp_true">{TEXT_ENABLED}</label>
112
				</td>
113
				<td width="50">
114
					<input type="radio" value="true" id="wb_secform_usefp_true" name="wb_secform_usefp"{USEFP_CHECKED_TRUE} />
115
					<input type="radio" value="false" id="wb_secform_usefp_false" name="wb_secform_usefp"{USEFP_CHECKED_FALSE} />
116
				</td>
117
				<td><label for="wb_secform_usefp">{TXT_SECFORM_USEFP}
118
					<a class="tooltip" href="#">? {TXT_SECFORM_USEFP_TOOLTIP}</a>
119
				</label></td>
120
			</tr>
121
			<tr>
122
				<td>&nbsp;</td>
123
				<td>&nbsp;</td>
124
				<td>&nbsp;</td>
125
			</tr>
126

  
127
			<tr>
128
				<td colspan="4">&nbsp;</td>
129
			</tr>
130
			<tr>
131
				<td colspan="4">
132
					<input type="submit" name="save_settings_default" value="{TEXT_MSUBMIT}" />
133
				</td>
134
			</tr>
80
				</span>
81
				<span style=" width :102px;">
82
					<input type="radio" name="wb_secform_usefp" id="wb_secform_usefp_false" value="false" {USEFP_CHECKED_FALSE} />
83
					<label for="wb_secform_usefp_false">{TEXT_DISABLED}</label>
84
				</span>
85
				<label {p_wb_secform_usefp} style="background-image: url({MODULES_URL}/icons/help_16.png);">
86
				{TXT_SECFORM_USEFP}
87
				</label>
88
				</div>
89
			</div>
135 90
<!-- END mtab_block -->
136
		</tbody>
137
	   </table>
138
	</div>
91
		</div>
92
	</fieldset><br class="clear" />
139 93

  
140
   </form>
141
<!-- END main_block -->
94
	<fieldset class="switch-ftan-form left_submit">
95
		<div class="mbox">
96
			<label class="setting_name">&nbsp;</label>
97
			<div style="margin-top: 5px;">
98
				<input type="submit" name="save_settings" value="{TEXT_SUBMIT}" />
99
				<input type="button" name="cancel" onclick="javascript:window.location='{BACKLINK}';" value="{TEXT_CANCEL}" />
100
			</div>
101
		</div>
102
	</fieldset>
103
	<fieldset class="switch-ftan-form right_submit">
104
		<div class="mbox">
105
			<div class="{DISPLAY_RIGHT_SUBMIT}" style="margin-top: 5px;">
106
				<input type="submit" name="save_settings_default" value="{TEXT_MSUBMIT}" />
107
			</div>
108
		</div>
109
	</fieldset>
110

  
111
   </form><br class="clear" />
112
</div>
113

  
114
<!-- END main_block -->
branches/2.8.x/wb/modules/SecureFormSwitcher/tool.php
4 4
 * @category        modules
5 5
 * @package         SecureFormSwitcher
6 6
 * @author          WebsiteBaker Project, D Woellbrink
7
 * @copyright       2009-2011, Website Baker Org. e.V.
7
 * @copyright       2009-2012, WebsiteBaker Org. e.V.
8 8
 * @link			http://www.websitebaker2.org/
9 9
 * @license         http://www.gnu.org/licenses/gpl.html
10 10
 * @platform        WebsiteBaker 2.8.2
......
18 18
// Must include code to stop this file being access directly
19 19
if(defined('WB_PATH') == false)
20 20
{
21
	die('<head><title>Access denied</title></head><body><h2 style="color:red;margin:3em auto;text-align:center;">Cannot access this file directly</h2></body></html>');
21
	die('<h2 style="color:red;margin:3em auto;text-align:center;">Cannot access this file directly</h2>');
22 22
}
23 23

  
24 24
// load module language file
25 25
$mod_path = (dirname(__FILE__));
26
$mod_rel = str_replace('\\','/',str_replace(WB_PATH,'',$mod_path));
27
$sModulesUrl = WB_URL.$mod_rel;
28
//echo realpath($mod_rel);
26 29
require_once( $mod_path.'/language_load.php' );
27 30
// callback function for settings name
28 31
function converttoupper($val, $key, $vars) {
......
33 36
// create backlinks
34 37
$js_back =  ADMIN_URL.'/admintools/tool.php?tool=SecureFormSwitcher';
35 38
$backlink =  ADMIN_URL.'/admintools/index.php';
39

  
36 40
$FileNotFound = '&nbsp;';
37 41
// defaults settings
38 42
$default_cfg = array(
......
69 73
$action = 'show';
70 74
$action = isset($_POST['save_settings']) ? 'save_settings' : $action;
71 75
$action = isset($_POST['save_settings_default']) ? 'save_settings_default' : $action;
76
$action = isset($_POST['save_settings']) ? 'save_settings' : $action;
77
//$action = isset($_POST['cancel']) ? 'cancel' : $action;
72 78

  
73 79
switch ($action) :
74 80
	case 'save_settings':
......
90 96
		break;
91 97
endswitch;
92 98

  
93

  
94 99
switch ($action) :
95 100
	case 'save_settings':
96 101
	case 'save_settings_default':
......
125 130
$oSecureTpl->debug = false; // false, true
126 131
$oSecureTpl->set_block('page', 'main_block', 'main');
127 132

  
128
$checked = ($setting['secure_form_module']!='');
129

  
133
$checked  = ($setting['secure_form_module']!='');
134
$target   = ($checked) ? '.'.$setting['secure_form_module'] : '';
135
$target   = WB_PATH.'/framework/SecureForm'.$target.'.php';
130 136
$ftanMode = ($checked ? $SFS_TEXT['SECURE_FORM'] : $SFS_TEXT['SECURE_FORMMTAB']);
131
$target = ($checked) ? '.'.$setting['secure_form_module'] : '';
132
$target = WB_PATH.'/framework/SecureForm'.$target.'.php';
133 137

  
134 138
$SingleTabStatus = intval($checked==false);
135 139
$MultitabStatus = intval($checked==true);
136 140
$NotFoundClass = '';
141
$HiddenClass = 'none';
142
$FileNotFound = '';
137 143
if(!file_exists($MultitabTarget)) {
138 144
	$SingleTabStatus = true;
139 145
	$MultitabStatus = false;
140
	$FileNotFound = $SFS_TEXT['FILE_FORMTAB_NOT_GOUND'];
141
	$NotFoundClass = 'class="warning"';
142
} else {
146
	$FileNotFound = $SFS_TEXT['FILE_FORMTAB_NOT_FOUND'];
147
	$HiddenClass = 'warning';
143 148
}
144 149

  
145 150
// convert settings name to upper
......
148 153
$oSecureTpl->set_var($replace);
149 154
$oSecureTpl->set_var(array(
150 155
	'FTAN' => $admin->getFTAN(),
156
	'ADMIN_URL' => ADMIN_URL,
157
	'WB_URL' => WB_URL,
158
	'URL_VIEW' => WB_URL,
159
	'THEME_URL' => THEME_URL,
151 160
	'SERVER_REQUEST_URI' => $_SERVER['REQUEST_URI'],
152 161
	'TEXT_CANCEL' => $TEXT['CANCEL'],
153
	'BACKLINK' => (isset($_POST['cancel'])) ? $backlink : '#',
162
	'BACKLINK' => $backlink,
154 163
	'TEXT_INFO' => $SFS_TEXT['INFO'],
155 164
	'TEXT_SUBMIT' => $SFS_TEXT['SUBMIT'],
156 165
	'TEXT_MSUBMIT' => $SFS_TEXT['RESET_SETTINGS'],
......
158 167
	'SELECTED' => ( ($SingleTabStatus) ? ' checked="checked"' : ''),
159 168
	'SELECTED_TAB' => ( ($MultitabStatus) ? ' checked="checked"' : ''),
160 169
	'SUBMIT_TYPE' => ($checked ? 'multitab' : 'singletab'),
170
	'MODULES_URL' => $sModulesUrl,
161 171
	'MSELECTED' => '',
162 172
	'MSELECTED_TAB' => '',
173
	'DISPLAY_MISSING_MTAB' =>  $HiddenClass,
174
//	'DISPLAY_RIGHT_SUBMIT' =>  ( ($MultitabStatus) ? '' : 'none'),
163 175
	'FTAN_COLOR' => ($checked ? 'grey' : 'norm'),
164 176
	'TXT_SUBMIT_FORM' => $SFS_TEXT['SUBMIT_FORM'],
165 177
	'TXT_SUBMIT_FORMTAB' => $SFS_TEXT['SUBMIT_FORMTAB'],
166 178
	'FILE_FORMTAB_WARNING' => $NotFoundClass,
167
	'FILE_FORMTAB_NOT_GOUND' => $FileNotFound,
179
	'FILE_FORMTAB_NOT_FOUND' => $FileNotFound,
168 180
	)
169 181
);
170 182

  
171 183
$oSecureTpl->set_var(array(
172 184
		'USEIP_SELECTED' => '',
173
		'TXT_SECFORM_USEIP' => $SFS_TEXT['WB_SECFORM_USEIP'],
174
        'TXT_SECFORM_USEIP_TOOLTIP' => $SFS_TEXT['WB_SECFORM_USEIP_TOOLTIP'], // Tooltip
185
		'TXT_SECFORM_USEIP' => $CAPTION['WB_SECFORM_USEIP'],
175 186
		'TEXT_DEFAULT_SETTINGS' => $HEADING['DEFAULT_SETTINGS'],
176 187
		'USEIP_DEFAULT' => $default_cfg['fingerprint_with_ip_octets'],
177 188
		'USEFP_CHECKED_TRUE' => (($setting['wb_secform_usefp']=='true') ? ' checked="checked"' : ''),
......
180 191
	)
181 192
);
182 193

  
194
foreach($HELP as $key=>$value)
195
{
196
	$sHelp[$key] = $value;
197
	$oSecureTpl->set_var('p_'.strtolower($key),  p($sHelp[$key],$CAPTION[$key] ));
198
//	echo ' {p_'.strtolower($key).'}<br />';
199
}
200

  
183 201
$oSecureTpl->set_block('main_block', 'useip_mtab_loop', 'mtab_loop');
184 202
	for($x=0; $x < 5; $x++) {
185 203
		// iu value == default set first option with standardtext
......
204 222
$oSecureTpl->set_block('main_block', 'mtab_block', 'mtab');
205 223
if($checked) {
206 224
	$oSecureTpl->set_var(array(
207
			'TEXT_ENABLED' => $SFS_TEXT['ON_OFF'],
208
			'TXT_SECFORM_TOKENNAME' => $SFS_TEXT['WB_SECFORM_TOKENNAME'],
209
            'TXT_SECFORM_TOKENNAME_TOOLTIP' => $SFS_TEXT['WB_SECFORM_TOKENNAME_TOOLTIP'],
210
			'TXT_SECFORM_TIMEOUT' => $SFS_TEXT['WB_SECFORM_TIMEOUT'],
211
            'TXT_SECFORM_TIMEOUT_TOOLTIP' => $SFS_TEXT['WB_SECFORM_TIMEOUT_TOOLTIP'],
212
			'TXT_SECFORM_SECRETTIME' => $SFS_TEXT['WB_SECFORM_SECRETTIME'],
213
            'TXT_SECFORM_SECRETTIME_TOOLTIP' => $SFS_TEXT['WB_SECFORM_SECRETTIME_TOOLTIP'],
214
			'TXT_SECFORM_SECRET' => $SFS_TEXT['WB_SECFORM_SECRET'],
215
            'TXT_SECFORM_SECRET_TOOLTIP' => $SFS_TEXT['WB_SECFORM_SECRET_TOOLTIP'],
216
			'TXT_SECFORM_USEFP' => $SFS_TEXT['WB_SECFORM_USEFP'],
225
			'TEXT_ENABLED' => $SFS_TEXT['ON'],
226
			'TEXT_DISABLED' => $SFS_TEXT['OFF'],
227
			'TXT_SECFORM_TOKENNAME' => $CAPTION['WB_SECFORM_TOKENNAME'],
228
			'TXT_SECFORM_TIMEOUT' => $CAPTION['WB_SECFORM_TIMEOUT'],
229
			'TXT_SECFORM_SECRETTIME' => $CAPTION['WB_SECFORM_SECRETTIME'],
230
			'TXT_SECFORM_SECRET' => $CAPTION['WB_SECFORM_SECRET'],
231
			'TXT_SECFORM_USEFP' => $CAPTION['WB_SECFORM_USEFP'],
217 232
			'SECFORM_USEFP' => 'true',
218
            'TXT_SECFORM_USEFP_TOOLTIP' => $SFS_TEXT['WB_SECFORM_USEFP_TOOLTIP'],
219 233
		)
220 234
	);
235

  
221 236
	$oSecureTpl->parse('mtab','mtab_block', true);
222 237
	$oSecureTpl->parse('show_mtab','show_mtab_block', true);
223 238
} else  {
......
231 246
unset($oSecureTpl);
232 247
print $output;
233 248

  
249

  
250
/**
251
 * p()
252
 *
253
 * @param string $text
254
 * @param string $caption
255
 * @return
256
 */
257
function p($sTooltip,$sCaption)
258
{
259
	global $admin;
260
	$retVal  = 'onmouseover="return overlib(';
261
	$retVal .= '\''.$sTooltip.'\',';
262
	$retVal .= 'CAPTION,\''.$sCaption.'\',';
263
	$retVal .= 'FGCOLOR,\'#ffffff\',';
264
	$retVal .= 'BGCOLOR,\'#557c9e\',';
265
	$retVal .= 'BORDER,1,';
266
	$retVal .= 'WIDTH,';
267
	$retVal .= 'HEIGHT,';
268
	$retVal .= 'STICKY,';
269
	$retVal .= 'CAPTIONSIZE,\'13px\',';
270
	$retVal .= 'CLOSETEXT,\'X\',';
271
	$retVal .= 'CLOSESIZE,\'16px\',';
272
	$retVal .= 'CLOSECOLOR,\'#ffffff\',';
273
	$retVal .= 'TEXTSIZE,\'12px\',';
274
	$retVal .= 'VAUTO,';
275
	$retVal .= 'HAUTO,';
276
	$retVal .= 'MOUSEOFF,';
277
	$retVal .= 'WRAP,';
278
	$retVal .= 'CELLPAD,5';
279
	$retVal .= ')" onmouseout="return nd();"';
280
//	$retVal .= '';
281

  
282
	return $retVal;
283
}
branches/2.8.x/wb/modules/SecureFormSwitcher/languages/EN.php
3 3
 *
4 4
 * @category        modules
5 5
 * @package         SecureFormSwitcher
6
 * @author          WebsiteBaker Project
7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2011, Website Baker Org. e.V.
6
 * @author          Ryan Djurovich, WebsiteBaker Project
7
 * @copyright       2009-2012, WebsiteBaker Org. e.V.
9 8
 * @link			http://www.websitebaker2.org/
10 9
 * @license         http://www.gnu.org/licenses/gpl.html
11 10
 * @platform        WebsiteBaker 2.8.2
......
14 13
 * @filesource		$HeadURL$
15 14
 * @lastmodified    $Date$
16 15
 *
17
*/
16
 */
18 17

  
19 18
//Module description
20 19
$module_description = 'This module switch between the <strong>SingleTab SecureForm</strong> and <strong>MultiTab SecureForm</strong>.';
......
24 23
$SFS_TEXT['TXT_FTAN_SWITCH'] = 'Change to ';
25 24
$SFS_TEXT['SECURE_FORM'] = 'SingleTab SecureForm';
26 25
$SFS_TEXT['SECURE_FORMMTAB'] = 'Multitab SecureForm';
27
$SFS_TEXT['FILE_FORMTAB_NOT_GOUND'] = '<strong>Multitab not possible!<br />Needed file \'/framework/SecureForm.mtab.php\' not found!</strong><br />
26
$SFS_TEXT['FILE_FORMTAB_NOT_FOUND'] = '<strong>Multitab not possible!<br />Needed file \'/framework/SecureForm.mtab.php\' not found!</strong><br />
28 27
<span>You have to upload the file manually via FTP</span>';
29 28
$SFS_TEXT['SUBMIT_FORM'] = 'Single Tab (recommended)';
30 29
$SFS_TEXT['SUBMIT_FORMTAB'] = 'Multi Tab';
31 30
$SFS_TEXT['SUBMIT'] = 'Accept';
32 31
$SFS_TEXT['INFO'] = 'Please select if you want to use the default security settings or the settings for working with several WebsiteBaker instances in parallel browser tabs.';
33 32
$SFS_TEXT['RESET_SETTINGS'] = 'Default setting';
34
$SFS_TEXT['ON_OFF'] = 'On/OFF';
33
$SFS_TEXT['ON'] = 'ON';
34
$SFS_TEXT['OFF'] = 'OFF';
35 35

  
36
$CAPTION['WB_SECFORM_USEIP'] = 'IP-Blocks <i>(1-4, 0=no check)</i>';
37
$CAPTION['WB_SECFORM_TOKENNAME'] = 'Tokenname';
38
$CAPTION['WB_SECFORM_SECRET'] = 'Secret <i>(whatever you like)</i>';
39
$CAPTION['WB_SECFORM_SECRETTIME'] = 'Secrettime';
40
$CAPTION['WB_SECFORM_TIMEOUT'] = 'Timeout';
41
$CAPTION['WB_SECFORM_USEFP'] = 'Fingerprinting';
42

  
36 43
// Variablen fuer AdminTool Optionen
37
$SFS_TEXT['WB_SECFORM_USEIP'] = 'IP-Blocks (1-4, 0=no check)';
38
$SFS_TEXT['WB_SECFORM_USEIP_TOOLTIP'] = '<span class="custom help"><em>Help</em>
39
These number of segments of an IP address can be used for the fingerprint. "4" means the whole IP address (this makes sense e.g. for servers with a stable IP address). "2" is a good compromise, because at home there\'s often the 24-hour reset and therefore only the first two segments keep constant.
40
<ul>
41
<li>4= xxx.xxx.xxx.xxx</li>
42
<li>3= xxx.xxx.xxx</li>
43
<li>2= xxx.xxx</li>
44
<li>1= xxx</li>
45
<li>0= no usage of the IP</li></ul></span>';
46
$SFS_TEXT['WB_SECFORM_TOKENNAME'] = 'Tokenname';
47
$SFS_TEXT['WB_SECFORM_TOKENNAME_TOOLTIP'] = '<span class="custom help"><em>Help</em>The name of the token. Coll. a token is often called TAN.</span>';
48
$SFS_TEXT['WB_SECFORM_SECRET'] = 'Secret (whatever you like)';
49
$SFS_TEXT['WB_SECFORM_SECRET_TOOLTIP'] = '<span class="custom help"><em>Help</em>A random key, that is being used for creating a TAN. Recommend are at least 20 digits.</span>';
50
$SFS_TEXT['WB_SECFORM_SECRETTIME'] = 'Secrettime';
51
$SFS_TEXT['WB_SECFORM_SECRETTIME_TOOLTIP'] = '<span class="custom help"><em>Help</em>Time (in seconds), until the secret-key will be renewed.</span>';
52
$SFS_TEXT['WB_SECFORM_TIMEOUT'] = 'Timeout';
53
$SFS_TEXT['WB_SECFORM_TIMEOUT_TOOLTIP'] = '<span class="custom help"><em>Help</em>Time (in seconds), until the form-token is void.</span>';
54
$SFS_TEXT['WB_SECFORM_USEFP'] = 'Fingerprinting';
55
$SFS_TEXT['WB_SECFORM_USEFP_TOOLTIP'] = '<span class="custom help"><em>Help</em>Require OS and browser for every TAN-validation additionally to the IP-address.</span>';
44
$HELP['WB_SECFORM_USEIP'] = '<span>These number of segments of an IP address can be used for the fingerprint. ';
45
$HELP['WB_SECFORM_USEIP'] = '<b>4</b> means the whole IP address (this makes sense e.g. for servers with a stable IP address). ';
46
$HELP['WB_SECFORM_USEIP'] = '<b>2</b> is a good compromise, because at home there\'s often the 24-hour reset and therefore only the first two segments keep constant. ';
47
$HELP['WB_SECFORM_USEIP'] = '<ul><li>4= xxx.xxx.xxx.xxx</li><li>3= xxx.xxx.xxx</li><li>2= xxx.xxx</li><li>1= xxx</li><li>0= no usage of the IP</li></ul></span>';
48
$HELP['WB_SECFORM_TOKENNAME'] = '<span>The name of the token. Coll. a token is often called TAN.</span>';
49
$HELP['WB_SECFORM_SECRET'] = '<span>A random key, that is being used for creating a TAN. Recommend are at least 20 digits.</span>';
50
$HELP['WB_SECFORM_SECRETTIME'] = '<span>Time (in seconds), until the secret-key will be renewed.</span>';
51
$HELP['WB_SECFORM_TIMEOUT'] = '<span>Time (in seconds), until the form-token is void.</span>';
52
$HELP['WB_SECFORM_USEFP'] = '<span>Require OS and browser for every TAN-validation additionally to the IP-address.</span>';
branches/2.8.x/wb/modules/SecureFormSwitcher/languages/DE.php
3 3
 *
4 4
 * @category        modules
5 5
 * @package         SecureFormSwitcher
6
 * @author          WebsiteBaker Project
7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2011, Website Baker Org. e.V.
6
 * @author          Ryan Djurovich, WebsiteBaker Project
7
 * @copyright       2009-2012, WebsiteBaker Org. e.V.
9 8
 * @link			http://www.websitebaker2.org/
10 9
 * @license         http://www.gnu.org/licenses/gpl.html
11 10
 * @platform        WebsiteBaker 2.8.2
......
14 13
 * @filesource		$HeadURL$
15 14
 * @lastmodified    $Date$
16 15
 *
17
*/
16
 */
18 17

  
19 18
//Module description
20 19
$module_description = 'Dieses Modul wechselt zwischen <strong>SingleTab SecureForm</strong> und <strong>MultiTab SecureForm</strong>.';
......
24 23
$SFS_TEXT['TXT_FTAN_SWITCH'] = 'Wechsel zu ';
25 24
$SFS_TEXT['SECURE_FORM'] = 'SingleTab SecureForm';
26 25
$SFS_TEXT['SECURE_FORMMTAB'] = 'Multitab SecureForm';
27
$SFS_TEXT['FILE_FORMTAB_NOT_GOUND'] = '<strong>Multitab nicht ausführbar!<br />Benötigte Datei \'/framework/SecureForm.mtab.php\' nicht gefunden!</strong><br />
26
$SFS_TEXT['FILE_FORMTAB_NOT_FOUND'] = '<strong>Multitab nicht ausführbar!<br />Benötigte Datei \'/framework/SecureForm.mtab.php\' nicht gefunden!</strong><br />
28 27
<span>Sie müssen die Datei manuell über FTP hochspielen</span>';
29 28
$SFS_TEXT['SUBMIT_FORM'] = 'SingleTab (empfohlen)';
30 29
$SFS_TEXT['SUBMIT_FORMTAB'] = 'Multi Tab';
31 30
$SFS_TEXT['SUBMIT'] = 'Übernehmen';
32 31
$SFS_TEXT['INFO'] = 'Hier können Sie auswählen, ob die Standard-Sicherheitseinstellung oder die Sicherheitseinstellung zur Verwendung von mehreren WebsiteBaker-Instanzen in parallelen Browser-Tabs aktiviert werden soll.';
33 32
$SFS_TEXT['RESET_SETTINGS'] = 'Standardeinstellung';
34
$SFS_TEXT['ON_OFF'] = 'Ein/Aus';
33
$SFS_TEXT['ON'] = 'Ein';
34
$SFS_TEXT['OFF'] = 'Aus';
35 35

  
36
$CAPTION['WB_SECFORM_USEIP'] = 'IP-Blocks <i>(1-4, 0=kein Check)</i>';
37
$CAPTION['WB_SECFORM_TOKENNAME'] = 'Tokenname';
38
$CAPTION['WB_SECFORM_SECRET'] = 'Secret <i>(Beliebige Zeichen)</i>';
39
$CAPTION['WB_SECFORM_TIMEOUT'] = 'Timeout';
40
$CAPTION['WB_SECFORM_SECRETTIME'] = 'Secrettime';
41
$CAPTION['WB_SECFORM_USEFP'] = 'Fingerprinting';
42

  
36 43
// Variablen fuer AdminTool Optionen
37
$SFS_TEXT['WB_SECFORM_USEIP'] = 'IP-Blocks (1-4, 0=kein Check)';
38
$SFS_TEXT['WB_SECFORM_USEIP_TOOLTIP'] = '<span class="custom help"><em>Hilfe</em>
39
Diese Anzahl der Segmente einer IP-Adresse werden für den Fingerprint genutzt. "4" heißt die gesamte IP-Adresse (dies macht nur bei festen IPs wie z.B. Servern Sinn). "2" ist ein guter Kompromiss, da im Heimbereich durch 24-Stunden Resets nur die ersten beiden Segmente konstant bleiben. 
40
<ul>
41
<li>4= xxx.xxx.xxx.xxx</li>
42
<li>3= xxx.xxx.xxx</li>
43
<li>2= xxx.xxx</li>
44
<li>1= xxx</li>
45
<li>0=keine Nutzung der IP</li></ul></span>';
46
$SFS_TEXT['WB_SECFORM_TOKENNAME'] = 'Tokenname';
47
$SFS_TEXT['WB_SECFORM_TOKENNAME_TOOLTIP'] = '<span class="custom help"><em>Hilfe</em>Der Name des Tokens. Umgangssprachlich wird Token auch TAN genannt.</span>';
48
$SFS_TEXT['WB_SECFORM_SECRET'] = 'Secret (Beliebige Zeichen)';
49
$SFS_TEXT['WB_SECFORM_SECRET_TOOLTIP'] = '<span class="custom help"><em>Hilfe</em>Ein zufälliger Schlüssel, der für die Token-Erstellung verwendet wird. Empfohlen sind mind. 20 Zeichen.</span>';
50
$SFS_TEXT['WB_SECFORM_SECRETTIME'] = 'Secrettime';
51
$SFS_TEXT['WB_SECFORM_SECRETTIME_TOOLTIP'] = '<span class="custom help"><em>Hilfe</em>Zeit (in Sekunden), bis der Secret-Schlüssel sich erneuert.</span>';
52
$SFS_TEXT['WB_SECFORM_TIMEOUT'] = 'Timeout';
53
$SFS_TEXT['WB_SECFORM_TIMEOUT_TOOLTIP'] = '<span class="custom help"><em>Hilfe</em>Zeit (in Sekunden), bis ein Formular-Token nicht mehr gilt.</span>';
54
$SFS_TEXT['WB_SECFORM_USEFP'] = 'Fingerprinting';
55
$SFS_TEXT['WB_SECFORM_USEFP_TOOLTIP'] = '<span class="custom help"><em>Hilfe</em>Zusätzlich zur IP-Adresse wird Betriebssystem und Browser zu jeder TAN-Validierung hinzugezogen.</span>';
44
$HELP['WB_SECFORM_USEIP']  = 'Diese Anzahl der Segmente einer IP-Adresse werden für den Fingerprint genutzt. ';
45
$HELP['WB_SECFORM_USEIP'] .= '<b>4</b> heißt die gesamte IP-Adresse (dies macht nur bei festen IPs wie z.B. Servern Sinn). ';
46
$HELP['WB_SECFORM_USEIP'] .= '<b>2</b> ist ein guter Kompromiss, da im Heimbereich durch 24-Stunden Resets nur die ersten beiden Segmente konstant bleiben.';
47
$HELP['WB_SECFORM_USEIP'] .= '<ul><li>4= xxx.xxx.xxx.xxx</li><li>3= xxx.xxx.xxx</li><li>2= xxx.xxx</li><li>1= xxx</li><li>0=keine Nutzung der IP</li></ul>';
48

  
49
$HELP['WB_SECFORM_TOKENNAME'] = '<span>Der Name des Tokens. Umgangssprachlich wird Token auch TAN genannt.</span>';
50
$HELP['WB_SECFORM_SECRET'] = '<span>Ein zufälliger Schlüssel, der für die Token-Erstellung verwendet wird. Empfohlen sind mind. 20 Zeichen.</span>';
51
$HELP['WB_SECFORM_SECRETTIME'] = '<span>Zeit (in Sekunden), bis der Secret-Schlüssel sich erneuert.</span>';
52
$HELP['WB_SECFORM_TIMEOUT'] = '<span>Zeit (in Sekunden), bis ein Formular-Token nicht mehr gilt.</span>';
53
$HELP['WB_SECFORM_USEFP'] = '<span>Zusätzlich zur IP-Adresse wird Betriebssystem und Browser zu jeder TAN-Validierung hinzugezogen.</span>';
branches/2.8.x/wb/modules/SecureFormSwitcher/backend.css
1 1
@charset "UTF-8";
2 2

  
3
td.content form.secure_switch .left-content { width :49%; float :left; }
4
td.content form.secure_switch .right-content { width :49%; float :right; }
5

  
6
form.secure_switch { border :0px #484 solid; margin :1em 0; width :100%; }
7

  
8
table.switch-ftan-info,
9
table.switch-ftan-form { width :100%; background-color :transparent; }
10
table.switch-ftan-info tbody,
11
table.switch-ftan-form tbody { margin :10px 0; }
12
table.switch-ftan-form tbody td label { font-weight :bold; font-size :1.0em; color :#000000; }
13
table.switch-ftan-info thead tr th { margin :20px 0; font-weight :bold; font-size :1.4em; background-color :transparent; color :#000000; text-align :left; }
14

  
15
table.switch-ftan-info thead tr th span.norm { color : #003300; }
16
table.switch-ftan-info thead tr th span.grey { color : #666666; }
17

  
18
table.switch-ftan-form tbody td { height :30px; vertical-align :middle; }
19
table.switch-ftan-form tbody td input[type="submit"] { font-size :1.0em; width : 40%; }
20
table.switch-ftan-form tbody td input[type="text"] { font-size :1.0em; width : 100%; }
21
table.switch-ftan-form tbody td select { font-size :1.0em; width : 101.5%; }
22

  
23
.ok, .error { font-weight:bold; }
24
.ok { color:green; }
25
.error { color:red; }
26
.check { color:#555; }
27

  
28
.module-info { padding :10px; margin :0px auto; background :transparent; color :#000000; font-size :1.0em; }
29
.module-info p { margin :0.2em auto; font-size :100%; }
3
.form-wrapper { position :relative; overflow :hidden; padding :5px; }
4
form.secure_switch { border :0px #484 solid; margin :10px 0; width :100%; overflow :hidden; }
5
form.secure_switch .left_submit,
6
form.secure_switch .left-content { width :35%; float :left; }
7
form.secure_switch .right_submit,
8
form.secure_switch .right-content { width :58%; float :right; }
9
   form.secure_switch fieldset { border : 0px solid #666666; }
10
      form.secure_switch fieldset legend { font-weight :normal; font-size :150%; border :none; }
11
      form.secure_switch fieldset legend b { font-weight :normal; font-size :110%; border :none; }
12
   form.secure_switch fieldset label { font-weight :bold; font-size :1.0em; color :#333333; }
13
   form.secure_switch fieldset span label { padding-left : 6px; }
14
.left-content, .right-content { margin-bottom :-32767px; padding-bottom :32767px; }
15
   form.secure_switch fieldset label { background-position :3px center; background-repeat :no-repeat; padding :4px 0 0 20px; }
16
form.secure_switch div.mbox  { border :0px #484 solid; padding :1px 0; position :relative; margin :0 auto; display :block; overflow :auto; }
17
form.secure_switch div.mbox div { border :0px #484 solid; display :block; padding :1px 0; overflow :auto; }
18
i { font-weight :normal; }
19
.grey { color :#666666; }
20
.norm { color : #003366; }
21
/*
30 22
.warning { border-radius :10px; -khtml-border-radius :10px; -webkit-border-radius :10px; -moz-border-radius :10px; background :#fee; border :0.2em #844 solid; color :#990000; margin :0.2em auto; padding :0.63em; width :60%; text-align :center; }
31 23
.warning strong { font-size :1.2em; }
32 24
.warning span { font-size :1.2em; line-height :1.5em; color :#333333; }
33

  
34
/* Tooltip CSS */
35
.tooltip {
36
	border-bottom: 1px dotted #000000;
37
	color: #000000;
38
	outline: none;
39
	cursor: help;
40
	text-decoration: none;
41
	position: relative;
42
}
43
.tooltip span { margin-left: -999em; position: absolute; }
44
.tooltip:hover em {
45
	font-family: Candara, Tahoma, Geneva, sans-serif;
46
	font-size: 1.2em;
47
	font-weight: bold;
48
	display: block;
49
	padding: 0.2em 0 0.6em 0;
50
}
51
.tooltip:hover span {
52
	border-radius: 5px 5px;
53
	box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
54
	font-family: Calibri, Tahoma, Geneva, sans-serif;
55
	position: absolute;
56
	left: -15em;
57
	top: 2em;
58
	z-index: 99;
59
	margin-left: 1em;
60
	padding: 10px 10px 10px 50px;
61
	width: 250px;
62
}
63
.help {
64
	border: 1px solid #2bb0d7;
65
	background: #9fdaee url(htt/help.png) no-repeat left;
66
}
25
*/

Also available in: Unified diff