ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_sysedge.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".")."/Services/COPage/syntax_highlight/php";
3 if (!isset ($BEAUT_PATH)) return;
4 require_once("$BEAUT_PATH/Beautifier/HFile.php");
5  class HFile_sysedge extends HFile{
6  function HFile_sysedge(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // Empire SystemEdge
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "1";
15 $this->notrim = "0";
16 $this->perl = "0";
17 
18 // Colours
19 
20 $this->colours = array("blue", "purple", "gray", "brown", "blue");
21 $this->quotecolour = "blue";
22 $this->blockcommentcolour = "green";
23 $this->linecommentcolour = "green";
24 
25 // Indent Strings
26 
27 $this->indent = array();
28 $this->unindent = array();
29 
30 // String characters and delimiters
31 
32 $this->stringchars = array("'", "\"");
33 $this->delimiters = array();
34 $this->escchar = "";
35 
36 // Comment settings
37 
38 $this->linecommenton = array("#");
39 $this->blockcommenton = array("");
40 $this->blockcommentoff = array("");
41 
42 // Keywords (keyword mapping to colour number)
43 
44 $this->keywords = array(
45  "community" => "1",
46  "extension" => "1",
47  "emphistory" => "1",
48  "monitor" => "1",
49  "no_authen_traps" => "1",
50  "no_usergroup_table" => "1",
51  "no_who_table" => "1",
52  "no_remoteshell_group" => "1",
53  "no_serial_status" => "1",
54  "no_stat_nfs_filesystems" => "1",
55  "no_process_sets" => "1",
56  "no_actions" => "1",
57  "no_stat_floppy" => "1",
58  "no_process_group" => "1",
59  "no_probe_disks" => "1",
60  "ntregperf" => "1",
61  "syscontact" => "1",
62  "sysdescr" => "1",
63  "sysedge_plugin" => "1",
64  "syslocation" => "1",
65  "sysedge_debug" => "1",
66  "syslog_facility" => "1",
67  "syslog_logfile" => "1",
68  "watch" => "1",
69  "application" => "2",
70  "counter" => "2",
71  "filesystem" => "2",
72  "gauge" => "2",
73  "integer" => "2",
74  "ipaddress" => "2",
75  "internalipaddress" => "2",
76  "externalipaddress" => "2",
77  "key" => "2",
78  "logfile" => "2",
79  "ntevent" => "2",
80  "octetstring" => "2",
81  "objectid" => "2",
82  "oid" => "2",
83  "object" => "2",
84  "process" => "2",
85  "perfinstance" => "2",
86  "performance" => "2",
87  "read-write" => "2",
88  "read-only" => "2",
89  "readwrite" => "2",
90  "readonly" => "2",
91  "registry" => "2",
92  "security" => "2",
93  "system" => "2",
94  "traps" => "2",
95  "timeticks" => "2",
96  "value" => "2",
97  "absolute" => "3",
98  "all" => "3",
99  "error" => "3",
100  "failure" => "3",
101  "information" => "3",
102  "delta" => "3",
103  "devdevice" => "3",
104  "devmntpt" => "3",
105  "devbsize" => "3",
106  "devtblks" => "3",
107  "devfblks" => "3",
108  "devtfiles" => "3",
109  "devffiles" => "3",
110  "devmaxnamelen" => "3",
111  "devtype" => "3",
112  "devfsid" => "3",
113  "devunmount" => "3",
114  "devcapacity" => "3",
115  "devinodecapacity" => "3",
116  "success" => "3",
117  "warning" => "3",
118  "**" => "3",
119  "0x" => "3",
120  "nop" => "4",
121  "ne" => "4",
122  "gt" => "4",
123  "ge" => "4",
124  "le" => "4",
125  "lt" => "4",
126  "eq" => "4",
127  "=" => "4",
128  ">" => "4",
129  ">=" => "4",
130  "<" => "4",
131  "<=" => "4",
132  "!" => "4",
133  "!=" => "4",
134  "reg_dword" => "5",
135  "reg_sz" => "5",
136  "reg_expand_sz" => "5",
137  "reg_mult_sz" => "5",
138  "perf_counter_counter" => "5",
139  "perf_counter_rawcount" => "5",
140  "perf_counter_rawcount_hex" => "5",
141  "perf_sample_counter" => "5",
142  "perf_counter_timer" => "5",
143  "perf_counter_bulk_count" => "5",
144  "perf_counter_large_rawcount" => "5",
145  "perf_counter_large_rawcount_hex" => "5",
146  "perf_counter_timer_inv" => "5",
147  "perf_average_bulk" => "5",
148  "perf_100nsec_timer" => "5",
149  "perf_100nsec_timer_inv" => "5",
150  "perf_counter_multi_timer" => "5",
151  "perf_counter_multi_timer_inv" => "5",
152  "perf_100nsec_multi_timer" => "5",
153  "perf_100nsec_multi_timer_inv" => "5",
154  "perf_elapsed_time" => "5");
155 
156 // Special extensions
157 
158 // Each category can specify a PHP function that returns an altered
159 // version of the keyword.
160 
161 
162 
163 $this->linkscripts = array(
164  "1" => "donothing",
165  "2" => "donothing",
166  "3" => "donothing",
167  "4" => "donothing",
168  "5" => "donothing");
169 }
170 
171 
172 function donothing($keywordin)
173 {
174  return $keywordin;
175 }
176 
177 }?>