Remove cp1251. Я сильно недооценивал трудолюбие неизвестного кодера.
This commit is contained in:
@@ -90,7 +90,7 @@ function testBad($txt) {
|
||||
function is_login_an($login) {
|
||||
$r = true;
|
||||
//
|
||||
$login = htmlspecialchars($login,NULL,'cp1251');
|
||||
$login = htmlspecialchars($login,NULL);
|
||||
//
|
||||
$bad = array(
|
||||
'Мусорщик' => 1,
|
||||
@@ -156,7 +156,7 @@ if(isset($_GET['buy_slot'])) {
|
||||
}
|
||||
}elseif(isset($_GET['pet'])) {
|
||||
$_GET['pet'] = round((int)$_GET['pet']);
|
||||
$_GET['petname'] = htmlspecialchars($_GET['petname'],NULL,'cp1251');
|
||||
$_GET['petname'] = htmlspecialchars($_GET['petname'],NULL);
|
||||
$ax = mysql_fetch_array(mysql_query('SELECT COUNT(*) FROM `users_animal` WHERE `uid` = "'.$u->info['id'].'" AND `delete` = 0 LIMIT 1'));
|
||||
$ax = $ax[0];
|
||||
if( $_GET['pet'] < 1 || $_GET['pet'] > 7 ) {
|
||||
@@ -218,7 +218,7 @@ if(isset($_GET['buy_slot'])) {
|
||||
$anm['stats'] = 's1=5|s2=3|s3=3|s4=5|rinv=40|m9=5|m6=10';
|
||||
}
|
||||
//
|
||||
$anm['name'] = htmlspecialchars($_GET['petname'],NULL,'cp1251');
|
||||
$anm['name'] = htmlspecialchars($_GET['petname'],NULL);
|
||||
$anm['name'] = preg_replace("/&#?[a-z0-9]+;/i","", $anm['name']);
|
||||
//
|
||||
$anm['obraz'] = $anm['obraz'][rand(1,count($anm['obraz']))];
|
||||
@@ -262,7 +262,7 @@ if(isset($_GET['buy_slot'])) {
|
||||
}
|
||||
}elseif(isset($_GET['rename'])) {
|
||||
$anm = mysql_fetch_array(mysql_query('SELECT * FROM `users_animal` WHERE `id` = "'.mysql_real_escape_string($_GET['rename']).'" AND `uid` = "'.$u->info['id'].'" AND `delete` = 0 LIMIT 1'));
|
||||
$_GET['vvv'] = htmlspecialchars($_GET['vvv'],NULL,'cp1251');
|
||||
$_GET['vvv'] = htmlspecialchars($_GET['vvv'],NULL);
|
||||
if(!isset($anm['id'])) {
|
||||
$u->error = 'Зверь не найден.';
|
||||
}elseif(30 > $u->info['money']) {
|
||||
|
||||
Reference in New Issue
Block a user