mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
r392
исправление недочетов git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@392 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
5982453a9e
commit
7358bbdb4a
3 changed files with 7 additions and 4 deletions
|
@ -217,7 +217,7 @@ if ($mode == 'user' && (!empty($_POST['username']) || $user_id))
|
||||||
'CAT_HREF' => "$base_url&c=$c_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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -189,8 +189,7 @@ if($bb_cfg['seed_bonus_enabled'] && $bb_cfg['seed_bonus_points'] && $bb_cfg['see
|
||||||
DB()->query("
|
DB()->query("
|
||||||
CREATE TEMPORARY TABLE tmp_bonus (
|
CREATE TEMPORARY TABLE tmp_bonus (
|
||||||
user_id INT UNSIGNED NOT NULL DEFAULT '0',
|
user_id INT UNSIGNED NOT NULL DEFAULT '0',
|
||||||
release_count INT UNSIGNED NOT NULL DEFAULT '0',
|
release_count INT UNSIGNED NOT NULL DEFAULT '0'
|
||||||
PRIMARY KEY (user_id)
|
|
||||||
) ENGINE = MEMORY
|
) ENGINE = MEMORY
|
||||||
");
|
");
|
||||||
|
|
||||||
|
@ -218,7 +217,8 @@ if($bb_cfg['seed_bonus_enabled'] && $bb_cfg['seed_bonus_points'] && $bb_cfg['see
|
||||||
|
|
||||||
DB()->query("
|
DB()->query("
|
||||||
UPDATE ". BB_USERS ." u, tmp_bonus b
|
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
|
WHERE u.user_id = b.user_id
|
||||||
AND b.release_count <= $release
|
AND b.release_count <= $release
|
||||||
AND u.user_regdate < $user_regdate
|
AND u.user_regdate < $user_regdate
|
||||||
|
|
|
@ -435,6 +435,9 @@
|
||||||
<label><input type="radio" name="seed_bonus_enabled" value="0" <!-- IF not SEED_BONUS_ENABLED -->checked="checked"<!-- ENDIF --> />{L_DISABLED}</label>
|
<label><input type="radio" name="seed_bonus_enabled" value="0" <!-- IF not SEED_BONUS_ENABLED -->checked="checked"<!-- ENDIF --> />{L_DISABLED}</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr class="row3 med">
|
||||||
|
<td class="bold tCenter warnColor1" colspan="2">ВНИМАНИЕ!!! Сид Бонусы должны быть в порядке возрастания</td>
|
||||||
|
</tr>
|
||||||
<!-- BEGIN seed_bonus -->
|
<!-- BEGIN seed_bonus -->
|
||||||
<tr id="seed_bonus_{seed_bonus.RELEASE}">
|
<tr id="seed_bonus_{seed_bonus.RELEASE}">
|
||||||
<td>{L_SEED_BONUS_ADD}</td>
|
<td>{L_SEED_BONUS_ADD}</td>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue