'".$time_unformatted."' AND item_format!='13'"); if ($totLiveItems>0) { $getProducts = mysql_query("SELECT SQL_CACHE * FROM protopenny_items WHERE start_time<'".$time_unformatted."' AND end_time>'".$time_unformatted."' AND item_format!='13' ORDER BY id DESC"); echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "<![CDATA[".$setts['site_name']." | ".$lang['ptp1026']."]]>\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "<![CDATA[".$setts['site_name']."]]>\n"; echo "\n"; echo "\n"; echo "en-us\n"; echo "\n"; echo "\n"; while ($products = mysql_fetch_array($getProducts)) { $formatDetails = getSqlRow("SELECT * FROM protopenny_item_formats WHERE id='".$products['item_format']."'"); $pictures_array = explode("^",$products['pictures_array']); $productPhoto = (($pictures_array[0]!="")?$pictures_array[0]:$setts['default_skin']."images/noimage.gif"); $categoryLabel = str_replace(" ","-",addSpecialChars($products['main_category_title'])); $categoryLabel = str_replace("&","and",$categoryLabel); $category = "Category > ".$products['main_category_title'].""; $rssCategory = $products['main_category_title']; echo "\n"; $products['start_time'] = date("Y-m-d H:i:s",$products['start_time']); $month = substr($products['start_time'],5,2); $day = substr($products['start_time'],8,2); $year = substr($products['start_time'],0,4); $hour = substr($products['start_time'],11,2); $min = substr($products['start_time'],14,2); $sec = substr($products['start_time'],17,2); $part = "-"; $part1 = ":"; $products['start_time'] = "$year$part$month$part$day $hour$part1$min$part1$sec"; $products['start_time'] = strtotime($products['start_time']); $products['start_time'] = date("r",$products['start_time']); echo "".$products['start_time']."\n"; echo "<![CDATA[".addSpecialChars($products['title'])."]]>\n"; $productLabel = str_replace(" ","-",html_entity_decode(unhtmlentities($products['title']),ENT_NOQUOTES,'UTF-8')); $productLabel = str_replace("&","and",$productLabel); $productDescription = strip_tags(addSpecialChars($products['description'])); $productDescription = str_replace(" "," ",$productDescription); $productDescription = str_replace("&","and",$productDescription); $productDescription = str_replace("","",$productDescription); $productDescriptionFinal = substr($productDescription,0,400); $productDescriptionDots = ((strlen($productDescription)>400)?"...":""); echo "*".$lang['ptp1027']." ".html_entity_decode(unhtmlentities($setts['currency_tru_symbol']),ENT_NOQUOTES,'UTF-8').(($products['current_price']>999)?number_format($products['current_price'],2,'.',','):$products['current_price'])." ".$lang['ptp2']." ".html_entity_decode(unhtmlentities($setts['currency_tru_symbol']),ENT_NOQUOTES,'UTF-8').(($products['retail_price']>999)?number_format($products['retail_price'],2,'.',','):$products['retail_price'])." | ".$category."
*".$lang['ptp1028'].": ".$lang['ptp1029']."
Description: ".$productDescriptionFinal.$productDescriptionDots."
\"".$formatDetails['name']."\"\"".$formatDetails['name']."\"]]>
\n"; echo "\n"; echo "".$rssCategory."\n"; echo "
\n"; } echo "
\n"; echo "
\n"; } $contents = ob_get_contents(); ob_end_clean(); echo replace_for_mod_rewrite($contents);?>