Thread: .nfo
View Single Post
  #3  
Old 5th August 2012, 15:55
Wuild Wuild is offline
Senior Member
 
Join Date: Jun 2012
P2P
Posts: 33
Default
Quote:
Originally Posted by David244us View Post
Anyone know how to remove it or make it optional, i tried everything I know on the upload.php thanks :)
open CMS/applications/torrent/upload.php

remove line 19 and 20

PHP Code:
        if (empty($_FILES["nfo"]['name']))
            throw new 
Exception('No NFO file was selected.'); 
also add on line 52

PHP Code:
} else {
     
$nfo "";

and it should work

Bump: also you may have to move line 30 and 31
PHP Code:
        $nfo $_FILES["nfo"];
        
$nfoname $nfo["name"]; 
to line 42

PHP Code:
        if (isset($_FILES['nfo']) && !empty($_FILES['nfo']['name'])) {
        
$nfo $_FILES["nfo"];
        
$nfoname $nfo["name"]; 
Reply With Quote