Размер файла: 1.54Kb
<?
/*
GB(v1.0) by Viktor
icq:357332321
site: http://yarap.ru
http://xwab.ru/forum/profile656
[incl/foot.php]
*/
$template->set_filenames(array(
'body3' => 'foot.tpl'));
$sql_title2=sql("SELECT * FROM ".$pref."config WHERE c='title2'");
$title2=$sql_title2['o'];
$res_reklama2=query("SELECT * FROM ".$pref."reklama WHERE id<0");
while($row=row($res_reklama2))
{
$template->assign_block_vars("reklama_down", array("TEXT"=>$row['text'], "ID"=>$row['id'], "LINK"=>$row['link']));
}
$res_baners=query("SELECT * FROM ".$pref."baners");
while($row_baners=row($res_baners))
{
$template->assign_block_vars("baners_down", array("TEXT"=>$row_baners['text']));
}
$res_lang=query("SELECT * FROM ".$pref."lang");
while($row=row($res_lang))
{
if($_SESSION[$pref.'lang'])$id=$_SESSION[$pref.'lang'];
else
{
$sql_lang=sql("SELECT * FROM ".$pref."config WHERE c='lang'");
$id=$sql_lang['o'];
}
if($id==$row['id'])$ch=' selected';else $ch='';
$template->assign_block_vars("lang_down", array("ID"=>$row['id'], "NAME"=>$row['name'], "CH"=>$ch));
}
if(sql("SELECT * FROM ".$pref."config WHERE c='online' AND o='1'") || $_SESSION['adm']==1)$template->assign_block_vars("online", array());
$online=sql("SELECT COUNT(*) AS o FROM ".$pref."online");
$template->assign_vars(array(
"GOD"=>(date("Y")==2011) ? '2011' : '2011-'.date("Y"),
"SONLINE"=>$l[101],
"ONLINE"=>$online['o'],
"TITLE"=>$title2));
$template->pparse('body3');
mysql_close($db);
?>