Markers
Table of Contents
Application.php | 8 |
Beatnik.php | 35 |
Driver/ldap2dns.php | 54 |
Driver/pdnsgsql.php | 6 |
Driver/sql.php | 5 |
Driver.php | 22 |
Forms/Autogenerate.php | 3 |
Forms/DeleteRecord.php | 2 |
Forms/EditRecord.php | 5 |
Application.php
Type | Line | Description |
---|---|---|
8 | www.horde.org/) | |
11 | www.horde.org/licenses/gpl | |
46 | Get a list of domains to work with | |
49 | Jump to new domain | |
61 | Determine if the user should see basic or advanced options | |
74 | Initialize the page marker | |
90 | Run through every domain | |
104 | We are editing rather than adding if an ID was passed |
Beatnik.php
Type | Line | Description |
---|---|---|
5 | www.alkaloid.net> | |
8 | www.horde.org/licenses/gpl. | |
45 | Record Format: | |
46 | $recset is an array of fields. The field IDs are the keys. | |
47 | Each field is an array with the following keys: | |
48 | 'name': The short name of the field. This key is also used | |
49 | to reference the help system. | |
50 | 'description': Long description of the field | |
51 | 'type': Field type. Choose from any available from Horde_Form | |
52 | 'maxlength': Maximum field length. 0 is unlimited | |
53 | 'required': If true, the field will be required by the form | |
54 | 'infoset': one of 'basic' or 'advanced'. This is used to help keep | |
55 | the forms simple for non-power-users. If 'required' is true and | |
56 | 'infoset' is false then 'default' MUST be specified | |
57 | 'default': the default value of the field. | |
58 | 'index': Crude sort ordering. Lower means show higher in the group | |
62 | Attempt to return cached results. | |
75 | Empty for "new" entries | |
270 | If we have a current domain name, use it for the default val | |
370 | $recset[$recordtype] = array_merge($recset[$recordtype], $beatnik->driver->getRecDriverFields($recordtype)); | |
395 | Make sure we have a valid array with which to work | |
401 | Return the stored list of domains needing changes committed. | |
404 | Check if domain need committing | |
407 | Flag domain for committing | |
419 | Somebody sent something they should not have... | |
426 | This check has to come after the page has finished all work in case | |
427 | the status has changed due to a now-completed edit. | |
501 | Only attempt to delete records if the type is already defined | |
503 | Check for collisions and handle as requested | |
517 | Check every record in the template to see if the | |
518 | hostname matches | |
564 | Create a serial number of the ad-hoc standard YYYYMMDDNN | |
565 | where YYYYMMDD is the year/month/day of the last update to this | |
566 | odmain and NN is an incrementer to handle multiple updates in a | |
567 | given day. |
ldap2dns.php
Type | Line | Description |
---|---|---|
3 | www.alkaloid.net> | |
6 | www.horde.org/licenses/gpl. | |
119 | Record format | |
120 | $zonedata = | |
121 | zone array ( # numerically indexed | |
122 | zonename => zone domain name | |
123 | serial => zone SOA serial number | |
124 | refresh => zone SOA refresh | |
125 | retry => zone SOA retry | |
126 | expire => zone SOA expiry | |
127 | minimum => zone SOA minimum | |
128 | admin => zone contact admin | |
129 | zonemaster => SOA master NS | |
130 | ) | |
157 | This is not a field we are concerned with. Skip it | |
160 | Special case for 'dn' as it's not treated as an array | |
251 | Special case for A+PTR records | |
263 | Not a key we care about | |
266 | Special case for 'dn' as it's not treated as an array | |
273 | Only the first value is used. All other are ignored. | |
297 | Ensure we have a record ID before continuing | |
302 | Attribute used to identify objects | |
307 | FIXME: Add recursion | |
314 | Strip the array fluff and add the attribute | |
336 | Make sure we have a valid record type | |
355 | Special case for A+PTR Records | |
363 | Apply each piece of submitted data to the new/updated object | |
365 | Translate the key to an LDAP attribute | |
369 | Skip the DN or any other key we don't care about | |
374 | No value specified. Use the default | |
377 | Only populate the field if there is actual data | |
381 | $info[$field] was possibly unset | |
383 | If the record previously had data, we have to send an | |
384 | empty array to remove the attribute. However, always | |
385 | sending an empty attribute causes PHP to return with | |
386 | "Protocol Error". Hence this somewhat expensive check: | |
397 | No value available but required field | |
401 | Construct an ID for this object as a tuple of its data. | |
402 | This guarantees uniqueness. | |
406 | Create and populate the DN | |
409 | Special case for SOA records. | |
417 | Everything else gets full id for DN | |
421 | The domain is held in the session | |
423 | Prepare the DN suffix | |
427 | Check to see if this is a modification | |
429 | Get the base name of the old object | |
432 | We have an old DN but it doesn't match the new DN. | |
433 | Need to rename the old object | |
444 | Finish appending the DN suffix information | |
447 | Modify the existing record | |
454 | Must be a new record | |
455 | Append the suffix to the DN to make it fully qualified | |
457 | Create the necessary objectClass definitions | |
462 | An objectclass to hold the non-SOA record information |
pdnsgsql.php
Type | Line | Description |
---|---|---|
8 | www.horde.org/) | |
11 | www.horde.org/licenses/gpl. | |
283 | 24 hours | |
287 | 2 hours | |
291 | 1000 hours | |
295 | 2 days |
sql.php
Type | Line | Description |
---|---|---|
3 | www.horde.org/) | |
6 | www.horde.org/licenses/gpl. | |
191 | delete just one record | |
196 | delete all subrecords | |
208 | we are cuccesfull so, delete even soa |
Driver.php
Type | Line | Description |
---|---|---|
5 | www.alkaloid.net> | |
8 | www.horde.org/licenses/gpl. | |
85 | Sort the resulting list by domain name | |
86 | TODO: Allow sorting by other columns | |
125 | Search for the requested record id | |
129 | Found the record we're looking for | |
136 | Record found in nested loop. Break out of this one too. | |
142 | We may be editing the SOA. See if it matches | |
176 | Prune empty values from $row to aid in comparison | |
203 | Check to see if this is a new domain | |
205 | Make sure the user has permissions to add domains | |
210 | Create a dummy old domain for comparison purposes | |
216 | Check for permissions to edit the record in question | |
230 | Save the changes to the backend | |
231 | FIXME: Modify saveRecord() to return the new (possibly changed) ID of the | |
232 | record and then use that ID to update permissions | |
237 | Clear the commit flag (if set) | |
243 | Check to see if an SOA was just added or updated. | |
244 | If so, make it the current domain. | |
266 | No need to commit if the whole zone is gone | |
300 | Since we have more than one backend that uses SQL make sure | |
301 | all of them have a chance to inherit the site-wide config. |
Autogenerate.php
Type | Line | Description |
---|---|---|
3 | www.alkaloid.net> | |
6 | www.horde.org/licenses/gpl.php. | |
22 | Create an array of template => description for the enum |
DeleteRecord.php
Type | Line | Description |
---|---|---|
3 | www.alkaloid.net> | |
6 | www.horde.org/licenses/gpl.php. |
EditRecord.php
Type | Line | Description |
---|---|---|
3 | www.alkaloid.net> | |
6 | www.horde.org/licenses/gpl.php. | |
21 | Pre-load the field defaults on a new record | |
33 | Without an active domain, limit the form to creating a new zone. | |
42 | Do not show record-specific fields until a record type is chosen |