2022-06-06 21:30:34 +00:00
< ? php
2022-08-25 11:23:36 +00:00
const GAME = true ;
2022-06-06 21:30:34 +00:00
include ( '_incl_data/__config.php' );
include ( '_incl_data/class/__db_connect.php' );
2022-08-25 11:23:36 +00:00
$chat = new Chat ();
$r = new UserRegister ();
$filter = new Filter ();
2022-06-06 21:30:34 +00:00
2022-08-25 11:23:36 +00:00
if ( isset ( $_POST [ 'ajax_reg' ])) {
$u = User :: start ();
if ( isset ( $u -> info [ 'id' ]) && $u -> info [ 'bithday' ] == '01.01.1800' ) {
//
$_POST [ 'reg_login' ] = iconv ( 'UTF-8' , 'windows-1251' , $_POST [ 'reg_login' ]);
//
$reg_d = [ 0 => $_POST [ 'reg_login' ], 1 => $_POST [ 'reg_pass' ], 2 => $_POST [ 'reg_pass2' ], 3 => $_POST [ 'reg_mail' ], 7 => $_POST [ 'reg_dd' ], 8 => $_POST [ 'reg_mm' ], 9 => $_POST [ 'reg_yy' ], 15 => $_POST [ 'reg_sex' ]];
//
$error = '' ;
//
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
$nologin = [ 0 => '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> ' , 1 => 'angel' , 2 => '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' , 3 => 'administration' , 4 => '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' , 5 => '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' , 6 => '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' , 7 => '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' , 8 => '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' , 9 => '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' , 10 => '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' , 11 => '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' , 12 => '<27> <> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' , 13 => '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' , 14 => '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' , 15 => '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' , 16 => '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' , 17 => 'coombats' , 18 => '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> ' , 19 => '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> _<> <5F> ' ];
$blacklist = " !@# $ %^&*() \ +<2B> <> |/'` \" " ;
$sr = '_-<2D> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 1234567890' ;
$i = 0 ;
while ( $i < count ( $nologin )) {
if ( preg_match ( " / " . $nologin [ $i ] . " /i " , $filter -> mystr ( $reg_d [ 0 ]))) {
$error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> , <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> , <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> .<br>' ;
$_POST [ 'step' ] = 1 ;
$i = count ( $nologin );
}
$i ++ ;
}
$reg_d [ 0 ] = str_replace ( ' ' , ' ' , $reg_d [ 0 ]);
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> 2 <20> <> 20 <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
if ( strlen ( $reg_d [ 0 ]) > 20 ) {
$error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> 20 <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> .<br>' ;
$_POST [ 'step' ] = 1 ;
}
if ( strlen ( $reg_d [ 0 ]) < 2 ) {
$error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> 2 <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> .<br>' ;
$_POST [ 'step' ] = 1 ;
}
//<2F> <> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
$er = $r -> en_ru ( $reg_d [ 0 ]);
if ( $er ) {
$error = '<27> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> . <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> .<br>' ;
$_POST [ 'step' ] = 1 ;
}
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
if ( strpos ( $sr , $reg_d [ 0 ])) {
$error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> .<br>' ;
$_POST [ 'step' ] = 1 ;
}
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD>
$log = mysql_fetch_array (
mysql_query ( 'SELECT `id` from `users` where `login`="' . mysql_real_escape_string ( $reg_d [ 0 ]) . '" LIMIT 1' )
);
$log2 = mysql_fetch_array (
mysql_query (
'SELECT `id` from `lastNames` where `login`="' . mysql_real_escape_string ( $reg_d [ 0 ]) . '" LIMIT 1'
)
);
$log3 = mysql_fetch_array (
mysql_query (
'SELECT `id` from `test_bot` where `login`="' . mysql_real_escape_string (
$reg_d [ 0 ]
) . '" OR `login` LIKE "' . mysql_real_escape_string ( $reg_d [ 0 ]) . ' [%]" LIMIT 1'
)
);
if ( isset ( $log [ 'id' ]) || isset ( $log2 [ 'id' ]) || isset ( $log3 [ 'id' ])) {
$error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> ' . $reg_d [ 0 ] . ' <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> , <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> .<br>' ;
$_POST [ 'step' ] = 1 ;
}
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
if ( substr_count ( $reg_d [ 0 ], ' ' ) + substr_count ( $reg_d [ 0 ], '-' ) + substr_count ( $reg_d [ 0 ], '_' ) > 2 ) {
$error = '<27> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> (<28> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> , <20> <> <EFBFBD> <EFBFBD> , <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ).<br>' ;
$_POST [ 'step' ] = 1 ;
}
$reg_d [ 0 ] = trim ( $reg_d [ 0 ], ' ' );
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
if ( strlen ( $reg_d [ 1 ]) < 6 || strlen ( $reg_d [ 1 ]) > 30 ) {
$error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 6 <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> 30 <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> .<br>' ;
$_POST [ 'step' ] = 2 ;
}
if ( $reg_d [ 1 ] != $reg_d [ 2 ]) {
$error = '<27> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> , <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> . <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <20> <> <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> , <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> .<br>' ;
$_POST [ 'step' ] = 2 ;
}
if ( preg_match ( '/' . $reg_d [ 0 ] . '/i' , $reg_d [ 1 ])) {
$error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> .<br>' ;
$_POST [ 'step' ] = 2 ;
}
if ( $reg_d [ 1 ] != $reg_d [ 2 ]) {
$error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> .<br>' ;
$_POST [ 'step' ] = 2 ;
}
if ( $_POST [ 'step' ] != 2 ) {
$stp = 3 ;
$noup = 0 ;
}
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> e-mail
if ( strlen ( $reg_d [ 3 ]) < 6 || strlen ( $reg_d [ 3 ]) > 50 ) {
$error = 'E-mail <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 6-<2D> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 50-<2D> <> .<br>' ;
$_POST [ 'step' ] = 3 ;
}
if ( ! preg_match ( '#^[a-z0-9.!\#$%&\'*+-/=?^_`{|}~]+@([0-9.]+|([^\s]+\.+[a-z]{2,6}))$#si' , $reg_d [ 3 ])) {
$error = '<27> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> E-mail.<br>' ;
$_POST [ 'step' ] = 3 ;
}
if ( $_POST [ 'mail_post' ] != 'true' ) {
$error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> E-mail' ;
}
$reg_d [ 4 ] = $chat -> str_count ( $reg_d [ 4 ], 30 );
$reg_d [ 5 ] = $chat -> str_count ( $reg_d [ 5 ], 30 );
if ( $_POST [ 'step' ] != 3 ) {
$stp = 4 ;
$noup = 0 ;
}
$reg_d [ 6 ] = $chat -> str_count ( $reg_d [ 6 ], 90 );
$reg_d [ 7 ] = round ( $reg_d [ 7 ]);
$reg_d [ 8 ] = round ( $reg_d [ 8 ]);
$reg_d [ 9 ] = round ( $reg_d [ 9 ]);
if ( $reg_d [ 7 ] < 1 || $reg_d [ 7 ] > 31 || $reg_d [ 8 ] < 1 || $reg_d [ 8 ] > 12 || $reg_d [ 9 ] < 1920 || $reg_d [ 9 ] > 2006 ) {
$error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> .<br>' ;
$_POST [ 'step' ] = 4 ;
}
if ( $reg_d [ 15 ] != 1 && $reg_d [ 15 ] != 2 ) {
$error = '<27> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> .<br>' ;
$_POST [ 'step' ] = 4 ;
}
if ( $error == '' ) {
if ( $reg_d [ 15 ] != 2 ) {
$reg_d [ 15 ] = 0 ;
} else {
$reg_d [ 15 ] = 1 ;
}
setcookie ( 'login' , $reg_d [ 0 ], time () + 60 * 60 * 24 * 7 , '' , $c [ 'host' ]);
setcookie ( 'pass' , md5 ( $reg_d [ 1 ]), time () + 60 * 60 * 24 * 7 , '' , $c [ 'host' ]);
mysql_query (
' UPDATE `users` SET
`login` = " ' . mysql_real_escape_string( $reg_d[0] ) . ' " ,
2022-06-06 21:30:34 +00:00
`activ` = " 1 " ,
2022-08-25 11:23:36 +00:00
`pass` = " ' . mysql_real_escape_string(md5( $reg_d[1] )) . ' " ,
`mail` = " ' . mysql_real_escape_string( $reg_d[3] ) . ' " ,
`bithday` = " ' . mysql_real_escape_string( $reg_d[7] . '.' . $reg_d[8] . '.' . $reg_d[9] ) . ' " ,
`sex` = " ' . mysql_real_escape_string( $reg_d[15] ) . ' " ,
2022-06-06 21:30:34 +00:00
`fnq` = " 0 "
2022-08-25 11:23:36 +00:00
WHERE `id` = " ' . mysql_real_escape_string( $u->info ['id']) . ' " LIMIT 1 '
);
if ( $u -> info [ 'host_reg' ] > 0 ) {
$refer = mysql_fetch_array (
mysql_query ( 'SELECT `id` FROM `users` WHERE `id` = "' . $u -> info [ 'host_reg' ] . '" LIMIT 1' )
);
if ( isset ( $refer [ 'id' ])) {
$u -> addItem ( 3199 , $u -> info [ 'id' ]);
$u -> addItem ( 4005 , $refer [ 'id' ]);
} else {
$u -> addItem ( 3199 , $u -> info [ 'id' ]);
$nast = 1001398 ;
mysql_query (
' UPDATE `users` SET
`host_reg` = " ' . $nast . ' "
WHERE `id` = " ' . mysql_real_escape_string( $u->info ['id']) . ' " LIMIT 1 '
);
}
} else {
$u -> addItem ( 3199 , $u -> info [ 'id' ]);
$nast = 1001398 ;
mysql_query (
' UPDATE `users` SET
`host_reg` = " ' . $nast . ' "
WHERE `id` = " ' . mysql_real_escape_string( $u->info ['id']) . ' " LIMIT 1 '
);
}
2022-06-06 21:30:34 +00:00
2022-08-25 11:23:36 +00:00
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> //<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> //<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> //<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD>
$text = '<b>' . $reg_d [ 0 ] . '</b>, <20> <> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> , <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> - <a href=https://new-combats.com/library/noobguide/ target=_blank >www.new-combats.com/library/noobguide</a> ' ;
mysql_query (
" INSERT INTO `chat` (`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`new`) VALUES ('capitalcity','0','',' " . $reg_d [ 0 ] . " ',' " . $text . " ',' " . time (
) . " ','6','0','1') "
);
$refer = mysql_fetch_array (
mysql_query (
'SELECT `id`,`login`,`banned`,`admin`,`level` FROM `users` WHERE `id` = "' . mysql_real_escape_string (
$_GET [ 'ref' ]
) . '" LIMIT 1'
)
);
if ( isset ( $refer [ 'id' ])) {
mysql_query (
" INSERT INTO `items_users` (`gift`,`uid`,`item_id`,`data`,`iznosMAX`,`geniration`,`maidin`,`time_create`) VALUES (' " . $refer [ 'login' ] . " ',' " . $u -> info [ 'id' ] . " ','3199','noodet=1|items_in_file=sunduk_new|var_id=1|open=1|noremont=1|nodelete=1|nosale=1|sudba= " . mysql_real_escape_string (
$reg_d [ 0 ]
) . " ',1,2,'capitalcity', " . time () . " ) "
);
}
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
$re = $u -> addItem ( 1 , $u -> info [ 'id' ], '|' );
if ( $re > 0 ) {
mysql_query ( 'UPDATE `items_users` SET `gift` = "<22> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> " WHERE `id` = "' . $re . '" LIMIT 1' );
}
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD>
$re = $u -> addItem ( 73 , $u -> info [ 'id' ], '|' );
if ( $re > 0 ) {
mysql_query ( 'UPDATE `items_users` SET `gift` = "<22> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> " WHERE `id` = "' . $re . '" LIMIT 1' );
}
$re = $u -> addItem ( 2133 , $u -> info [ 'id' ], '|sudba=' . $reg_d [ 0 ] . '|nosale=1|srok=' . ( 86400 * 14 ) . '' );
if ( $re > 0 ) {
mysql_query ( 'UPDATE `items_users` SET `gift` = "<22> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> " WHERE `id` = "' . $re . '" LIMIT 1' );
}
$error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ! <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> !<br><3E> <> <EFBFBD> <EFBFBD> <EFBFBD> 3 <20> <> <EFBFBD> . <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> !<script>setTimeout(\'top.location.href="/bk"\',2000);</script>' ;
}
die ( $error );
}
} else {
function error ( $e )
{
exit ( $e );
}
if ( isset ( $_COOKIE [ 'login' ])) {
setcookie ( 'login' , '' , time () - 60 * 60 * 24 * 30 , '' , '.new-combats.com/' );
setcookie ( 'pass' , '' , time () - 60 * 60 * 24 * 30 , '' , '.new-combats.com/' );
//
setcookie ( 'login' , '' , time () - 60 * 60 * 24 * 30 );
setcookie ( 'pass' , '' , time () - 60 * 60 * 24 * 30 );
//
}
$lr = mysql_fetch_array (
mysql_query (
'SELECT `id`,`ipreg`,`pass`,`bithday`,`login` FROM `users` WHERE `cityreg`="capitalcity" AND `timereg`>"' . ( time (
) - 60 * 60 * 1 ) . '" AND `ipreg` = "' . mysql_real_escape_string ( IP ) . '" LIMIT 1'
)
);
if ( isset ( $lr [ 'id2' ])) {
if ( isset ( $lr [ 'id' ]) && $lr [ 'bithday' ] == '01.01.1800' ) {
if ( isset ( $_GET [ 'enter' ])) {
setcookie ( 'login' , $lr [ 'login' ], time () + 60 * 60 * 24 * 7 , '' , $c [ 'host' ]);
setcookie ( 'pass' , $lr [ 'pass' ], time () + 60 * 60 * 24 * 7 , '' , $c [ 'host' ]);
header ( 'location: /bk' );
}
error (
'<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> IP <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> . <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> IP <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> , <20> <> <EFBFBD> <20> <> <EFBFBD> <20> <20> <> <EFBFBD> . <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> .<br><3E> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <b>' . $lr [ 'login' ] . '</b> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> : <a href="/reg.php?enter"><3E> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> </a>'
);
} else {
error (
'<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> IP <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> . <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> IP <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> , <20> <> <EFBFBD> <20> <> <EFBFBD> <20> <20> <> <EFBFBD> . <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> .<br>'
);
}
} else {
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
if (( int ) $_GET [ 'ref' ] > 0 ) {
mysql_query (
" UPDATE `users` SET `referals` = `referals` + 1 WHERE `id` = ' " . mysql_real_escape_string (
( int ) $_GET [ 'ref' ]
) . " ' LIMIT 1 "
);
}
$pass = md5 ( md5 ( rand ( 0 , 100. ) . '#' . rand ( 0 , 1000 )));
mysql_query (
' INSERT INTO `users` ( `host_reg` , `pass` , `ip` , `ipreg` , `city` , `cityreg` , `room` , `timereg` ) VALUES (
" ' . mysql_real_escape_string(0 + $_GET['ref'] ) . ' " ,
" ' . mysql_real_escape_string( $pass ) . ' " ,
" ' . mysql_real_escape_string(IP) . ' " ,
" ' . mysql_real_escape_string(IP) . ' " ,
2022-06-06 21:30:34 +00:00
" capitalcity " ,
" capitalcity " ,
" 0 " ,
2022-08-25 11:23:36 +00:00
" ' . time() . ' "
) '
);
$uid = mysql_insert_id ();
if ( $uid > 0 ) {
$login = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' . $uid ;
mysql_query (
'UPDATE `users` SET `login` = "' . mysql_real_escape_string (
$login
) . '" WHERE `id` = "' . $uid . '" LIMIT 1'
);
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
mysql_query ( " INSERT INTO `online` (`uid`,`timeStart`) VALUES (' " . $uid . " ',' " . time () . " ') " );
mysql_query (
" INSERT INTO `stats` (`id`,`stats`) VALUES (' " . $uid . " ','s1=3|s2=3|s3=3|s4=3|rinv=40|m9=5|m6=10') "
);
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
$ipm1 = mysql_fetch_array (
mysql_query (
'SELECT * FROM `logs_auth` WHERE `uid` = "' . mysql_real_escape_string (
$uid
) . '" AND `ip`!="' . mysql_real_escape_string ( IP ) . '" ORDER BY `id` ASC LIMIT 1'
)
);
$ppl = mysql_query (
'SELECT * FROM `logs_auth` WHERE `ip`!="" AND (`ip` = "' . mysql_real_escape_string (
IP
) . '" OR `ip`="' . mysql_real_escape_string ( $ipm1 [ 'ip' ]) . '" OR `ip`="' . mysql_real_escape_string (
$_COOKIE [ 'ip' ]
) . '")'
);
while ( $spl = mysql_fetch_array ( $ppl )) {
$ml = mysql_fetch_array (
mysql_query (
'SELECT `id` FROM `mults` WHERE (`uid` = "' . $spl [ 'uid' ] . '" AND `uid2` = "' . $uid . '") OR (`uid2` = "' . $spl [ 'uid' ] . '" AND `uid` = "' . $uid . '") LIMIT 1'
)
);
if ( ! isset ( $ml [ 'id' ]) && $spl [ 'ip' ] != '' && $spl [ 'ip' ] != '127.0.0.1' ) {
mysql_query (
'INSERT INTO `mults` (`uid`,`uid2`,`ip`) VALUES ("' . $uid . '","' . $spl [ 'uid' ] . '","' . $spl [ 'ip' ] . '")'
);
}
}
mysql_query (
" INSERT INTO `logs_auth` (`uid`,`ip`,`browser`,`type`,`time`,`depass`) VALUES (' " . $uid . " ',' " . mysql_real_escape_string (
IP
) . " ',' " . mysql_real_escape_string ( $_SERVER [ 'HTTP_USER_AGENT' ]) . " ','1',' " . time () . " ','') "
);
2022-06-06 21:30:34 +00:00
2022-08-25 11:23:36 +00:00
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
mysql_query (
" UPDATE `users` SET `online`=' " . time () . " ',`ip` = ' " . mysql_real_escape_string (
IP
) . " ' WHERE `uid` = ' " . $uid . " ' LIMIT 1 "
);
if ( ! setcookie ( 'login' , $login , ( time () + 60 * 60 * 24 * 7 ), '' , '.new-combats.com' ) || ! setcookie (
'pass' , $pass , ( time () + 60 * 60 * 24 * 7 ), '' , '.new-combats.com'
)) {
die ( '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> cookie.' );
}
header ( 'location: /bk' );
}
}
}