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
View Replies:
ramonleenders replied on at Permalink Reply
ramonleenders
Hi there,

You mean actual PHP code that will be executed? So the user can do something like this:

<?php mkdir("/path/to/my/dir", 0700); ?>


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

concrete5 Environment Information

Block Designer

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.