mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Remove api/download reset
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
2019-08-12 DariusIII
|
||||
* Chg: Remove api and download hits reset functionality
|
||||
* Chg: Update javascript and tpls
|
||||
* Chg: Slightly improve movie matching
|
||||
* Fix: Fix game covers
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1287,13 +1287,6 @@ function mymovie_add(imdbID, btn) {
|
||||
return false;
|
||||
}
|
||||
|
||||
//reset users api counts
|
||||
function resetapireq(uid, type) {
|
||||
$.post(base_url + 'ajax_resetusergrabs-admin?id=' + uid + '&action=' + type, function(
|
||||
resp
|
||||
) {});
|
||||
}
|
||||
|
||||
function getNzbGetQueue() {
|
||||
$.ajax({
|
||||
url: 'queuedata?type=nzbget&id=' + $.now(),
|
||||
|
||||
@@ -2,9 +2,6 @@
|
||||
<html lang="{{App::getLocale()}}">
|
||||
|
||||
<head>
|
||||
<script>
|
||||
var UID = "{if Auth::check()}{Auth::id()}{else}{/if}";
|
||||
</script>
|
||||
<meta charset=utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="csrf-token" content="{{csrf_token()}}">
|
||||
|
||||
@@ -101,21 +101,19 @@
|
||||
<tr>
|
||||
<th>API Hits last 24 hours</th>
|
||||
<td>
|
||||
<span id="uatd">{$apirequests}</span> {if isset($isadmin) && $apirequests > 0}
|
||||
<a
|
||||
onclick="resetapireq({$user.id}, 'api'); document.getElementById('uatd').innerHTML='0'; return false;"
|
||||
href="#" class="badge badge-danger">
|
||||
Reset</a>{/if}</td>
|
||||
<span>
|
||||
{$apirequests}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Downloads last 24 hours</th>
|
||||
<td><span id="ugrtd">{$grabstoday}</span> /</span>
|
||||
<td>
|
||||
<span>
|
||||
{$grabstoday}
|
||||
</span> /
|
||||
{$user->role->downloadrequests}
|
||||
{if isset($isadmin) && $grabstoday > 0}
|
||||
<a onclick="resetapireq({$user.id}, 'grabs'); document.getElementById('ugrtd').innerHTML='0'; return false;"
|
||||
href="#" class="badge badge-danger">
|
||||
Reset</a>
|
||||
{/if}</td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Downloads Total</th>
|
||||
|
||||
Reference in New Issue
Block a user