//******************************************************************************// //--------------- Take upload --------------------------------------------------// // This pages handles the backend of the torrent upload function. It checks // // the data, and if it all validates, it builds the torrent file, then writes // // the data to the database and the torrent to the disk. // //******************************************************************************// //ini_set('upload_max_filesize',1000000); enforce_login(); $File = (isset($_FILES['log'])) ? $_FILES['log'] : null; // Our log file $FileName = $File['tmp_name']; if (is_uploaded_file($FileName) && filesize($FileName)) { $LogFile = file_get_contents($FileName); // Contents of the log are now stored in $LogFile } elseif (!empty($_POST["pastelog"])) { $LogFile = $_POST["pastelog"]; } else { error('No log file uploaded or file is empty.'); } View::show_header('Logchecker'); echo << Test Another Log File Upload Missing Logs
{$Text}