On Tue, Oct 20, 2009 at 4:55 AM, Kevin <[email protected]> wrote:
> Thought I had tried them all... However...
>
> This one works...
>
> [(math '{(time {now} "%Y")} - 1984' )]
You should also be able to do:
<(math '[(time {now} %Y)] -1984')>
or even
<(math '{(time {now} %Y)} -1984')>
The key to the different function syntax is found here:
http://www.boltwire.com/index.php?p=docs.handbook.functions. The key
is remembering the order they happen.
> Of course I'm used to...
>
> <?php echo date("Y") - 1984 ?>
>
> Thanks BTW Martin, got me to try some other options.
>
> Hmmm... not thinking of the ramifications or even if it were feasible,
> security etc... what about a php pass through...
>
> <php>echo date("Y") - 1984</php>
There is a php plugin which allows several php functions (more could
be added easily), but opening it up to some kind of eval processing
sounds very risky to me. I suppose we could set up a code.php
section, like a code.embed (or even possibly allow php in code.embed)
but it would be tricky and the security issues really scare me.
Not likely this will go into the core.
Cheers,
Dan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---