mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
plugin management + user tables and torrents table text column migrate
This commit is contained in:
@@ -381,6 +381,14 @@ class TorrentRepository extends BaseRepository
|
||||
return md5($passkey . date('Ymd') . $user['id']);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* @param $id
|
||||
* @param $uid
|
||||
* @param $initializeIfNotExists
|
||||
* @return string
|
||||
* @throws NexusException
|
||||
*/
|
||||
public function getTrackerReportAuthKey($id, $uid, $initializeIfNotExists = false): string
|
||||
{
|
||||
$key = $this->getTrackerReportAuthKeySecret($id, $uid, $initializeIfNotExists);
|
||||
@@ -389,6 +397,8 @@ class TorrentRepository extends BaseRepository
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*
|
||||
* check tracker report authkey
|
||||
* if valid, the result will be the date the key generate, else if will be empty string
|
||||
*
|
||||
|
||||
@@ -227,6 +227,13 @@ class TrackerRepository extends BaseRepository
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*
|
||||
* @param $authkey
|
||||
* @return array
|
||||
* @throws TrackerException
|
||||
*/
|
||||
protected function checkAuthkey($authkey)
|
||||
{
|
||||
$arr = explode('|', $authkey);
|
||||
|
||||
Reference in New Issue
Block a user