$tikrinam = dbrows(dbquery("SELECT * FROM ".$db_prefix."users WHERE user_ip='".USER_IP."'")); if($tikrinam > 0) { redirect BASEDIR."index.php"; }