Просмотр файла inc/head.php

Размер файла: 2.64Kb
<?php
#############################################
# 0JXRgdC70Lgg0YLRiyDRh9C40YLQsNC10YjRjCDRj #
# dGC0L4g0YHQvtC+0LHRidC10L3QuNC1LCDQt9C90L #
# DRh9C40YIg0YLRiyDQvdC10LzQvdC+0LPQviDQt9C #
#          90LDQtdGI0YwgUEhQIQ==            #
#__---------------------------------------__#
#__        0JrQu9C40Log0JrQu9GD0LE=       __#
#  ---------------------------------------  #
# 0JDQstGC0L7RgCA6IE1vcmdhbg==              #
# SUNRIDog0L3QtSDRgdC60LDQttGDIHhE          #
#                                           #
#############################################

/*
echo '<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>
<link rel="shortcut icon" href="/style/'.$set_style.'/favicon.ico">
<link rel="stylesheet" type="text/css" href="/style/'.$set_style.'/style.css"/>
<!-- Made by Morgan -->
<title>'.$title.' :: '.$config['title'].'</title></head><body>
<div>';
*/

header('Content-type: text/html; charset=UTF-8');
header('Cache-Control: no-cache');

if(empty($title))$title = 'Разделы';

require D.'style/'.$set_style.'/header.php';


echo '<!-- '.$config['copy_in_code'].' -->';

$res = query("SELECT * FROM `$db[prefix]reklama` WHERE `mesto`='1' ORDER BY RAND()");
if(mysql_num_rows($res)>0)
{
echo '<center>';
  while($rekl = mysql_fetch_array($res))
{
if($rekl['fat']==1) $rekl['link_name'] = '<b>'.$rekl['link_name'].'</b>';
if($rekl['under']==1) $rekl['link_name'] = '<u>'.$rekl['link_name'].'</u>';
if($rekl['incl']==1) $rekl['link_name'] = '<i>'.$rekl['link_name'].'</i>';
if($rekl['color']!='') $rekl['link_name'] = '<font color="'.$rekl['color'].'">'.$rekl['link_name'].'</font>';
echo '<a href="/go.php?go='.$rekl['link'].'&goto=1" target="_blank">'.$rekl['link_name'].'</a></br />
';
}
echo '</center>';
}

if($user_in_site == 1)
 {
 $new_messages = mysql_result(query("SELECT COUNT(*) FROM `$db[prefix]private` WHERE `id_whom`='$user_prof[id]' AND `new`='1'"),0);
 if($new_messages>0 and strpos($_request_uri,'/menu/private.php')===false)
  {
  echo '<div class="ad"><img src="/pic/mess_new.png" /> <a href="/menu/private.php?mode=in"><b>'.($new_messages == 1 ? 'Приватное сообщение' :  'Приват'.'('.$new_messages.')').'</b></a></div>';
  }
 }

################################################
# 0KHQutGA0LjQv9GCINC90LUg0L/QsNCx0LvQuNC6IQ== #
#   0KHRgtCw0LLRgNC+0L/QvtC70YwsIDIwMDkg0LMu   #
################################################

?>