Warning: imagecreatefromstring(): Data is not in a recognized format in /var/www/u0424184/data/www/intboard.ru/file.php on line 87
Warning: imagesx() expects parameter 1 to be resource, boolean given in /var/www/u0424184/data/www/intboard.ru/file.php on line 89
Warning: imagesy() expects parameter 1 to be resource, boolean given in /var/www/u0424184/data/www/intboard.ru/file.php on line 90
Warning: Cannot modify header information - headers already sent by (output started at /var/www/u0424184/data/www/intboard.ru/file.php:87) in /var/www/u0424184/data/www/intboard.ru/file.php on line 109
Warning: Cannot modify header information - headers already sent by (output started at /var/www/u0424184/data/www/intboard.ru/file.php:87) in /var/www/u0424184/data/www/intboard.ru/file.php on line 110
Warning: Cannot modify header information - headers already sent by (output started at /var/www/u0424184/data/www/intboard.ru/file.php:87) in /var/www/u0424184/data/www/intboard.ru/file.php on line 112
/*
Sitemap technology script for Intellect Board 2 Project
(C) 2006, XXXX Pro, United Open Project
Visit us online: http://intboard.ru
*/
$IBOARD=1;
error_reporting(E_ERROR | E_WARNING | E_PARSE |E_CORE_ERROR | E_CORE_WARNING);
set_error_handler("err_handler");
set_magic_quotes_runtime(0);
$start_time = microtime();
require("xaphpi.php");
require("common.php");
require("config/database.php");
require("config/iboard.php");
require("db/".$DBdriver.".php");
if ($DBpersist) $link=db_pconnect($DBhost,$DBusername,$DBpassword,$DBname);
else $link=db_connect($DBhost,$DBusername,$DBpassword,$DBname);
mysql_query("SET NAMES 'utf8'",$link);
if ($opt_gzip) ob_start("ob_gzhandler");
$GLOBALS['inuserid']=1;
$GLOBALS['inuserbasic']="0";
if(isset($_SERVER['HTTP_IF_MODIFIED_SINCE']))
{
$starttime=strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']);
}
$title=$GLOBALS['opt_title'];
$url=$GLOBALS['opt_url'];
if (substr($url,-1,1)!='/') $url.='/';
$descr = "";
$sql = "SELECT t_id,t_link,f_id,f_link,p__time ".
"FROM ".$GLOBALS['DBprefix']."Topic, ".$GLOBALS['DBprefix']."Post, ".$GLOBALS['DBprefix']."Forum f ".
"WHERE t_fid=f_id AND f_lview <= 0 AND p_id=t__startpostid AND t__pcount>0 ".
"ORDER BY p__time DESC LIMIT 50000";
$res =&db_query($sql,$link);
while ($tdata=&db_fetch_array($res)) {
$item['link']=build_url($tdata);
$item['cat']=""; $item['enclosure_url']="";
$item['date']=$tdata['p__time'];
if ($tdata['p__time'] > $lasttime) $lasttime = $tdata['p__time'];
$items[]=$item;
}
db_free_result($res);
if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && $lasttime < $starttime) {
header("HTTP/1.1 304 Not Modified");
exit;
}
$buffer = ''."\n";
$buffer.= ''."\n";
if (is_array($items)) foreach ($items as $curitem) {
$curitem['link']=str_replace('//','',$curitem['link']);
$buffer.= "";
$buffer.= "".$url.$curitem['link']."\n";
$buffer.= "".date("Y-m-d",$curitem['date'])."\n";
$buffer.= "\n";
}
$buffer.= "";
header('Content-type: text/xml; charset="UTF-8"');
header('Last-Modified: '.gmdate("D, d M Y H:i:s", $lasttime)." GMT");
echo $buffer;
function err_handler($errno, $errstr, $errfile, $errline) {
if ($errno & (E_ALL ^ E_NOTICE)) {
$errfile = substr($errfile,strrpos($errfile,"/")+1);
global_error("$errfile (line $errline)"." - ".$errstr);
}
}
function global_error($errtext) {
$fh=fopen("config/error.log","a");
$errtext=str_replace("\r","",$errtext);
$str="Date: ".date("r",time()).", IP: ". $_SERVER['REMOTE_ADDR'].",".$_SERVER['HTTP_X_FORWARDED_FOR'];
$str.=", File SiteMap.php: \n".$errtext."\n\n";
fputs($fh,$str);
fclose($fh); ?>
=$opt_title;?>
GLOBAL FORUM ERROR: =htmlspecialchars($errtext);?>