Changes of the last few months including restructuring system from using only ranks to permissions
This commit is contained in:
@@ -25,7 +25,12 @@ class File extends MY_Controller
|
||||
header("Content-Disposition: attachment; filename=" . $file['name'] . '.' . explode('/', $file['type'])[1]);
|
||||
}
|
||||
|
||||
$imagePath = 'files/' . ($file['isUserData'] ? 'userContent/' : '') . (isset($_GET['w']) || isset($_GET['h']) ? 'thumbs/' : '') . $file['name'] . (isset($_GET['w']) ? '_w' . $_GET['w'] : '') . (isset($_GET['h']) ? '_h' . $_GET['h'] : '') . '.' . explode('.', $file['path'])[1];
|
||||
$imagePath = 'files' . DIRECTORY_SEPARATOR .
|
||||
($file['isUserData'] ? 'userContent' . DIRECTORY_SEPARATOR : '') .
|
||||
(isset($_GET['w']) || isset($_GET['h']) ? 'thumbs' . DIRECTORY_SEPARATOR : '') .
|
||||
$file['name'] . (isset($_GET['w']) ? '_w' . $_GET['w'] : '') .
|
||||
(isset($_GET['h']) ? '_h' . $_GET['h'] : '') . '.' .
|
||||
explode('.', $file['path'])[1];
|
||||
|
||||
if (!file_exists($imagePath)) {
|
||||
$config['image_library'] = 'gd2';
|
||||
|
Reference in New Issue
Block a user