$ank[group_name]
\n"; //////////////////////////////////////////////////////////// if ($ank['ank_o_sebe']!=NULL)echo "О себе: $ank[ank_o_sebe]
\n"; //////////////////////////////////////////////////////////// if(isset($_SESSION['refer']) && $_SESSION['refer']!=NULL && otkuda($_SESSION['refer'])) echo "
«".otkuda($_SESSION['refer'])."
\n
\n"; include_once 'sys/inc/tfoot.php'; exit; //////////////////////////////////////////////////////////// } $ank=get_user($ank['id']); if(!$ank){header("Location: /index.php?".SID);exit;} $ank[rating]=intval(@mysql_result(mysql_query("SELECT SUM(`rating`) FROM `user_voice2` WHERE `id_kont` = '$ank[id]'"),0)); $set['title']=$ank['nick'].''; include_once 'sys/inc/thead.php'; title(); //////////////////////////////////////////////////////////// if ((!isset($_SESSION['refer']) || $_SESSION['refer']==NULL) && isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER']!=NULL && !ereg('info\.php',$_SERVER['HTTP_REFERER'])) $_SESSION['refer']=str_replace('&','&',ereg_replace('^http://[^/]*/','/', $_SERVER['HTTP_REFERER'])); aut(); //////////////////////////////////////////////////////////// if (isset($_GET['rating']) && isset($user) && $user['id']!=$ank['id'] && $user['balls']>=1&& mysql_result(mysql_query("SELECT SUM(`rating`) FROM `user_voice2` WHERE `id_kont` = '$user[id]'"),0)>=0) { $my_r=intval(@mysql_result(mysql_query("SELECT `rating` FROM `user_voice2` WHERE `id_user` = '$user[id]' AND `id_kont` = '$ank[id]'"),0)); if ($my_r>'0'){ msg('Вы уже голосовали'); }else{ $new_r=min(max(@intval($_GET['rating']),1),6); mysql_query("DELETE FROM `user_voice2` WHERE `id_user` = '$user[id]' AND `id_kont` = '$ank[id]' LIMIT 1"); if ($new_r) mysql_query("INSERT INTO `user_voice2` (`rating`, `id_user`, `id_kont`) VALUES ('$new_r','$user[id]','$ank[id]')"); $ank[rating]=intval(mysql_result(mysql_query("SELECT SUM(`rating`) FROM `user_voice2` WHERE `id_kont` = '$ank[id]'"),0)); mysql_query("UPDATE `user` SET `rating` = '$ank[rating]' WHERE `id` = '$ank[id]' LIMIT 1"); if ($new_r==1) mysql_query("INSERT INTO `jurnal` (`id_user`, `id_kont`, `msg`, `time`) values('0', '$ank[id]', '$user[nick] Проголосовал(а)! Оценка ', '$time')"); if ($new_r==2) mysql_query("INSERT INTO `jurnal` (`id_user`, `id_kont`, `msg`, `time`) values('0', '$ank[id]', '$user[nick] Проголосовал(а)! Оценка ', '$time')"); if ($new_r==3) mysql_query("INSERT INTO `jurnal` (`id_user`, `id_kont`, `msg`, `time`) values('0', '$ank[id]', '$user[nick] Проголосовал(а)! Оценка ', '$time')"); if ($new_r==4) mysql_query("INSERT INTO `jurnal` (`id_user`, `id_kont`, `msg`, `time`) values('0', '$ank[id]', '$user[nick] Проголосовал(а)! Оценка ', '$time')"); if ($new_r==5) mysql_query("INSERT INTO `jurnal` (`id_user`, `id_kont`, `msg`, `time`) values('0', '$ank[id]', '$user[nick] Проголосовал(а)! Оценка ', '$time')"); if ($new_r==6) mysql_query("INSERT INTO `jurnal` (`id_user`, `id_kont`, `msg`, `time`) values('0', '$ank[id]', '$user[nick] Проголосовал(а)! Оценка ', '$time')"); msg('Выполнено!'); //////////////////////////////////////////////////////////// }} if (isset($user) && $user['id']!=$ank['id']) {mysql_query("UPDATE `user` SET `prosm` = '".($ank['prosm']+1)."' WHERE `id` = '$ank[id]' LIMIT 1");} //////////////////////////////////////////////////////////// echo " \n"; if (mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `id` = '$ank[id]' AND `date_last` > '".(time()-500)."' LIMIT 1"),0)==1) { if ($ank['status']==0)echo ""; else if ($ank['status']==1)echo ""; else if ($ank['status']==2)echo ""; else if ($ank['status']==3)echo ""; else if ($ank['status']==4)echo ""; else if ($ank['status']==5)echo ""; else if ($ank['status']==6)echo ""; else if ($ank['status']==7)echo ""; else if ($ank['status']==8)echo ""; else if ($ank['status']==9)echo ""; else if ($ank['status']==10)echo ""; else if ($ank['status']==11)echo ""; else if ($ank['status']==12)echo ""; else if ($ank['status']==13)echo ""; else if ($ank['status']==14)echo ""; else if ($ank['status']==15)echo ""; else if ($ank['status']==16)echo ""; else if ($ank['status']==17)echo ""; else if ($ank['status']==18)echo ""; else if ($ank['status']==19)echo ""; else if ($ank['status']==20)echo ""; } else { if ($ank['pol']==1){ echo ""; echo ' ';} else { echo ""; echo ' ';} } //// $data = mysql_query( "select * from `rangs` where `id`='1';" ); $data = mysql_fetch_assoc( $data ); if ( $ank['balls'] >= 51 && $ank['balls'] <= 100 )echo htmlspecialchars( $data['3'], ENT_QUOTES ) . ''; else if ( $ank['balls'] >= 101 && $ank['balls'] <= 250 )echo htmlspecialchars( $data['4'], ENT_QUOTES ) . ''; else if ( $ank['balls'] >= 251 && $ank['balls'] <= 400 )echo htmlspecialchars( $data['5'], ENT_QUOTES ) . ''; else if ( $ank['balls'] >= 401 && $ank['balls'] <= 600 )echo htmlspecialchars( $data['6'], ENT_QUOTES ) . ''; else if ( $ank['balls'] >= 601 && $ank['balls'] <= 750 )echo htmlspecialchars( $data['7'], ENT_QUOTES ) . ''; else if ( $ank['balls'] >= 751 && $ank['balls'] <= 900 )echo htmlspecialchars( $data['8'], ENT_QUOTES ) . ''; else if ( $ank['balls'] >= 901 && $ank['balls'] <= 1000 )echo htmlspecialchars( $data['9'], ENT_QUOTES ) . ''; else if ( $ank['balls'] >= 1001 && $ank['balls'] <= 1249 )echo htmlspecialchars( $data['10'], ENT_QUOTES ) . ''; else if ( $ank['balls'] >= 1250 && $ank['balls'] <= 1499 )echo htmlspecialchars( $data['11'], ENT_QUOTES ) . ''; else if ( $ank['balls'] >= 1500 && $ank['balls'] <= 1749 )echo htmlspecialchars( $data['12'], ENT_QUOTES ) . ''; else if ( $ank['balls'] >= 1750 && $ank['balls'] <= 1999 )echo htmlspecialchars( $data['13'], ENT_QUOTES ) . ''; else if ( $ank['balls'] >= 2000 && $ank['balls'] <= 2249 )echo htmlspecialchars( $data['14'], ENT_QUOTES ) . ''; else if ( $ank['balls'] >= 2250 && $ank['balls'] <= 2499 )echo htmlspecialchars( $data['15'], ENT_QUOTES ) . ''; else if ( $ank['balls'] >= 2500 && $ank['balls'] <= 2749 )echo htmlspecialchars( $data['16'], ENT_QUOTES ) . ''; else if ( $ank['balls'] >= 2750 && $ank['balls'] <= 2999 )echo htmlspecialchars( $data['17'], ENT_QUOTES ) . ''; else if ( $ank['balls'] >= 3000 && $ank['balls'] <= 3249 )echo htmlspecialchars( $data['18'], ENT_QUOTES ) . ''; else if ( $ank['balls'] >= 3250 && $ank['balls'] <= 3499 )echo htmlspecialchars( $data['19'], ENT_QUOTES ) . ''; else if ( $ank['balls'] >= 3500 && $ank['balls'] <= 4999 )echo htmlspecialchars( $data['20'], ENT_QUOTES ) . ''; else if ( $ank['balls'] >= 5000 && $ank['balls'] <= 7499 )echo htmlspecialchars( $data['21'], ENT_QUOTES ) . ''; else if ( $ank['balls'] >= 7500 && $ank['balls'] <= 9999 )echo htmlspecialchars( $data['22'], ENT_QUOTES ) . ''; else if ( $ank['balls'] >= 10000 ) echo htmlspecialchars( $data['23'], ENT_QUOTES ) . ''; if($ank['balls']>=0 && $ank['balls']<=100)echo ""; if($ank['balls']>=101 && $ank['balls']<=250)echo ""; if($ank['balls']>=251 && $ank['balls']<=400)echo ""; if($ank['balls']>=401 && $ank['balls']<=600)echo ""; if($ank['balls']>=601 && $ank['balls']<=750)echo ""; if($ank['balls']>=751 && $ank['balls']<=900)echo ""; if($ank['balls']>=901 && $ank['balls']<=1000)echo ""; if($ank['balls']>=1001 && $ank['balls']<=1249)echo ""; if($ank['balls']>=1250 && $ank['balls']<=1499)echo ""; if($ank['balls']>=1500 && $ank['balls']<=1749)echo ""; if($ank['balls']>=1750 && $ank['balls']<=1999)echo ""; if($ank['balls']>=2000 && $ank['balls']<=2249)echo ""; if($ank['balls']>=2250 && $ank['balls']<=2549)echo ""; if($ank['balls']>=2500 && $ank['balls']<=2749)echo ""; if($ank['balls']>=2750 && $ank['balls']<=2999)echo ""; if($ank['balls']>=3000 && $ank['balls']<=3249)echo ""; if($ank['balls']>=3250 && $ank['balls']<=3499)echo ""; if($ank['balls']>=3500 && $ank['balls']<=4999)echo ""; if($ank['balls']>=5000 && $ank['balls']<=7499)echo ""; if($ank['balls']>=7500 && $ank['balls']<=9999)echo ""; if($ank['balls']>=10000)echo ""; if ($ank['ank_name']!=NULL)echo ""; $d1sql = mysql_query("SELECT COUNT(*) FROM `frends_new` WHERE (`user` = '$user[id]' AND `to` = '$ank[id]') OR (`user` = '$ank[id]' AND `to` = '$user[id]') LIMIT 1"); $d2sql = mysql_query("SELECT COUNT(*) FROM `frends` WHERE (`user` = '$ank[id]' AND `frend` = '$user[id]') OR (`user` = '$user[id]' AND `frend` = '$ank[id]') LIMIT 1"); if ($ank['ank_d_r']!=NULL && $ank['ank_m_r']!=NULL && $ank['ank_g_r']!=NULL){ if ($ank['ank_m_r']==1)$ank['mes']='Января'; elseif ($ank['ank_m_r']==2)$ank['mes']='Февраля'; elseif ($ank['ank_m_r']==3)$ank['mes']='Марта'; elseif ($ank['ank_m_r']==4)$ank['mes']='Апреля'; elseif ($ank['ank_m_r']==5)$ank['mes']='Мая'; elseif ($ank['ank_m_r']==6)$ank['mes']='Июня'; elseif ($ank['ank_m_r']==7)$ank['mes']='Июля'; elseif ($ank['ank_m_r']==8)$ank['mes']='Августа'; elseif ($ank['ank_m_r']==9)$ank['mes']='Сентября'; elseif ($ank['ank_m_r']==10)$ank['mes']='Октября'; elseif ($ank['ank_m_r']==11)$ank['mes']='Ноября'; else $ank['mes']='Декабря'; $ank['ank_age']=date("Y")-$ank['ank_g_r']; if (date("n")<$ank['ank_m_r'])$ank['ank_age']=$ank['ank_age']-1; elseif (date("n")==$ank['ank_m_r']&& date("j")<$ank['ank_d_r'])$ank['ank_age']=$ank['ank_age']-1; } elseif($ank['ank_d_r']!=NULL && $ank['ank_m_r']!=NULL) { if ($ank['ank_m_r']==1)$ank['mes']='Января'; elseif ($ank['ank_m_r']==2)$ank['mes']='Февраля'; elseif ($ank['ank_m_r']==3)$ank['mes']='Марта'; elseif ($ank['ank_m_r']==4)$ank['mes']='Апреля'; elseif ($ank['ank_m_r']==5)$ank['mes']='Мая'; elseif ($ank['ank_m_r']==6)$ank['mes']='Июня'; elseif ($ank['ank_m_r']==7)$ank['mes']='Июля'; elseif ($ank['ank_m_r']==8)$ank['mes']='Августа'; elseif ($ank['ank_m_r']==9)$ank['mes']='Сентября'; elseif ($ank['ank_m_r']==10)$ank['mes']='Октября'; elseif ($ank['ank_m_r']==11)$ank['mes']='Ноября'; else $ank['mes']='Декабря'; echo "День рождения: $ank[ank_d_r] $ank[mes]
"; } if ($ank['ank_d_r']>=19 && $ank['ank_m_r']==1){echo "";} elseif ($ank['ank_d_r']<=19 && $ank['ank_m_r']==2){echo "";} elseif ($ank['ank_d_r']>=18 && $ank['ank_m_r']==2){echo "";} elseif ($ank['ank_d_r']<=21 && $ank['ank_m_r']==3){echo "";} elseif ($ank['ank_d_r']>=20 && $ank['ank_m_r']==3){echo "";} elseif ($ank['ank_d_r']<=21 && $ank['ank_m_r']==4){echo "";} elseif ($ank['ank_d_r']>=20 && $ank['ank_m_r']==4){echo "";} elseif ($ank['ank_d_r']<=21 && $ank['ank_m_r']==5){echo "";} elseif ($ank['ank_d_r']>=20 && $ank['ank_m_r']==5){echo "";} elseif ($ank['ank_d_r']<=22 && $ank['ank_m_r']==6){echo "";} elseif ($ank['ank_d_r']>=21 && $ank['ank_m_r']==6){echo "";} elseif ($ank['ank_d_r']<=22 && $ank['ank_m_r']==7){echo "";} elseif ($ank['ank_d_r']>=23 && $ank['ank_m_r']==7){echo "";} elseif ($ank['ank_d_r']<=22 && $ank['ank_m_r']==8){echo "";} elseif ($ank['ank_d_r']>=22 && $ank['ank_m_r']==8){echo "";} elseif ($ank['ank_d_r']<=23 && $ank['ank_m_r']==9){echo "";} elseif ($ank['ank_d_r']>=22 && $ank['ank_m_r']==9){echo "";} elseif ($ank['ank_d_r']<=23 && $ank['ank_m_r']==10){echo "";} elseif ($ank['ank_d_r']>=22 && $ank['ank_m_r']==10){echo "";} elseif ($ank['ank_d_r']<=22 && $ank['ank_m_r']==11){echo "";} elseif ($ank['ank_d_r']>=21 && $ank['ank_m_r']==11){echo "";} elseif ($ank['ank_d_r']<=22 && $ank['ank_m_r']==12){echo "";} elseif ($ank['ank_d_r']>=21 && $ank['ank_m_r']==12){echo "";} elseif ($ank['ank_d_r']<=20 && $ank['ank_m_r']==1){echo "";} if (isset($user) && $user['id']==$ank['id'])echo "\n"; if ($ank['status_vip'] > 0) print ''; echo ''; if ($ank['group_access']==2)echo ""; if ($ank['group_access']==3)echo " "; if ($ank['group_access']==4)echo " "; if ($ank['group_access']==5)echo ""; if ($ank['group_access']==6)echo ""; if ($ank['group_access']==7)echo ""; if ($ank['group_access']==8)echo ""; if ($ank['group_access']==9)echo ""; if ($ank['group_access']==15)echo ""; //////////////////////////////////////////////////////////// echo "