mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 20:17:24 +08:00
add_func_getFullDirectory
This commit is contained in:
@@ -4416,4 +4416,12 @@ function saveSetting($prefix, $nameAndValue)
|
|||||||
sql_query($sql) or sqlerr(__FILE__, __LINE__);
|
sql_query($sql) or sqlerr(__FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getFullDirectory($dir)
|
||||||
|
{
|
||||||
|
if (!is_dir($dir)) {
|
||||||
|
$dir = ROOT_PATH . $dir;
|
||||||
|
}
|
||||||
|
return realpath($dir);
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user