summaryrefslogtreecommitdiffstats
path: root/frontends/php/vtext.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-10-23 07:34:27 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-10-23 07:34:27 +0000
commit28a09ed13e41ddbe5e30d63e92a1f5fb3395ef89 (patch)
tree8281ccd48964ee0dd11c5ea689091fa3cef706fb /frontends/php/vtext.php
parent495799b2aa61aab23d74d7faa110a0cd09d59bf0 (diff)
downloadzabbix-28a09ed13e41ddbe5e30d63e92a1f5fb3395ef89.tar.gz
zabbix-28a09ed13e41ddbe5e30d63e92a1f5fb3395ef89.tar.xz
zabbix-28a09ed13e41ddbe5e30d63e92a1f5fb3395ef89.zip
- developed group permission system (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3371 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/vtext.php')
-rw-r--r--frontends/php/vtext.php27
1 files changed, 21 insertions, 6 deletions
diff --git a/frontends/php/vtext.php b/frontends/php/vtext.php
index 42d9bad1..5da4c61a 100644
--- a/frontends/php/vtext.php
+++ b/frontends/php/vtext.php
@@ -19,12 +19,24 @@
**/
?>
<?php
- include "include/config.inc.php";
+ require_once "include/config.inc.php";
-# PARAMETERS:
+ $page['file'] = 'vtext.php';
+ $page['type'] = PAGE_TYPE_IMAGE;
-# itemid
-# type
+include_once "include/page_header.php";
+
+?>
+<?php
+// VAR TYPE OPTIONAL FLAGS VALIDATION EXCEPTION
+ $fields=array(
+ "text"=> array(T_ZBX_STR, O_OPT, P_SYS, null, null),
+ "font"=> array(T_ZBX_INT, O_OPT, null, BETWEEN(1,5), null),
+ );
+
+ check_fields($fields);
+?>
+<?php
$text = get_request("text","");;
$font = get_request("font",3);
@@ -32,8 +44,6 @@
$width = ImageFontWidth($font) * strlen($text);
$height = ImageFontHeight($font);
- set_image_header();
-
$im = imagecreate($height,$width);
$backgroud_color = ImageColorAllocate($im,255,255,255);
@@ -45,3 +55,8 @@
ImageOut($im);
ImageDestroy($im);
?>
+<?php
+
+include_once "include/page_footer.php";
+
+?>