Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F391326
smarty_method_get_config_vars.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
704 B
Subscribers
None
smarty_method_get_config_vars.php
View Options
<?php
/**
* Smarty method Get_Config_Vars
*
* Returns a single or all global config variables
*
* @package Smarty
* @subpackage SmartyMethod
* @author Uwe Tews
*/
/**
* Returns a single or all global config variables
*/
/**
* Returns a single or all global config variables
*
* @param string $varname variable name or null
* @return string variable value or or array of variables
*/
function
Smarty_Method_Get_Config_Vars
(
$smarty
,
$varname
=
null
)
{
if
(
isset
(
$varname
))
{
if
(
isset
(
$smarty
->
config_vars
[
$varname
]))
{
return
$smarty
->
config_vars
[
$varname
];
}
else
{
return
''
;
}
}
else
{
return
$smarty
->
config_vars
;
}
}
?>
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Feb 22, 20:21 (23 h, 43 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25878
Default Alt Text
smarty_method_get_config_vars.php (704 B)
Attached To
rZED Zed
Event Timeline
Log In to Comment