ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_ldap.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_ldap extends HFile{
6  function HFile_ldap(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // LDAP
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", "brown");
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  "accountUnlockTime" => "1",
46  "administratorContactInfo" => "1",
47  "adminUrl" => "1",
48  "audio" => "1",
49  "binary" => "1",
50  "businesscategory" => "1",
51  "carlicense" => "1",
52  "changeLogMaximumAge" => "1",
53  "changeLogMaximumSize" => "1",
54  "changeNumber" => "1",
55  "changes" => "1",
56  "changeTime" => "1",
57  "changetype" => "1",
58  "cirBeginORC" => "1",
59  "cirBindCredentials" => "1",
60  "cirBindDn" => "1",
61  "cirHost" => "1",
62  "cirLastUpdateApplied" => "1",
63  "cirPort" => "1",
64  "cirReplicaRoot" => "1",
65  "cirSyncInterval" => "1",
66  "cirUpdateFailedat" => "1",
67  "cirUpdateSchedule" => "1",
68  "cirUsePersistentSearch" => "1",
69  "cirUseSsl" => "1",
70  "cn" => "1",
71  "commonname" => "1",
72  "deleteOldRdn" => "1",
73  "departmentNumber" => "1",
74  "description" => "1",
75  "destinationIndicator" => "1",
76  "dn" => "1",
77  "employeenumber" => "1",
78  "employeeType" => "1",
79  "facsimileTelephoneNumber" => "1",
80  "filterInfo" => "1",
81  "generation" => "1",
82  "givenname" => "1",
83  "homePhone" => "1",
84  "homePostalAddress" => "1",
85  "idxno" => "1",
86  "indexnumber" => "1",
87  "initials" => "1",
88  "installationTimeStamp" => "1",
89  "internationalIsdnNumber" => "1",
90  "jpegPhoto" => "1",
91  "l" => "1",
92  "labeledURI" => "1",
93  "locality" => "1",
94  "mail" => "1",
95  "mailAccessDomain" => "1",
96  "mailalternateaddress" => "1",
97  "mailAutoReplyMode" => "1",
98  "mailAutoReplyText" => "1",
99  "maildeliveryoption" => "1",
100  "mailEnhancedUniqueMember" => "1",
101  "mailForwardingAddress" => "1",
102  "mailhost" => "1",
103  "mailMessageStore" => "1",
104  "mailProgramDeliveryInfo" => "1",
105  "mailQuota" => "1",
106  "manager" => "1",
107  "member" => "1",
108  "memberCertificateDescription" => "1",
109  "memberURL" => "1",
110  "mgrpAllowedBroadcaster" => "1",
111  "mgrpAllowedDomain" => "1",
112  "mgrpDeliverTo" => "1",
113  "mgrpErrorsTo" => "1",
114  "mgrpModerator" => "1",
115  "mgrpMsgMaxSize" => "1",
116  "mgrpMsgRejectAction" => "1",
117  "mgrpMsgRejectText" => "1",
118  "mgrpRFC822MailMember" => "1",
119  "mobile" => "1",
120  "multiLineDescription" => "1",
121  "newRdn" => "1",
122  "newSuperior" => "1",
123  "nsLicensedFor" => "1",
124  "nsLicenseEndTime" => "1",
125  "nsLicenseStartTime" => "1",
126  "ntGroupAttributes" => "1",
127  "ntGroupCreateNewGroup" => "1",
128  "ntGroupDeleteGroup" => "1",
129  "ntGroupDomainId" => "1",
130  "ntGroupId" => "1",
131  "ntUserDomainId" => "1",
132  "ntUserAcctExpires" => "1",
133  "ntUserAuthFlags" => "1",
134  "ntUserBadPwCount" => "1",
135  "ntUserCodePage" => "1",
136  "ntUserComment" => "1",
137  "ntUserCountryCode" => "1",
138  "ntUserCreateNewAccount" => "1",
139  "ntUserDeleteAccount" => "1",
140  "ntUserFlags" => "1",
141  "ntUserHomeDir" => "1",
142  "ntUserHomeDirDrive" => "1",
143  "ntUserLastLogoff" => "1",
144  "ntUserLastLogon" => "1",
145  "ntUserLogonHours" => "1",
146  "ntUserLogonServer" => "1",
147  "ntUserMaxStorage" => "1",
148  "ntUserNumLogons" => "1",
149  "ntUserParms" => "1",
150  "ntUserPasswordExpired" => "1",
151  "ntUserPrimaryGroupId" => "1",
152  "ntUserPriv" => "1",
153  "ntUserProfile" => "1",
154  "ntUserScriptPath" => "1",
155  "ntUserUniqueId" => "1",
156  "ntUserUnitsPerWeek" => "1",
157  "ntUserUsrComment" => "1",
158  "ntUserWorkstations" => "1",
159  "objectclass" => "1",
160  "owner" => "1",
161  "pager" => "1",
162  "passwordChange" => "1",
163  "passwordCheckSyntax" => "1",
164  "passwordExp" => "1",
165  "passwordExpirationTime" => "1",
166  "passwordExpWarned" => "1",
167  "passwordHistory" => "1",
168  "passwordInHistory" => "1",
169  "passwordKeepHistory" => "1",
170  "passwordLockout" => "1",
171  "passwordLockoutDuration" => "1",
172  "passwordMaxAge" => "1",
173  "passwordMaxFailure" => "1",
174  "passwordMinLength" => "1",
175  "passwordResetDuration" => "1",
176  "passwordRetryCount" => "1",
177  "passwordUnlock" => "1",
178  "passwordWarning" => "1",
179  "photo" => "1",
180  "physicaldeliveryofficename" => "1",
181  "postaladdress" => "1",
182  "postalcode" => "1",
183  "postOfficeBox" => "1",
184  "preferredDeliveryMethod" => "1",
185  "preferredLanguage" => "1",
186  "ref" => "1",
187  "registeredAddress" => "1",
188  "replicaBeginOrc" => "1",
189  "replicaBindDn" => "1",
190  "replicaBindMethod" => "1",
191  "replicaCredentials" => "1",
192  "replicaEntryFilter" => "1",
193  "replicaHost" => "1",
194  "replicaNickName" => "1",
195  "replicaPort" => "1",
196  "replicaRoot" => "1",
197  "replicatedAttributeList" => "1",
198  "replicaUpdateFailedAt" => "1",
199  "replicaUpdateReplayed" => "1",
200  "replicaUpdateSchedule" => "1",
201  "replicaUseSSL" => "1",
202  "retryCountResetTime" => "1",
203  "roleOccupant" => "1",
204  "roomnumber" => "1",
205  "searchGuide" => "1",
206  "secretary" => "1",
207  "seeAlso" => "1",
208  "serverHostName" => "1",
209  "serverProductName" => "1",
210  "serverRoot" => "1",
211  "serverVersionNumber" => "1",
212  "sn" => "1",
213  "st" => "1",
214  "stateOrProvinceName" => "1",
215  "street" => "1",
216  "surname" => "1",
217  "targetDn" => "1",
218  "telephonenumber" => "1",
219  "teletexTerminalIdentifier" => "1",
220  "telexNumber" => "1",
221  "title" => "1",
222  "uid" => "1",
223  "uniqueMember" => "1",
224  "userpassword" => "1",
225  "userCertificate" => "1",
226  "userCertificate;binary" => "1",
227  "userSMIMECertificate" => "1",
228  "userSMIMECertificate;binary" => "1",
229  "x121Address" => "1",
230  "x500UniqueIdentifier" => "1",
231  "aci" => "2",
232  "add" => "2",
233  "c" => "2",
234  "dc" => "2",
235  "delete" => "2",
236  "ftp" => "2",
237  "ftps" => "2",
238  "http" => "2",
239  "https" => "2",
240  "ldap" => "2",
241  "ldaps" => "2",
242  "modify" => "2",
243  "nntp" => "2",
244  "nntps" => "2",
245  "o" => "2",
246  "ou" => "2",
247  "URL" => "2",
248  "changeLogEntry" => "4",
249  "cirReplicaSource" => "4",
250  "crypt" => "4",
251  "dcObject" => "4",
252  "epsbranch" => "4",
253  "groupOfCertificates" => "4",
254  "groupOfMailEnhancedUniqueNames" => "4",
255  "groupOfNames" => "4",
256  "groupOfUniqueNames" => "4",
257  "httpd" => "4",
258  "inetOrgPerson" => "4",
259  "LDAPReplica" => "4",
260  "LDAPServer" => "4",
261  "mailGroup" => "4",
262  "mailRecipient" => "4",
263  "netscapeServer" => "4",
264  "nsLicenseUser" => "4",
265  "ntGroup" => "4",
266  "ntUser" => "4",
267  "organization" => "4",
268  "organizationalPerson" => "4",
269  "organizationalRole" => "4",
270  "organizationalUnit" => "4",
271  "passwordObject" => "4",
272  "passwordPolicy" => "4",
273  "person" => "4",
274  "referral" => "4",
275  "residentialPerson" => "4",
276  "SHA" => "4",
277  "slapd" => "4",
278  "top" => "4");
279 
280 // Special extensions
281 
282 // Each category can specify a PHP function that returns an altered
283 // version of the keyword.
284 
285 
286 
287 $this->linkscripts = array(
288  "1" => "donothing",
289  "2" => "donothing",
290  "4" => "donothing");
291 }
292 
293 
294 function donothing($keywordin)
295 {
296  return $keywordin;
297 }
298 
299 }?>