if (!defined('WEBPATH')) { include $_SERVER['DOCUMENT_ROOT'].'/system/default.php'; include ADMPATH.'includes/default.php'; } $attach = new Content_Attaches(); $del = Tools_Http::Get('del',true); if ($del) { $attach -> deleteAttach($del); } $gid = isset ($galleryID) ? $galleryID : Tools_Http::Get('gid',true); $attaches = $attach->getAttaches($gid); if (!empty($attaches)) { ?>