Changeset 1015
- Timestamp:
- 03/07/07 18:21:53 (2 years ago)
- Files:
-
- devel/lib/userlib.php (modified) (1 diff)
- devel/mod/file/lib.php (modified) (1 diff)
- devel/mod/friend/lib.php (modified) (1 diff)
- devel/units/users/userdetails_actions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/lib/userlib.php
r1011 r1015 317 317 318 318 // Verify that the user exists 319 if ($user = get_record_sql("select * from {$CFG->prefix}users where ident = {$user_id}")) ){319 if ($user = get_record_sql("select * from {$CFG->prefix}users where ident = {$user_id}")) { 320 320 321 321 // Call the event hook for all plugins to do their worst with the user's data devel/mod/file/lib.php
r1012 r1015 279 279 } 280 280 } 281 @unlink($CFG->dataroot."files/".substr($object->username,0,1)."/".$object->username ;281 @unlink($CFG->dataroot."files/".substr($object->username,0,1)."/".$object->username); 282 282 if ($folders = get_records_sql("select * from {$CFG->prefix}file_folders where owner = {$object->ident} or files_owner = {$object->ident}")) { 283 283 foreach($folders as $folder) { devel/mod/friend/lib.php
r1003 r1015 78 78 delete_records('friends','friend',$object->ident); 79 79 } 80 return $object; 80 81 } 81 82 devel/units/users/userdetails_actions.php
r1013 r1015 24 24 $messages[] = __gettext("Error: the user could not be deleted."); 25 25 } 26 $_SESSION['messages'] = $messages; 26 27 if ($_SESSION['userid'] == $page_owner) { 27 $_SESSION['messages'] = $messages;28 28 header("Location: {$CFG->wwwroot}login/logout.php"); 29 exit; 30 } else { 31 header("Location: {$CFG->wwwroot}devel/_userdetails/"); 29 32 exit; 30 33 }
