} else { if ($mode == 'pretrackback') { $id = COM_applyFilter($_REQUEST['id']); if (empty($id)) { echo COM_refresh($_CONF['site_admin_url'] . '/index.php'); exit; } $type = ''; if (isset($_REQUEST['type'])) { $type = COM_applyFilter($_REQUEST['type']); } if (empty($type)) { $type = 'article'; } $fulltext = PLG_getItemInfo($type, $id, 'description'); $display .= COM_startBlock($LANG_TRB['select_url'], getHelpUrl() . '#trackback') . prepareAutodetect($type, $id, $fulltext) . COM_endBlock(); $display = COM_createHTMLDocument($display, array('pagetitle' => $LANG_TRB['trackback'])); } else { if ($mode == 'autodetect') { $id = COM_applyFilter($_REQUEST['id']); $url = $_REQUEST['url']; if (empty($id) || empty($url)) { echo COM_refresh($_CONF['site_admin_url'] . '/index.php'); exit; } $type = ''; if (isset($_REQUEST['type'])) { $type = COM_applyFilter($_REQUEST['type']); } if (empty($type)) { $type = 'article';
} else { if ($mode == 'pretrackback') { $id = COM_applyFilter($_REQUEST['id']); if (empty($id)) { echo COM_refresh($_CONF['site_admin_url'] . '/index.php'); exit; } $type = ''; if (isset($_REQUEST['type'])) { $type = COM_applyFilter($_REQUEST['type']); } if (empty($type)) { $type = 'article'; } $fulltext = PLG_getItemInfo($type, $id, 'description'); $display .= COM_siteHeader('menu', $LANG_TRB['trackback']) . COM_startBlock($LANG_TRB['select_url'], getHelpUrl() . '#trackback') . prepareAutodetect($type, $id, $fulltext) . COM_endBlock() . COM_siteFooter(); } else { if ($mode == 'autodetect') { $id = COM_applyFilter($_REQUEST['id']); $url = $_REQUEST['url']; if (empty($id) || empty($url)) { echo COM_refresh($_CONF['site_admin_url'] . '/index.php'); exit; } $type = ''; if (isset($_REQUEST['type'])) { $type = COM_applyFilter($_REQUEST['type']); } if (empty($type)) { $type = 'article'; }