* @author DrX * @copyright 2008-2009 Alex Yu and DrX */ require_once 'core.php'; require_once 'smarty/libs/Smarty.class.php'; //figure out url, if needed. if(!URL) { $uri = explode("/",$_SERVER['REQUEST_URI']); array_pop($uri); define('_URL', "http://".$_SERVER['SERVER_NAME'].implode("/",$uri)."/"); } else { define('_URL', URL); } //how old is our cache? if(time() > xp_get("time")+UPDATE_FREQ) file_get_contents(_URL.'refresh.php',0,stream_context_create(array('http' => array('timeout' => 0)))); $bots=xp_get("bots"); if(isset($_GET['nick'])){ header('Content-type: application/rss+xml'); for($i=0;isset($bots[$i]);$i++){ if($bots[$i]['nick']==$_GET['nick']){ echo ' Xdcc Mooo ! '.URL.' en'; for($j=0;isset($bots[$i]['packs'][1][$j]);$j++){ echo ' '.$bots[$i]['packs'][5][$j].''."\n"; echo ''.URL.'?nick='.rawurlencode($bots[$i]['nick']).''."\n"; echo 'urn:uuid:'.md5( $bots[$i]['packs'][1][$j]. $bots[$i]['packs'][2][$j]. $bots[$i]['packs'][3][$j]. $bots[$i]['packs'][4][$j]. $bots[$i]['packs'][5][$j]. $bots[$i]['nick'] ).' /msg '.$bots[$i]['nick'].' XDCC SEND '.$bots[$i]['packs'][1][$j].' '; } } } ?> Mooo XDCC RSS '; } ?>