Очистка ненужного функционала. #49 #51

This commit is contained in:
2023-06-13 03:44:13 +03:00
parent f49f8cd08d
commit 5e06f5e136
24 changed files with 153 additions and 722 deletions
-1
View File
@@ -56,7 +56,6 @@ $uids = getIds('select id from users');
Db::sql('delete from items_users where uid > 0 and uid not in (?)', [$uids]);
Db::sql('delete from eff_users where uid > 0 and uid not in (?)', [$uids]);
Db::sql('delete from users_achiv where id > 0 and id not in (?)', [$uids]);
Db::sql('delete from aaa_bonus where uid > 0 and uid not in (?)', [$uids]);
Db::sql('delete from users_delo where uid > 0 and uid not in (?) or time < unix_timestamp() - 86400 * 10', [$uids]);
Db::sql('delete from users_reting where uid > 0 and uid not in (?)', [$uids]);
Db::sql('delete from aaa_reting_list where uid > 0 and uid not in (?)', [$uids]);
-4
View File
@@ -44,7 +44,6 @@ if( isset($_GET['actions']) ) {
// forign_keys! Никто не знает про foreign_keys!
function delete_user_all( $uid , $login ) {
mysql_query('DELETE FROM `aaa_bonus` WHERE `uid` = "'.$uid.'"');
mysql_query('DELETE FROM `aaa_znahar` WHERE `uid` = "'.$uid.'"');
mysql_query('DELETE FROM `actions` WHERE `uid` = "'.$uid.'"');
mysql_query('DELETE FROM `add_smiles` WHERE `uid` = "'.$uid.'"');
@@ -154,6 +153,3 @@ mysql_query('DELETE FROM `items_users` WHERE `delete` > `time_create` AND `delet
//6. Очистка личного дела
mysql_query('DELETE FROM `users_delo` WHERE `time` < "'.(time()-86400*30).'" LIMIT 1000');
//7. сброс счетчика жетонов
mysql_query('UPDATE `users` SET `ang_g` = 0 WHERE `ang_g` > 0');