Adapt an exisiting php module in a CMS system. In actual module, there is a UI where user must enter raw script code which is stored in a mysql database.
There is also html and css raw code, but they are fixed and don't need to be edited and will keep hidden to the user.
It is also possible to recover and edit the script code previously stored in the database.
Need to modify this, so the user must enter some settings values.
The modified php module must construct the script using the entered settings and save into the database.
In the same way, it must be able to recover settings from the script stored in the database, allow user to modify them and save the modified script code.