summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/config.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/config.inc.php')
-rw-r--r--frontends/php/include/config.inc.php27
1 files changed, 12 insertions, 15 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php
index eba0fdf1..4a9e0f96 100644
--- a/frontends/php/include/config.inc.php
+++ b/frontends/php/include/config.inc.php
@@ -47,6 +47,7 @@ function VDP($var, $msg=null) { echo "DEBUG DUMP: "; if(isset($msg)) echo '"'.$m
require_once("include/classes/cvar.inc.php");
require_once("include/classes/cspan.inc.php");
require_once("include/classes/cimg.inc.php");
+ require_once("include/classes/ccolor.inc.php");
require_once("include/classes/clink.inc.php");
require_once("include/classes/chelp.inc.php");
require_once("include/classes/cbutton.inc.php");
@@ -185,6 +186,17 @@ function VDP($var, $msg=null) { echo "DEBUG DUMP: "; if(isset($msg)) echo '"'.$m
array_push($ZBX_MESSAGES, array('type' => 'error', 'message' => $msg));
}
+ function &asort_by_key(&$array, $key)
+ {
+ if(!is_array($array)) {
+ error('Incorrect type of asort_by_key');
+ return array();
+ }
+ $key = htmlspecialchars($key);
+ uasort($array, create_function('$a,$b', 'return $a[\''.$key.'\'] - $b[\''.$key.'\'];'));
+ return $array;
+ }
+
function fatal_error($msg)
{
include_once "include/page_header.php";
@@ -1273,21 +1285,6 @@ else
}
}
- function get_drawtype_description($drawtype)
- {
- if($drawtype==0)
- return "Line";
- if($drawtype==1)
- return "Filled region";
- if($drawtype==2)
- return "Bold line";
- if($drawtype==3)
- return "Dot";
- if($drawtype==4)
- return "Dashed line";
- return "Unknown";
- }
-
$SHOW_HINT_SCRIPT_ISERTTED = false; /* TODO rewrite with JS include */
function insert_showhint_javascript()