Пример #1
0
    include_once "./includes/products_functions.php";
    include_once "./includes/shopping_cart.php";
    $tax_rates = get_tax_rates();
}
$cms_page_code = "articles_list";
$script_name = "articles.php";
$current_page = get_custom_friendly_url("articles.php");
$category_id = get_param("category_id");
$search_category_id = get_param("search_category_id");
if (strlen($search_category_id)) {
    $category_id = $search_category_id;
}
$current_category_id = $category_id;
if ($category_id) {
    if (VA_Articles_Categories::check_exists($category_id)) {
        if (!VA_Articles_Categories::check_permissions($category_id, VIEW_CATEGORIES_ITEMS_PERM)) {
            header("Location: " . get_custom_friendly_url("user_login.php") . "?type_error=2");
            exit;
        }
    } else {
        echo NO_RECORDS_MSG;
        exit;
    }
} else {
    header("Location: " . get_custom_friendly_url("index.php"));
    exit;
}
$page_friendly_url = "";
$page_friendly_params = array("category_id");
// retrieve info about current category
$sql = " SELECT category_name,friendly_url,short_description, full_description, category_path, parent_category_id, ";