    dcms social,              :
 :https://vk.com/alexander1213
  !
    .
  ajax_chat/bd.sql
 smile.php  ajax_chat/smile.php   .
 style.css   :
.stss
{
position: fixed;
bottom: 0;
right: 5px;
z-index:500;
width: 250px;
height:25px;
background-color: #AEAEAE;
color: #AEAEAE;
font-weight: bold;
text-align: center;
}
.stsss
{
position: fixed;
bottom: 0;
right: 5px;
z-index:500;
width: 25px;
height:25px;
background-color: #AEAEAE;
color: #AEAEAE;
font-weight: bold;
text-align: center;
}
.mails{ 
margin-top:10px;
padding: 5px;
color:#4C6B8F;
background-color: #E8F2FB;
text-shadow: 1px 1px 2px #ffffff;
margin-left:1px;
border-top-left-radius: 5px 5px;
border-top-right-radius: 5px 5px;
border-bottom-left-radius: 5px 5px;
border-bottom-right-radius: 5px 5px;}

 head.php     
<body>
<?
if(isset($_GET['off']))
{
mysql_query("UPDATE `user` SET `vchat` = '1' WHERE `id` = '$user[id]' LIMIT 1");
echo '<meta http-equiv="refresh" content="1; URL=index.php" />';
msg('  ');
}
if(isset($_GET['on']))
{
mysql_query("UPDATE `user` SET `vchat` = '0' WHERE `id` = '$user[id]' LIMIT 1");
echo '<meta http-equiv="refresh" content="1; URL=index.php" />';
msg('  ');
}
$k_n = mysql_result(mysql_query("SELECT COUNT(*) FROM `ajax_chat` WHERE `time` > '" . $ftime . "'",$db), 0);
if ($k_n == 0)$k_n = NULL;
else $k_n = '+'. $k_n;
if($user[vchat]==1){echo"<div class='stsss'><a href='?on'><img src='/ajax_chat/img/on.png'></a></div>";}
if($user[vchat]==0){
echo"<div class='stss'>";
echo"<span style='float:left;'><a href='?off'><img src='/ajax_chat/img/off.png'></a></span>";
?>
   <a href='#' onclick='$("#no").slideToggle("slow");event.preventDefault()'><font color='3F3F3F'><img src='/img/chat.png'></font> <span style='color:#AEAEAE;font-size:small;background:#3F3F3F;border-radius:5px;'><?=$k_n?></span> </a></div><?
   
echo" <div id='no' style='
display:none;
position: fixed;
bottom: 22px;
right: 5px;
z-index:500;
width: 250px;
min-height:25px;
background-color: #BABABA;'> <div class='k_rp'>"; 
include H. 'ajax_chat/chat.php';
echo" </div> </div> "; }

!
