mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-16 05:50:55 +08:00
merge 1.9
This commit is contained in:
@@ -341,7 +341,7 @@ function docleanup($forceAll = 0, $printProgress = false) {
|
||||
|
||||
//rest seed_points_per_hour
|
||||
$seedPointsUpdatedAtMin = $carbonNow->subSeconds(2*intval($autoclean_interval_one))->toDateTimeString();
|
||||
sql_query("update users set seed_points_per_hour = 0 where seed_points_updated_at < " . sqlesc($seedPointsUpdatedAtMin));
|
||||
sql_query("update users set seed_points_per_hour = 0, seed_bonus_per_hour = 0, seeding_torrent_count = 0, seeding_torrent_size = 0 where seed_points_updated_at < " . sqlesc($seedPointsUpdatedAtMin));
|
||||
|
||||
\App\Repositories\CleanupRepository::runBatchJobCalculateUserSeedBonus($requestId);
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.9.11');
|
||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2025-11-02');
|
||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.9.13');
|
||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2025-12-28');
|
||||
defined('IN_TRACKER') || define('IN_TRACKER', false);
|
||||
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
||||
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
||||
|
||||
@@ -3906,10 +3906,12 @@ foreach ($rows as $row)
|
||||
|
||||
if (user_can('torrentmanage'))
|
||||
{
|
||||
$actions = [];
|
||||
if (user_can('torrent-delete')) {
|
||||
print("<td class=\"rowfollow\"><a href=\"".htmlspecialchars("fastdelete.php?id=".$row['id'])."\"><img class=\"staff_delete\" src=\"pic/trans.gif\" alt=\"D\" title=\"".$lang_functions['text_delete']."\" /></a>");
|
||||
$actions[] = "<a href=\"".htmlspecialchars("fastdelete.php?id=".$row['id'])."\"><img class=\"staff_delete\" src=\"pic/trans.gif\" alt=\"D\" title=\"".$lang_functions['text_delete']."\" /></a>";
|
||||
}
|
||||
print("<br /><a href=\"edit.php?returnto=" . rawurlencode($_SERVER["REQUEST_URI"]) . "&id=" . $row["id"] . "\"><img class=\"staff_edit\" src=\"pic/trans.gif\" alt=\"E\" title=\"".$lang_functions['text_edit']."\" /></a></td>\n");
|
||||
$actions[] = "<a href=\"edit.php?returnto=" . rawurlencode($_SERVER["REQUEST_URI"]) . "&id=" . $row["id"] . "\"><img class=\"staff_edit\" src=\"pic/trans.gif\" alt=\"E\" title=\"".$lang_functions['text_edit']."\" /></a>";
|
||||
echo sprintf("<td class=\"rowfollow\">%s</td>", implode("<br />", $actions));
|
||||
}
|
||||
print("</tr>\n");
|
||||
$counter++;
|
||||
|
||||
@@ -1668,6 +1668,14 @@ JS;
|
||||
\Nexus\Nexus::js($js, 'footer', false);
|
||||
}
|
||||
|
||||
function nexus_escape($data): array|string
|
||||
{
|
||||
if (is_array($data)) {
|
||||
return array_map('nexus_escape', $data);
|
||||
}
|
||||
return htmlspecialchars($data, ENT_QUOTES, 'UTF-8');
|
||||
}
|
||||
|
||||
function is_fpm_mode(): bool
|
||||
{
|
||||
return php_sapi_name() === 'fpm-fcgi';
|
||||
|
||||
Reference in New Issue
Block a user