mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
4aad42d993
commit
a2f9eff861
1 changed files with 0 additions and 28 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue