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.)
|
xboris2010
Junior Member
Posts: 14
Joined: Feb 2014 |
|
||
07-10-2015 12:58 AM |
|
ollie2015
Member
Posts: 90
Joined: Jan 2015 |
|
||
07-10-2015 03:47 AM |
|
tempo
Junior Member
Posts: 30
Joined: Aug 2012 |
|
||
07-12-2015 08:37 PM |
|
ZiNgA BuRgA
|
|
||
07-14-2015 02:19 PM |
|
iamkristrammell
Junior Member
Posts: 6
Joined: Nov 2015 |
|
||
11-07-2015 03:37 AM |
|
RateU
Administrator
Posts: 2,350
Joined: Mar 2010 |
|
||
11-07-2015 04:16 AM |
|
iamkristrammell
Junior Member
Posts: 6
Joined: Nov 2015 |
|
||
11-07-2015 04:37 AM |
|
RateU
Administrator
Posts: 2,350
Joined: Mar 2010 |
|
||
11-07-2015 04:44 AM |
|
iamkristrammell
Junior Member
Posts: 6
Joined: Nov 2015 |
|
||
11-07-2015 04:58 AM |
|
RateU
Administrator
Posts: 2,350
Joined: Mar 2010 |
|
||
11-07-2015 05:06 AM |
|
« Next Oldest | Next Newest »
|