Source
17
17
** along with this program; if not, write to the Free Software
18
18
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
19
**/
20
20
21
21
22
22
require_once dirname(__FILE__).'/include/classes/user/CWebUser.php';
23
23
24
24
require_once dirname(__FILE__).'/include/config.inc.php';
25
25
require_once dirname(__FILE__).'/include/forms.inc.php';
26
26
27
-
$page['title'] = _('ZABBIX');
28
27
$page['file'] = 'index.php';
29
28
30
29
// VAR TYPE OPTIONAL FLAGS VALIDATION EXCEPTION
31
30
$fields = [
32
31
'name' => [T_ZBX_STR, O_NO, null, null, 'isset({enter}) && {enter} != "'.ZBX_GUEST_USER.'"', _('Username')],
33
32
'password' => [T_ZBX_STR, O_OPT, P_NO_TRIM, null, 'isset({enter}) && {enter} != "'.ZBX_GUEST_USER.'"'],
34
33
'sessionid' => [T_ZBX_STR, O_OPT, null, null, null],
35
34
'reconnect' => [T_ZBX_INT, O_OPT, P_SYS, null, null],
36
35
'enter' => [T_ZBX_STR, O_OPT, P_SYS, null, null],
37
36
'autologin' => [T_ZBX_INT, O_OPT, null, null, null],