mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 02:46:30 +00:00
Empty commit
This commit is contained in:
parent
17a0c08279
commit
b2a319ff45
@ -25,7 +25,7 @@
|
||||
|*************************************************************************/
|
||||
|
||||
if (!extension_loaded('memcache')) {
|
||||
error('Memcache Extension not loaded.');
|
||||
die('Memcache Extension not loaded.');
|
||||
}
|
||||
|
||||
class CACHE extends Memcache
|
||||
|
@ -109,7 +109,7 @@
|
||||
*///---------------------------------------------------------------------------------
|
||||
|
||||
if (!extension_loaded('mysqli')) {
|
||||
error('Mysqli Extension not loaded.');
|
||||
die('Mysqli Extension not loaded.');
|
||||
}
|
||||
|
||||
//Handles escaping
|
||||
|
@ -26,7 +26,7 @@
|
||||
|
||||
// Make sure the filename is not too long
|
||||
if (mb_strlen($ExtraName, 'UTF-8') + mb_strlen($ExtraDirName, 'UTF-8') + 1 > MAX_FILENAME_LENGTH) {
|
||||
$Err = 'The torrent contained one or more files with too long a name (' . $ExtraName . ')';
|
||||
$Err = "The torrent contained one or more files with too long a name: <br />$ExtraDirName/$ExtraName";
|
||||
break;
|
||||
}
|
||||
// Add file and size to array
|
||||
|
@ -6,8 +6,8 @@
|
||||
// the data to the database and the torrent to the disk. //
|
||||
//******************************************************************************//
|
||||
|
||||
ini_set('upload_max_filesize',2097152);
|
||||
ini_set('max_file_uploads',100);
|
||||
ini_set('upload_max_filesize', 2097152);
|
||||
ini_set('max_file_uploads', 100);
|
||||
define(MAX_FILENAME_LENGTH, 180);
|
||||
include(SERVER_ROOT.'/classes/class_validate.php');
|
||||
include(SERVER_ROOT.'/classes/class_feed.php');
|
||||
@ -388,17 +388,14 @@
|
||||
check_file($Type, $Name);
|
||||
// Make sure the filename is not too long
|
||||
if (mb_strlen($Name, 'UTF-8') + mb_strlen($DirName, 'UTF-8') + 1 > MAX_FILENAME_LENGTH) {
|
||||
$TooLongPaths[] = $Name;
|
||||
$TooLongPaths[] = "$DirName/$Name";
|
||||
}
|
||||
// Add file info to array
|
||||
$TmpFileList[] = Torrents::filelist_format_file($File);
|
||||
}
|
||||
if (count($TooLongPaths) > 0) {
|
||||
$Names = '';
|
||||
foreach ($TooLongPaths as $Name) {
|
||||
$Names .= '<br>'.$Name;
|
||||
}
|
||||
$Err = 'The torrent contained one or more files with too long a name:'.$Names;
|
||||
$Names = implode(' <br />', $TooLongPaths);
|
||||
$Err = "The torrent contained one or more files with too long a name:<br /> $Names";
|
||||
}
|
||||
$FilePath = db_string($DirName);
|
||||
$FileString = db_string(implode("\n", $TmpFileList));
|
||||
|
Loading…
Reference in New Issue
Block a user