Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F390658
block.php.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
882 B
Subscribers
None
block.php.php
View Options
<?php
/**
* Smarty plugin to execute PHP code
*
* @package Smarty
* @subpackage PluginsBlock
* @author Uwe Tews
*/
/**
* Smarty {php}{/php} block plugin
*
* @param string $content contents of the block
* @param object $smarty Smarty object
* @param boolean $ &$repeat repeat flag
* @param object $template template object
* @return string content re-formatted
*/
function
smarty_block_php
(
$params
,
$content
,
$smarty
,
&
$repeat
,
$template
)
{
// get security settings
if
(
$template
->
security
&&
isset
(
$smarty
->
security_handler
))
{
$sec_obj
=
$smarty
->
security_policy
;
}
else
{
$sec_obj
=
$smarty
;
}
if
(
is_null
(
$content
))
{
if
(!
$smarty
->
allow_php_tag
)
{
trigger_error
(
"{php} is deprecated, set allow_php_tag = true to enable"
,
E_USER_WARNING
);
}
return
;
}
eval
(
$content
);
return
''
;
}
?>
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Feb 22, 15:27 (1 h, 46 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25441
Default Alt Text
block.php.php (882 B)
Attached To
rZEDHG ZedLegacy
Event Timeline
Log In to Comment