forked from mattiasgeniar/MoZBX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cookies.php
32 lines (28 loc) · 920 Bytes
/
cookies.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
// Zabbix JSON API url
if (isset($_POST['zabbixApi']))
$zabbixApi = $_POST['zabbixApi'];
elseif (isset($_COOKIE['zabbixApi']))
$zabbixApi = $_COOKIE['zabbixApi'];
else
$zabbixApi = $arrSettings["zabbixApiUrl"];
// Zabbix Username
if (isset($_POST['zabbixUsername']))
$zabbixUser = $_POST['zabbixUsername'];
elseif (isset($_COOKIE['zabbixUsername']))
$zabbixUser = $_COOKIE['zabbixUsername'];
else
$zabbixUser = $arrSettings["zabbixUsername"];
// Zabbix Password
if (isset($_POST['zabbixPassword']))
$zabbixPass = $_POST['zabbixPassword'];
elseif (isset($_COOKIE['zabbixPassword']))
$zabbixPass = $_COOKIE['zabbixPassword'];
else
$zabbixPass = $arrSettings["zabbixPassword"];
// Zabbix Login hash
if (isset($_COOKIE['zabbixAuthHash']))
$zabbixAuthHash = $_COOKIE['zabbixAuthHash'];
elseif (isset($_POST['zabbixAuthHash']))
$zabbixAuthHash = $_POST['zabbixAuthHash'];
?>