download permission deny css load error

This commit is contained in:
xiaomlove
2022-04-18 00:14:10 +08:00
parent e98c589cce
commit 9441ca2816
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -49,7 +49,7 @@
<el-table-column <el-table-column
prop="id" prop="id"
label="Id" label="Id"
width="50" width="100"
> >
</el-table-column> </el-table-column>
+2
View File
@@ -75,6 +75,7 @@ if (@ini_get('output_handler') == 'ob_gzhandler' AND @ob_get_length() !== false)
*/ */
if ($CURUSER['downloadpos']=="no") { if ($CURUSER['downloadpos']=="no") {
require_once(get_langfile_path());
permissiondenied(); permissiondenied();
} }
@@ -102,6 +103,7 @@ if (filesize($fn) == 0) {
httperr(); httperr();
} }
if (($row['banned'] == 'yes' && get_user_class() < $seebanned_class) || !can_access_torrent($row)) { if (($row['banned'] == 'yes' && get_user_class() < $seebanned_class) || !can_access_torrent($row)) {
require_once(get_langfile_path());
permissiondenied(); permissiondenied();
} }
+2
View File
@@ -11,6 +11,8 @@ permissiondenied();
function go_back() function go_back()
{ {
global $lang_settings; global $lang_settings;
\Nexus\Database\NexusDB::cache_del('nexus_settings_in_laravel');
\Nexus\Database\NexusDB::cache_del('nexus_settings_in_nexus');
stdmsg($lang_settings['std_message'], $lang_settings['std_click']."<a class=\"altlink\" href=\"settings.php\">".$lang_settings['std_here']."</a>".$lang_settings['std_to_go_back']); stdmsg($lang_settings['std_message'], $lang_settings['std_click']."<a class=\"altlink\" href=\"settings.php\">".$lang_settings['std_here']."</a>".$lang_settings['std_to_go_back']);
} }