userinfo["userid"]>0) { $errmsg=get_status(); _dbcon(); $query="select USERCOLOR FROM ".USERS." where USERNICK='".$_SESSION["session_user"]."'"; //echo $query; $res = mysql_query($query); if(mysql_num_rows($res)>0) { $row=mysql_fetch_array($res); $_SESSION["session_color"]=$row['USERCOLOR']; } _dbdis(); include_once("login.inc"); } else { if ($name=="") { $errmsg=""; } else { $ip=getenv("REMOTE_ADDR"); if ((check_banlist($name)==1)||(check_banlist($ip)==1)||(check_banlist(subnet($ip))==1)||(check_banlist(subsubnet($ip))==1)) { setcookie(BANCOOKIE,"1",time()+60*60*24*365); write_message('','RT','traders','cccccc',$name." попытка входа c ".$ip); } } // include_once("enterform.inc"); include_once("enterform.php"); } ?>