if (!$group->group_exists || $group->user_rank <= 0) { header("Location: user_group.php"); exit; } // INITIALIZE VARIABLES $is_error = 0; $result = 0; // DELETE GROUP if ($task == "delete_do" && $group->user_rank == 2) { $group->group_delete($group->group_info[group_id]); header("Location: user_group.php"); exit; } // DELETE PHOTO if ($task == "remove" && $group->groupowner_level_info['level_group_photo'] != 0) { $group->group_photo_delete(); $group->group_lastupdate(); } // UPLOAD PHOTO if ($task == "upload" && $group->groupowner_level_info['level_group_photo'] != 0) { $group->group_photo_upload("photo"); $is_error = $group->is_error; if ($is_error == 0) { $group->group_lastupdate(); } } if ($task == "dosave") { // GET BASIC GROUP INFO $old_group_title = $group->group_info['group_title']; $group->group_info['group_title'] = censor($_POST['group_title']); $group->group_info['group_desc'] = censor(str_replace("\r\n", "<br>", $_POST['group_desc']));