0) { $prod_link=generate_productlink_listen($id,$catid="",$subcatid="",$subcatlist="",$podcast=1); }else{ $prod_link=generate_productlink_listen($id); } ?> LearnOutLoud.com Audio - <?=$ttlNew?>

"); fclose($fp); //$title is Product Id in this case $select_product12="select fldProductImage from TBL_Product_Master where fldProductId=".$_GET['productid']; $rs_product12=$db->ReturnRs($select_product12) or die(mysql_error()); $row_product12=mysql_fetch_object($rs_product12); if($row_product12->fldProductImage!="") { $thumbnail12=$_SERVER['DOCUMENT_ROOT'].'/images/new_product/'.$row_product12->fldProductImage; $imagesize12612=$_SERVER['DOCUMENT_ROOT'].'/podcaststream/images/'.$row_product12->fldProductImage; if(!file_exists($_SERVER['DOCUMENT_ROOT'].'/podcaststream/images/'.$row_product12->fldProductImage)) { $convert12 = "convert -geometry 130X130! $thumbnail12 $imagesize12612"; print `$convert12`; }//if } ?>
controls_toggle
00:00

00:00
player_volume

ReturnRs($select_product); $row_product=mysql_fetch_object($rs_product); if($row_product->fldProductImage!="") { $thumbnail=$_SERVER['DOCUMENT_ROOT'].'/images/new_product/'.$row_product->fldProductImage; $imagesize126=$_SERVER['DOCUMENT_ROOT'].'/podcaststream/images/'.$row_product->fldProductImage; if(!file_exists($_SERVER['DOCUMENT_ROOT'].'/podcaststream/images/'.$row_product->fldProductImage)) { $convert = "convert -geometry 130X130! $thumbnail $imagesize126"; print `$convert`; }//if } ?>
controls_toggle
00:00

00:00
player_volume

ReturnRs($select_product); $row_product=mysql_fetch_object($rs_product); if($row_product->fldProductImage!="") { $thumbnail=$_SERVER['DOCUMENT_ROOT'].'/images/new_product/'.$row_product->fldProductImage; $imagesize126=$_SERVER['DOCUMENT_ROOT'].'/podcaststream/images/'.$row_product->fldProductImage; if(!file_exists($_SERVER['DOCUMENT_ROOT'].'/podcaststream/images/'.$row_product->fldProductImage)) { $convert = "convert -geometry 130X130! $thumbnail $imagesize126"; print `$convert`; }//if } $url=$_GET['url']; /* $write = fputs($fp, ""); fclose($fp); $flag=0; $filename=split("/",$_GET['url']); $file_name=$filename[count($filename)-1]; $url=$_GET['url']; $fp = fopen("playlist.xml", "a"); $write = fputs($fp, ""); fclose($fp); $data=" ".urlencode($url)." ".urlencode($tracktitle)." Noise 64 "; $fp = fopen("playlist.xml", "a"); $write = fputs($fp, $data); fclose($fp); $fp = fopen("playlist.xml", "a"); $write = fputs($fp, ""); fclose($fp); $flag=1; if($flag) echo ""; */ ?>
controls_toggle
00:00

00:00
player_volume

Advertisement

".$datas[0]." ".$datas[2]." ".$datas[1].", ".$datas[3]; } $pubdate .= $newdata; break; } } } function endElement($parser, $tagName) { global $image,$insideitem, $tag, $podcast_title, $description, $link,$pubdate,$subtitle,$download,$xmlcount1,$serverpath,$click,$serverpath; $xmlcount1++; // if($download!="") if ($tagName == "ITEM") { $fp = fopen("playlist.xml", "a"); if($download!="") { ?>
  • "; select_cat_subcatid1 ::". $select_cat_subcatid1; $rs_product_catsubcat1=mysql_query($select_cat_subcatid1); $row_product_catsubcat1=mysql_fetch_object($rs_product_catsubcat1); $cnt=mysql_num_rows($rs_product_catsubcat1); if($cnt>0 && $row_product_catsubcat1->fldCatSubCatId!="" && $row_product_catsubcat1->fldCatSubCatId!=0) { $prodcatid=$row_product_catsubcat1->fldCatSubCatId; $catname=$row_product_catsubcat1->fldCategoryName; } else { if($subcatlist!='' && $subcatlist!=0) $qry=" and fldCatSubCatId in ($subcatlist)"; $select_subcatid="select fldCatSubCatId from TBL_Product_Category_Detail where fldCatSubCatFlag=1 $qry and fldProductId='".$id."'"; //print"
    select_subcatid 3664::". $select_subcatid; $rs_product_subcat1=mysql_query($select_subcatid); $row_product_subcat1=mysql_fetch_row($rs_product_subcat1); $subcatCount=mysql_num_rows($rs_product_subcat1); //print "
    subcatCount ".$subcatCount.""; $prodsubcatid=$row_product_subcat1[0]; //New if(trim($prodsubcatid)=="") { $sql="select fldProductId from TBL_Product_Master where fldGenaratedProductId=".$id; $rs_prod_sub=mysql_query($sql); $rs_prod_sub1=mysql_fetch_row($rs_prod_sub); $prodid1=$rs_prod_sub1[0]; $select_subcatid="select fldCatSubCatId from TBL_Product_Category_Detail where fldCatSubCatFlag=1 and fldProductId='".$prodid1."'"; //print "
    3rd step ->".$select_subcatid.""; $rs_prod_sub1=mysql_query($select_subcatid); $rs_prod_sub2=mysql_fetch_row($rs_prod_sub1); $prodsubcatid=$rs_prod_sub2[0]; } //New end $select_subcat_cat="select fldCategoryId from TBL_Subcategory_Master where fldSubcategoryId='".$prodsubcatid."'"; //print "
    second level -> select_subcat_cat ::".$select_subcat_cat; $rs_product_subcat_cat1=mysql_query($select_subcat_cat); $row_product_subcat_cat1=mysql_fetch_object($rs_product_subcat_cat1); //$prodcatid=$row_product_subcat_cat1->fldCategoryId; $catname=get_cat_subcat_name("select fldCategoryName from TBL_Category_Master where fldCategoryId=".$row_product_subcat_cat1->fldCategoryId); $primCatname=$catname; //print "
    primary catname :: $catname"; $subcatname=get_cat_subcat_name("select fldSubcategoryName from TBL_Subcategory_Master where fldSubcategoryId=".$prodsubcatid); $primSubCatname=$subcatname; //print "
    primary subcatname :: $subcatname"; } if($cookies==0 && $sessionurl!='') { if($subcatid!='') $prodsubcatid=$subcatid; if($prodcatid=="") $prodcatid=$catid; if($podcast==1) $link=$serverpath."/productpage.php?cat=0&catid=".$prodcatid."&level=2&subcatid=".$prodsubcatid."&id=".$id."&nav=B&".$sessionurl; else if($podcast==2) $link=$serverpath."/productpage.php?cat=2&catid=".$prodcatid."&level=2&subcatid=".$prodsubcatid."&id=".$id."&nav=B&".$sessionurl; else if($podcast==3) $link=$serverpath."/productpage.php?cat=3&catid=".$prodcatid."&level=2&subcatid=".$prodsubcatid."&id=".$id."&nav=B&".$sessionurl; else if($podcast==4) $link=$serverpath."/productpage.php?cat=4&catid=".$prodcatid."&level=2&subcatid=".$prodsubcatid."&id=".$id."&nav=B&".$sessionurl; else $link=$serverpath."/productpage.php?cat=1&catid=".$prodcatid."&level=2&subcatid=".$prodsubcatid."&id=".$id."&nav=B&".$sessionurl; } else { if($podcast==1) $link=$serverpath.'/Podcast-Directory/'; else if($podcast==2) $link=$serverpath.'/Free-Audio-Video/'; else if($podcast==3) $link=$serverpath.'/Sale-Section/'; else if($podcast==4) $link=$serverpath.'/Downloads/'; else if($podcast==5) $link=$teachouthomepage.'/Browse/'; else if($podcast==6) $link=$serverpath.'/Audio-Books/'; else $link=$serverpath.'/Catalog/'; if($catid!='' && empty($primCatname) ) { $catname=get_cat_subcat_name("select fldCategoryName from TBL_Category_Master where fldCategoryId=".$catid); $link.=add_and_hyphen($catname); //print "
    on 3748 catname $catname :: $link"; } else { $link.=add_and_hyphen($catname); //print "
    on 3755 catname $catname :: $link"; } if($subcatid!='' && empty($primSubCatname)) { $subcatname=get_cat_subcat_name("select fldSubcategoryName from TBL_Subcategory_Master where fldSubcategoryId=".$subcatid); //print "
    on subcatname :: $subcatname"; } if($subcatname!='') $link.='/'.add_and_hyphen($subcatname); else $link.='/-'; $prodmname=get_cat_subcat_name("select fldProductTitle from TBL_Product_Master where fldProductId=".$id); //print "
    on 3777 prodmname:: $prodmname"; $link.='/'.remove_sp_chars($prodmname).'/'.$id; } return $link; } function get_cat_subcat_name($sql_listen) { $rs=mysql_query($sql_listen); $row=mysql_fetch_row($rs); return $row[0]; } function add_and_hyphen($name) { $cat=str_replace("&","and",$name); $cat=str_replace(" ","-",$cat); $cat=str_replace(",","_",$cat); return $cat; } function remove_sp_chars($title) { $title=str_replace("-","",$title); $title=str_replace(":","",$title); $title=str_replace("?","",$title); $title=str_replace("\"","",$title); $title=str_replace("'","",$title); $title=str_replace(".","",$title); $title=str_replace("#","",$title); $title=str_replace("/","",$title); $title=str_replace(",","",$title); $title=str_replace("=","",$title); $title=str_replace("$","",$title); $title=str_replace("%","",$title); $title=str_replace("^","",$title); $title=str_replace("~","",$title); $title=str_replace("`","",$title); $title=str_replace("(","",$title); $title=str_replace(")","",$title); $title=str_replace("<","",$title); $title=str_replace(">","",$title); $title=str_replace("+","",$title); $title=add_and_hyphen($title); return $title; } ?>