Фикс mysql запросов

This commit is contained in:
Igor Barkov [iwork]
2018-10-30 20:46:12 +02:00
parent f7d95e3a56
commit f78dbdd75f
5 changed files with 26 additions and 61 deletions

View File

@@ -42,11 +42,8 @@ if($user['align'] != 2.99 && $user['login'] != "father") {
}
mysql_query('UPDATE `abils_vip` SET '.$sql.' WHERE `id` = "'.$vip['id'].'" LIMIT 1');
echo '<b style=\'color: Red;\'>Персонажу '.$us['login'].', '.$t.' '.$types[$type].' аккаунт. Сроком '.$srok.'</b>';
if($user['deal'] > 0) {
$txt = 'Дилер <b>'.$user['login'].'</b> '.$add.' вам <b>'.$types[$type].' аккаунт</b>, сроком '.$srok.'';
} elseif($user['align'] == 2.99) {
$txt = 'Ангел <b>'.$user['login'].'</b> '.$add.' вам <b>'.$types[$type].' аккаунт</b>, сроком '.$srok.'';
}
$txt = 'Ангел <b>'.$user['login'].'</b> '.$add.' вам <b>'.$types[$type].' аккаунт</b>, сроком '.$srok.'';
addchp('<font color=red>Внимание!</font> '.$txt, '{[]}'.nick::id($us['id'])->short().'{[]}');
} elseif($type == 2) {
if($us['vip'] == 1) {
@@ -67,11 +64,8 @@ if($user['align'] != 2.99 && $user['login'] != "father") {
}
mysql_query('UPDATE `abils_vip` SET '.$sql.' WHERE `id` = "'.$vip['id'].'" LIMIT 1');
echo '<b style=\'color: Red;\'>Персонажу '.$us['login'].', '.$t.' '.$types[$type].' аккаунт. Сроком '.$srok.'</b>';
if($user['deal'] > 0) {
$txt = 'Дилер <b>'.$user['login'].'</b> '.$add.' вам <b>'.$types[$type].' аккаунт</b>, сроком '.$srok.'';
} elseif($user['align'] == 2.99) {
$txt = 'Ангел <b>'.$user['login'].'</b> '.$add.' вам <b>'.$types[$type].' аккаунт</b>, сроком '.$srok.'';
}
$txt = 'Ангел <b>'.$user['login'].'</b> '.$add.' вам <b>'.$types[$type].' аккаунт</b>, сроком '.$srok.'';
addchp('<font color=red>Внимание!</font> '.$txt, '{[]}'.nick::id($us['id'])->short().'{[]}');
} elseif($type == 3) {
if($us['vip'] == 1) {
@@ -92,11 +86,8 @@ if($user['align'] != 2.99 && $user['login'] != "father") {
}
mysql_query('UPDATE `abils_vip` SET '.$sql.' WHERE `id` = "'.$vip['id'].'" LIMIT 1');
echo '<b style=\'color: Red;\'>Персонажу '.$us['login'].', '.$t.' '.$types[$type].' аккаунт. Сроком '.$srok.'</b>';
if($user['deal'] > 0) {
$txt = 'Дилер <b>'.$user['login'].'</b> '.$add.' вам <b>'.$types[$type].' аккаунт</b>, сроком '.$srok.'';
} elseif($user['align'] == 2.99) {
$txt = 'Ангел <b>'.$user['login'].'</b> '.$add.' вам <b>'.$types[$type].' аккаунт</b>, сроком '.$srok.'';
}
$txt = 'Ангел <b>'.$user['login'].'</b> '.$add.' вам <b>'.$types[$type].' аккаунт</b>, сроком '.$srok.'';
addchp('<font color=red>Внимание!</font> '.$txt, '{[]}'.nick::id($us['id'])->short().'{[]}');
}
} else {
@@ -115,12 +106,8 @@ if($user['align'] != 2.99 && $user['login'] != "father") {
mysql_query('UPDATE `users` SET `vip` = "'.$type.'", `vip_time` = "'.$n_time.'" WHERE `id` = "'.$us['id'].'" LIMIT 1');
mysql_query('UPDATE `abils_vip` SET '.$sql.' WHERE `id` = "'.$vip['id'].'" LIMIT 1');
echo '<b style=\'color: Red;\'>Персонажу '.$us['login'].', выдан '.$types[$type].' аккаунт. Сроком '.$srok.'</b>';
if($user['deal'] > 0) {
$txt = 'Дилер <b>'.$user['login'].'</b> '.$add.' вам <b>'.$types[$type].' аккаунт</b>, сроком '.$srok.'';
} elseif($user['align'] == 2.99) {
$txt = 'Ангел <b>'.$user['login'].'</b> '.$add.' вам <b>'.$types[$type].' аккаунт</b>, сроком '.$srok.'';
}
$txt = 'Ангел <b>'.$user['login'].'</b> '.$add.' вам <b>'.$types[$type].' аккаунт</b>, сроком '.$srok.'';
addchp('<font color=red>Внимание!</font> '.$txt, '{[]}'.nick::id($us['id'])->short().'{[]}');
} else {
@@ -139,11 +126,8 @@ if($user['align'] != 2.99 && $user['login'] != "father") {
mysql_query('UPDATE `users` SET `vip` = "'.$type.'", `vip_time` = "'.$n_time.'" WHERE `id` = "'.$us['id'].'" LIMIT 1');
mysql_query('INSERT INTO `abils_vip` SET '.$sql.', `uid` = "'.$us['id'].'"');
echo '<b style=\'color: Red;\'>Персонажу '.$us['login'].', выдан '.$types[$type].' аккаунт. Сроком '.$srok.'</b>';
if($user['deal'] > 0) {
$txt = 'Дилер <b>'.$user['login'].'</b> присвоил вам <b>'.$types[$type].' аккаунт</b>, сроком '.$srok.'';
} elseif($user['align'] == 2.99) {
$txt = 'Ангел <b>'.$user['login'].'</b> присвоил вам <b>'.$types[$type].' аккаунт</b>, сроком '.$srok.'';
}
$txt = 'Ангел <b>'.$user['login'].'</b> присвоил вам <b>'.$types[$type].' аккаунт</b>, сроком '.$srok.'';
addchp('<font color=red>Внимание!</font> '.$txt, '{[]}'.nick::id($us['id'])->short().'{[]}');
}
}