<?php echo '<a href="../../locations/browse_plugin.php?t=' . $config['plugins'][$_REQUEST['p']]['type'] . '&p=' . $_REQUEST['p'] . '" title="Back to Blog List"><img src="../../images/files_up.gif" width="19" height="18" alt="" border="0" align="absmiddle" />�Back to Blog List</a>' . "\n"; // Create Auth Object if ($config['plugins'][$_REQUEST['p']]['type'] == 'blogger') { require_once dirname(__FILE__) . '/class.basicauth.php'; $auth = new BasicAuth($config['plugins'][$_REQUEST['p']]['username'], $config['plugins'][$_REQUEST['p']]['password']); } else { require_once dirname(__FILE__) . '/class.wsse.php'; $auth = new WSSE($config['plugins'][$_REQUEST['p']]['username'], $config['plugins'][$_REQUEST['p']]['password']); } // Handle request to delete an entry before we load them all if (isset($_POST['delete_entry']) && strlen($_POST['delete_entry'])) { $del = $_POST['delete_entry']; $dr = new AtomRequest('DELETE', $del, $auth); $dr->exec(); $code = $dr->get_httpcode(); if ($code != 200 && $code != 204) { echo "<script language=\"JavaScript\" type=\"text/javascript\">\n"; echo "<!--\n"; echo "alert('Can\\'t delete that post - you might not have permission to do so.');\n"; echo "// -->\n"; echo "</script>\n"; } } $af = new AtomFeed(urldecode($_REQUEST['f']), $auth); $entries = $af->get_entries(); if (is_array($entries)) { foreach ($entries as $e => $entry) { $link = $entry->get_links('rel', 'service.edit'); $link = $link[0]['href']; $title = trim($entry->get_title('title'));