Subversion-Projekte lars-tiefland.ci

Revision

Revision 1071 | Revision 1081 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
755 lars 1
<?php
2
 
3
/**
4
 *
5
 * @package WebanOS CI
6
 * @author Lars Tiefland <ltiefland@gmail.com>
7
 * @copyright 2016
8
 * @version $Rev: 744 $
9
 */
10
 
768 lars 11
$config["login/execute"] = array(
12
	array(
771 lars 13
		'field' => 'user',
768 lars 14
		'label' => 'E-Mail',
15
		'rules' => 'required|trim|valid_email',
16
		'errors' => array(
17
			'valid_email' => $GLOBALS['langstrings']['login']['invalid_email'],
18
			'required' => $GLOBALS['langstrings']['login']['invalid_email'],
19
			),
20
		),
21
	array(
22
		'field' => 'password',
23
		'label' => 'Passwort',
24
		'rules' => 'required|trim',
25
		'errors' => array('required' => 'Bitte geben Sie ein Paßwort ein!'),
26
		),
27
	);
28
 
1080 lars 29
if (isset($_POST['ID']) && $_POST['ID'])
30
{
31
	$config["user/save"] = array(
32
		array(
33
			'field' => 'user',
34
			'label' => 'Benutzername',
35
			'rules' => 'required|trim',
36
			'errors' => array('required' => 'Benutzername ist erforderlich!', ),
1071 lars 37
			),
1080 lars 38
		array(
39
			'field' => 'pwdcheck',
40
			'label' => 'Passwort',
41
			'rules' => 'matches[passwd]',
42
			'errors' => array(
43
				'required' => 'Bitte bestätigen Sie Ihr Paßwort!',
44
				'matches' => 'Die beiden Paßwörter stimmen nicht überein!',
45
				),
1045 lars 46
			),
1080 lars 47
		array(
48
			'field' => 'email',
49
			'label' => 'E-Mail',
50
			'rules' => 'trim|valid_email',
51
			'errors' => array('valid_email' =>
52
					'Bitte geben Sie eine gültige E-Mail-Adresse ein!', ),
53
			),
54
		);
1045 lars 55
 
1080 lars 56
}
57
else
58
{
59
	$config["user/save"] = array(
60
		array(
61
			'field' => 'user',
62
			'label' => 'Benutzername',
63
			'rules' => 'required|trim',
64
			'errors' => array('required' => 'Benutzername ist erforderlich!', ),
65
			),
66
		array(
67
			'field' => 'passwd',
68
			'label' => 'Passwort',
69
			'rules' => 'required|min_length[8]',
70
			'errors' => array(
71
				'required' => 'Bitte geben Sie ein Paßwort ein!',
72
				'min_length' => 'Das Paßwort muß mindestens 8 Zeichen lang sein!',
73
				),
74
			),
75
		array(
76
			'field' => 'pwdcheck',
77
			'label' => 'Passwort',
78
			'rules' => 'required|matches[passwd]',
79
			'errors' => array(
80
				'required' => 'Bitte bestätigen Sie Ihr Paßwort!',
81
				'matches' => 'Die beiden Paßwörter stimmen nicht überein!',
82
				),
83
			),
84
		array(
85
			'field' => 'email',
86
			'label' => 'E-Mail',
87
			'rules' => 'trim|valid_email',
88
			'errors' => array('valid_email' =>
89
					'Bitte geben Sie eine gültige E-Mail-Adresse ein!', ),
90
			),
91
		);
92
 
93
}
94
 
755 lars 95
?>