* @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 '