ProFTPd-Admin
ProFTPd-Admin copied to clipboard
postgres support
Hi,
any plans to add postgres support?
Best Regards, Kristijan
- copy https://github.com/ezSQL/ezSQL/blob/master/postgresql/ez_sql_postgresql.php into includes
- add $cfg['db_type'] == "postgresql" in AdminClass.php und config_example.php
- adapt the db schema and change proftpd config
- test
I also want postgres support, but your file does not work (although it is a good starting point). You cannot insert anything, because you use double quotes for the values (postgres uses single quotes) (ERROR: zero-length delimited identifier at or near """"). Also there are errors like this
SELECT COUNT(*) FROM groups
<b>Warning</b>: Creating default object from empty value in <b>/srv/www/proftpd-admin/includes/ez_sql_postgresql.php</b> on line <b>242</b>
This seems a bit more work than I outlined above. @punkkeks if you really need this get in touch with me and I will take a look at what can be done so mysql and postgres are both supported.