cotonti.com : MP3 Player from URLKiller https://www.cotonti.com Neueste Themenbeiträge Cotonti en Mon, 06 Apr 2026 22:28:50 -0000 scriptor I set the Folder to use an older PHP Version ,) Since these i get no Error. But theres no Playlist, no comment that no files or Folder with files. There are only the Player without all.
It were so nice when anybody can help me.

So the Error must be in the Playlist.php.
when i add a playlist.xml and edit the mp3player.php to link the xml file it function perfect... can anybody HELP to fix the Playlist.php?h

here the playlist.php
<?php 
  define('SED_CODE', TRUE); 
  
  require_once('../../../datas/config.php');
  require_once('mp3player.extconnect.php');
  require_once('../../../system/database.mysql.php'); 
  
  $fid = sed_import('fid','G','INT');
  $domain = sed_import('domain','G','TXT');
  /***************************************************************************/
  sed_sql_connect($cfg['mysqlhost'], $cfg['mysqluser'], $cfg['mysqlpassword'], $cfg['mysqldb']);
  /***************************************************************************/
  
      header("content-type:text/xml;charset=utf-8");  
      $out .= "<playlist version='1' xmlns='http://xspf.org/ns/0/'>\n";
      $out .= "<trackList>\n";    
      $sql = sed_sql_query("SELECT * FROM ".$db_pfs_folders." WHERE pff_ispublic='1' AND pff_id='".$fid."' LIMIT 1");
      while ($row = sed_sql_fetcharray($sql))
      {
        $images = sed_sql_query("SELECT * FROM ".$db_pfs." WHERE pfs_folderid='".$row['pff_id']."' AND (pfs_extension='mp3' OR pfs_extension='flv') ORDER BY pfs_date DESC");
        while ($imgrow = sed_sql_fetcharray($images))
        {         
          $search  = array($imgrow['pfs_userid'].'-','.mp3','.flv','_');
          $replace  = array('','','',' ');
          $name     = str_replace($search, $replace, $imgrow['pfs_file']);
          if($imgrow['pfs_desc']=='' || $imgrow['pfs_desc']==' ') 
          { $desc="none"; } else { $desc = $imgrow['pfs_desc']; }
          $desc = explode('|',$desc);
          $out .= "\t<track>\n";
          $out .= "\t\t<title>".$name."</title>\n";
          $out .= "\t\t<location>".$domain."/datas/users/".$imgrow['pfs_file']."</location>\n";
          if(isset($desc[1])) { $out .= "\t\t<info>".$desc[1]."</info>\n"; }
          $out .= "\t\t<annotation>".$desc[0]."</annotation>\n";
          $out .= "\t\t<creator>creator</creator>\n";
          if($imgrow['pfs_extension']=='mp3') {$out .= "\t\t<image>plugins/mp3player/inc/sound.png</image>\n";}
          if($imgrow['pfs_extension']=='flv') {$out .= "\t\t<image>plugins/mp3player/inc/film.png</image>\n";}
          $out .= "\t</track>\n";
          
        }
      }   
      
  /***************************************************************************/
      sed_sql_close();
      $out .= "</trackList>\n";
      $out .= "</playlist>\n";
  /***************************************************************************/
 
  echo $out;
  
?>

An Error from the Flash say this:
TypeError: Error #1009: Der Zugriff auf eine Eigenschaft oder eine Methode eines null-Objektverweises ist nicht möglich.
at com.jeroenwijering.utils::Playlister/::loaderHandler()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()]]>
Sa, 28 Mär 2009 23:53:54 -0000