=========================== */ ?> isAdmin()) { $message = ''; $f = new feeds(); if (isset($_POST['add'], $_POST['url'])) { $credits =(isset($_POST['credits']))? 1 : 0; if ($f->addFeed($_POST['url'], $_POST['type'], $_POST['source'], $credits)) { $message = __('Feed added'); $messageStatus = 'exito'; } } if (isset($_GET['delete']) && is_numeric($_GET['delete'])) { if ($f->removeFeed((int)$_GET['delete'])) { $message = __('Feed deleted'); $messageStatus = 'error'; } } ?>