コード例 #1
0
ファイル: articles.php プロジェクト: hewu/blogwp
        }
        if ($_POST["gdsr_delete_articles_recc"] != "") {
            GDSRDatabase::delete_votes($ids, $_POST["gdsr_delete_articles_recc"], $gdsr_items, true);
        }
        if ($_POST["gdsr_delete_comments"] != "") {
            GDSRDatabase::delete_votes($ids, $_POST["gdsr_delete_comments"], $gdsr_items);
        }
        if ($_POST["gdsr_delete_comments_recc"] != "") {
            GDSRDatabase::delete_votes($ids, $_POST["gdsr_delete_comments_recc"], $gdsr_items, true);
        }
        if ($_POST["gdsr_review_rating"] != "") {
            $review = $_POST["gdsr_review_rating"];
            if ($_POST["gdsr_review_rating_decimal"] != "" && $_POST["gdsr_review_rating"] < $options["review_stars"]) {
                $review .= "." . $_POST["gdsr_review_rating_decimal"];
            }
            gdsrAdmDB::update_reviews($ids, $review, $gdsr_items);
        }
        if ($_POST["gdsr_timer_type"] != "") {
            gdsrAdmDB::update_restrictions($ids, $_POST["gdsr_timer_type"], GDSRHelper::timer_value($_POST["gdsr_timer_type"], $_POST["gdsr_timer_date_value"], $_POST["gdsr_timer_countdown_value"], $_POST["gdsr_timer_countdown_type"]));
        }
        if ($_POST["gdsr_timer_type_recc"] != "") {
            gdsrAdmDB::update_restrictions_thumbs($ids, $_POST["gdsr_timer_type_recc"], GDSRHelper::timer_value($_POST["gdsr_timer_type_recc"], $_POST["gdsr_timer_date_value_recc"], $_POST["gdsr_timer_countdown_value_recc"], $_POST["gdsr_timer_countdown_type_recc"]));
        }
        gdsrAdmDB::update_settings($ids, $_POST["gdsr_article_moderation"], $_POST["gdsr_article_voterules"], $_POST["gdsr_comments_moderation"], $_POST["gdsr_comments_voterules"], $_POST["gdsr_article_moderation_recc"], $_POST["gdsr_article_voterules_recc"], $_POST["gdsr_comments_moderation_recc"], $_POST["gdsr_comments_voterules_recc"], $gdsr_items);
        gdsrAdmDB::upgrade_integration($ids, $_POST["gdsr_integration_active_std"], $_POST["gdsr_integration_active_mur"], $_POST["gdsr_integration_mur"]);
    }
}
if ($filter_cats != '' || $filter_cats != '0') {
    $url .= "&amp;cat=" . $filter_cats;
}
if ($filter_date != '' || $filter_date != '0') {