Rain
Rain Team
|
_SESSION is disabled, and _POST should be as well.
A good solution is to use the method User::is_admin(), provided by the Rain Framework:
http://www.rainframework.com/User-Guide/Library/User/is_admin/
{if="is_admin()"} ... {/if}
Another good solution is to assign your variable:
$tpl->assign("is_admin", $_SESSION['is_admin'] );
Only if you really need to, you can remove _SESSION from the black list:
$black_list = array( '\$this', 'raintpl::', 'self::', '_SERVER', '_ENV', 'eval', 'exec', 'unlink', 'rmdir' );
raintpl::configure( "black_list", $black_list );
http://www.raintpl.com/Documentation/Documentation-for-PHP-developers/Methods/Configure/#black_list
Thanks
|