* move permissions to top of page and use single database object
* use a domain array instead of session
* use a domain array instead of session
* add multiple line export feature
Exporting devices with multiple lines did not show headers for extra columns if the first device listed only had a single line and the other devices had multiple lines. This adds a feature to export multiple lines for devices using the "duplicate column feature" so that the import feature can detect and import all lines for the device.
* Update device_download.php