Utf8 convert

This commit is contained in:
2023-01-10 18:29:32 +02:00
parent 71b759232c
commit 90b9c8325e
3572 changed files with 35191 additions and 395614 deletions
+8 -8
View File
@@ -7,14 +7,14 @@ if(!defined('GAME'))
if( $itm['magic_inci'] == 'chains' && $itm['iznosNOW'] < $itm['iznosMAX']) {
$usr = mysql_fetch_array(mysql_query('SELECT `st`.`x`,`st`.`y`,`st`.`timeGo`,`st`.`clone`,`u`.`bot_id`,`u`.`type_pers`,`u`.`inTurnir`,`st`.`zv`,`st`.`bot`,`st`.`hpNow`,`u`.`login`,`st`.`dnow`,`u`.`id`,`u`.`align`,`u`.`admin`,`u`.`clan`,`u`.`level`,`u`.`room`,`u`.`online`,`u`.`battle`,`st`.`team` FROM `users` AS `u` LEFT JOIN `stats` AS `st` ON (`u`.`id` = `st`.`id`) WHERE `u`.`city` = "'.$u->info['city'].'" AND (`u`.`login`="'.mysql_real_escape_string($_GET['login']).'" OR `u`.`login`="'.mysql_real_escape_string($jl).'") LIMIT 1'));
if(isset($usr['id']) && $usr['online'] > time()-520 ) {
//Ïóòû íà 1-10 ìèí
//Путы на 1-10 мин
if( $u->info['room'] != $usr['room'] ) {
$u->error = 'Ïåðñîíàæ íàõîäèòñÿ â äðóãîé êîìíàòå';
$u->error = 'Персонаж находится в другой комнате';
}else{
if( $u->info['room'] >= 362 && $u->info['room'] <= 366 && ( $u->info['x'] != $usr['x'] || $u->info['y'] != $usr['y'] ) ) {
$u->error = 'Ïåðñîíàæ íàõîäèòñÿ â äðóãîé êîìíàòå';
$u->error = 'Персонаж находится в другой комнате';
}elseif( $usr['timeGo'] > time()+120 ) {
$u->error = 'Ïåðñîíàæ &quot;'.$usr['login'].'&quot; óæå îáåçäâèæåí';
$u->error = 'Персонаж &quot;'.$usr['login'].'&quot; уже обездвижен';
}else{
$rmin = rand(1,10);
if( $usr['timeGo'] < time() ) {
@@ -24,7 +24,7 @@ if( $itm['magic_inci'] == 'chains' && $itm['iznosNOW'] < $itm['iznosMAX']) {
$putu = mysql_fetch_array(mysql_query('SELECT * FROM `eff_users` WHERE `img2` = "chains.gif" AND `delete` = "0" AND `uid` = "'.$usr['id'].'" LIMIT 1'));
if(!isset($putu['id'])) {
mysql_query('INSERT INTO `eff_users` (`user_use`,`id_eff`,`uid`,`name`,`data`,`overType`,`timeUse`,`img2`) VALUES (
"'.$u->info['login'].'","2","'.$usr['id'].'","Ïóòû","puti='.$usr['timeGo'].'","1","'.$usr['timeGo'].'","chains.gif"
"'.$u->info['login'].'","2","'.$usr['id'].'","Путы","puti='.$usr['timeGo'].'","1","'.$usr['timeGo'].'","chains.gif"
) ');
}else{
mysql_query('UPDATE `eff_users` SET `timeUse` = "'.$usr['timeGo'].'" WHERE `id` = "'.$putu['id'].'" LIMIT 1');
@@ -32,14 +32,14 @@ if( $itm['magic_inci'] == 'chains' && $itm['iznosNOW'] < $itm['iznosMAX']) {
mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = '.$itm['id'].' LIMIT 1');
mysql_query('UPDATE `stats` SET `timeGo` = "'.$usr['timeGo'].'",`timeGoL` = "'.$usr['timeGo'].'" WHERE `id` = "'.$usr['id'].'" LIMIT 1');
if( $u->info['id'] != $usr['id'] ) {
$rtxt = '[img[items/chains.gif]] Ïåðñîíàæ &quot;'.$u->info['login'].'&quot; èñïîëüçîâàë &quot;'.$itm['name'].'&quot; íà &quot;'.$usr['login'].'&quot; è îáåæäâèæèë åùå íà '.$rmin.' ìèí.';
$rtxt = '[img[items/chains.gif]] Персонаж &quot;'.$u->info['login'].'&quot; использовал &quot;'.$itm['name'].'&quot; на &quot;'.$usr['login'].'&quot; и обеждвижил еще на '.$rmin.' мин.';
mysql_query("INSERT INTO `chat` (`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`typeTime`,`new`) VALUES ('".$u->info['city']."','".$u->info['room']."','','','".$rtxt."','".time()."','6','0','1','1')");
}
$u->error = 'Âû óñïåøíî èñïîëüçîâàëè &quot;'.$itm['name'].'&quot; íà '.$usr['login'].', íà '.$rmin.' ìèí.';
$u->error = 'Вы успешно использовали &quot;'.$itm['name'].'&quot; на '.$usr['login'].', на '.$rmin.' мин.';
}
}
}else{
$u->error = 'Ïåðñîíàæ íå íàéäåí â ýòîì ãîðîäå';
$u->error = 'Персонаж не найден в этом городе';
}
}
?>