mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
Minor improvements (#1358)
* Minor improvements * Update viewtopic_torrent.tpl * Update admin_rebuild_search.php * Updated * Apply fixes from StyleCI (#1361) Co-authored-by: StyleCI Bot <bot@styleci.io> * Update CHANGELOG.md --------- Co-authored-by: Yury Pikhtarev <exileum@icloud.com> Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
parent
ae613c9c70
commit
46910d3015
7 changed files with 26 additions and 23 deletions
|
@ -10,6 +10,9 @@
|
||||||
- [BEP47] sha1 hash files are binary by default [\#1348](https://github.com/torrentpier/torrentpier/pull/1348) ([kovalensky](https://github.com/kovalensky))
|
- [BEP47] sha1 hash files are binary by default [\#1348](https://github.com/torrentpier/torrentpier/pull/1348) ([kovalensky](https://github.com/kovalensky))
|
||||||
- Extend css contrast attributes [\#1349](https://github.com/torrentpier/torrentpier/pull/1349) ([kovalensky](https://github.com/kovalensky))
|
- Extend css contrast attributes [\#1349](https://github.com/torrentpier/torrentpier/pull/1349) ([kovalensky](https://github.com/kovalensky))
|
||||||
- Flatten file list for hybrid files [\#1350](https://github.com/torrentpier/torrentpier/pull/1350) ([kovalensky](https://github.com/kovalensky))
|
- Flatten file list for hybrid files [\#1350](https://github.com/torrentpier/torrentpier/pull/1350) ([kovalensky](https://github.com/kovalensky))
|
||||||
|
- Counter is not precise [\#1360](https://github.com/torrentpier/torrentpier/pull/1360) ([kovalensky](https://github.com/kovalensky))
|
||||||
|
- CSS hover for news [\#1359](https://github.com/torrentpier/torrentpier/pull/1359) ([kovalensky](https://github.com/kovalensky))
|
||||||
|
- Add referrer "origin" policy to repository links [\#1357](https://github.com/torrentpier/torrentpier/pull/1357) ([kovalensky](https://github.com/kovalensky))
|
||||||
- Added new flag 🕊 [\#1347](https://github.com/torrentpier/torrentpier/pull/1347) ([belomaxorka](https://github.com/belomaxorka))
|
- Added new flag 🕊 [\#1347](https://github.com/torrentpier/torrentpier/pull/1347) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- Added ability to view "Watching topics" of other people's (For admins only) [\#1336](https://github.com/torrentpier/torrentpier/pull/1336) ([belomaxorka](https://github.com/belomaxorka))
|
- Added ability to view "Watching topics" of other people's (For admins only) [\#1336](https://github.com/torrentpier/torrentpier/pull/1336) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- Added `bt_announce_url` autofill [\#1331](https://github.com/torrentpier/torrentpier/pull/1331) ([belomaxorka](https://github.com/belomaxorka))
|
- Added `bt_announce_url` autofill [\#1331](https://github.com/torrentpier/torrentpier/pull/1331) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
|
@ -29,7 +32,7 @@
|
||||||
- Some enhancements for topic_tpl [\#1356](https://github.com/torrentpier/torrentpier/pull/1356) ([belomaxorka](https://github.com/belomaxorka))
|
- Some enhancements for topic_tpl [\#1356](https://github.com/torrentpier/torrentpier/pull/1356) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- Sending debug errors to us 🌚 via Telegram bot [\#1323](https://github.com/torrentpier/torrentpier/pull/1323) ([belomaxorka](https://github.com/belomaxorka))
|
- Sending debug errors to us 🌚 via Telegram bot [\#1323](https://github.com/torrentpier/torrentpier/pull/1323) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- Don't update downloads counter if attachment not exists [\#1345](https://github.com/torrentpier/torrentpier/pull/1345) ([belomaxorka](https://github.com/belomaxorka))
|
- Don't update downloads counter if attachment not exists [\#1345](https://github.com/torrentpier/torrentpier/pull/1345) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- Minor improvements [\#1306](https://github.com/torrentpier/torrentpier/pull/1306), [\#1307](https://github.com/torrentpier/torrentpier/pull/1307), [\#1308](https://github.com/torrentpier/torrentpier/pull/1308), [\#1315](https://github.com/torrentpier/torrentpier/pull/1315), [\#1328](https://github.com/torrentpier/torrentpier/pull/1328), [\#1338](https://github.com/torrentpier/torrentpier/pull/1338), [\#1353](https://github.com/torrentpier/torrentpier/pull/1353), [\#1355](https://github.com/torrentpier/torrentpier/pull/1355) ([belomaxorka](https://github.com/belomaxorka))
|
- Minor improvements [\#1306](https://github.com/torrentpier/torrentpier/pull/1306), [\#1307](https://github.com/torrentpier/torrentpier/pull/1307), [\#1308](https://github.com/torrentpier/torrentpier/pull/1308), [\#1315](https://github.com/torrentpier/torrentpier/pull/1315), [\#1328](https://github.com/torrentpier/torrentpier/pull/1328), [\#1338](https://github.com/torrentpier/torrentpier/pull/1338), [\#1353](https://github.com/torrentpier/torrentpier/pull/1353), [\#1355](https://github.com/torrentpier/torrentpier/pull/1355), [\#1358](https://github.com/torrentpier/torrentpier/pull/1358) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- Some bugfixes [\#1326](https://github.com/torrentpier/torrentpier/pull/1326) ([belomaxorka](https://github.com/belomaxorka))
|
- Some bugfixes [\#1326](https://github.com/torrentpier/torrentpier/pull/1326) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- Updated deps [\#1304](https://github.com/torrentpier/torrentpier/pull/1304), [\#1305](https://github.com/torrentpier/torrentpier/pull/1305) ([belomaxorka](https://github.com/belomaxorka))
|
- Updated deps [\#1304](https://github.com/torrentpier/torrentpier/pull/1304), [\#1305](https://github.com/torrentpier/torrentpier/pull/1305) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- New Crowdin updates [\#1311](https://github.com/torrentpier/torrentpier/pull/1311), [\#1314](https://github.com/torrentpier/torrentpier/pull/1314), [\#1335](https://github.com/torrentpier/torrentpier/pull/1335), [\#1337](https://github.com/torrentpier/torrentpier/pull/1337), [\#1344](https://github.com/torrentpier/torrentpier/pull/1344) ([Exileum](https://github.com/Exileum))
|
- New Crowdin updates [\#1311](https://github.com/torrentpier/torrentpier/pull/1311), [\#1314](https://github.com/torrentpier/torrentpier/pull/1314), [\#1335](https://github.com/torrentpier/torrentpier/pull/1335), [\#1337](https://github.com/torrentpier/torrentpier/pull/1337), [\#1344](https://github.com/torrentpier/torrentpier/pull/1344) ([Exileum](https://github.com/Exileum))
|
||||||
|
|
|
@ -41,7 +41,7 @@ include:
|
||||||
Examples of unacceptable behavior by participants include:
|
Examples of unacceptable behavior by participants include:
|
||||||
|
|
||||||
* The use of sexualized language or imagery and unwelcome sexual attention or
|
* The use of sexualized language or imagery and unwelcome sexual attention or
|
||||||
advances
|
advances
|
||||||
* Trolling, insulting/derogatory comments, and personal or political attacks
|
* Trolling, insulting/derogatory comments, and personal or political attacks
|
||||||
* Public or private harassment
|
* Public or private harassment
|
||||||
* Publishing others' private information, such as a physical or electronic
|
* Publishing others' private information, such as a physical or electronic
|
||||||
|
@ -89,4 +89,5 @@ This Code of Conduct is adapted from the [Contributor Covenant][homepage], versi
|
||||||
available at [http://contributor-covenant.org/version/1/4][version]
|
available at [http://contributor-covenant.org/version/1/4][version]
|
||||||
|
|
||||||
[homepage]: http://contributor-covenant.org
|
[homepage]: http://contributor-covenant.org
|
||||||
|
|
||||||
[version]: http://contributor-covenant.org/version/1/4/
|
[version]: http://contributor-covenant.org/version/1/4/
|
||||||
|
|
|
@ -329,7 +329,7 @@ if ($mode == 'submit' || $mode == 'refresh') {
|
||||||
'TOTAL_PERCENT' => sprintf($lang['PERCENT_COMPLETED'], round($total_percent, 2)),
|
'TOTAL_PERCENT' => sprintf($lang['PERCENT_COMPLETED'], round($total_percent, 2)),
|
||||||
|
|
||||||
'LAST_CYCLE_TIME' => delta_time(TIMENOW),
|
'LAST_CYCLE_TIME' => delta_time(TIMENOW),
|
||||||
'SESSION_TIME' => delta_time($last_session_data['start_time']),
|
'SESSION_TIME' => delta_time(($last_session_data['start_time'] == 0) ? TIMENOW : $last_session_data['start_time']),
|
||||||
'SESSION_AVERAGE_CYCLE_TIME' => delta_time((int)$session_average_cycle_time, 0),
|
'SESSION_AVERAGE_CYCLE_TIME' => delta_time((int)$session_average_cycle_time, 0),
|
||||||
'SESSION_ESTIMATED_TIME' => delta_time((int)$session_estimated_time, 0),
|
'SESSION_ESTIMATED_TIME' => delta_time((int)$session_estimated_time, 0),
|
||||||
|
|
||||||
|
|
|
@ -94,8 +94,7 @@ if ($client_full || !$stats_cache = CACHE('tr_cache')->get('tracker_clients_stat
|
||||||
$clientString = $client_full ? substr($row['client'], 0, $client_full) : substr($row['client'], 0, 3);
|
$clientString = $client_full ? substr($row['client'], 0, $client_full) : substr($row['client'], 0, 3);
|
||||||
if (!isset($clients[$clientString])) {
|
if (!isset($clients[$clientString])) {
|
||||||
$clients[$clientString] = 1;
|
$clients[$clientString] = 1;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
$clients[$clientString]++;
|
$clients[$clientString]++;
|
||||||
}
|
}
|
||||||
$client_count++;
|
$client_count++;
|
||||||
|
@ -168,7 +167,7 @@ echo "\n
|
||||||
<br>
|
<br>
|
||||||
\n";
|
\n";
|
||||||
echo (count($clients_percentage) > $numwant) ? ('<a href="' . 'tracker.php?client_numwant=' . ($numwant + 100) . '">' . 'Show more' . '</a><br>') : '';
|
echo (count($clients_percentage) > $numwant) ? ('<a href="' . 'tracker.php?client_numwant=' . ($numwant + 100) . '">' . 'Show more' . '</a><br>') : '';
|
||||||
echo $client_full ? '<br><b>Get more length and numbers via modifying the parameters in the url<b>' : (!empty($client_list) ? '<a href="tracker.php?client_length=6&client_numwant=10">Peer_ids with more length (version debugging)</a>': '');
|
echo $client_full ? '<br><b>Get more length and numbers via modifying the parameters in the url<b>' : (!empty($client_list) ? '<a href="tracker.php?client_length=6&client_numwant=10">Peer_ids with more length (version debugging)</a>' : '');
|
||||||
echo '</td></tr>';
|
echo '</td></tr>';
|
||||||
echo '</table>';
|
echo '</table>';
|
||||||
echo !$client_full ? '<p style = "text-align:right;">Simple stats for clients are being cached for one hour.</p>' : '';
|
echo !$client_full ? '<p style = "text-align:right;">Simple stats for clients are being cached for one hour.</p>' : '';
|
||||||
|
|
|
@ -40,8 +40,7 @@ switch ($mode) {
|
||||||
$values = "$topic_id, {$userdata['user_id']}, " . TIMENOW;
|
$values = "$topic_id, {$userdata['user_id']}, " . TIMENOW;
|
||||||
DB()->query('INSERT IGNORE INTO ' . BB_THX . " ($columns) VALUES ($values)");
|
DB()->query('INSERT IGNORE INTO ' . BB_THX . " ($columns) VALUES ($values)");
|
||||||
break;
|
break;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
$this->ajax_die($lang['NEED_TO_LOGIN_FIRST']);
|
$this->ajax_die($lang['NEED_TO_LOGIN_FIRST']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,12 +55,11 @@ switch ($mode) {
|
||||||
|
|
||||||
$this->response['html'] = join(', ', $user_list) ?: $lang['NO_LIKES'];
|
$this->response['html'] = join(', ', $user_list) ?: $lang['NO_LIKES'];
|
||||||
break;
|
break;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
$this->ajax_die($lang['NEED_TO_LOGIN_FIRST']);
|
$this->ajax_die($lang['NEED_TO_LOGIN_FIRST']);
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
$this->ajax_die('Invalid mode: ' . $mode);
|
$this->ajax_die('Invalid mode: ' . $mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->response['mode'] = $mode;
|
$this->response['mode'] = $mode;
|
||||||
|
|
|
@ -62,11 +62,13 @@ ajax.callback.callseed = function (data) {
|
||||||
</tr>
|
</tr>
|
||||||
<!-- ENDIF / SHOW_DL_LIST_TOR_INFO -->
|
<!-- ENDIF / SHOW_DL_LIST_TOR_INFO -->
|
||||||
|
|
||||||
|
<!-- IF SHOW_DL_LIST && SHOW_TOR_ACT -->
|
||||||
<!-- BEGIN dl_list_none -->
|
<!-- BEGIN dl_list_none -->
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" class="pad_6"><!-- IF SHOW_DL_LIST && SHOW_TOR_ACT -->{L_SHOW_DL_LIST}: {L_NONE}<!-- ENDIF --></td>
|
<td colspan="2" class="pad_6">{L_SHOW_DL_LIST}: {L_NONE}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- END dl_list_none -->
|
<!-- END dl_list_none -->
|
||||||
|
<!-- ENDIF -->
|
||||||
|
|
||||||
<!-- IF SHOW_TOR_ACT -->
|
<!-- IF SHOW_TOR_ACT -->
|
||||||
<!-- IF S_MODE_COUNT -->
|
<!-- IF S_MODE_COUNT -->
|
||||||
|
|
|
@ -4815,13 +4815,13 @@ $(function(){
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<div class="tRight med">[ <u class="clickable" onclick="$('#tpl-howto').toggle();">Инструкция</u> ]</div>
|
<div class="tRight med">[ <u class="clickable" onclick="$('#tpl-howto').toggle();">Инструкция</u> ]</div>
|
||||||
<div id="tpl-howto" class="med pad_12" style="display: none;">
|
<div id="tpl-howto" class="med pad_12" style="display: none;">
|
||||||
После заполнения поля <i>форма</i> нажмите кнопку <i>Создать форму</i><br /><br />
|
После заполнения поля <b>форма</b> нажмите кнопку <b>Создать форму</b><br /><br />
|
||||||
В поле <i>сообщение</i> добавьте элементам необходимые атрибуты (req, spoiler и т.д.)<br /><br />
|
В поле <b>сообщение</b> добавьте элементам необходимые атрибуты (req, spoiler и т.д.)<br /><br />
|
||||||
Заполните созданную форму (вручную либо автозаполнителем)<br /><br />
|
Заполните созданную форму (вручную либо автозаполнителем)<br /><br />
|
||||||
Кнопки <i>Продолжить</i> и <i>Создать сообщение</i> создают BBCode сообщения<br /><br />
|
Кнопки <b>Продолжить</b> и <b>Создать сообщение</b> - создают BBCode сообщения<br /><br />
|
||||||
Кнопка <i>Предпросмотр</i> - показывает итоговый результат<br /><br />
|
Далее заполните поле <b>название</b><br /><br />
|
||||||
Заполните поле <i>название</i><br /><br />
|
Кнопка <b>{L_AJAX_PREVIEW}</b> - показывает итоговый результат<br /><br />
|
||||||
Далее нажмите на кнопку <i>Продолжить (Создать релиз)</i> - откроется страница где вы сможете прикрепить файл и опубликовать релиз
|
Далее нажмите на кнопку <b>Продолжить (Создать релиз)</b> - откроется страница где вы сможете прикрепить файл и опубликовать релиз
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue