ob_start(); include '../includes/db_func.php'; include 'includes/classes/Admin.php'; include 'check_login.php'; include 'includes/classes/event.php'; include 'includes/classes/gallery.php'; $event = Event :: find($_GET['event_id'],0); $gallery = Gallery :: find($_GET['id'],0); if($_POST['delete']) { $gallery->delete(); header('Location:view_gallery.php?event_id='.$_GET['event_id']); } if($_POST['cancel']) { header('Location:view_gallery.php?event_id='.$_GET['event_id']); } $header_links = "Eevent Gallery | Delete "; $header_button_link= 'add_gallery.php'; include 'includes/header.php'; include 'includes/side_bar.php'; include 'includes/center_start.php'; ?>