From 7358bbdb4a174f0e2a9d9f9065931df8bf22f723 Mon Sep 17 00:00:00 2001 From: nanosimbiot Date: Mon, 9 Apr 2012 14:46:52 +0000 Subject: [PATCH] r392 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit исправление недочетов git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@392 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293 --- upload/admin/admin_ug_auth.php | 2 +- upload/includes/cron/jobs/tr_cleanup_and_dlstat.php | 6 +++--- upload/templates/admin/admin_board.tpl | 3 +++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/upload/admin/admin_ug_auth.php b/upload/admin/admin_ug_auth.php index aca758798..fb558e4c5 100644 --- a/upload/admin/admin_ug_auth.php +++ b/upload/admin/admin_ug_auth.php @@ -217,7 +217,7 @@ if ($mode == 'user' && (!empty($_POST['username']) || $user_id)) 'CAT_HREF' => "$base_url&c=$c_id", )); - if (!$c =& $_REQUEST['c'] OR !in_array($c, array('all', $c_id))) + if (!$c =& $_REQUEST['c'] OR !in_array($c, array('all', $c_id)) OR empty($c_data['forums'])) { continue; } diff --git a/upload/includes/cron/jobs/tr_cleanup_and_dlstat.php b/upload/includes/cron/jobs/tr_cleanup_and_dlstat.php index 85d51f2db..e94f49bf1 100644 --- a/upload/includes/cron/jobs/tr_cleanup_and_dlstat.php +++ b/upload/includes/cron/jobs/tr_cleanup_and_dlstat.php @@ -189,8 +189,7 @@ if($bb_cfg['seed_bonus_enabled'] && $bb_cfg['seed_bonus_points'] && $bb_cfg['see DB()->query(" CREATE TEMPORARY TABLE tmp_bonus ( user_id INT UNSIGNED NOT NULL DEFAULT '0', - release_count INT UNSIGNED NOT NULL DEFAULT '0', - PRIMARY KEY (user_id) + release_count INT UNSIGNED NOT NULL DEFAULT '0' ) ENGINE = MEMORY "); @@ -218,7 +217,8 @@ if($bb_cfg['seed_bonus_enabled'] && $bb_cfg['seed_bonus_points'] && $bb_cfg['see DB()->query(" UPDATE ". BB_USERS ." u, tmp_bonus b - SET u.user_points = u.user_points + $user_points + SET u.user_points = u.user_points + $user_points, + b.user_id = 0 WHERE u.user_id = b.user_id AND b.release_count <= $release AND u.user_regdate < $user_regdate diff --git a/upload/templates/admin/admin_board.tpl b/upload/templates/admin/admin_board.tpl index c02f8e201..b3c00fd41 100644 --- a/upload/templates/admin/admin_board.tpl +++ b/upload/templates/admin/admin_board.tpl @@ -435,6 +435,9 @@ + + ВНИМАНИЕ!!! Сид Бонусы должны быть в порядке возрастания + {L_SEED_BONUS_ADD}