Editable Code
Permalink Browser Info Environment
I need to add a block where the user can update php code. You only have static html block where it is locked from the user or code where it is outputed to the page
Type: | Discussion |
---|---|
Status: | Resolved |
You mean actual PHP code that will be executed? So the user can do something like this:
And perhaps change it later to /path/to instead. And all this will be executed? If so, then this will not be something I will be implementing. It's something very scary to do. Users may not have access within a block to execute ANY PHP code they want.. It's unsafe. Your site can be totally destroyed by users who are not familiar with PHP or even hackers hijacking a user account and doing stuff..
If it's something else entirely you're looking for, let me know! :)
Kind regards,
Ramon