summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/config.inc.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-01-07 13:29:16 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-01-07 13:29:16 +0000
commitd82f4f660f480ecbc7eaf5e7fd42140803908cfb (patch)
treeb930c8c59d2e26f3304da5a234a5c8ca78f58458 /frontends/php/include/config.inc.php
parent5bbc8ab6911eeeb79bc6f88dab5f53394de3b630 (diff)
- [ZBX-246] fixed header error in Monitoring->slideshows (Artem)
- added history view in ackowledge screen (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5231 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/config.inc.php')
-rw-r--r--frontends/php/include/config.inc.php35
1 files changed, 13 insertions, 22 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php
index 2be1d66f..64996a32 100644
--- a/frontends/php/include/config.inc.php
+++ b/frontends/php/include/config.inc.php
@@ -251,21 +251,20 @@ function TODO($msg) { echo "TODO: ".$msg.SBR; } // DEBUG INFO!!!
define('ZBX_DISABLE_SUBNODES', 1);
}
- function get_current_nodeid( $forse_with_subnodes = null, $perm = null )
- {
+ function get_current_nodeid( $forse_with_subnodes = null, $perm = null ){
global $ZBX_CURRENT_NODEID, $ZBX_CURRENT_SUBNODES, $ZBX_WITH_SUBNODES;
- if ( !isset($ZBX_CURRENT_NODEID) ) init_nodes();
+ if(!isset($ZBX_CURRENT_NODEID))
+ init_nodes();
+
$result = ( is_show_subnodes($forse_with_subnodes) ? $ZBX_CURRENT_SUBNODES : $ZBX_CURRENT_NODEID );
- if ( !is_null($perm) )
- {
+ if(!is_null($perm)){
global $USER_DETAILS;
-
$result = get_accessible_nodes_by_user($USER_DETAILS, PERM_READ_ONLY, null, null, $result);
}
- return $result;
+ return $result;
}
function get_node_name_by_elid($id_val, $forse_with_subnodes = null)
@@ -700,8 +699,8 @@ function TODO($msg) { echo "TODO: ".$msg.SBR; } // DEBUG INFO!!!
if($msg_count > $msg_show) $msg_count = $msg_show;
- $msg_count = ($msg_count * $msg_font_size *2) + 2;
- $lst_error->AddOption('style','font-size: '.$msg_font_size.'pt; height: '.$msg_count.';');
+ $msg_count = ($msg_count * $msg_font_size *4) + 2;
+ $lst_error->AddOption('style','font-size: '.$msg_font_size.'pt; height: '.$msg_count.'px;');
//---
$lst_error->Show();
@@ -1608,9 +1607,7 @@ function TODO($msg) { echo "TODO: ".$msg.SBR; } // DEBUG INFO!!!
*
* author: Eugene Grigorjev
*/
- function get_cookie($name, $default_value=null)
- {
- global $_COOKIE;
+ function get_cookie($name, $default_value=null){
if(isset($_COOKIE[$name])) return $_COOKIE[$name];
// else
return $default_value;
@@ -1624,10 +1621,7 @@ function TODO($msg) { echo "TODO: ".$msg.SBR; } // DEBUG INFO!!!
*
* author: Eugene Grigorjev
*/
- function zbx_setcookie($name, $value, $time=null)
- {
- global $_COOKIE;
-
+ function zbx_setcookie($name, $value, $time=null){
setcookie($name, $value, isset($time) ? $time : (0));
$_COOKIE[$name] = $value;
}
@@ -1653,14 +1647,11 @@ function TODO($msg) { echo "TODO: ".$msg.SBR; } // DEBUG INFO!!!
*
* author: Eugene Grigorjev
*/
- function zbx_flush_post_cookies($unset=false)
- {
+ function zbx_flush_post_cookies($unset=false){
global $ZBX_PAGE_COOKIES;
- if(isset($ZBX_PAGE_COOKIES))
- {
- foreach($ZBX_PAGE_COOKIES as $cookie)
- {
+ if(isset($ZBX_PAGE_COOKIES)){
+ foreach($ZBX_PAGE_COOKIES as $cookie){
if($unset)
zbx_unsetcookie($cookie[0]);
else