Revision 1818
Added by Luisehahne almost 13 years ago
| save.php | ||
|---|---|---|
| 164 | 164 |
$username_code = ''; |
| 165 | 165 |
} |
| 166 | 166 |
|
| 167 |
// Include the WB functions file |
|
| 168 |
if(!function_exists('media_filename')) { require(WB_PATH.'/framework/functions.php'); }
|
|
| 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']); |
|
| 175 |
} |
|
| 176 |
|
|
| 167 | 177 |
$sql = 'UPDATE `'.TABLE_PREFIX.'users` SET '; |
| 168 | 178 |
// Update the database |
| 169 | 179 |
if($password == "") {
|
Also available in: Unified diff
! update users, create username homefolder in media/homefolders