mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Minor improvements (#168)
This commit is contained in:
parent
3d17119e68
commit
d6702fe1b1
@ -5,7 +5,7 @@
|
||||
|
||||
**Merged pull requests:**
|
||||
|
||||
- Minor improvements [\#167](https://github.com/torrentpier/torrentpier-lts/pull/167) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Minor improvements [\#167](https://github.com/torrentpier/torrentpier-lts/pull/167), Minor improvements [\#168](https://github.com/torrentpier/torrentpier-lts/pull/168) ([belomaxorka](https://github.com/belomaxorka))
|
||||
|
||||
## [v2.1.5-2023.04](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.04) (2023-05-04)
|
||||
[Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.03...v2.1.5-2023.04)
|
||||
|
@ -42,17 +42,19 @@ elseif (isset($_POST['delete_name']))
|
||||
{
|
||||
$disallowed_id = (isset($_POST['disallowed_id']) ) ? intval( $_POST['disallowed_id'] ) : intval( $_GET['disallowed_id']);
|
||||
|
||||
$sql = "DELETE FROM " . BB_DISALLOW . " WHERE disallow_id = $disallowed_id";
|
||||
$result = DB()->sql_query($sql);
|
||||
if (!$result)
|
||||
if (!empty($disallowed_id))
|
||||
{
|
||||
bb_die('Could not removed disallowed user');
|
||||
$sql = "DELETE FROM " . BB_DISALLOW . " WHERE disallow_id = $disallowed_id";
|
||||
$result = DB()->sql_query($sql);
|
||||
if (!$result)
|
||||
{
|
||||
bb_die('Could not removed disallowed user');
|
||||
}
|
||||
|
||||
$message .= $lang['DISALLOWED_DELETED'] .'<br /><br />'. sprintf($lang['CLICK_RETURN_DISALLOWADMIN'], '<a href="admin_disallow.php">', '</a>') .'<br /><br />'. sprintf($lang['CLICK_RETURN_ADMIN_INDEX'], '<a href="index.php?pane=right">', '</a>');
|
||||
|
||||
bb_die($message);
|
||||
}
|
||||
|
||||
$message .= $lang['DISALLOWED_DELETED'] .'<br /><br />'. sprintf($lang['CLICK_RETURN_DISALLOWADMIN'], '<a href="admin_disallow.php">', '</a>') .'<br /><br />'. sprintf($lang['CLICK_RETURN_ADMIN_INDEX'], '<a href="index.php?pane=right">', '</a>');
|
||||
|
||||
bb_die($message);
|
||||
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -42,44 +42,44 @@
|
||||
<tr>
|
||||
<td><h4>{L_AUTOLOGIN_TIME}</h4><h6>{L_AUTOLOGIN_TIME_EXPLAIN}</h6></td>
|
||||
<td>
|
||||
<input class="post" type="text" size="3" maxlength="4" name="max_autologin_time" value="{AUTOLOGIN_TIME}" /> {L_DAYS}
|
||||
<input class="post" type="number" size="3" maxlength="4" name="max_autologin_time" value="{AUTOLOGIN_TIME}" /> {L_DAYS}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_FLOOD_INTERVAL}</h4><h6>{L_FLOOD_INTERVAL_EXPLAIN}</h6></td>
|
||||
<td>
|
||||
<input class="post" type="text" size="3" maxlength="4" name="flood_interval" value="{FLOOD_INTERVAL}" /> {L_SEC}
|
||||
<input class="post" type="number" size="3" maxlength="4" name="flood_interval" value="{FLOOD_INTERVAL}" /> {L_SEC}
|
||||
</td>
|
||||
</tr>
|
||||
<!--
|
||||
<tr>
|
||||
<td><h4>{L_MAX_LOGIN_ATTEMPTS}</h4><h6>{L_MAX_LOGIN_ATTEMPTS_EXPLAIN}</h6></td>
|
||||
<td>
|
||||
<input class="post" type="text" size="3" maxlength="4" name="max_login_attempts" value="{MAX_LOGIN_ATTEMPTS}" />
|
||||
<input class="post" type="number" size="3" maxlength="4" name="max_login_attempts" value="{MAX_LOGIN_ATTEMPTS}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_LOGIN_RESET_TIME}</h4><h6>{L_LOGIN_RESET_TIME_EXPLAIN}</h6></td>
|
||||
<td>
|
||||
<input class="post" type="text" size="3" maxlength="4" name="login_reset_time" value="{LOGIN_RESET_TIME}" />
|
||||
<input class="post" type="number" size="3" maxlength="4" name="login_reset_time" value="{LOGIN_RESET_TIME}" />
|
||||
</td>
|
||||
</tr>
|
||||
-->
|
||||
<tr>
|
||||
<td><h4>{L_TOPICS_PER_PAGE}</h4></td>
|
||||
<td>
|
||||
<input class="post" type="text" name="topics_per_page" size="5" maxlength="4" value="{TOPICS_PER_PAGE}" />
|
||||
<input class="post" type="number" name="topics_per_page" size="5" maxlength="4" value="{TOPICS_PER_PAGE}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_POSTS_PER_PAGE}</h4></td>
|
||||
<td>
|
||||
<input class="post" type="text" name="posts_per_page" size="5" maxlength="4" value="{POSTS_PER_PAGE}" />
|
||||
<input class="post" type="number" name="posts_per_page" size="5" maxlength="4" value="{POSTS_PER_PAGE}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_HOT_THRESHOLD}</h4></td>
|
||||
<td><input class="post" type="text" name="hot_threshold" size="5" maxlength="4" value="{HOT_TOPIC}" /></td>
|
||||
<td><input class="post" type="number" name="hot_threshold" size="5" maxlength="4" value="{HOT_TOPIC}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_DEFAULT_LANGUAGE}</h4></td>
|
||||
@ -105,7 +105,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_MAX_POLL_OPTIONS}</h4></td>
|
||||
<td><input class="post" type="text" name="max_poll_options" size="4" maxlength="4" value="{MAX_POLL_OPTIONS}" /></td>
|
||||
<td><input class="post" type="number" name="max_poll_options" size="4" maxlength="4" value="{MAX_POLL_OPTIONS}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_ALLOW_BBCODE}</h4></td>
|
||||
@ -134,7 +134,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_MAX_SIG_LENGTH}</h4><h6>{L_MAX_SIG_LENGTH_EXPLAIN}</h6></td>
|
||||
<td><input class="post" type="text" size="5" maxlength="4" name="max_sig_chars" value="{SIG_SIZE}" /></td>
|
||||
<td><input class="post" type="number" size="5" maxlength="4" name="max_sig_chars" value="{SIG_SIZE}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_ALLOW_NAME_CHANGE}</h4></td>
|
||||
@ -237,15 +237,15 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_MAX_NEWS_TITLE}</h4></td>
|
||||
<td><input class="post" type="text" size="25" maxlength="100" name="max_news_title" value="{MAX_NEWS_TITLE}" /></td>
|
||||
<td><input class="post" type="number" size="25" maxlength="100" name="max_news_title" value="{MAX_NEWS_TITLE}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_NEWS_COUNT}</h4></td>
|
||||
<td><input class="post" type="text" size="25" maxlength="100" name="latest_news_count" value="{LATEST_NEWS_COUNT}" /></td>
|
||||
<td><input class="post" type="number" size="25" maxlength="100" name="latest_news_count" value="{LATEST_NEWS_COUNT}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_NEWS_FORUM_ID}</h4></td>
|
||||
<td><input class="post" type="text" size="25" maxlength="100" name="latest_news_forum_id" value="{LATEST_NEWS_FORUM_ID}" /></td>
|
||||
<td><input class="post" type="number" size="25" maxlength="100" name="latest_news_forum_id" value="{LATEST_NEWS_FORUM_ID}" /></td>
|
||||
</tr>
|
||||
|
||||
<tr class="row3 med">
|
||||
@ -260,15 +260,15 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_MAX_NEWS_TITLE}</h4></td>
|
||||
<td><input class="post" type="text" size="25" maxlength="100" name="max_net_title" value="{MAX_NET_TITLE}" /></td>
|
||||
<td><input class="post" type="number" size="25" maxlength="100" name="max_net_title" value="{MAX_NET_TITLE}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_NEWS_COUNT}</h4></td>
|
||||
<td><input class="post" type="text" size="25" maxlength="100" name="network_news_count" value="{NETWORK_NEWS_COUNT}" /></td>
|
||||
<td><input class="post" type="number" size="25" maxlength="100" name="network_news_count" value="{NETWORK_NEWS_COUNT}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_NEWS_FORUM_ID}</h4></td>
|
||||
<td><input class="post" type="text" size="25" maxlength="100" name="network_news_forum_id" value="{NETWORK_NEWS_FORUM_ID}" /></td>
|
||||
<td><input class="post" type="number" size="25" maxlength="100" name="network_news_forum_id" value="{NETWORK_NEWS_FORUM_ID}" /></td>
|
||||
</tr>
|
||||
|
||||
<tr class="row3 med">
|
||||
@ -283,15 +283,15 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_BIRTHDAY_MAX_AGE}</h4></td>
|
||||
<td><input class="post" type="text" size="25" maxlength="100" name="birthday_max_age" value="{BIRTHDAY_MAX_AGE}" /> {L_YEARS}</td>
|
||||
<td><input class="post" type="number" size="25" maxlength="100" name="birthday_max_age" value="{BIRTHDAY_MAX_AGE}" /> {L_YEARS}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_BIRTHDAY_MIN_AGE}</h4></td>
|
||||
<td><input class="post" type="text" size="25" maxlength="100" name="birthday_min_age" value="{BIRTHDAY_MIN_AGE}" /> {L_YEARS}</td>
|
||||
<td><input class="post" type="number" size="25" maxlength="100" name="birthday_min_age" value="{BIRTHDAY_MIN_AGE}" /> {L_YEARS}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_BIRTHDAY_CHECK_DAY}</h4></td>
|
||||
<td><input class="post" type="text" size="25" maxlength="100" name="birthday_check_day" value="{BIRTHDAY_CHECK_DAY}" /> {L_DAYS}</td>
|
||||
<td><input class="post" type="number" size="25" maxlength="100" name="birthday_check_day" value="{BIRTHDAY_CHECK_DAY}" /> {L_DAYS}</td>
|
||||
</tr>
|
||||
|
||||
<tr class="row3 med">
|
||||
@ -311,8 +311,8 @@
|
||||
<tr id="seed_bonus_{seed_bonus.RELEASE}">
|
||||
<td>{L_SEED_BONUS_ADD}</td>
|
||||
<td>
|
||||
<input class="post" type="text" size="5" name="seed_bonus_release[]" value="{seed_bonus.RELEASE}" /> {L_SEED_BONUS_RELEASE} <br />
|
||||
<input class="post" type="text" size="5" name="seed_bonus_points[]" value="{seed_bonus.POINTS}" /> {L_SEED_BONUS_POINTS}
|
||||
<input class="post" type="number" size="5" name="seed_bonus_release[]" value="{seed_bonus.RELEASE}" /> {L_SEED_BONUS_RELEASE} <br />
|
||||
<input class="post" type="number" size="5" name="seed_bonus_points[]" value="{seed_bonus.POINTS}" /> {L_SEED_BONUS_POINTS}
|
||||
<input onclick="$('#seed_bonus_{seed_bonus.RELEASE}').remove();" class="post" type="button" size="2" value="{L_DELETE}" />
|
||||
</td>
|
||||
</tr>
|
||||
@ -321,8 +321,8 @@
|
||||
<tr id="seed_bonus">
|
||||
<td>{L_SEED_BONUS_ADD}</td>
|
||||
<td>
|
||||
<input class="post" type="text" size="5" name="seed_bonus_release[]" value="" /> {L_SEED_BONUS_RELEASE} <br />
|
||||
<input class="post" type="text" size="5" name="seed_bonus_points[]" value="" /> {L_SEED_BONUS_POINTS}
|
||||
<input class="post" type="number" size="5" name="seed_bonus_release[]" value="" /> {L_SEED_BONUS_RELEASE} <br />
|
||||
<input class="post" type="number" size="5" name="seed_bonus_points[]" value="" /> {L_SEED_BONUS_POINTS}
|
||||
<input onclick="$('#seed_bonus').clone().appendTo('.seed_bonus');" class="post" type="button" size="2" value="+" />
|
||||
<input onclick="$('#seed_bonus').remove();" class="post" type="button" size="2" value="-" />
|
||||
</td>
|
||||
@ -331,11 +331,11 @@
|
||||
<tr class="row3 med"><td colspan="2"></td></tr>
|
||||
<tr>
|
||||
<td>{L_SEED_BONUS_TOR_SIZE}</td>
|
||||
<td><input class="post" type="text" size="25" maxlength="100" name="seed_bonus_tor_size" value="{SEED_BONUS_TOR_SIZE}" /> {L_GB}</td>
|
||||
<td><input class="post" type="number" size="25" maxlength="100" name="seed_bonus_tor_size" value="{SEED_BONUS_TOR_SIZE}" /> {L_GB}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{L_SEED_BONUS_USER_REGDATA}</td>
|
||||
<td><input class="post" type="text" size="25" maxlength="100" name="seed_bonus_user_regdate" value="{SEED_BONUS_USER_REGDATE}" /> {L_DAYS}</td>
|
||||
<td><input class="post" type="number" size="25" maxlength="100" name="seed_bonus_user_regdate" value="{SEED_BONUS_USER_REGDATE}" /> {L_DAYS}</td>
|
||||
</tr>
|
||||
<tr class="row3 med">
|
||||
<td class="bold tCenter" colspan="2">{L_SEED_BONUS_EXCHANGE}</td>
|
||||
@ -354,8 +354,8 @@
|
||||
<tr id="bonus_upload">
|
||||
<td><h4>{L_SEED_BONUS_ROPORTION}</h4><h6></h6></td>
|
||||
<td>
|
||||
<input class="post" type="text" size="5" name="bonus_upload[]" value="" /> {L_GB} <br />
|
||||
<input class="post" type="text" size="5" name="bonus_upload_price[]" value="" /> {L_PRICE}
|
||||
<input class="post" type="number" size="5" name="bonus_upload[]" value="" /> {L_GB} <br />
|
||||
<input class="post" type="number" size="5" name="bonus_upload_price[]" value="" /> {L_PRICE}
|
||||
<input onclick="$('#bonus_upload').clone().appendTo('.bonus_upload');" class="post" type="button" size="2" value="+" />
|
||||
<input onclick="$('#bonus_upload').remove();" class="post" type="button" size="2" value="-" />
|
||||
</td>
|
||||
|
@ -93,7 +93,7 @@
|
||||
<td class="row1" align="center"><input type="checkbox" name="add_allowed" /></td>
|
||||
<td class="row2" align="center">{S_ADD_DOWNLOAD_MODE}</td>
|
||||
<td class="row1" align="center"><input type="text" size="15" maxlength="100" name="add_upload_icon" class="post" value="{UPLOAD_ICON}" /></td>
|
||||
<td class="row2" align="center"><input type="text" size="3" maxlength="15" name="add_max_filesize" class="post" value="{MAX_FILESIZE}" /> {S_FILESIZE}</td>
|
||||
<td class="row2" align="center"><input type="number" size="3" maxlength="15" name="add_max_filesize" class="post" value="{MAX_FILESIZE}" /> {S_FILESIZE}</td>
|
||||
<td class="row1" align="center"> </td>
|
||||
<td class="row2" align="center"><input type="checkbox" name="add_extension_group_check" /></td>
|
||||
</tr>
|
||||
@ -125,7 +125,7 @@
|
||||
<td class="row1" align="center"><input type="checkbox" name="allowed_list[]" value="{grouprow.GROUP_ID}" {grouprow.S_ALLOW_SELECTED} /></td>
|
||||
<td class="row2" align="center">{grouprow.S_DOWNLOAD_MODE}</td>
|
||||
<td class="row1" align="center"><input type="text" size="15" maxlength="100" name="upload_icon_list[]" class="post" value="{grouprow.UPLOAD_ICON}" /></td>
|
||||
<td class="row2" align="center"><input type="text" size="3" maxlength="15" name="max_filesize_list[]" class="post" value="{grouprow.MAX_FILESIZE}" /> {grouprow.S_FILESIZE}</td>
|
||||
<td class="row2" align="center"><input type="number" size="3" maxlength="15" name="max_filesize_list[]" class="post" value="{grouprow.MAX_FILESIZE}" /> {grouprow.S_FILESIZE}</td>
|
||||
<td class="row1" align="center"><span class="small"><a href="{grouprow.U_FORUM_PERMISSIONS}" class="small">{L_EXT_GROUP_PERMISSIONS}</a></span></td>
|
||||
<td class="row2" align="center"><input type="checkbox" name="group_id_list[]" value="{grouprow.GROUP_ID}" /></td>
|
||||
</tr>
|
||||
|
@ -58,7 +58,7 @@ table.log_filters td {
|
||||
<p class="input nowrap">
|
||||
<input class="post" type="text" size="10" maxlength="20" name="{DATETIME_NAME}" value="{DATETIME_VAL}" />
|
||||
&
|
||||
<input class="post" type="text" size="2" maxlength="5" name="{DAYSBACK_NAME}" value="{DAYSBACK_VAL}" />
|
||||
<input class="post" type="number" size="2" maxlength="5" name="{DAYSBACK_NAME}" value="{DAYSBACK_VAL}" />
|
||||
{L_ACTS_LOG_DAYS_BACK}
|
||||
</p>
|
||||
</div>
|
||||
|
@ -58,7 +58,7 @@ function swap_values()
|
||||
<td><h4>{L_STARTING_POST_ID}</h4><h6>{L_STARTING_POST_ID_EXPLAIN}</h6></td>
|
||||
<td>
|
||||
<!-- BEGIN start_text_input -->
|
||||
<input class="post" type="text" name="start_t" value="0" size="10" disabled="disabled" />
|
||||
<input class="post" type="number" name="start_t" value="0" size="10" disabled="disabled" />
|
||||
<input type="hidden" name="start" value="0" />
|
||||
<!-- END start_text_input -->
|
||||
<!-- BEGIN start_select_input -->
|
||||
@ -79,19 +79,19 @@ function swap_values()
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_NUM_OF_POSTS}</h4><h6>{L_NUM_OF_POSTS_EXPLAIN}</h6></td>
|
||||
<td><input class="post" type="text" name="session_posts_processing" value="{SESSION_POSTS_PROCESSING}" size="10" /></td>
|
||||
<td><input class="post" type="number" name="session_posts_processing" value="{SESSION_POSTS_PROCESSING}" size="10" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_POSTS_PER_CYCLE}</h4><h6>{L_POSTS_PER_CYCLE_EXPLAIN}</h6></td>
|
||||
<td><input class="post" type="text" name="post_limit" value="{POST_LIMIT}" size="10" /></td>
|
||||
<td><input class="post" type="number" name="post_limit" value="{POST_LIMIT}" size="10" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_TIME_LIMIT}</h4><h6>{L_TIME_LIMIT_EXPLAIN}</h6></td>
|
||||
<td><input class="post" type="text" name="time_limit" value="{TIME_LIMIT}" size="10" /></td>
|
||||
<td><input class="post" type="number" name="time_limit" value="{TIME_LIMIT}" size="10" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_REFRESH_RATE}</h4><h6>{L_REFRESH_RATE_EXPLAIN}</h6></td>
|
||||
<td><input class="post" type="text" name="refresh_rate" value="{REFRESH_RATE}" size="10" /></td>
|
||||
<td><input class="post" type="number" name="refresh_rate" value="{REFRESH_RATE}" size="10" /></td>
|
||||
</tr>
|
||||
<!-- BEGIN last_saved_info -->
|
||||
<tr>
|
||||
|
@ -53,7 +53,7 @@
|
||||
</tr>
|
||||
<!-- END ranks_exist -->
|
||||
<tr>
|
||||
<td class="row1"><span class="gen"><b>{L_POSTCOUNT}</b> <select name="postcount_type"><option value="equals" selected="selected">{L_EQUALS}</option><option value="lesser">{L_LESS_THAN}</option><option value="greater">{L_GREATER_THAN}</option></select> <input class="post" type="text" name="postcount_value" maxlength="25" size="5" /> <input type="submit" class="post2" name="search_postcount" value="{L_SEARCH}" /></span><br /><span class="small">{L_SEARCH_USERS_POSTCOUNT_EXPLAIN}</span></td>
|
||||
<td class="row1"><span class="gen"><b>{L_POSTCOUNT}</b> <select name="postcount_type"><option value="equals" selected="selected">{L_EQUALS}</option><option value="lesser">{L_LESS_THAN}</option><option value="greater">{L_GREATER_THAN}</option></select> <input value="0" class="post" type="number" name="postcount_value" maxlength="25" size="5" /> <input type="submit" class="post2" name="search_postcount" value="{L_SEARCH}" /></span><br /><span class="small">{L_SEARCH_USERS_POSTCOUNT_EXPLAIN}</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row2"> </td>
|
||||
|
Loading…
Reference in New Issue
Block a user