Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F1141158
smarty_internal_get_include_path.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
smarty_internal_get_include_path.php
View Options
<?php
/**
* Smarty read include path plugin
*
* @package Smarty
* @subpackage PluginsInternal
* @author Monte Ohrt
*/
/**
* Smarty Internal Read Include Path Class
*
* @package Smarty
* @subpackage PluginsInternal
*/
class
Smarty_Internal_Get_Include_Path
{
/**
* Return full file path from PHP include_path
*
* @param string $filepath filepath
* @return string|boolean full filepath or false
*/
public
static
function
getIncludePath
(
$filepath
)
{
static
$_include_path
=
null
;
if
(
function_exists
(
'stream_resolve_include_path'
))
{
// available since PHP 5.3.2
return
stream_resolve_include_path
(
$filepath
);
}
if
(
$_include_path
===
null
)
{
$_include_path
=
explode
(
PATH_SEPARATOR
,
get_include_path
());
}
foreach
(
$_include_path
as
$_path
)
{
if
(
file_exists
(
$_path
.
DS
.
$filepath
))
{
return
$_path
.
DS
.
$filepath
;
}
}
return
false
;
}
}
?>
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Jul 31, 03:03 (2 d, 18 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25811
Default Alt Text
smarty_internal_get_include_path.php (1 KB)
Attached To
rZEDHG ZedLegacy
Event Timeline
Log In to Comment