Control Web Panel

Developers => New Modules => Topic started by: erm3nda on September 18, 2014, 05:20:58 PM

Title: Where to store data/settings
Post by: erm3nda on September 18, 2014, 05:20:58 PM
Where do i should put the data or the settings of my module.

Because the module uses external user autentication, i need to allow user to store the credentials.
A cool site is database, but i dont figure out on what table do i need to store.

Do i need to create a new table?
Can i use settings table?

Regards.
Title: Re: Where to store data/settings
Post by: Administrator on September 19, 2014, 01:18:17 PM
what kind of settings/date you need to store ?
Title: Re: Where to store data/settings
Post by: erm3nda on October 05, 2014, 05:15:05 PM
Basically the freedns manager credentials to avoid ask everytime.
Title: Re: Where to store data/settings
Post by: Administrator on October 05, 2014, 10:20:12 PM
freedns is NOT part of the CWP installation, this are standalone DNS servers.
http://freedns.centos-webpanel.com
Title: Re: Where to store data/settings
Post by: erm3nda on October 06, 2014, 05:40:50 AM
Im sorry.

Im the guy building freedns connector PLUGIN between cwp and freedns.
The idea is to auto-sync custom dns entries from local "named" to the freedns system, commit them.

I think deeply on that, im sure the database is the safest way to store such credentials. Don't?

Even if freedns is not part of, is a perfect pair for CWP on single IP hostings, also a good service even if you can run your own dns.

Regards.

EDITED: I've deciced to put it on database, also editable.