Subversion Repositories wpShopGermany4

Rev

Rev 7666 | Rev 8123 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7666 Rev 7944
Line 258... Line 258...
258
		</div>
258
		</div>
259
		<?php } ?>
259
		<?php } ?>
260
	
260
	
261
		<?php if ($this->view['pflicht']['strasse'] != '2') { ?>
261
		<?php if ($this->view['pflicht']['strasse'] != '2') { ?>
262
			
262
			
263
			<?php if ($this->view['pflicht']['wpsg_showNr'] === '1') { ?>
263
			<?php if (($this->view['pflicht']['wpsg_showNr']??0) === '1') { ?>
264
 
264
 
265
				<div class="wpsg_checkoutblock" id="wpsg_streetnr">
265
				<div class="wpsg_checkoutblock" id="wpsg_streetnr">
266
					<label for="strasse" class="street wpsg_checkout"><?php echo __('Straße:', 'wpsg'); ?>
266
					<label for="strasse" class="street wpsg_checkout"><?php echo __('Straße:', 'wpsg'); ?>
267
						<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
267
						<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
268
						<input class="<?php echo (($this->view['pflicht']['strasse'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("strasse", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="strasse" name="wpsg[register][strasse]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['data']['strasse'])); ?>" />
268
						<input class="<?php echo (($this->view['pflicht']['strasse'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("strasse", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="strasse" name="wpsg[register][strasse]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['data']['strasse'])); ?>" />
Line 362... Line 362...
362
                </label>
362
                </label>
363
            </div>
363
            </div>
364
            <div class="wpsg_clear"></div>
364
            <div class="wpsg_clear"></div>
365
        <?php } ?>
365
        <?php } ?>
366
        
366
        
-
 
367
        <?php if ($this->get_option('wpsg_mod_kundenverwaltung_mathcaptcha') === '1') {  
-
 
368
            
-
 
369
            $number1 = rand(0, 9);
-
 
370
            $number2 = rand(0, 10);
-
 
371
            $arOperator = ['+', '-', '*']; $operator = $arOperator[array_rand($arOperator)];
-
 
372
            
-
 
373
            $time = time(); 
-
 
374
                            
-
 
375
            switch ($operator) {
-
 
376
                
-
 
377
                case '+': $captcha_result = $number1 + $number2; break;
-
 
378
                case '-': $captcha_result = $number1 - $number2; break;
-
 
379
                case '*': $captcha_result = $number1 * $number2; break;
-
 
380
                
-
 
381
                default: throw new \Exception();
-
 
382
                
-
 
383
            }
-
 
384
            
-
 
385
            \set_transient('wpsg_mod_kundenverwaltung_mathcaptcha_result', $captcha_result);
-
 
386
            
-
 
387
            ?>
-
 
388
         
-
 
389
            <div class="wpsg_checkoutblock">
-
 
390
                <label for="wpsg_mod_kundenverwaltung_mathcaptcha" class="wpsg_register"><?php echo wpsg_translate(
-
 
391
                    __("Ergebnis aus #1# #2# #3#", "wpsg"),
-
 
392
                        $number1, $operator, $number2
-
 
393
	            ); ?>:
-
 
394
                    <span class="wpsg_required">*</span>
-
 
395
                </label>
-
 
396
                <input 
-
 
397
                        class="validate[required] wpsg_register <?php echo ((in_array("wpsg_mod_kundenverwaltung_mathcaptcha", (array)$this->view['error']))?'wpsg_error':''); ?>" 
-
 
398
                        type="text" id="wpsg_mod_kundenverwaltung_mathcaptcha" name="wpsg_mod_kundenverwaltung_mathcaptcha"
-
 
399
                        placeholder="SPAM Schutz"
-
 
400
                        value="" />
-
 
401
            </div>
-
 
402
            
-
 
403
        <?php } ?>
-
 
404
        
367
		<div class="wpsg_mandatoryfield_hint">
405
		<div class="wpsg_mandatoryfield_hint">
368
			<?php echo wpsg_translate(__('Mit #1# gekennzeichnete Felder sind Pflichtfelder.', 'wpsg'), '<span class="wpsg_required">*</span>'); ?>
406
			<?php echo wpsg_translate(__('Mit #1# gekennzeichnete Felder sind Pflichtfelder.', 'wpsg'), '<span class="wpsg_required">*</span>'); ?>
369
		</div>
407
		</div>
370
		
408
		
371
		<?php /* versteckte Sicherheitsabfrage als Bot-Schutz START*/ ?>
409
		<?php /* versteckte Sicherheitsabfrage als Bot-Schutz START*/ ?>