Пример #1
0
    $info["showPubDate"] = 'n';
}
$smarty->assign('name', $info["name"]);
$smarty->assign('description', $info["description"]);
$smarty->assign('url', $info["url"]);
$smarty->assign('refresh', $info["refresh"]);
$smarty->assign('showTitle', $info["showTitle"]);
$smarty->assign('showPubDate', $info["showPubDate"]);
if (isset($_REQUEST["refresh"])) {
    $rsslib->get_rss_module_content($_REQUEST["refresh"], true);
}
if (isset($_REQUEST["remove"])) {
    $area = 'delrss';
    if ($feature_ticketlib2 != 'y' or isset($_POST['daconfirm']) and isset($_SESSION["ticket_{$area}"])) {
        key_check($area);
        $rsslib->remove_rss_module($_REQUEST["remove"]);
    } else {
        key_get($area);
    }
}
if (isset($_REQUEST["save"])) {
    check_ticket('admin-rssmodules');
    if (isset($_REQUEST['showTitle']) == 'on') {
        $smarty->assign('showTitle', 'y');
        $info["showTitle"] = 'y';
    } else {
        $smarty->assign('showTitle', 'n');
        $info["showTitle"] = 'n';
    }
    if (isset($_REQUEST['showPubDate']) == 'on') {
        $smarty->assign('showPubDate', 'y');