ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_ldif.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_ldif extends HFile{
6  function HFile_ldif(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // LDIF for Netscape Directory Server
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  "aci" => "1",
46  "audio" => "1",
47  "binary" => "1",
48  "businesscategory" => "1",
49  "carlicense" => "1",
50  "changetype" => "1",
51  "cn" => "1",
52  "commonname" => "1",
53  "departmentNumber" => "1",
54  "description" => "1",
55  "dn" => "1",
56  "employeenumber" => "1",
57  "employeeType" => "1",
58  "facsimileTelephoneNumber" => "1",
59  "givenname" => "1",
60  "homePhone" => "1",
61  "homePostalAddress" => "1",
62  "initials" => "1",
63  "internationalIsdnNumber" => "1",
64  "jpegPhoto" => "1",
65  "l" => "1",
66  "labeledURI" => "1",
67  "locality" => "1",
68  "mail" => "1",
69  "mailalternateaddress" => "1",
70  "maildeliveryoption" => "1",
71  "mailhost" => "1",
72  "manager" => "1",
73  "mobile" => "1",
74  "objectclass" => "1",
75  "pager" => "1",
76  "photo" => "1",
77  "postOfficeBox" => "1",
78  "preferredDeliveryMethod" => "1",
79  "preferredLanguage" => "1",
80  "physicaldeliveryofficename" => "1",
81  "postaladdress" => "1",
82  "postalcode" => "1",
83  "registeredAddress" => "1",
84  "roleOccupant" => "1",
85  "roomnumber" => "1",
86  "secretary" => "1",
87  "seeAlso" => "1",
88  "sn" => "1",
89  "st" => "1",
90  "street" => "1",
91  "surname" => "1",
92  "telephonenumber" => "1",
93  "title" => "1",
94  "uid" => "1",
95  "userpassword" => "1",
96  "userCertificate" => "1",
97  "userSMIMECertificate" => "1",
98  "x500UniqueIdentifier" => "1",
99  "add" => "2",
100  "c" => "2",
101  "dc" => "2",
102  "delete" => "2",
103  "modify" => "2",
104  "o" => "2",
105  "ou" => "2",
106  "crypt" => "4",
107  "inetOrgPerson" => "4",
108  "mailRecipient" => "4",
109  "nsLicenseUser" => "4",
110  "organizationalPerson" => "4",
111  "organizationalRole" => "4",
112  "residentialPerson" => "4",
113  "person" => "4",
114  "SHA" => "4",
115  "top" => "4");
116 
117 // Special extensions
118 
119 // Each category can specify a PHP function that returns an altered
120 // version of the keyword.
121 
122 
123 
124 $this->linkscripts = array(
125  "1" => "donothing",
126  "2" => "donothing",
127  "4" => "donothing");
128 }
129 
130 
131 function donothing($keywordin)
132 {
133  return $keywordin;
134 }
135 
136 }?>