translate php defines file into python
authorStephen Soltesz <soltesz@cs.princeton.edu>
Wed, 19 Nov 2008 01:24:40 +0000 (01:24 +0000)
committerStephen Soltesz <soltesz@cs.princeton.edu>
Wed, 19 Nov 2008 01:24:40 +0000 (01:24 +0000)
zabbix/getdefines.php [new file with mode: 0644]

diff --git a/zabbix/getdefines.php b/zabbix/getdefines.php
new file mode 100644 (file)
index 0000000..4d46d0f
--- /dev/null
@@ -0,0 +1,15 @@
+<?php
+
+$path = '/var/www/html/zabbix/include';
+set_include_path(get_include_path() . PATH_SEPARATOR . $path);
+
+require "defines.inc.php";
+
+$const = get_defined_constants(true);
+foreach ( $const['user'] as $k => $v ):
+       if ( is_int($v) ):
+               print "$k=$v\n";
+       endif;
+endforeach;
+
+?>