I am working on CMS system using smarty. The one cms system could support multiple websites with multiple websites, multiple templates, multiple plugins and components…
Client can register and create his website using pre existing templates and choose components to display them on that template.
My Question is that How i can make those component secure or encrypted. so if client take his site away from the server to another server, he won’t able to use those module, components etc. or atleast these would expire after certain time..
I am going to create these components using smarty plugins.
Is there any solution in php, smarty ?
Instead of trying to secure the file itself, you may just make those templates private :
Set up the include_path of your php environment to a private folder, thus, your application can use the files in this folder, templates included.
Your users however can’t retrieve the files easily.