Guten Abend
ich habe da ein problem mit sam bc (Sam Broadcaster)
bei sam gibt es die request funktion die auch wunderbar funktioniert nur bekomme ich es nicht in phpnuke als modul oder einfach nur mit einem footer und header zum laufen .
mit iframe kann ich es nicht machen da die request funktion dan nicht mehr funktioniert.
versuche ich einfach nur den header und footer aus der sam php zu löschen bleibt die seite auch leer.....
hier mal die page die ich gerne einbinden würde (habe alle php aus sam in einem ordner):
und der header:
under der footer
und so versuche ich es in phpnuke einzubinden:
hoffe ihr könnt mir helfen
mfg
ich habe da ein problem mit sam bc (Sam Broadcaster)
bei sam gibt es die request funktion die auch wunderbar funktioniert nur bekomme ich es nicht in phpnuke als modul oder einfach nur mit einem footer und header zum laufen .
mit iframe kann ich es nicht machen da die request funktion dan nicht mehr funktioniert.
versuche ich einfach nur den header und footer aus der sam php zu löschen bleibt die seite auch leer.....

hier mal die page die ich gerne einbinden würde (habe alle php aus sam in einem ordner):
Code:
<? require("config.php"); $where = " WHERE (songtype='S') AND (status=0) "; Def($start,0); Def($limit,50); Def($search,""); //########## BUILD SEARCH STRING ################ if(!empty($search)) { $words = Array(); $temp = explode(' ',$search); reset($temp); while(list($key,$val) = each($temp)) { $val = trim($val); if(!empty($val)) $words[] = $val; } $where2 = ""; reset($words); while(list($key,$val) = each($words)) { if(!empty($where2)) $where2 .= " OR "; $val = "%$val%"; $db->AddStr($val); $db->AddStr($val); $db->AddStr($val); $where2 .= " (title like :val1) OR (artist like :val2) OR (album like :val3) "; } $where .= "AND ($where2) "; } if((isset($letter)) && (!$letter=="")) { $nextletter = chr(ord($letter)+1); if($letter=='0') $where .= " AND NOT((artist>='A') AND (artist<'ZZZZZZZZZZZ')) "; else { $db->AddStr($letter); $db->AddStr($nextletter); $where .= " AND ((artist>=:letter) AND (artist<:nextletter)) "; } } else { $letter=""; } //########## =================== ################ //Calculate total $tmp = $db->params; //Save params for second query $db->open("SELECT count(*) as cnt FROM songlist $where "); $row = $db->row(); $cnt = $row["cnt"]; //Now grab a section of that $db->params = $tmp; //Restore params $db->open("SELECT * FROM songlist $where ORDER BY artist ASC, title ASC", $limit, $start); $first = $start+1; $last = min($cnt,$start+$limit); $rc = $start; $prevlnk = ""; $nextlnk = ""; if($cnt>0) { if(!isset($search)) { $search=""; } $searchstr = urlencode($search); $prev = max(0,$start-$limit); if($start>0) $prevlnk = "<a href='?start=$prev&limit=$limit&letter=$letter&search=$searchstr'><< Previous</a>"; $tmp = ($start+$limit); if($tmp<$cnt) $nextlnk = "<a href='?start=$tmp&limit=$limit&letter=$letter&search=$searchstr'>Next >></a>"; } function PutSongRow($song) { global $rc, $start, $darkrow, $lightrow; $rc++; $bgcolor = $darkrow; if(($rc % 2)==0) $bgcolor = $lightrow; PrepareSong($song); ?> <tr bgcolor="<? echo $bgcolor; ?>"> <td nowrap align="right" width="1%"><font size="2" color="#003366"><small><? echo "$rc"; ?></small></font></td> <td nowrap><font size="2" color="#003366"> <small><? echo $song["combine"]; ?></small></font></td> <td nowrap width="1%"> <p align="center"><font size="2" color="#003366"><a href="<? echo $song["request"]; ?>"><img src="images/request.gif" alt="Request this song now!" border="0"></a></font> </td> <td nowrap width="1%"> <p align="center"><font size="2" color="#003366"><a href="<? echo $song["buycd"]; ?>" target="_blank"><img src="images/buy.gif" alt="Buy this CD now!" border="0"></a></font> </td> <td nowrap width="1%"> <p align="center"><font size="2" color="#003366"><a href="<? echo $song["website"]; ?>" target="_blank"><img src="images/home.gif" alt="Artist homepage" border="0"></a></font> </td> <td nowrap align="center" width="1%"> <font size="2" color="#003366"><a href="javascript:songinfo(<? echo $song["songid"]; ?>)"><img src="images/info.gif" alt="Song information" border="0"></a></font> </td> <td nowrap><font color="#003366" size="2"><small><? echo $song["album"]; ?></small></font></td> <td nowrap> <p align="right"><font color="#003366" size="2"><small><strong><? echo $song["mmss"]; ?></strong></small></font> </td> </tr> <? }//PutSongRow /* ## ===================================================================== ## */ ?> <? require("header.php"); ?> <? require("search.php"); ?> <br> <table border="0" width="98%" cellspacing="0" cellpadding="4"> <tr bgcolor="#002E5B"> <td colspan="8" nowrap align="left"> <b><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#FFFFFF">Playlist results</font></b> </td> </tr> <? while($song = $db->row()) PutSongRow($song); ?> <tr bgcolor="#E0E0E0"> <td colspan="8" nowrap align="center"> <? echo "$prevlnk"; ?> ( Showing <? echo "$first to $last of $cnt"; ?> ) <? echo "$nextlnk"; ?></td> </tr> </table> <br> <? require("search.php"); ?> <? require("footer.php"); ?>
Code:
<html> <head> <title><? echo $station; ?></title> <? require("style.css"); ?> <script language="JavaScript1.2"><? require("songinfo.js"); ?></script> <script language='JavaScript1.2' src='http://www.audiorealm.com/player/player.js.html?srefID=1&subscription=no'></script> <? require("req/request.java.php"); ?> <script language="JavaScript1.2"> function PictureFail(picname) { if (document.images) { document.images[picname].width = 1; document.images[picname].height = 1; } } </script> </head> <body> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="1%" align="center"><a href="playing.php"><img border="0" src="<? echo $logo; ?>"></a><br> <img border="0" src="images/spacer.gif" width="15" height="13"></td> <td width="99%" valign="middle" align="left"><b><font size="5"> <? echo $station; ?></font></b></td> </tr> <tr> <td width="100%" colspan="2" bgcolor="#000080"><img border="0" src="images/spacer.gif" width="1" height="1"></td> </tr> </table> <br> <table border=0 cellspacing=5 cellpadding=5> <tr> <td align="center" valign="top" width="1%"> <? require("nav.php"); ?> <br> <br> <? require("partners.php"); ?> </td> <td align="left" valign="top" width="99%">
Code:
</td> </tr> </table> <br> <table cellpadding=2 cellspacing=2 border=0 width="100%"> <tr><td align="center"><hr width="80%" size="1" color="#00005E"></td></tr> <tr><td align="center"> <p><font size="1">This station is part of the <a href="http://www.audiorealm.com">AudioRealm</a> and <a href="http://www.spacialnet.com">SpacialNet</a> networks.<br> This page was produced using <a target="_blank" href="http://www.spacialaudio.com/products/sambroadcaster/">SAM Broadcaster</a>. © Copyright <a target="_blank" href="http://www.spacialaudio.com">Spacial Audio Solutions, LLC</a> 1999 - 2006.</font></p> </td></tr> </table> </body> </html>
Code:
<?php if ( !defined('MODULE_FILE') ) { die("You can't access this file directly..."); } //Right blocks to show? Set to TRUE: define('INDEX_FILE', true); include("header.php"); require("config.php"); $index=1; ?> <? require("playlist.php"); ?> <?php include("footer.php"); ?>
mfg