Portions created by the Initial Developer are Copyright (C) 2008-2012 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane */ include "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; require_once "config.php"; if (permission_exists('content_view')) { //access granted } else { echo "access denied"; exit; } //get data from the db $rss_uuid = $_REQUEST["rss_uuid"]; $sql = ""; $sql .= "select * from v_rss "; $sql .= "where domain_uuid = '$domain_uuid' "; $sql .= "and rss_uuid = '$rss_uuid' "; //echo $sql; $prep_statement = $db->prepare(check_sql($sql)); $prep_statement->execute(); $result = $prep_statement->fetchAll(PDO::FETCH_NAMED); foreach ($result as &$row) { $rss_category = $row["rss_category"]; $rss_sub_category = $row["rss_sub_category"]; $rss_title = $row["rss_title"]; $rss_link = $row["rss_link"]; $rss_description = $row["rss_description"]; $rss_img = $row["rss_img"]; $rss_optional_1 = $row["rss_optional_1"]; $rss_optional_2 = $row["rss_optional_2"]; $rss_optional_3 = $row["rss_optional_3"]; $rss_optional_4 = $row["rss_optional_4"]; $rss_optional_5 = $row["rss_optional_5"]; $rss_add_date = $row["rss_add_date"]; $rss_add_user = $row["rss_add_user"]; $rss_group = $row["rss_group"]; $rss_order = $row["rss_order"]; //$rss_description = str_replace ("\r\n", "
", $rss_description); echo $rss_description; //return; break; //limit to 1 row } ?>