Remove unused chmod_group() function

Signed-off-by: canyonknight <canyonknight@gmail.com>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
canyonknight 2012-09-19 19:16:46 -04:00 committed by Lukas Fleischer
parent 4aad42d993
commit a2f9eff861

View file

@ -302,34 +302,6 @@ function rm_tree($dirname) {
return; return;
} }
# Recursive chmod to set group write permissions
#
function chmod_group($path) {
if (!is_dir($path))
return chmod($path, 0664);
$d = dir($path);
while ($f = $d->read()) {
if ($f != '.' && $f != '..') {
$fullpath = $path.'/'.$f;
if (is_link($fullpath))
continue;
elseif (!is_dir($fullpath)) {
if (!chmod($fullpath, 0664))
return FALSE;
}
elseif(!chmod_group($fullpath))
return FALSE;
}
}
$d->close();
if(chmod($path, 0775))
return TRUE;
else
return FALSE;
}
# obtain the uid given a Users.Username # obtain the uid given a Users.Username
# #
function uid_from_username($username="", $dbh=NULL) { function uid_from_username($username="", $dbh=NULL) {