mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
download require functions
This commit is contained in:
@@ -33,7 +33,9 @@ if ($currentStep == 2) {
|
|||||||
'published_at' => '---',
|
'published_at' => '---',
|
||||||
];
|
];
|
||||||
try {
|
try {
|
||||||
$versions = $update->listVersions();
|
//Unnecessary
|
||||||
|
// $versions = $update->listVersions();
|
||||||
|
$versions = [];
|
||||||
} catch (\Exception $exception) {
|
} catch (\Exception $exception) {
|
||||||
$update->doLog("can not fetch versions from github: " . $exception->getMessage());
|
$update->doLog("can not fetch versions from github: " . $exception->getMessage());
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -1,10 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once("../include/bittorrent.php");
|
require_once("../include/bittorrent.php");
|
||||||
dbconn();
|
dbconn();
|
||||||
|
require_once ROOT_PATH . get_langfile_path("functions.php");
|
||||||
|
require_once(get_langfile_path());
|
||||||
function denyDownload()
|
function denyDownload()
|
||||||
{
|
{
|
||||||
require_once ROOT_PATH . get_langfile_path("functions.php");
|
|
||||||
require_once(get_langfile_path());
|
|
||||||
permissiondenied();
|
permissiondenied();
|
||||||
}
|
}
|
||||||
$torrentRep = new \App\Repositories\TorrentRepository();
|
$torrentRep = new \App\Repositories\TorrentRepository();
|
||||||
|
|||||||
Reference in New Issue
Block a user