Project

General

Profile

« Previous | Next » 

Revision 1818

Added by Dietmar almost 12 years ago

  1. bugfix Ticket 10 usergroup show homefolder in media
    ! update users, create username homefolder in media/homefolders
  2. add mssing values in table settings by installing WebsiteBaker

View differences:

add.php
141 141
		{
142 142
            //if user is in administrator-group, get this group else just get the first one
143 143
            if($admin->is_group_match($groups_id,'1')) { $group_id = 1; $groups_id = '1'; }
144

  
145
            // Include the WB functions file
146
            if(!function_exists('media_filename')) { require(WB_PATH.'/framework/functions.php'); }
147

  
148
            // Remove bad characters
149
            $sHomeFolder = WB_PATH.MEDIA_DIRECTORY.'/home/'.( media_filename($username) );
150
            if ( sizeof(createFolderProtectFile( $sHomeFolder )) )
151
            {
152
            	msgQueue::add($MESSAGE['MEDIA_DIR_NOT_MADE'].' ('.basename($sHomeFolder).') ' );
153
            }
144 154
            // Inser the user into the database
145 155
			$sql  = 'INSERT INTO `'.TABLE_PREFIX.'users` SET '.
146 156
                    '`group_id`     = '.intval($group_id).', '.

Also available in: Unified diff