<?php
/****************************************************************************
* Fichier : mp3player.php *
* Copyright : (C) 2004 ClanLite *
* Email : hide@address.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
***************************************************************************/
$root_path = '../';
$action_membre= 'where_xml_mp3';
require($root_path.'conf/conf-php.php');
header('Content-type: text/xml');
echo '<?xml version="1.0" encoding="UTF-8" ?>'."\n";
echo '<sommaire autoStart="'.(($config['mp3_auto_start'] == 1)? 'yes' : 'no').'">'."\n";
$sql = 'SELECT `SRC`, `titre` FROM `'.$config['prefix'].'config_sond` ORDER BY `ordre` ASC';
if (! $get = $rsql->requete_sql($sql))
{
sql_error($sql, $rsql->error, __LINE__, __FILE__);
}
while ($info = $rsql->s_array($get))
{
echo ' <song title ="'.$info['titre'].'" path="'.$info['SRC'].'" />'."\n";
}
echo '</sommaire>';
?>