function delete_he_wall_action_info() { global $user, $page; $task = isset($_GET['task']) ? $_GET['task'] : false; $task = !$task && isset($_POST['task']) ? $_POST['task'] : $task; if ($page == 'music_ajax' && $task == 'deletesong') { $music_id = isset($_POST['music_id']) ? (int) $_POST['music_id'] : 0; he_wall::delete_music_action($user->user_info['user_id'], $music_id); } if ($page == 'user_video' && $task == 'delete') { $video_id = isset($_POST['video_id']) ? (int) $_POST['video_id'] : 0; he_wall::delete_video_action($user->user_info['user_id'], $video_id); } if ($page == 'album_ajax' && $task == 'album_delete') { $album_id = isset($_POST['album_id']) ? (int) $_POST['album_id'] : 0; he_wall::delete_wall_album($user->user_info['user_id'], $album_id); } if ($page == 'user_album' && $task == 'delete') { $album_id = isset($_GET['album_id']) ? (int) $_GET['album_id'] : 0; he_wall::delete_wall_album($user->user_info['user_id'], $album_id); } if ($page == 'user_album_update' && $task == 'doupdate') { $media_ids = isset($_POST['delete']) ? $_POST['delete'] : 0; he_wall::delete_wall_media($user->user_info['user_id'], $_POST['delete']); } if ($page == 'group_album_file' && $task == 'media_delete') { $group_id = isset($_GET['group_id']) ? (int) $_GET['group_id'] : 0; $media_id = isset($_GET['groupmedia_id']) ? (int) $_GET['groupmedia_id'] : 0; he_wall::delete_group_media($user->user_info['user_id'], $group_id, $media_id); } if ($page == 'user_group_edit' && $task == 'delete_do') { $group_id = isset($_POST['group_id']) ? (int) $_POST['group_id'] : 0; he_wall::delete_group_actions($group_id); } }