Thanks,
anjan
Mithrandir wrote:
So it seems to be a normal RSS Feed, but with<enclosure url=" http://www.mywebsite.com/myaudio.mp3" length="4834743" type="audio/mpeg" />
in it. Should be doable.
Just a matter of having a module to keep track of the mp3, its length and its type.
Perhaps a slight modification of one of the downloads modules to support this feature for audio files hosted locally? Definitely doable, I should say.
<?php
class XoopsAuthFactory
{
function XoopsAuthFactory()
{
}
/**
* Get a reference to the only instance of authentication class
*
* if the class has not been instantiated yet, this will also take
* care of that
*
* @static
* @return object Reference to the only instance of authentication class
*/
function &getAuthConnection()
{
static $auth_instance;
if (!isset($auth_instance)) {
$config_handler =& xoops_gethandler('config');
$criteria = new CriteriaCompo();
$criteria->add(new Criteria('conf_name', 'auth_method'));
$config =& $config_handler->getConfigs($criteria);
require_once XOOPS_ROOT_PATH.'/class/auth/auth.php';
/**
https://xoops.org/modules/news/article.php?storyid=2533&page=0
if (!$config) { // If there is a config error, we use xoops
$xoops_auth_method = 'xoops';
} else {
$xoops_auth_method = $config[0]->getVar('conf_value');
}
**/
/** code added intead of above **/
if (!$config) { // If there is a config error, we use xoops
$xoops_auth_method = 'xoops';
} else {
$xoops_auth_method = $config[0]->getConfValueForOutput();
if(!is_readable( XOOPS_ROOT_PATH.'/class/auth/auth_' . $xoops_auth_method . '.php')){
$xoops_auth_method = 'xoops';
}
}
$file = XOOPS_ROOT_PATH.'/class/auth/auth_' . $xoops_auth_method . '.php';
require_once $file;
$class = 'XoopsAuth' . ucfirst($xoops_auth_method);
switch ($xoops_auth_method) {
case 'xoops' :
$dao =& $GLOBALS['xoopsDB'];
break;
case 'ldap' :
$dao = null;
break;
}
$auth_instance = new $class($dao);
}
return $auth_instance;
}
}
?>