Template Conditionals
|
|
Author | Message |
This is essentially a more restrictive version of my PHP in Templates plugin. The restrictions aim to make this a "safe" plugin to use, that is, doesn't allow arbitrary PHP execution, but still gives the benefits of template conditionals.
You may notice that this still uses the "phptpl" name, and thus, is incompatible with the PHP in Templates plugin. Both plugins are very similar though. The differences between this and the other plugin are:
v1.0-1.3 of this plugin is based off v1.7 of PHP in Templates. As of v1.8, PHP 5.3 or later is required. This plugin can be used with the Admin Security plugin. "Safe expressions" This plugin implements "safe expression" checking; essentially, this does impose a bit of a performance hit, but, on the other hand, tries to ensure no "bad PHP" gets executed. For more information on what I consider to be a "safe expression", see my blog post here. For the purposes of this plugin, all valid PHP expressions are allowed, as long as they don't infringe on any of the following conditions:
(This post was last modified: 06-26-2023 10:42 PM by ZiNgA BuRgA.)
|
eldenroot
Junior Member
Posts: 21
Joined: Dec 2015 |
|
||
12-21-2015 07:15 PM |
|
ZiNgA BuRgA
|
|
||
12-22-2015 09:36 PM |
|
eldenroot
Junior Member
Posts: 21
Joined: Dec 2015 |
|
||
12-23-2015 06:41 AM |
|
])RAG()N
Junior Member
Posts: 1
Joined: Jan 2016 |
|
||
01-11-2016 11:26 AM |
|
Waleed
Junior Member
Posts: 34
Joined: Feb 2013 |
|
||
01-29-2016 04:07 AM |
|
ZiNgA BuRgA
|
|
||
01-29-2016 03:26 PM |
|
Destroy666
Junior Member
Posts: 27
Joined: Jul 2012 |
|
||
04-21-2016 11:42 AM |
|
ZiNgA BuRgA
|
|
||
06-22-2016 05:30 PM |
|
Destroy666
Junior Member
Posts: 27
Joined: Jul 2012 |
|
||
06-24-2016 11:16 PM |
|
xQu
Junior Member
Posts: 2
Joined: Aug 2016 |
|
|||
08-27-2016 05:56 AM |
|
« Next Oldest | Next Newest »
|