$message = "success"; } else { if ($_GET['object'] == "boxsnap") { BoxSnap::get_by_id($id)->delete(); $message = "success"; } else { if ($_GET['object'] == "wallpost") { WallPost::get_by_id($id)->delete(); $message = "success"; } else { if ($_GET['object'] == "likedboxsnap") { LikedBoxSnap::get_by_id($id)->delete(); $message = "success"; } else { if ($_GET['object'] == "wallpostcomment") { WallPostComment::get_by_id($id)->delete(); $message = "success"; } else { if ($_GET['object'] == "boxsnapcomment") { BoxSnapComment::get_by_id($id)->delete(); $message = "success"; } else { $message = "Object Specified Does Not Exists"; } } } } } } } else { $message = "No Object ID Specified";