mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
fix issues + tag sort
This commit is contained in:
@@ -47,7 +47,7 @@ class TagRepository extends BaseRepository
|
||||
|
||||
public static function createBasicQuery()
|
||||
{
|
||||
return Tag::query()->orderBy('priority', 'asc')->orderBy('id', 'asc');
|
||||
return Tag::query()->orderBy('priority', 'desc')->orderBy('id', 'desc');
|
||||
}
|
||||
|
||||
public function renderCheckbox(int $searchBoxId, array $checked = [], $ignorePermission = false): string
|
||||
|
||||
@@ -265,7 +265,7 @@ HEAD;
|
||||
|
||||
}
|
||||
|
||||
public function renderOnUploadPage($torrentId = 0, $searchBoxId)
|
||||
public function renderOnUploadPage($torrentId, $searchBoxId)
|
||||
{
|
||||
$searchBox = NexusDB::getOne('searchbox', "id = $searchBoxId");
|
||||
if (empty($searchBox)) {
|
||||
|
||||
@@ -177,7 +177,7 @@ class Imdb
|
||||
$temp .= $ak["title"].$ak["year"]. ($ak["country"] != "" ? " (".$ak["country"].")" : "") . ($ak["comment"] != "" ? " (" . $ak["comment"] . ")" : "") . ", ";
|
||||
}
|
||||
$autodata .= rtrim(trim($temp), ",");
|
||||
$runtimes = str_replace(" min",$lang_details['text_mins'], $movie->runtime());
|
||||
$runtimes = str_replace(" min",$lang_details['text_mins'], $movie->runtime() ?? '');
|
||||
$autodata .= "<br />\n<strong><font color=\"DarkRed\">".$lang_details['text_year']."</font></strong>" . "".$movie->year ()."<br />\n";
|
||||
$autodata .= "<strong><font color=\"DarkRed\">".$lang_details['text_runtime']."</font></strong>".$runtimes."<br />\n";
|
||||
$autodata .= "<strong><font color=\"DarkRed\">".$lang_details['text_votes']."</font></strong>" . "".$movie->votes ()."<br />\n";
|
||||
|
||||
@@ -14,7 +14,7 @@ $claimRep = new \App\Repositories\ClaimRepository();
|
||||
$seedBoxRep = new \App\Repositories\SeedBoxRepository();
|
||||
$claimTorrentTTL = \App\Models\Claim::getConfigTorrentTTL();
|
||||
$id = intval($_GET['userid'] ?? 0);
|
||||
$type = $_GET['type'];
|
||||
$type = $_GET['type'] ?? '';
|
||||
if (!in_array($type,array('uploaded','seeding','leeching','completed','incomplete')))
|
||||
die;
|
||||
if(!user_can('torrenthistory') && $id != $CURUSER["id"])
|
||||
|
||||
@@ -289,7 +289,7 @@ stdfoot();
|
||||
}
|
||||
if ($action == "moveordel")
|
||||
{
|
||||
$pm_id = (int) $_POST['id'];
|
||||
$pm_id = (int) $_POST['id'] ?? 0;
|
||||
$pm_box = (int) $_POST['box'];
|
||||
$pm_messages = $_POST['messages'];
|
||||
if ($_POST['markread'])
|
||||
|
||||
@@ -581,7 +581,7 @@ if ($action == "exchange") {
|
||||
$userid = $CURUSER['id'];
|
||||
$art = $bonusarray['art'];
|
||||
|
||||
$bonuscomment = $CURUSER['bonuscomment'];
|
||||
// $bonuscomment = $CURUSER['bonuscomment'];
|
||||
$seedbonus=$CURUSER['seedbonus']-$points;
|
||||
|
||||
if($CURUSER['seedbonus'] >= $points) {
|
||||
|
||||
Reference in New Issue
Block a user