Quote from: davo88 on March 27, 2024, 06:29:40 AMWow... thanks guys. That's a very handy little mod. It's great that TP has so many article options, but they can become a bit tedious when posting a stack of articles. I added a bit of info to the Article Defaults topic in case anyone else is wondering how it works.
QuoteEvaluates the given code as PHP.
The code being evaluated inherits the variable scope of the line on which the eval() call occurs. Any variables available at that line will be available for reading and modification in the evaluated code. However, all functions and classes defined will be defined in the global namespace. In other words, the compiler considers the evaluated code as if it were a separate included file.
Caution
The eval() language construct is very dangerous because it allows execution of arbitrary PHP code. Its use thus is discouraged. If you have carefully verified that there is no other option than to use this construct, pay special attention not to pass any user provided data into it without properly validating it beforehand.
Page created in 0.117 seconds with 24 queries.