mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Minor improvements (#1713)
* Minor improvements
* Update init_bb.php
* Updated
* Revert "Updated"
This reverts commit af83788c22
.
* Update CHANGELOG.md
This commit is contained in:
parent
fd951a27fa
commit
b27fa94ee8
18 changed files with 31 additions and 31 deletions
|
@ -9,7 +9,7 @@
|
|||
- Show torrent's announcers list in `filelist.php` page [\#1708](https://github.com/torrentpier/torrentpier/pull/1708) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- [Configurable] Show magnet-links for guests [\#1712](https://github.com/torrentpier/torrentpier/pull/1712) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Set `cursor: pointer;` for buttons, inputs (buttons) [\#1710](https://github.com/torrentpier/torrentpier/pull/1710), [\#1711](https://github.com/torrentpier/torrentpier/pull/1711) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Minor improvements [\#1705](https://github.com/torrentpier/torrentpier/pull/1705) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Minor improvements [\#1705](https://github.com/torrentpier/torrentpier/pull/1705), [\#1713](https://github.com/torrentpier/torrentpier/pull/1713) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- New Crowdin updates [\#1704](https://github.com/torrentpier/torrentpier/pull/1704), [\#1706](https://github.com/torrentpier/torrentpier/pull/1706) ([Exileum](https://github.com/Exileum))
|
||||
|
||||
## [v2.4.5-rc.1](https://github.com/torrentpier/torrentpier/tree/v2.4.5-rc.1) (2024-12-08)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<p align="center">
|
||||
Bull-powered BitTorrent tracker engine
|
||||
<br>
|
||||
<br/>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
|
|
|
@ -116,7 +116,7 @@ if ($client_full || !$stats_cache = CACHE('tr_cache')->get('tracker_clients_stat
|
|||
|
||||
$n = 1;
|
||||
foreach (array_slice($clients_percentage, 0, $numwant) as $client => $value) {
|
||||
$client_list .= ($client_full) ? ("$client => $value<br>") : "$n. " . get_user_torrent_client($client) . " $value<br>";
|
||||
$client_list .= ($client_full) ? ("$client => $value<br/>") : "$n. " . get_user_torrent_client($client) . " $value<br/>";
|
||||
$n++;
|
||||
}
|
||||
|
||||
|
@ -164,10 +164,10 @@ echo "\n
|
|||
<td align=center>
|
||||
|
||||
$client_list
|
||||
<br>
|
||||
<br/>
|
||||
\n";
|
||||
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 (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 '</td></tr>';
|
||||
echo '</table>';
|
||||
echo !$client_full ? '<p style = "text-align:right;">Simple stats for clients are being cached for one hour.</p>' : '';
|
||||
|
|
|
@ -54,7 +54,7 @@ require_once BB_PATH . '/library/defines.php';
|
|||
|
||||
// Composer
|
||||
if (!is_file(BB_PATH . '/vendor/autoload.php')) {
|
||||
die('🔩 Manual install: <a href="https://getcomposer.org/download/" target="_blank" rel="noreferrer" style="color:#0a25bb;">Install composer</a> and run <code style="background:#222;color:#00e01f;padding:2px 6px;border-radius:3px;">composer install</code>.<br>☕️ Quick install: Run <code style="background:#222;color:#00e01f;padding:2px 6px;border-radius:3px;">php install.php</code> in CLI mode.');
|
||||
die('🔩 Manual install: <a href="https://getcomposer.org/download/" target="_blank" rel="noreferrer" style="color:#0a25bb;">Install composer</a> and run <code style="background:#222;color:#00e01f;padding:2px 6px;border-radius:3px;">composer install</code>.<br/>☕️ Quick install: Run <code style="background:#222;color:#00e01f;padding:2px 6px;border-radius:3px;">php install.php</code> in CLI mode.');
|
||||
}
|
||||
require_once BB_PATH . '/vendor/autoload.php';
|
||||
|
||||
|
@ -75,7 +75,7 @@ try {
|
|||
$dotenv = Dotenv\Dotenv::createMutable(BB_PATH);
|
||||
$dotenv->load();
|
||||
} catch (\Dotenv\Exception\InvalidPathException $pathException) {
|
||||
die('🔩 Manual install: Rename from <code style="background:#222;color:#00e01f;padding:2px 6px;border-radius:3px;">.env.example</code> to <code style="background:#222;color:#00e01f;padding:2px 6px;border-radius:3px;">.env</code>, and configure it.<br>☕️ Quick install: Run <code style="background:#222;color:#00e01f;padding:2px 6px;border-radius:3px;">php install.php</code> in CLI mode.');
|
||||
die('🔩 Manual install: Rename from <code style="background:#222;color:#00e01f;padding:2px 6px;border-radius:3px;">.env.example</code> to <code style="background:#222;color:#00e01f;padding:2px 6px;border-radius:3px;">.env</code>, and configure it.<br/>☕️ Quick install: Run <code style="background:#222;color:#00e01f;padding:2px 6px;border-radius:3px;">php install.php</code> in CLI mode.');
|
||||
}
|
||||
|
||||
// Load config
|
||||
|
|
|
@ -90,13 +90,13 @@ switch ($mode) {
|
|||
// Log action
|
||||
$log_msg = sprintf($lang['TOR_STATUS_LOG_ACTION'], $bb_cfg['tor_icons'][$new_status] . ' <b> ' . $lang['TOR_STATUS_NAME'][$new_status] . '</b>', $bb_cfg['tor_icons'][$tor['tor_status']] . ' <b> ' . $lang['TOR_STATUS_NAME'][$tor['tor_status']] . '</b>');
|
||||
if ($comment && $comment != $lang['COMMENT']) {
|
||||
$log_msg .= "<br>{$lang['COMMENT']}: <b>$comment</b>.";
|
||||
$log_msg .= "<br/>{$lang['COMMENT']}: <b>$comment</b>.";
|
||||
}
|
||||
$log_action->mod('mod_topic_change_tor_status', [
|
||||
'forum_id' => $tor['forum_id'],
|
||||
'topic_id' => $tor['topic_id'],
|
||||
'topic_title' => $tor['topic_title'],
|
||||
'log_msg' => $log_msg . '<br>-------------',
|
||||
'log_msg' => $log_msg . '<br/>-------------',
|
||||
]);
|
||||
|
||||
$this->response['status'] = $bb_cfg['tor_icons'][$new_status] . ' <b> ' . $lang['TOR_STATUS_NAME'][$new_status] . '</b> · ' . profile_url($userdata) . ' · <i>' . delta_time(TIMENOW) . $lang['TOR_BACK'] . '</i>';
|
||||
|
|
|
@ -50,27 +50,27 @@ if (isset($ffpInfo->streams)) {
|
|||
$audioDub = array_map(function ($stream) {
|
||||
global $lang;
|
||||
|
||||
$result = '<span class="warnColor2">' . sprintf($lang['AUDIO_TRACK'], (!isset($stream->index) || $stream->index === 0) ? 1 : $stream->index) . '</span><br>';
|
||||
$result = '<span class="warnColor2">' . sprintf($lang['AUDIO_TRACK'], (!isset($stream->index) || $stream->index === 0) ? 1 : $stream->index) . '</span><br/>';
|
||||
if (isset($stream->tags->language)) {
|
||||
if (isset($stream->tags->title)) {
|
||||
$result .= '<b>' . mb_strtoupper($stream->tags->language, 'UTF-8') . ' (' . $stream->tags->title . ')' . '</b>';
|
||||
} else {
|
||||
$result .= '<b>' . mb_strtoupper($stream->tags->language, 'UTF-8') . '</b>';
|
||||
}
|
||||
$result .= '<br>';
|
||||
$result .= '<br/>';
|
||||
}
|
||||
|
||||
if (!empty($stream->codec_name)) {
|
||||
$result .= sprintf($lang['AUDIO_CODEC'], $stream->codec_long_name, mb_strtoupper($stream->codec_name, 'UTF-8')) . '<br>';
|
||||
$result .= sprintf($lang['AUDIO_CODEC'], $stream->codec_long_name, mb_strtoupper($stream->codec_name, 'UTF-8')) . '<br/>';
|
||||
}
|
||||
if (!empty($stream->bit_rate)) {
|
||||
$result .= sprintf($lang['BITRATE'], humn_bitrate((int)$stream->bit_rate)) . '<br>';
|
||||
$result .= sprintf($lang['BITRATE'], humn_bitrate((int)$stream->bit_rate)) . '<br/>';
|
||||
}
|
||||
if (!empty($stream->sample_rate)) {
|
||||
$result .= sprintf($lang['SAMPLE_RATE'], humn_sample_rate((int)$stream->sample_rate)) . '<br>';
|
||||
$result .= sprintf($lang['SAMPLE_RATE'], humn_sample_rate((int)$stream->sample_rate)) . '<br/>';
|
||||
}
|
||||
if (!empty($stream->channels)) {
|
||||
$result .= sprintf($lang['CHANNELS'], $stream->channels) . '<br>';
|
||||
$result .= sprintf($lang['CHANNELS'], $stream->channels) . '<br/>';
|
||||
}
|
||||
if (!empty($stream->channel_layout)) {
|
||||
$result .= sprintf($lang['CHANNELS_LAYOUT'], $stream->channel_layout);
|
||||
|
@ -90,10 +90,10 @@ if (isset($ffpInfo->streams)) {
|
|||
// Validate output data
|
||||
$result = '<hr>';
|
||||
if (!empty($data['resolution'])) {
|
||||
$result .= $data['resolution'] . '<br>';
|
||||
$result .= $data['resolution'] . '<br/>';
|
||||
}
|
||||
if (!empty($data['filesize'])) {
|
||||
$result .= $data['filesize'] . '<br>';
|
||||
$result .= $data['filesize'] . '<br/>';
|
||||
}
|
||||
if (!empty($data['video_codec'])) {
|
||||
$result .= $data['video_codec'];
|
||||
|
|
|
@ -49,7 +49,7 @@ switch ($mode) {
|
|||
'forum_id' => $tor['forum_id'],
|
||||
'topic_id' => $tor['topic_id'],
|
||||
'topic_title' => $tor['topic_title'],
|
||||
'log_msg' => $log_msg . '<br>-------------',
|
||||
'log_msg' => $log_msg . '<br/>-------------',
|
||||
]);
|
||||
}
|
||||
$this->response['status'] = $bb_cfg['tor_icons'][$status];
|
||||
|
|
|
@ -332,7 +332,7 @@ function send_no_cache_headers()
|
|||
}
|
||||
|
||||
/**
|
||||
* Converts "<br>" tags to "\n" line breaks
|
||||
* Converts "<br/>" / "<br>" tags to "\n" line breaks
|
||||
*
|
||||
* @param string $string
|
||||
* @return string
|
||||
|
|
|
@ -1442,7 +1442,7 @@ $lang['CHANGE_TOR_TYPE'] = 'Type the torrent successfully changed';
|
|||
$lang['DEL_TORRENT'] = 'Are you sure you want to delete the torrent?';
|
||||
$lang['DEL_MOVE_TORRENT'] = 'Are you sure you want to delete and move the topic?';
|
||||
$lang['UNEXECUTED_RELEASE'] = 'Do you have a shapeless release before creating a new fix his unformed!';
|
||||
$lang['TOR_STATUS_LOG_ACTION'] = 'New status: %s.<br>Previous status: %s.';
|
||||
$lang['TOR_STATUS_LOG_ACTION'] = 'New status: %s.<br/>Previous status: %s.';
|
||||
|
||||
// tor_comment
|
||||
$lang['TOR_MOD_TITLE'] = 'Changing the status of distribution - %s';
|
||||
|
|
|
@ -757,7 +757,7 @@ class Attach
|
|||
// Handling errors while uploading
|
||||
if (isset($this->error) && ($this->error !== UPLOAD_ERR_OK)) {
|
||||
if (isset($lang['UPLOAD_ERRORS'][$this->error])) {
|
||||
bb_die($lang['UPLOAD_ERROR_COMMON'] . '<br><br>' . $lang['UPLOAD_ERRORS'][$this->error]);
|
||||
bb_die($lang['UPLOAD_ERROR_COMMON'] . '<br/><br/>' . $lang['UPLOAD_ERRORS'][$this->error]);
|
||||
} else {
|
||||
bb_die($lang['UPLOAD_ERROR_COMMON']);
|
||||
}
|
||||
|
|
|
@ -114,7 +114,7 @@ class Upload
|
|||
// Handling errors while uploading
|
||||
if (isset($this->file['error']) && ($this->file['error'] !== UPLOAD_ERR_OK)) {
|
||||
if (isset($lang['UPLOAD_ERRORS'][$this->file['error']])) {
|
||||
$this->errors[] = $lang['UPLOAD_ERROR_COMMON'] . '<br><br>' . $lang['UPLOAD_ERRORS'][$this->file['error']];
|
||||
$this->errors[] = $lang['UPLOAD_ERROR_COMMON'] . '<br/><br/>' . $lang['UPLOAD_ERRORS'][$this->file['error']];
|
||||
} else {
|
||||
$this->errors[] = $lang['UPLOAD_ERROR_COMMON'];
|
||||
}
|
||||
|
|
|
@ -224,7 +224,7 @@ class User
|
|||
if ($banInfo = getBanInfo((int)$this->id)) {
|
||||
$this->session_end();
|
||||
if (!empty($banInfo['ban_reason'])) {
|
||||
bb_die($lang['YOU_BEEN_BANNED'] . '<br><br>' . $lang['REASON'] . ': ' . '<b>' . $banInfo['ban_reason'] . '</b>');
|
||||
bb_die($lang['YOU_BEEN_BANNED'] . '<br/><br/>' . $lang['REASON'] . ': ' . '<b>' . $banInfo['ban_reason'] . '</b>');
|
||||
} else {
|
||||
bb_die($lang['YOU_BEEN_BANNED']);
|
||||
}
|
||||
|
|
|
@ -111,7 +111,7 @@ ajax.callback.sitemap = function(data) {
|
|||
</td>
|
||||
<td>
|
||||
<textarea name="static_sitemap" rows="5" cols="70">{STATIC_SITEMAP}</textarea><br />
|
||||
<br><p>{L_SITEMAP_ADD_EXP_1} <br><br><b style="color: #993300;">{L_SITEMAP_ADD_EXP_2}</b></p>
|
||||
<br/><p>{L_SITEMAP_ADD_EXP_1} <br/><br/><b style="color: #993300;">{L_SITEMAP_ADD_EXP_2}</b></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -27,4 +27,4 @@
|
|||
|
||||
</form>
|
||||
|
||||
<br>
|
||||
<br/>
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
}
|
||||
</script>
|
||||
|
||||
<br>
|
||||
<br/>
|
||||
<!-- BEGIN integrity_check -->
|
||||
<!-- IF integrity_check.INTEGRITY_SUCCESS -->
|
||||
<div class="alert alert-success" style="width: 95%;">
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!-- IF #IN_DEMO_MODE -->
|
||||
<div class="tCenter">
|
||||
<span class="leech">{L_TP_VERSION}: {$bb_cfg['tp_version']}</span><br>
|
||||
<span class="leech">{L_TP_VERSION}: {$bb_cfg['tp_version']}</span><br/>
|
||||
<span class="seed">{L_USERNAME}: admin / {L_PASSWORD}: admin</span>
|
||||
</div>
|
||||
<!-- ENDIF -->
|
||||
|
|
|
@ -598,7 +598,7 @@ function build_poll_add_form (src_el)
|
|||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF QUICK_REPLY -->
|
||||
<br>
|
||||
<br/>
|
||||
<form action="{QR_POST_ACTION}" method="post" name="post" onsubmit="if(checkForm(this)){ dis_submit_btn(); }else{ return false; }">
|
||||
<input type="hidden" name="mode" value="reply" />
|
||||
<input type="hidden" name="{#POST_TOPIC_URL#}" value="{QR_TOPIC_ID}" />
|
||||
|
|
|
@ -160,8 +160,8 @@
|
|||
{postrow.attach.tor_reged.TRACKER_LINK}
|
||||
[ <span title="{postrow.attach.tor_reged.REGED_DELTA}">{postrow.attach.tor_reged.REGED_TIME}</span> ]
|
||||
<!-- IF not postrow.attach.tor_reged.TOR_FROZEN -->
|
||||
<br><!-- IF postrow.attach.tor_reged.HASH --><br>info_hash: <span class="copyElement" data-clipboard-text="{postrow.attach.tor_reged.HASH}" title="{L_COPY_TO_CLIPBOARD}">{postrow.attach.tor_reged.HASH}</span><!-- ENDIF -->
|
||||
<!-- IF postrow.attach.tor_reged.HASH_V2 --><br>info_hash v2: <span class="copyElement" data-clipboard-text="{postrow.attach.tor_reged.HASH_V2}" title="{L_COPY_TO_CLIPBOARD}">{postrow.attach.tor_reged.HASH_V2}</span><!-- ENDIF -->
|
||||
<br/><!-- IF postrow.attach.tor_reged.HASH --><br/>info_hash: <span class="copyElement" data-clipboard-text="{postrow.attach.tor_reged.HASH}" title="{L_COPY_TO_CLIPBOARD}">{postrow.attach.tor_reged.HASH}</span><!-- ENDIF -->
|
||||
<!-- IF postrow.attach.tor_reged.HASH_V2 --><br/>info_hash v2: <span class="copyElement" data-clipboard-text="{postrow.attach.tor_reged.HASH_V2}" title="{L_COPY_TO_CLIPBOARD}">{postrow.attach.tor_reged.HASH_V2}</span><!-- ENDIF -->
|
||||
<!-- ENDIF -->
|
||||
</td>
|
||||
<td width="15%" rowspan="4" class="tCenter pad_6">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue