Revision 1823
Added by Luisehahne almost 13 years ago
| save.php | ||
|---|---|---|
| 29 | 29 |
// Create a javascript back link |
| 30 | 30 |
// $js_back = ADMIN_URL.'/users/index.php'; |
| 31 | 31 |
unset($aActionRequest['save']); |
| 32 |
|
|
| 32 | 33 |
$aActionRequest['modify']= 'change'; |
| 33 | 34 |
$database = WbDatabase::getInstance(); |
| 34 | 35 |
$bRetVal = 0; |
| ... | ... | |
| 164 | 165 |
$username_code = ''; |
| 165 | 166 |
} |
| 166 | 167 |
|
| 167 |
// Include the WB functions file |
|
| 168 |
if(!function_exists('media_filename')) { require(WB_PATH.'/framework/functions.php'); }
|
|
| 168 |
if(defined('HOME_FOLDERS') && HOME_FOLDERS) {
|
|
| 169 | 169 |
|
| 170 |
// Remove bad characters |
|
| 171 |
$sHomeFolder = WB_PATH.MEDIA_DIRECTORY.'/home/'.( media_filename($username) ); |
|
| 172 |
if ( sizeof(createFolderProtectFile( $sHomeFolder )) ) |
|
| 173 |
{
|
|
| 174 |
// msgQueue::add($MESSAGE['MEDIA_DIR_NOT_MADE']); |
|
| 170 |
// Include the WB functions file |
|
| 171 |
if(!function_exists('media_filename')) { require(WB_PATH.'/framework/functions.php'); }
|
|
| 172 |
|
|
| 173 |
// Remove bad characters |
|
| 174 |
$sHomeFolder = WB_PATH.MEDIA_DIRECTORY.'/home/'.( media_filename($username) ); |
|
| 175 |
if ( sizeof(createFolderProtectFile( $sHomeFolder )) ) |
|
| 176 |
{
|
|
| 177 |
// msgQueue::add($MESSAGE['MEDIA_DIR_NOT_MADE']); |
|
| 178 |
} |
|
| 175 | 179 |
} |
| 176 | 180 |
|
| 177 | 181 |
$sql = 'UPDATE `'.TABLE_PREFIX.'users` SET '; |
Also available in: Unified diff
! update user management, now home folder only will be created
if homefolders in settings are enabledPlugin
add save & back in user modify