mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 01:54:49 +00:00
inc/util: remove an unused function
This commit is contained in:
parent
5ce3abb5b4
commit
dcabfa6452
@ -1441,22 +1441,6 @@ function safe_mkdir($path, $mode=0755) {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* make_dirs($path, $mode = 0755)
|
||||
* create directory tree recursively (mkdir -p)
|
||||
*/
|
||||
function make_dirs($path, $mode = 0755) {
|
||||
$base = '';
|
||||
foreach (explode('/', $path) as $dir) {
|
||||
$base .= "/$dir";
|
||||
if (!is_dir($base)) {
|
||||
if (!@mkdir($base, $mode))
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
* get_sysctl($names)
|
||||
* Get values of sysctl OID's listed in $names (accepts an array or a single
|
||||
@ -1940,5 +1924,3 @@ function post_redirect($page, $params) {
|
||||
print "</form><script type=\"text/javascript\">document.formredir.submit();</script>\n";
|
||||
print "</body></html>\n";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user