worked on renaming of user dirs

This commit is contained in:
skeeter 2000-08-27 12:24:57 +00:00
parent 154817313b
commit b32d3748a5

View File

@ -87,13 +87,15 @@
change_owner("calendar","webcal_entry","cal_create_by",$n_loginid,$lid); change_owner("calendar","webcal_entry","cal_create_by",$n_loginid,$lid);
change_owner("calendar","webcal_entry_user","cal_login",$n_loginid,$lid); change_owner("calendar","webcal_entry_user","cal_login",$n_loginid,$lid);
$sep = $phpgw->common->filesystem_separator(); if ($lid <> $n_loginid) {
$sep = $phpgw->common->filesystem_separator();
$basedir = $phpgw_info["server"]["server_root"] . $sep . "filemanager" . $sep $basedir = $phpgw_info["server"]["server_root"] . $sep . "filemanager" . $sep
. "users" . $sep; . "users" . $sep;
if (! @rename($basedir . $lid, $basedir . $n_loginid)) { if (! @rename($basedir . $lid, $basedir . $n_loginid)) {
$cd = 35; $cd = 35;
}
} }
} }